GNU bug report logs - #33115
27.0.50; Add error-handling for comint-strip-ctrl-m

Previous Next

Package: emacs;

Reported by: Live System User <nyc4bos <at> aol.com>

Date: Mon, 22 Oct 2018 02:56:02 UTC

Severity: wishlist

Tags: fixed

Found in version 27.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33115 in the body.
You can then email your comments to 33115 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#33115; Package emacs. (Mon, 22 Oct 2018 02:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Live System User <nyc4bos <at> aol.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 22 Oct 2018 02:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Live System User <nyc4bos <at> aol.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; Add error-handling for comint-strip-ctrl-m
Date: Sun, 21 Oct 2018 22:51:46 -0400
Hi,

        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)


        Thanks.




In GNU Emacs 27.0.50 (build 46, x86_64-pc-linux-gnu, GTK+ Version 3.20.10)
 of 2018-10-14 built on localhost.localdomain
Repository revision: 6b8fd34c4ab1aa23b180440cdc8210900896bbf4
Windowing system distributor 'Fedora Project', version 11.0.11803000
System Description: Fedora 24 (Workstation Edition)

Recent messages:
nnimap read 134k from imap.aim.com
nnimap read 172k from imap.aim.com
nnimap read 210k from imap.aim.com
nnimap read 236k from imap.aim.com
nnimap read 283k from imap.aim.com
Fetching headers for nnimap+aol:Inbox...done
Scoring...done
Sorting threads...done
Generating summary...done
mwheel-scroll: Beginning of buffer [5 times]

Configured using:
 'configure 'CFLAGS=-DMAIL_USE_LOCKF -O0 -ggdb3 -pipe -Wall
 -Werror=format-security -fexceptions -fstack-protector-strong
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
 LDFLAGS=-Wl,-z,relro
 --prefix=/tmp/n/emacs-27.0-git-master
 --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-lcms2
 --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=yes
 --with-xwidgets --with-modules --with-json'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS JSON
LCMS2 GMP

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Summary

Minor modes in effect:
  gnus-desktop-notify-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug sendmail qp gnus-ml disp-table pp
cursor-sensor nndraft nnmh nndoc mm-archive timezone url-http url-gw
url-cache url-auth url-handlers utf-7 rfc2104 nnfolder cl-extra
help-mode gnutls network-stream nsm gnus-agent gnus-srvr gnus-score
score-mode nnvirtual gnus-msg gnus-cache gnus-demon nntp
gnus-desktop-notify easy-mmode notifications dbus xml epa-file nnreddit
mm-url url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs url-vars json map gnus-art mm-uu
mml2015 mm-view mml-smime smime dig mailcap cl sieve sieve-mode
sieve-manage sasl sasl-anonymous sasl-login sasl-plain advice nnir
gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail
mail-source utf7 netrc parse-time gnus-spec gnus-int gnus-range message
rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec
password-cache epa derived epg epg-config mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus seq
byte-opt gv bytecomp byte-compile cconv wid-edit cl-loaddefs cl-lib nnoo
nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
time-date mm-util mail-prsvr mail-utils misearch multi-isearch elec-pair
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
xwidget-internal move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 327067 34630)
 (symbols 48 126896 2)
 (strings 32 119604 5016)
 (string-bytes 1 4126015)
 (vectors 16 28255)
 (vector-slots 8 958168 70958)
 (floats 8 211 451)
 (intervals 56 8197 0)
 (buffers 992 33)
 (heap 1024 60642 35383))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33115; Package emacs. (Sat, 27 Oct 2018 09:32:02 GMT) Full text and rfc822 format available.

Message #8 received at 33115 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Live System User <nyc4bos <at> aol.com>
Cc: 33115 <at> debbugs.gnu.org
Subject: Re: bug#33115: 27.0.50; Add error-handling for comint-strip-ctrl-m
Date: Sat, 27 Oct 2018 12:31:04 +0300
> From: Live System User <nyc4bos <at> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33115; Package emacs. (Tue, 02 Feb 2021 15:12:01 GMT) Full text and rfc822 format available.

Message #11 received at 33115 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Live System User <nyc4bos <at> aol.com>, 33115 <at> debbugs.gnu.org
Subject: Re: bug#33115: 27.0.50; Add error-handling for comint-strip-ctrl-m
Date: Tue, 02 Feb 2021 16:11:41 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> 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.

I've now made this change in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 02 Feb 2021 15:12:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 33115 <at> debbugs.gnu.org and Live System User <nyc4bos <at> aol.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 02 Feb 2021 15:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 03 Mar 2021 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 52 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.