+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.
(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.