aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-29 22:28:56 +0000
committerRichard M. Stallman1993-05-29 22:28:56 +0000
commit320b423388f9a28f6381a1744a67b09ec6efb90d (patch)
tree3011860dd8c894d7827b9c109e96df8a41616c5a
parent9183f1f9906f0d3c75560ffc05fb7a4126a8f94a (diff)
downloademacs-320b423388f9a28f6381a1744a67b09ec6efb90d.tar.gz
emacs-320b423388f9a28f6381a1744a67b09ec6efb90d.zip
(find-file-run-dired): Doc fix.
(find-file-read-only): Return the buffer. (find-file-read-only-other-window): Likewise. (find-file-read-only-other-frame): Likewise.
-rw-r--r--lisp/files.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el
index f46f27b7602..83322d05aa2 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -163,7 +163,7 @@ Normally auto-save files are written under other names.")
163Loading an abbrev file sets this to t.") 163Loading an abbrev file sets this to t.")
164 164
165(defconst find-file-run-dired t 165(defconst find-file-run-dired t
166 "*Non-nil says run dired if find-file is given the name of a directory.") 166 "*Non-nil says run dired if `find-file' is given the name of a directory.")
167 167
168;;;It is not useful to make this a local variable. 168;;;It is not useful to make this a local variable.
169;;;(put 'find-file-not-found-hooks 'permanent-local t) 169;;;(put 'find-file-not-found-hooks 'permanent-local t)
@@ -408,7 +408,8 @@ Like \\[find-file] but marks buffer as read-only.
408Use \\[toggle-read-only] to permit editing." 408Use \\[toggle-read-only] to permit editing."
409 (interactive "fFind file read-only: ") 409 (interactive "fFind file read-only: ")
410 (find-file filename) 410 (find-file filename)
411 (setq buffer-read-only t)) 411 (setq buffer-read-only t)
412 (current-buffer))
412 413
413(defun find-file-read-only-other-window (filename) 414(defun find-file-read-only-other-window (filename)
414 "Edit file FILENAME in another window but don't allow changes. 415 "Edit file FILENAME in another window but don't allow changes.
@@ -416,7 +417,8 @@ Like \\[find-file-other-window] but marks buffer as read-only.
416Use \\[toggle-read-only] to permit editing." 417Use \\[toggle-read-only] to permit editing."
417 (interactive "fFind file read-only other window: ") 418 (interactive "fFind file read-only other window: ")
418 (find-file-other-window filename) 419 (find-file-other-window filename)
419 (setq buffer-read-only t)) 420 (setq buffer-read-only t)
421 (current-buffer))
420 422
421(defun find-file-read-only-other-frame (filename) 423(defun find-file-read-only-other-frame (filename)
422 "Edit file FILENAME in another frame but don't allow changes. 424 "Edit file FILENAME in another frame but don't allow changes.
@@ -424,7 +426,8 @@ Like \\[find-file-other-frame] but marks buffer as read-only.
424Use \\[toggle-read-only] to permit editing." 426Use \\[toggle-read-only] to permit editing."
425 (interactive "fFind file read-only other frame: ") 427 (interactive "fFind file read-only other frame: ")
426 (find-file-other-frame filename) 428 (find-file-other-frame filename)
427 (setq buffer-read-only t)) 429 (setq buffer-read-only t)
430 (current-buffer))
428 431
429(defun find-alternate-file (filename) 432(defun find-alternate-file (filename)
430 "Find file FILENAME, select its buffer, kill previous buffer. 433 "Find file FILENAME, select its buffer, kill previous buffer.