Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
133a11fc
Commit
133a11fc
authored
Jul 06, 2012
by
Glenn Morris
Browse files
* lisp/files.el (toggle-read-only): Restrict message to interactive use.
parent
a69ca799
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/files.el
lisp/files.el
+3
-2
No files found.
lisp/ChangeLog
View file @
133a11fc
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.
...
...
lisp/files.el
View file @
133a11fc
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment