Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1b55e301
Commit
1b55e301
authored
Jun 12, 2002
by
Miles Bader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(comint-send-input): Properly handle empty and no-newline input regions.
parent
cd012309
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/comint.el
lisp/comint.el
+2
-2
No files found.
lisp/ChangeLog
View file @
1b55e301
2002-06-12 Miles Bader <miles@gnu.org>
* comint.el (comint-send-input): Properly handle empty and
no-newline input regions.
2002-06-12 Colin Walters <walters@gnu.org>
* calc/calc.el: Use `when', `unless'.
...
...
lisp/comint.el
View file @
1b55e301
...
...
@@ -1446,7 +1446,7 @@ Similarly for Soar, Scheme, etc."
(let ((beg (marker-position pmark))
(end (if no-newline (point) (1- (point)))))
(when (
not (> beg end)) ; handle a special case
(when (
> end beg)
;; Set text-properties for the input field
(add-text-properties
beg end
...
...
@@ -1461,7 +1461,7 @@ Similarly for Soar, Scheme, etc."
;; `boundary' field to make cursor movement between input
;; and output fields smoother.
(put-text-property beg end 'field 'input)))
(unless comint-use-prompt-regexp-instead-of-fields
(unless
(or no-newline
comint-use-prompt-regexp-instead-of-fields
)
;; Cover the terminating newline
(add-text-properties end (1+ end)
'(rear-nonsticky t
...
...
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