branch: externals/denote
commit a1148a5da51310b18936d2006e38bb9879776763
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Use special-mode instead of fundamental-mode in 
denote-sort-dired--revert-to-empty
    
    This is discussed with Alan Schmitt in issue 618: 
<https://github.com/protesilaos/denote/issues/618>.
    
    Alan suggests a keymap to quit the window and kill the buffer. Maybe
    we do not need that and can get away with just the special-mode.
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 4af2de97f6..8667921e9a 100644
--- a/denote.el
+++ b/denote.el
@@ -1832,7 +1832,7 @@ If REVERSE is nil, use the value of the user option
   "Revert current Dired buffer to an empty buffer with a warning."
   (when (derived-mode-p 'dired-mode)
     (let ((inhibit-read-only t))
-      (fundamental-mode)
+      (special-mode)
       (erase-buffer)
       (delete-all-overlays)
       (insert (propertize "Denote Dired" 'face 'bold))

Reply via email to