From: Noam Postavsky <npostavs@gmail.com>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: 31193@debbugs.gnu.org
Subject: bug#31193: 26.1; error in `term-down' after window configuration change
Date: Tue, 17 Apr 2018 09:23:46 -0400 [thread overview]
Message-ID: <87sh7ut199.fsf@gmail.com> (raw)
In-Reply-To: <5480f11459b73e4cf0aabe12da5ce675@webmail.orcon.net.nz> (Phil Sainty's message of "Wed, 18 Apr 2018 01:00:14 +1200")
Phil Sainty <psainty@orcon.net.nz> writes:
> In a `term' buffer, seemingly after any window configuration change, the
> process filter triggers an error due to `term-current-row' being nil
> unexpectedly.
>
> Recipe:
>
> emacs -Q
> M-x toggle-debug-on-error
> M-x term
> RET
> RET #repeatedly -- all is fine at this point...
> C-c 2
> RET
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p
> nil)
> term-down(1 t)
> term-emulate-terminal(#<process terminal> "\015\033[K$
> \015\n\032//home/phil\015\n")
Hmm, I'm not able to reproduce this, even though it makes sense to me
that my fix for Bug#30544 [1: a64c11a3aa] would cause this. Perhaps it
depends on your shell prompt as well?
> That test of (= term-current-row 0) occurs twice in the function.
>
> Trivially, testing (bound-and-true-p term-current-row) beforehand in
> both pieces of code circumvents the error and appears in practice to
> resolve the issue, but I don't know whether that's the *right* fix.
I think changing them to function calls, i.e., (term-current-row)
instead of term-current-row would be the right thing; all the other term
functions use the function rather than accessing the variable directly.
[1: a64c11a3aa]: 2018-04-02 06:57:53 -0400
Fix term.el rendering following a window resize (Bug#30544)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=a64c11a3aa49121ceab79a2acc99c829d42417bd>
next prev parent reply other threads:[~2018-04-17 13:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-17 13:00 bug#31193: 26.1; error in `term-down' after window configuration change Phil Sainty
2018-04-17 13:23 ` Noam Postavsky [this message]
2018-04-17 13:49 ` Phil Sainty
2018-04-18 0:07 ` Noam Postavsky
2018-04-18 1:04 ` Phil Sainty
2018-04-18 2:04 ` Noam Postavsky
2018-04-18 4:23 ` Phil Sainty
2018-04-18 12:15 ` Noam Postavsky
2018-04-18 5:05 ` Phil Sainty
2018-04-18 5:37 ` Phil Sainty
2018-04-18 6:25 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sh7ut199.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=31193@debbugs.gnu.org \
--cc=psainty@orcon.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).