aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-09-22 23:44:43 +0800
committerChong Yidong2012-09-22 23:44:43 +0800
commit3df47cd5f62a0d8ddc12581f3ef32bfff16b6bbf (patch)
tree489572d2711d4b5af083b41811584814cb8f1788
parentc88b867fecbd50140b0b41f05599811a8f0e3dfe (diff)
downloademacs-3df47cd5f62a0d8ddc12581f3ef32bfff16b6bbf.tar.gz
emacs-3df47cd5f62a0d8ddc12581f3ef32bfff16b6bbf.zip
* files.el (ctl-x-map): Bind C-x C-q to read-only-mode.
Fixes: debbugs:12462
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/files.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 813abd506d4..973d920c373 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12012-09-22 Chong Yidong <cyd@gnu.org> 12012-09-22 Chong Yidong <cyd@gnu.org>
2 2
3 * files.el (ctl-x-map): Bind C-x C-q to read-only-mode
4 (Bug#12462).
5
3 * repeat.el (repeat): Doc fix (Bug#12348). 6 * repeat.el (repeat): Doc fix (Bug#12348).
4 7
5 * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix 8 * emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix
diff --git a/lisp/files.el b/lisp/files.el
index 289f5c6b0b6..66c526266e6 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -6714,7 +6714,7 @@ Otherwise, trash FILENAME using the freedesktop.org conventions,
6714(define-key esc-map "~" 'not-modified) 6714(define-key esc-map "~" 'not-modified)
6715(define-key ctl-x-map "\C-d" 'list-directory) 6715(define-key ctl-x-map "\C-d" 'list-directory)
6716(define-key ctl-x-map "\C-c" 'save-buffers-kill-terminal) 6716(define-key ctl-x-map "\C-c" 'save-buffers-kill-terminal)
6717(define-key ctl-x-map "\C-q" 'toggle-read-only) 6717(define-key ctl-x-map "\C-q" 'read-only-mode)
6718 6718
6719(define-key ctl-x-4-map "f" 'find-file-other-window) 6719(define-key ctl-x-4-map "f" 'find-file-other-window)
6720(define-key ctl-x-4-map "r" 'find-file-read-only-other-window) 6720(define-key ctl-x-4-map "r" 'find-file-read-only-other-window)