diff options
author | Chong Yidong <cyd@gnu.org> | 2012-09-23 18:21:34 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-09-23 18:21:34 +0800 |
commit | 9a93067632c0fc183ad5fb4ef44edc4ea8373716 (patch) | |
tree | 1b4e2edf6475276dde245345394beb51f2098a07 /lisp/dired.el | |
parent | a0942b9a361abdd267a4c6cf2a0edc2a29741db4 (diff) | |
download | emacs-9a93067632c0fc183ad5fb4ef44edc4ea8373716.tar.gz |
Convert toggle-read-only calls to read-only-mode.
* bindings.el (mode-line-toggle-read-only):
* bs.el (bs-toggle-readonly):
* buff-menu.el (Buffer-menu-toggle-read-only):
* dired.el (dired-toggle-read-only):
* ibuffer.el (ibuffer-do-toggle-read-only): Use read-only-mode.
Diffstat (limited to 'lisp/dired.el')
-rw-r--r-- | lisp/dired.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 6defd6c4877..ed7e6b0ddc8 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1964,7 +1964,7 @@ Otherwise, call `toggle-read-only'." (interactive) (if (derived-mode-p 'dired-mode) (wdired-change-to-wdired-mode) - (call-interactively 'toggle-read-only))) + (read-only-mode 'toggle))) (defun dired-next-line (arg) "Move down lines then position at filename. |