GNU bug report logs -
#24837
26.0.50; term.el: In char mode, displayed and executed commands can differ
Previous Next
Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>
Date: Mon, 31 Oct 2016 14:11:02 UTC
Severity: important
Merged with 21609
Found in versions 24.5, 26.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #62 received at 24837 <at> debbugs.gnu.org (full text, mbox):
> From: Phil Sainty <psainty <at> orcon.net.nz>
> Cc: p.stephani2 <at> gmail.com, 24837 <at> debbugs.gnu.org, 21609 <at> debbugs.gnu.org,
> bug-gnu-emacs-bounces+psainty=orcon.net.nz <at> gnu.org
> Date: Tue, 10 Oct 2017 03:04:24 +1300
>
> This is now done, and rebased onto the emacs-26 branch. The new user
> options are enabled by default, and a NEWS entry added. New patch is
> attached; please review.
Thanks, see below.
> --- a/etc/NEWS
> +++ b/etc/NEWS
> @@ -1148,6 +1148,18 @@ languages. (Version 2.1.0 or later of Enchant is required.)
> +++
> *** Emacs no longer prompts the user before killing Flymake processes on exit.
>
> +** Term
> +
> ++++
This indication means the change is already described in the manual.
But since the patch doesn't include any doc changes except NEWS, I
presume you decided this shouldn't be mentioned in the manual (and I
agree), so the indication should be "---" instead.
> +*** New user options `term-char-mode-buffer-read-only' and
> +`term-char-mode-point-at-process-mark' are enabled by default to avoid
> +buffer states being created in `term-char-mode' which are inconsistent
> +with the terminal state expected by the inferior process.
> +
> +Respectively, these options prevent buffer changes which are not
> +caused by the process filter, and counter-act movements of point away
> +from the process mark (with the exception of mouse events).
I have a difficulty understanding why the user would like to change
the values of these options from their defaults. How about revising
this text to describe (a) the default behavior, and (b) when would
someone want to change that by tweaking these options?
> +(defcustom term-char-mode-buffer-read-only t
> + "If non-nil, only the process filter may modify the buffer in char mode.
> +
> +This makes the buffer read-only in char mode (except for the
> +process filter), to prevent editing commands from causing a
> +buffer state which is inconsistent with the state understood by
> +the inferior process."
> + :type 'boolean
> + :group 'term)
> +
> +(defcustom term-char-mode-point-at-process-mark t
> + "If non-nil, keep point at the process mark in char mode.
Same comment about the doc strings of these options.
Also, please add a :version tag to these options.
Thanks.
This bug report was last modified 7 years and 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.