1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-02 21:52:04 -08:00
emacs/lisp/vc
Juri Linkov 97806bc7de Add diff-mode-read-only to enable shorter keys in diff-mode
To be able to use outline-minor-mode-cycle keys in diff-mode,
outline-minor-mode should be higher in minor-mode-map-alist,
and a new variable diff-mode-read-only should be set
when the diff-mode buffer is read-only.
https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg00740.html

* lisp/vc/diff-mode.el: Add diff-mode-read-only to minor-mode-map-alist.
(diff-mode-read-only): New buffer-local variable.
(diff-mode): Set diff-mode-read-only to t when buffer-read-only is non-nil.
Update diff-mode-read-only in read-only-mode-hook.
Remove buffer-read-only from minor-mode-overriding-map-alist.
Remove view-mode-hook because now view-mode is higher than
diff-mode-read-only in minor-mode-map-alist.

* lisp/vc/vc-git.el (vc-git-stash-show):
* lisp/vc/vc.el (vc-diff-internal): Set buffer-read-only to t
before calling diff-mode that will set diff-mode-read-only.
2022-01-10 20:29:53 +02:00
..
add-log.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
compare-w.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cvs-status.el Fix typo in cvs-status-mode-map keymap 2022-01-05 17:07:07 +01:00
diff-mode.el Add diff-mode-read-only to enable shorter keys in diff-mode 2022-01-10 20:29:53 +02:00
diff.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ediff-diff.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ediff-help.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ediff-hook.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ediff-init.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ediff-merg.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ediff-mult.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ediff-ptch.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ediff-util.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
ediff-vers.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ediff-wind.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ediff.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
emerge.el Add indent declaration to emerge-defvar-local 2021-09-18 09:40:29 +02:00
log-edit.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
log-view.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
pcvs-defs.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
pcvs-info.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pcvs-parse.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pcvs-util.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
pcvs.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
smerge-mode.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-annotate.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
vc-bzr.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
vc-cvs.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-dav.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-dir.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-dispatcher.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-filewise.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
vc-git.el Add diff-mode-read-only to enable shorter keys in diff-mode 2022-01-10 20:29:53 +02:00
vc-hg.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-hooks.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-mtn.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
vc-rcs.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-sccs.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
vc-src.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
vc-svn.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
vc.el Add diff-mode-read-only to enable shorter keys in diff-mode 2022-01-10 20:29:53 +02:00