diff options
| author | Luc Teirlinck | 2004-03-18 02:57:32 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-03-18 02:57:32 +0000 |
| commit | 186f9ad113998e2f9c8caa43b872fd5ad51d38be (patch) | |
| tree | 916285b52e0bb9a4b627b4670cf33a4e6ab68865 | |
| parent | 165a7fbe6655561aeb78fd2856b60f4c83d9c635 (diff) | |
| download | emacs-186f9ad113998e2f9c8caa43b872fd5ad51d38be.tar.gz emacs-186f9ad113998e2f9c8caa43b872fd5ad51d38be.zip | |
(clone-buffer): Doc fix.
| -rw-r--r-- | lisp/simple.el | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 1f710576fa9..f41b9cbd11a 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4313,11 +4313,22 @@ Returns nil if PROCESS has already terminated." | |||
| 4313 | ;; - syntax-table | 4313 | ;; - syntax-table |
| 4314 | ;; - overlays | 4314 | ;; - overlays |
| 4315 | (defun clone-buffer (&optional newname display-flag) | 4315 | (defun clone-buffer (&optional newname display-flag) |
| 4316 | "Create a twin copy of the current buffer. | 4316 | "Create and return a twin copy of the current buffer. |
| 4317 | If NEWNAME is nil, it defaults to the current buffer's name; | 4317 | Unlike an indirect buffer, the new buffer can be edited |
| 4318 | NEWNAME is modified by adding or incrementing <N> at the end as necessary. | 4318 | independently of the old one (if it is not read-only). |
| 4319 | NEWNAME is the name of the new buffer. It may be modified by | ||
| 4320 | adding or incrementing <N> at the end as necessary to create a | ||
| 4321 | unique buffer name. If nil, it defaults to the name of the | ||
| 4322 | current buffer, with the proper suffix. If DISPLAY-FLAG is | ||
| 4323 | non-nil, the new buffer is shown with `pop-to-buffer'. Trying to | ||
| 4324 | clone a file-visiting buffer, or a buffer whose major mode symbol | ||
| 4325 | has a non-nil `no-clone' property, results in an error. | ||
| 4326 | |||
| 4327 | Interactively, DISPLAY-FLAG is t and NEWNAME is the name of the | ||
| 4328 | current buffer with appropriate suffix. However, if a prefix | ||
| 4329 | argument is given, then the command prompts for NEWNAME in the | ||
| 4330 | minibuffer. | ||
| 4319 | 4331 | ||
| 4320 | If DISPLAY-FLAG is non-nil, the new buffer is shown with `pop-to-buffer'. | ||
| 4321 | This runs the normal hook `clone-buffer-hook' in the new buffer | 4332 | This runs the normal hook `clone-buffer-hook' in the new buffer |
| 4322 | after it has been set up properly in other respects." | 4333 | after it has been set up properly in other respects." |
| 4323 | (interactive | 4334 | (interactive |