diff options
| author | Kim F. Storm | 2006-02-11 20:30:49 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-02-11 20:30:49 +0000 |
| commit | 2d13e5880dc28c2036be0832c49d78a5ae1138e5 (patch) | |
| tree | 2701b6bc8f52bff783c7099f26ca6b0d205de62b | |
| parent | ed0965431aa82b63558033ecff13ce36e9a34ce0 (diff) | |
| download | emacs-2d13e5880dc28c2036be0832c49d78a5ae1138e5.tar.gz emacs-2d13e5880dc28c2036be0832c49d78a5ae1138e5.zip | |
(ido-buffer-internal): Set mark for ido-insert-buffer.
Don't use insert-buffer; do insert-buffer-substring directly.
(ido-file-internal): Set mark for ido-insert-file. Use insert-file-1.
| -rw-r--r-- | lisp/ido.el | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ido.el b/lisp/ido.el index 9c1a3bbbaa6..77479de04d8 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -2022,9 +2022,10 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 2022 | (if (eq method 'insert) | 2022 | (if (eq method 'insert) |
| 2023 | (progn | 2023 | (progn |
| 2024 | (ido-record-command 'insert-buffer buf) | 2024 | (ido-record-command 'insert-buffer buf) |
| 2025 | (with-no-warnings | 2025 | (push-mark |
| 2026 | ;; we really want to run insert-buffer here | 2026 | (save-excursion |
| 2027 | (insert-buffer buf))) | 2027 | (insert-buffer-substring (get-buffer buf)) |
| 2028 | (point)))) | ||
| 2028 | (ido-visit-buffer buf method t))) | 2029 | (ido-visit-buffer buf method t))) |
| 2029 | 2030 | ||
| 2030 | ;; buffer doesn't exist | 2031 | ;; buffer doesn't exist |
| @@ -2225,9 +2226,10 @@ If INITIAL is non-nil, it specifies the initial input string." | |||
| 2225 | (if ido-find-literal 'insert-file-literally 'insert-file) | 2226 | (if ido-find-literal 'insert-file-literally 'insert-file) |
| 2226 | filename) | 2227 | filename) |
| 2227 | (ido-record-work-directory) | 2228 | (ido-record-work-directory) |
| 2228 | (if ido-find-literal | 2229 | (insert-file-1 filename |
| 2229 | (insert-file-contents-literally filename) | 2230 | (if ido-find-literal |
| 2230 | (insert-file-contents filename))) | 2231 | #'insert-file-contents-literally |
| 2232 | #'insert-file-contents))) | ||
| 2231 | 2233 | ||
| 2232 | (filename | 2234 | (filename |
| 2233 | (ido-record-work-file filename) | 2235 | (ido-record-work-file filename) |