# HG changeset patch # User Romain Francoise # Date 1170249652 0 # Node ID 3111750977e3d6aafaa6333e8d5019ce56d39dbe # Parent c73074a0ea50bcc658bcd3164e927685d9de9ccc Delete extra copy of `comint-copy-old-input' added in previous change to this file. diff -r c73074a0ea50 -r 3111750977e3 lisp/ChangeLog --- a/lisp/ChangeLog Wed Jan 31 12:45:31 2007 +0000 +++ b/lisp/ChangeLog Wed Jan 31 13:20:52 2007 +0000 @@ -1,3 +1,8 @@ +2007-01-31 Romain Francoise + + * comint.el: Delete extra copy of `comint-copy-old-input' added in + previous change to this file. + 2007-01-31 Jason Rumney * files.el (magic-mode-alist): Use image-mode-maybe rather than diff -r c73074a0ea50 -r 3111750977e3 lisp/comint.el --- a/lisp/comint.el Wed Jan 31 12:45:31 2007 +0000 +++ b/lisp/comint.el Wed Jan 31 13:20:52 2007 +0000 @@ -1920,17 +1920,6 @@ (goto-char (process-mark process)) (insert input)))) -(defun comint-copy-old-input () - "Insert after prompt old input at point as new input to be edited. -Calls `comint-get-old-input' to get old input." - (interactive) - (let ((input (funcall comint-get-old-input)) - (process (get-buffer-process (current-buffer)))) - (if (not process) - (error "Current buffer has no process") - (goto-char (process-mark process)) - (insert input)))) - (defun comint-skip-prompt () "Skip past the text matching regexp `comint-prompt-regexp'. If this takes us past the end of the current line, don't skip at all."