]> git.eshelyaron.com Git - emacs.git/commitdiff
Make load-path-shadows-mode a special mode
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Apr 2022 18:34:35 +0000 (20:34 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Apr 2022 18:34:35 +0000 (20:34 +0200)
* 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

index 8cd371321aeeaf4203f333ed4701bb78eea1d38f..2343a9b589f7f9db674d6bb0367f3204a2a141c1 100644 (file)
@@ -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