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
404967ca
Commit
404967ca
authored
Jan 19, 2008
by
Eli Zaretskii
Browse files
Add comment before kill-buffer-if-not-modified.
parent
5169d861
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lisp/view.el
lisp/view.el
+4
-0
No files found.
lisp/view.el
View file @
404967ca
...
...
@@ -238,6 +238,10 @@ This is local in each buffer, once it is used.")
;;; Commands that enter or exit view mode.
;; This is used when view mode is exited, to make sure we don't try to
;; kill a buffer modified by the user. A buffer in view mode can
;; become modified if the user types C-x C-q, edits the buffer, then
;; types C-x C-q again to return to view mode.
(
defun
kill-buffer-if-not-modified
(
buf
)
"Like `kill-buffer', but does nothing if the buffer is modified."
(
let
((
buf
(
or
(
bufferp
buf
)
(
get-buffer
buf
))))
...
...
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