Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5641e7a9
Commit
5641e7a9
authored
Dec 09, 2006
by
Romain Francoise
Browse files
(comint-insert-input): Delete obsolete comment.
Examine input field without moving point.
parent
f2e3589a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/comint.el
lisp/comint.el
+3
-4
No files found.
lisp/ChangeLog
View file @
5641e7a9
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>
* files.el (insert-file-1): Compare file size to
lisp/comint.el
View file @
5641e7a9
...
...
@@ -804,11 +804,10 @@ 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.
"
;; This doesn't use "
e
" because it is supposed to work
;; for events without parameters.
(interactive "
e
")
(mouse-set-point event)
(let ((pos (point)))
;; 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))))
(if (not (eq (field-at-pos pos) 'input))
;; No input at POS, fall back to the global definition.
(let* ((keys (this-command-keys))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment