diff options
| author | Juri Linkov | 2006-01-23 01:24:26 +0000 |
|---|---|---|
| committer | Juri Linkov | 2006-01-23 01:24:26 +0000 |
| commit | f6039de63ebe45e5af6d86f55facb690b97d385a (patch) | |
| tree | aa795decfc06f93a14535a35714cee87f16ec1ee | |
| parent | 07696982f10458a8af3b47d96190c554a8fde8fc (diff) | |
| download | emacs-f6039de63ebe45e5af6d86f55facb690b97d385a.tar.gz emacs-f6039de63ebe45e5af6d86f55facb690b97d385a.zip | |
(clone-buffer, clone-indirect-buffer, clone-indirect-buffer-other-window):
Use `read-buffer' instead of `read-string'. Fix prompts.
| -rw-r--r-- | lisp/simple.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 8aa7da00af0..346a242c042 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -5035,8 +5035,8 @@ select the completion near point.\n\n"))))) | |||
| 5035 | (goto-char (point-min)) | 5035 | (goto-char (point-min)) |
| 5036 | (search-forward "\n\n") | 5036 | (search-forward "\n\n") |
| 5037 | (forward-line 1)))) | 5037 | (forward-line 1)))) |
| 5038 | 5038 | ||
| 5039 | ;; Support keyboard commands to turn on various modifiers. | 5039 | ;;; Support keyboard commands to turn on various modifiers. |
| 5040 | 5040 | ||
| 5041 | ;; These functions -- which are not commands -- each add one modifier | 5041 | ;; These functions -- which are not commands -- each add one modifier |
| 5042 | ;; to the following event. | 5042 | ;; to the following event. |
| @@ -5101,7 +5101,7 @@ PREFIX is the string that represents this modifier in an event type symbol." | |||
| 5101 | (define-key function-key-map [?\C-x ?@ ?a] 'event-apply-alt-modifier) | 5101 | (define-key function-key-map [?\C-x ?@ ?a] 'event-apply-alt-modifier) |
| 5102 | (define-key function-key-map [?\C-x ?@ ?S] 'event-apply-shift-modifier) | 5102 | (define-key function-key-map [?\C-x ?@ ?S] 'event-apply-shift-modifier) |
| 5103 | (define-key function-key-map [?\C-x ?@ ?c] 'event-apply-control-modifier) | 5103 | (define-key function-key-map [?\C-x ?@ ?c] 'event-apply-control-modifier) |
| 5104 | 5104 | ||
| 5105 | ;;;; Keypad support. | 5105 | ;;;; Keypad support. |
| 5106 | 5106 | ||
| 5107 | ;;; Make the keypad keys act like ordinary typing keys. If people add | 5107 | ;;; Make the keypad keys act like ordinary typing keys. If people add |
| @@ -5196,7 +5196,8 @@ after it has been set up properly in other respects." | |||
| 5196 | (error "Cannot clone a file-visiting buffer")) | 5196 | (error "Cannot clone a file-visiting buffer")) |
| 5197 | (if (get major-mode 'no-clone) | 5197 | (if (get major-mode 'no-clone) |
| 5198 | (error "Cannot clone a buffer in %s mode" mode-name)) | 5198 | (error "Cannot clone a buffer in %s mode" mode-name)) |
| 5199 | (list (if current-prefix-arg (read-string "Name: ")) | 5199 | (list (if current-prefix-arg |
| 5200 | (read-buffer "Name of new cloned buffer: " (current-buffer))) | ||
| 5200 | t))) | 5201 | t))) |
| 5201 | (if buffer-file-name | 5202 | (if buffer-file-name |
| 5202 | (error "Cannot clone a file-visiting buffer")) | 5203 | (error "Cannot clone a file-visiting buffer")) |
| @@ -5266,7 +5267,7 @@ front of the list of recently selected ones." | |||
| 5266 | (if (get major-mode 'no-clone-indirect) | 5267 | (if (get major-mode 'no-clone-indirect) |
| 5267 | (error "Cannot indirectly clone a buffer in %s mode" mode-name)) | 5268 | (error "Cannot indirectly clone a buffer in %s mode" mode-name)) |
| 5268 | (list (if current-prefix-arg | 5269 | (list (if current-prefix-arg |
| 5269 | (read-string "BName of indirect buffer: ")) | 5270 | (read-buffer "Name of indirect buffer: " (current-buffer))) |
| 5270 | t))) | 5271 | t))) |
| 5271 | (if (get major-mode 'no-clone-indirect) | 5272 | (if (get major-mode 'no-clone-indirect) |
| 5272 | (error "Cannot indirectly clone a buffer in %s mode" mode-name)) | 5273 | (error "Cannot indirectly clone a buffer in %s mode" mode-name)) |
| @@ -5290,7 +5291,7 @@ the front of the list of recently selected ones." | |||
| 5290 | (if (get major-mode 'no-clone-indirect) | 5291 | (if (get major-mode 'no-clone-indirect) |
| 5291 | (error "Cannot indirectly clone a buffer in %s mode" mode-name)) | 5292 | (error "Cannot indirectly clone a buffer in %s mode" mode-name)) |
| 5292 | (list (if current-prefix-arg | 5293 | (list (if current-prefix-arg |
| 5293 | (read-string "BName of indirect buffer: ")) | 5294 | (read-buffer "Name of indirect buffer: " (current-buffer))) |
| 5294 | t))) | 5295 | t))) |
| 5295 | (let ((pop-up-windows t)) | 5296 | (let ((pop-up-windows t)) |
| 5296 | (set-buffer buffer) | 5297 | (set-buffer buffer) |