GNU bug report logs - #42662
27.1; `comint-redirect-results-list-from-process' treats COMMAND as a regexp

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Sun, 2 Aug 2020 03:28:02 UTC

Severity: normal

Found in version 27.1

Done: Phil Sainty <psainty <at> orcon.net.nz>

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 42662 in the body.
You can then email your comments to 42662 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#42662; Package emacs. (Sun, 02 Aug 2020 03:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Phil Sainty <psainty <at> orcon.net.nz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 02 Aug 2020 03:28:02 GMT) Full text and rfc822 format available.

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

From: Phil Sainty <psainty <at> orcon.net.nz>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; `comint-redirect-results-list-from-process' treats COMMAND as a
 regexp
Date: Sun, 2 Aug 2020 15:27:17 +1200
[Message part 1 (text/plain, inline)]
I encountered this when sending a COMMAND ending in a backslash
to the inferior comint process, and getting Debugger entered--Lisp error:
(invalid-regexp "Trailing backslash").

E.g. M-x comint-run RET cat RET

M-: (comint-redirect-results-list "\\" ".+" 0)

Debugger entered--Lisp error: (invalid-regexp "Trailing backslash")
  (looking-at "\\")
  (comint-redirect-results-list-from-process #<process cat> "\\" ".*" 0)
  (comint-redirect-results-list "\\" ".*" 0)
  (eval (comint-redirect-results-list "\\" ".*" 0) nil)
  (eval-expression (comint-redirect-results-list "\\" ".*" 0) nil nil 127)
  (funcall-interactively eval-expression (comint-redirect-results-list "\\" ".*" 0) nil nil 127)
  (call-interactively eval-expression nil nil)
  (command-execute eval-expression)


Patch attached.  Shall I commit this to emacs-27?


-Phil




In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2020-08-02 built on shodan
Repository revision: f54ddb0198640e38c1d34bf6031ff5117c117c85
Repository branch: emacs-27
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description: Ubuntu 18.04.4 LTS

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --prefix=/home/phil/emacs/27.0/usr/local
 --with-x-toolkit=lucid --without-sound'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG DBUS GSETTINGS GLIB NOTIFY INOTIFY
GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11
XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_NZ.UTF-8
  locale-coding-system: utf-8

Major mode: Dired by name

Minor modes in effect:
  show-paren-mode: t
  minibuffer-depth-indicate-mode: t
  winner-mode: t
  global-hl-line-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-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 message rmc puny format-spec rfc822 mml
mml-sec password-cache epa derived epg epg-config gnus-util rmail
rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv
bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-x
easymenu paren mb-depth winner ring hl-line dired dired-loaddefs advice
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 tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer 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
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
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 49706 7202)
 (symbols 48 6423 1)
 (strings 32 17502 1501)
 (string-bytes 1 554965)
 (vectors 16 9973)
 (vector-slots 8 130782 9032)
 (floats 8 29 25)
 (intervals 56 250 0)
 (buffers 1000 13))
[0001-Fix-usage-of-literal-text-as-regexp.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42662; Package emacs. (Sun, 02 Aug 2020 14:10:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 42662 <at> debbugs.gnu.org
Subject: Re: bug#42662: 27.1;
 `comint-redirect-results-list-from-process' treats COMMAND as a regexp
Date: Sun, 02 Aug 2020 17:09:12 +0300
> From: Phil Sainty <psainty <at> orcon.net.nz>
> Date: Sun, 2 Aug 2020 15:27:17 +1200
> 
> Patch attached.  Shall I commit this to emacs-27?

Please wait until after 27.1 is released.

Thanks.




Reply sent to Phil Sainty <psainty <at> orcon.net.nz>:
You have taken responsibility. (Wed, 12 Aug 2020 13:36:01 GMT) Full text and rfc822 format available.

Notification sent to Phil Sainty <psainty <at> orcon.net.nz>:
bug acknowledged by developer. (Wed, 12 Aug 2020 13:36:02 GMT) Full text and rfc822 format available.

Message #13 received at 42662-done <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: 42662-done <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#42662: 27.1; `comint-redirect-results-list-from-process'
 treats COMMAND as a regexp
Date: Thu, 13 Aug 2020 01:35:55 +1200
On 3/08/20 2:09 am, Eli Zaretskii wrote:
>> Patch attached.  Shall I commit this to emacs-27?
> 
> Please wait until after 27.1 is released.

Pushed to emacs-27; closing this bug.


-Phil




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 Sep 2020 11:24:11 GMT) Full text and rfc822 format available.

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

Previous Next


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