]> git.eshelyaron.com Git - emacs.git/commit
Use special-mode for read-only buffers.
authorSam Steingold <sds@gnu.org>
Wed, 22 Nov 2017 21:14:22 +0000 (16:14 -0500)
committerSam Steingold <sds@gnu.org>
Wed, 22 Nov 2017 21:14:36 +0000 (16:14 -0500)
commitf79c33b39f195d1b30d7a3e085804e45ab76358e
tree6e50bcd256be4a3b49097d01291ceccb665d60e6
parenta6844ee86e0577acaeb699a26902c4dc9e7352aa
Use special-mode for read-only buffers.

* lisp/progmodes/etags.el (tags-table-mode): Define using
`define-derived-mode', inheriting from `special-mode'.
Not only the buffer is now read-only, but you can bury it with "q".
(select-tags-table-mode): No need to set `buffer-read-only'
explicitly, `special-mode' takes care of that.
* lisp/vc/log-edit.el (log-edit-show-files): Use `special-mode'
instead of setting `buffer-read-only' explicitly.
lisp/progmodes/etags.el
lisp/vc/log-edit.el