unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Live System User <nyc4bos@aol.com>
Cc: 33115@debbugs.gnu.org
Subject: bug#33115: 27.0.50; Add error-handling for comint-strip-ctrl-m
Date: Sat, 27 Oct 2018 12:31:04 +0300	[thread overview]
Message-ID: <83bm7fohwn.fsf@gnu.org> (raw)
In-Reply-To: <87efciofr1.fsf@aol.com> (message from Live System User on Sun, 21 Oct 2018 22:51:46 -0400)

> From: Live System User <nyc4bos@aol.com>
> Date: Sun, 21 Oct 2018 22:51:46 -0400
> 
>         Please consider adding additional error-handling for
>         `comint-strip-ctrl-m'.
> 
>         Amongst other things, I set the following hook:
> 
> 
> (add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
> 
> 
>         In my setup (i.e. NOT emacs -Q) I get the following
>         error when exiting a *shell* process:
> 
> 
> Debugger entered--Lisp error: (wrong-type-argument processp nil)
>   process-mark(nil)
>   comint-strip-ctrl-m("")
>   run-hook-with-args(comint-strip-ctrl-m "")
>   comint-send-input()
>   funcall-interactively(comint-send-input)
>   call-interactively(comint-send-input nil nil)
>   command-execute(comint-send-input)

Since this function is also an interactive command, I think it should
only silently do nothing when invoked non-interactively.
Interactively, invoking it on a process that was deleted should signal
an error.





  reply	other threads:[~2018-10-27  9:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-22  2:51 bug#33115: 27.0.50; Add error-handling for comint-strip-ctrl-m Live System User
2018-10-27  9:31 ` Eli Zaretskii [this message]
2021-02-02 15:11   ` Lars Ingebrigtsen

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=83bm7fohwn.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=33115@debbugs.gnu.org \
    --cc=nyc4bos@aol.com \
    /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).