Commit 133a11fc authored by Glenn Morris's avatar Glenn Morris
Browse files

* lisp/files.el (toggle-read-only): Restrict message to interactive use.

parent a69ca799
2012-07-06 Glenn Morris <>
* files.el (toggle-read-only): Restrict message to interactive use.
2012-07-06 Michael Albinus <>
* net/tramp.el (tramp-restricted-shell-hosts-alist): New defcustom.
......@@ -4856,8 +4856,9 @@ properties or buffer state) and make changes, temporarily bind
(t (setq buffer-read-only (not buffer-read-only))
(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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment