emacs-diffs
[Top][All Lists]
Advanced

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

scratch/etags-regen 30f8dba: ; Check that buffer is non-nil


From: Dmitry Gutov
Subject: scratch/etags-regen 30f8dba: ; Check that buffer is non-nil
Date: Sun, 10 Jan 2021 20:13:28 -0500 (EST)

branch: scratch/etags-regen
commit 30f8dba7ab25ecfda96cf7bafe0b9f723de6ff3b
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    ; Check that buffer is non-nil
---
 lisp/progmodes/etags-regen.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/etags-regen.el b/lisp/progmodes/etags-regen.el
index be5fccd..e49d87c 100644
--- a/lisp/progmodes/etags-regen.el
+++ b/lisp/progmodes/etags-regen.el
@@ -209,7 +209,7 @@ We support only Emacs's etags program with this option."
   (when etags-regen--tags-file
     (delete-file etags-regen--tags-file)
     (let ((buffer (get-file-buffer etags-regen--tags-file)))
-      (kill-buffer buffer))
+      (and buffer (kill-buffer buffer)))
     (setq tags-file-name nil
           tags-table-list nil
           etags-regen--tags-file nil



reply via email to

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