Commit c169c5a3 authored by Romain Francoise's avatar Romain Francoise
Browse files

Revert last change.

parent 9a5cd478
......@@ -16,7 +16,6 @@
2006-12-09 Romain Francoise <romain@orebokech.com>
 
* comint.el (comint-insert-input): Delete obsolete comment.
Examine input field without moving point.
 
2006-12-08 Kevin Rodgers <ihs_4664@yahoo.com>
 
......@@ -805,9 +805,8 @@ buffer. The hook `comint-exec-hook' is run after each exec."
(defun comint-insert-input (event)
"In a Comint buffer, set the current input to the previous input at point."
(interactive "e")
;; Note: be careful not to move point in this function, it would
;; defeat `mouse-yank-at-point' in case we fall back to a yank.
(let ((pos (posn-point (event-end event))))
(mouse-set-point event)
(let ((pos (point)))
(if (not (eq (field-at-pos pos) 'input))
;; No input at POS, fall back to the global definition.
(let* ((keys (this-command-keys))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment