* lisp/files.el (toggle-read-only): Restrict message to interactive use.
This commit is contained in:
parent
a69ca79981
commit
133a11fc59
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-07-06 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* files.el (toggle-read-only): Restrict message to interactive use.
|
||||
|
||||
2012-07-06 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* net/tramp.el (tramp-restricted-shell-hosts-alist): New defcustom.
|
||||
|
|
|
@ -4856,8 +4856,9 @@ properties or buffer state) and make changes, temporarily bind
|
|||
(view-mode-enter))
|
||||
(t (setq buffer-read-only (not buffer-read-only))
|
||||
(force-mode-line-update))))
|
||||
(message "Read-only %s for this buffer"
|
||||
(if buffer-read-only "enabled" "disabled"))))
|
||||
(if (called-interactively-p 'interactive)
|
||||
(message "Read-only %s for this buffer"
|
||||
(if buffer-read-only "enabled" "disabled")))))
|
||||
|
||||
(defun insert-file (filename)
|
||||
"Insert contents of file FILENAME into buffer after point.
|
||||
|
|
Loading…
Add table
Reference in a new issue