[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 95dbe4b6ae: Make load-path-shadows-mode a special mode
From: |
Lars Ingebrigtsen |
Subject: |
master 95dbe4b6ae: Make load-path-shadows-mode a special mode |
Date: |
Sat, 30 Apr 2022 14:34:49 -0400 (EDT) |
branch: master
commit 95dbe4b6ae2e88213835a8ded3928b6769d78f2c
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Make load-path-shadows-mode a special mode
* lisp/emacs-lisp/shadow.el (load-path-shadows-mode): Make the
mode inherit from special-mode so that the `q' command works.
---
lisp/emacs-lisp/shadow.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lisp/emacs-lisp/shadow.el b/lisp/emacs-lisp/shadow.el
index 8cd371321a..2343a9b589 100644
--- a/lisp/emacs-lisp/shadow.el
+++ b/lisp/emacs-lisp/shadow.el
@@ -177,12 +177,11 @@ See the documentation for `list-load-path-shadows' for
further information."
. (1 font-lock-warning-face)))
"Keywords to highlight in `load-path-shadows-mode'.")
-(define-derived-mode load-path-shadows-mode fundamental-mode "LP-Shadows"
+(define-derived-mode load-path-shadows-mode special-mode "LP-Shadows"
"Major mode for `load-path' shadows buffer."
(setq-local font-lock-defaults
'((load-path-shadows-font-lock-keywords)))
- (setq buffer-undo-list t
- buffer-read-only t))
+ (setq buffer-undo-list t))
;; TODO use text-properties instead, a la dired.
(define-button-type 'load-path-shadows-find-file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 95dbe4b6ae: Make load-path-shadows-mode a special mode,
Lars Ingebrigtsen <=