[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master f8ce39d 01/25: Solve the "cloned indirect buffer" problem
From: |
Dmitry Gutov |
Subject: |
[elpa] master f8ce39d 01/25: Solve the "cloned indirect buffer" problem |
Date: |
Sat, 8 Dec 2018 19:19:35 -0500 (EST) |
branch: master
commit f8ce39d157144ee4b22d386dd40673ea7f87ecd7
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Solve the "cloned indirect buffer" problem
https://github.com/dgutov/diff-hl/commit/fdbf34a93d6b249ba20d9e7501dfa026aa88ac04#commitcomment-18802844
---
diff-hl.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/diff-hl.el b/diff-hl.el
index 6650818..d60fce6 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -538,6 +538,10 @@ in the source file, or the last line of the hunk above it."
(dolist (buf (buffer-list))
(when (and (buffer-local-value 'diff-hl-mode buf)
(not (buffer-modified-p buf))
+ ;; Solve the "cloned indirect buffer" problem
+ ;; (diff-hl-mode could be non-nil there, even if
+ ;; buffer-file-name is nil):
+ (buffer-file-name buf)
(file-in-directory-p (buffer-file-name buf) topdir))
(with-current-buffer buf
(let* ((file buffer-file-name)
- [elpa] master updated (cd8bbda -> 7964c46), Dmitry Gutov, 2018/12/08
- [elpa] master 0c8bf49 02/25: New option: diff-hl-margin-symbols-alist, Dmitry Gutov, 2018/12/08
- [elpa] master 1f864d6 03/25: Fix revert prompt, Dmitry Gutov, 2018/12/08
- [elpa] master f8ce39d 01/25: Solve the "cloned indirect buffer" problem,
Dmitry Gutov <=
- [elpa] master fa74f2f 04/25: Merge pull request #80 from ryuslash/master, Dmitry Gutov, 2018/12/08
- [elpa] master 6a09f77 06/25: Merge pull request #81 from Wilfred/user_error_no_hunks, Dmitry Gutov, 2018/12/08
- [elpa] master 04c3b01 05/25: Use `user-error' when we can't proceed., Dmitry Gutov, 2018/12/08
- [elpa] master c476e40 07/25: Update the Requirements section, Dmitry Gutov, 2018/12/08
- [elpa] master 8dab389 09/25: Add separate set of faces for diff-hl-margin-mode, Dmitry Gutov, 2018/12/08
- [elpa] master 1d672dd 11/25: Clarify diff-hl-flydiff-mode docstring, Dmitry Gutov, 2018/12/08
- [elpa] master 3e9d264 08/25: Clean up diff-hl-dired process buffers, Dmitry Gutov, 2018/12/08
- [elpa] master 09b9354 12/25: Add a variable for the diff-hl-mode lighter, Dmitry Gutov, 2018/12/08
- [elpa] master bec9889 13/25: Define diff-hl-margin-unknown and diff-hl-margin-ignored, Dmitry Gutov, 2018/12/08
- [elpa] master f0b945a 14/25: Don't call vc-state unless the file exists, Dmitry Gutov, 2018/12/08