]> code.delx.au - gnu-emacs/commitdiff
(comint-insert-input): Set point first.
authorNick Roberts <nickrob@snap.net.nz>
Thu, 10 Jan 2008 11:28:33 +0000 (11:28 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Thu, 10 Jan 2008 11:28:33 +0000 (11:28 +0000)
lisp/comint.el

index b666ff42f37c492418667ced350eb94346fc806f..0a22cdba5c98a1f38b12746d8d21d239c7ae12bd 100644 (file)
@@ -820,6 +820,7 @@ buffer.  The hook `comint-exec-hook' is run after each exec."
 If there is no previous input at point, run the command specified
 by the global keymap (usually `mouse-yank-at-point')."
   (interactive "e")
+  (mouse-set-point event)
   (let ((pos (posn-point (event-end event)))
        field input)
     (with-selected-window (posn-window (event-end event))