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
9e108fe6
Commit
9e108fe6
authored
Feb 08, 2014
by
Lars Ingebrigtsen
Browse files
* files.el (find-file-noselect): Clarify prompt when changing readedness.
Fixes: debbugs:13261
parent
20dda930
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/files.el
lisp/files.el
+6
-4
No files found.
lisp/ChangeLog
View file @
9e108fe6
2014-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* files.el (find-file-noselect): Clarify prompt when changing
readedness (bug#13261).
* dired.el (dired-internal-do-deletions): Don't say "Deleting..."
before we actually start to delete things (bug#16331).
...
...
lisp/files.el
View file @
9e108fe6
...
...
@@ -1910,10 +1910,12 @@ the various files."
(eq read-only buffer-file-read-only)
(eq read-only buffer-read-only))
(when (or nowarn
(let ((question
(format "File %s is %s on disk. Change buffer mode? "
buffer-file-name
(if read-only "read-only" "writable"))))
(let* ((new-status
(if read-only "read-only" "writable"))
(question
(format "File %s is %s on disk. Make buffer %s, too? "
buffer-file-name
new-status new-status)))
(y-or-n-p question)))
(setq buffer-read-only read-only)))
(setq buffer-file-read-only read-only))
...
...
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