all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#67023: comint comments commend field=input
@ 2023-11-09 18:24 JD Smith
  0 siblings, 0 replies; only message in thread
From: JD Smith @ 2023-11-09 18:24 UTC (permalink / raw)
  To: 67023


comint.el contains the following comment at line 1959, applicable when comint-use-prompt-regexp=nil:

                ;; Give old user input a field property of `input', to
                ;; distinguish it from both process output and unsent
                ;; input.  The terminating newline is put into a special
                ;; `boundary' field to make cursor movement between input
                ;; and output fields smoother.

But this is not actually done.  Just as for unsent input at the process mark, old input has text property field=nil.

I traced it back and this change was made in Emacs 22, at the same time overlay properties for the various comint fields were replaced by text properties.  Perhaps this is the desired behavior, and only fixing the comments is required.  However, the stated rationale to “distinguish from output and current unsent input” still seems applicable.  

Note that `comint-next-prompt’ checks explicitly for a null field value to know when it has moved past a prompt.  Comments in that function erroneously mention field=nil as pertaining only to unsent input at the end of the comint buffer. 




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-09 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-09 18:24 bug#67023: comint comments commend field=input JD Smith

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.