diff options
| author | Romain Francoise | 2007-01-31 13:20:52 +0000 |
|---|---|---|
| committer | Romain Francoise | 2007-01-31 13:20:52 +0000 |
| commit | e3633d8bdcd479fdb94fda879d02a7739eb2d89f (patch) | |
| tree | 89f301aefa1ea0d176737677143b12df4b026ac3 | |
| parent | 28ed185c9a185f7f9c28d6d8317efbaf466c3ab4 (diff) | |
| download | emacs-e3633d8bdcd479fdb94fda879d02a7739eb2d89f.tar.gz emacs-e3633d8bdcd479fdb94fda879d02a7739eb2d89f.zip | |
Delete extra copy of `comint-copy-old-input' added in previous change to
this file.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/comint.el | 11 |
2 files changed, 5 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3d6f2e235fa..9e7e5bef7fb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-01-31 Romain Francoise <romain@orebokech.com> | ||
| 2 | |||
| 3 | * comint.el: Delete extra copy of `comint-copy-old-input' added in | ||
| 4 | previous change to this file. | ||
| 5 | |||
| 1 | 2007-01-31 Jason Rumney <jasonr@gnu.org> | 6 | 2007-01-31 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * files.el (magic-mode-alist): Use image-mode-maybe rather than | 8 | * files.el (magic-mode-alist): Use image-mode-maybe rather than |
diff --git a/lisp/comint.el b/lisp/comint.el index 2653728fa4e..eeb3e720d06 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -1920,17 +1920,6 @@ Calls `comint-get-old-input' to get old input." | |||
| 1920 | (goto-char (process-mark process)) | 1920 | (goto-char (process-mark process)) |
| 1921 | (insert input)))) | 1921 | (insert input)))) |
| 1922 | 1922 | ||
| 1923 | (defun comint-copy-old-input () | ||
| 1924 | "Insert after prompt old input at point as new input to be edited. | ||
| 1925 | Calls `comint-get-old-input' to get old input." | ||
| 1926 | (interactive) | ||
| 1927 | (let ((input (funcall comint-get-old-input)) | ||
| 1928 | (process (get-buffer-process (current-buffer)))) | ||
| 1929 | (if (not process) | ||
| 1930 | (error "Current buffer has no process") | ||
| 1931 | (goto-char (process-mark process)) | ||
| 1932 | (insert input)))) | ||
| 1933 | |||
| 1934 | (defun comint-skip-prompt () | 1923 | (defun comint-skip-prompt () |
| 1935 | "Skip past the text matching regexp `comint-prompt-regexp'. | 1924 | "Skip past the text matching regexp `comint-prompt-regexp'. |
| 1936 | If this takes us past the end of the current line, don't skip at all." | 1925 | If this takes us past the end of the current line, don't skip at all." |