emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org-remark 048a39f3f9 14/37: fix(save): modifiedp when


From: ELPA Syncer
Subject: [elpa] externals/org-remark 048a39f3f9 14/37: fix(save): modifiedp when source = notes buffer
Date: Sat, 14 Jan 2023 10:58:01 -0500 (EST)

branch: externals/org-remark
commit 048a39f3f93d55ed21c0c527fae3152968777369
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>

    fix(save): modifiedp when source = notes buffer
    
    Fixed the regression where modifiedp will never be off when source =
    notes.
    
    Tested the normal cases where notes and source files are separate.
---
 org-remark.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/org-remark.el b/org-remark.el
index e0c1d390b3..f3ec7a2891 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -417,7 +417,8 @@ in the current buffer.  Each highlight is an overlay."
              (props (overlay-properties h)))
         (org-remark-highlight-save filename beg end props)))
     ;;; Avoid saving the notes buffer if it is the same as the source buffer
-    (unless (eq source-buf notes-buf)
+    (if (eq source-buf notes-buf)
+        (set-buffer-modified-p nil)
       (with-current-buffer notes-buf
         (save-buffer)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]