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

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

[elpa] externals/lentic 61d6ea4ac5 222/333: Save lentic buffers only whe


From: ELPA Syncer
Subject: [elpa] externals/lentic 61d6ea4ac5 222/333: Save lentic buffers only when file-associated.
Date: Tue, 27 Feb 2024 13:00:37 -0500 (EST)

branch: externals/lentic
commit 61d6ea4ac5cfae1c7c5e1f13d7510227eb8317eb
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>

    Save lentic buffers only when file-associated.
    
    The after-save-hook functionality always tries to save the lentic buffer
    which is unfortunate if it is not file-associated.
---
 lentic.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lentic.el b/lentic.el
index 75b7bd7082..62edc02533 100644
--- a/lentic.el
+++ b/lentic.el
@@ -603,7 +603,8 @@ repeated errors.")
    (lambda (buffer)
      (with-current-buffer
          buffer
-       (save-buffer)))))
+       (when (buffer-file-name)
+         (save-buffer))))))
 
 (defvar lentic-kill-retain nil
   "If non-nil retain files even if requested to delete on exit.")



reply via email to

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