From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Sockwell Newsgroups: gmane.emacs.bugs Subject: bug#37198: 26.2; Infinite recursion in eshell/clear with em-smart Date: Tue, 27 Aug 2019 13:41:43 +0000 Message-ID: Reply-To: Daniel Sockwell Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="211540"; mail-complaints-to="usenet@blaine.gmane.org" To: 37198@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 27 15:43:33 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i2bkw-000sj7-4a for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2019 15:43:30 +0200 Original-Received: from localhost ([::1]:51690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2bku-0005SD-W8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2019 09:43:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33753) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2bkW-0005QS-Ia for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 09:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2bkU-0000Xp-K9 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 09:43:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39063) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2bkU-0000Xi-Gp for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 09:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i2bkU-00054M-Bq for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 09:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Sockwell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2019 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37198 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.156691332619418 (code B ref -1); Tue, 27 Aug 2019 13:43:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2019 13:42:06 +0000 Original-Received: from localhost ([127.0.0.1]:47884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2bjZ-000537-7r for submit@debbugs.gnu.org; Tue, 27 Aug 2019 09:42:06 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i2bjW-00052m-QI for submit@debbugs.gnu.org; Tue, 27 Aug 2019 09:42:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33498) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2bjT-0004h5-LA for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 09:42:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2bjR-0008DM-Ac for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 09:41:59 -0400 Original-Received: from mail1.protonmail.ch ([185.70.40.18]:28644) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i2bjQ-0008BI-W1 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2019 09:41:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codesections.com; s=protonmail; t=1566913310; bh=hxUs19gLz1ISo2TTPBnYa3qLE0j+Pwf8FTs6dR8J4JA=; h=Date:To:From:Reply-To:Subject:Feedback-ID:From; b=i5WF/uLpTowS22sZG19Am+N8TKZ7f3L+Ns3h4t1zBaA6vuIdwNlH21y0uwuvsnXJ2 bEbGoJOsa2wCx6qM3dbNTyPwX6ppHDm4zwRNsS3fEJDn/SRu5EtPTGl6JrF0ygt21e kJleXnZd0PT4YK0Ut8PIo0nKCc8VUTip5Lusaw1E= Feedback-ID: qWX07WmNPZq-SIl_-7-kLWKTrFMgnscc4qPXstGP-kCXaJlLRg8XAk-0xq4UlhN_ZnhONThJqQGjmn8rINkw8w==:Ext:ProtonMail X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165961 Archived-At: Hi all, I encountered the following reproducible bug earlier today and, to my knowledge, it has not yet been reported. Here is the bug: The `eshell/clear` command triggers an infinite recursion and prints 6,599 lines when em-smart mode is active. Steps to reproduce: 1) Use the following config: (require 'eshell) (require 'em-smart) (add-hook 'eshell-mode-hook 'eshell-smart-initialize) 2) M-x eshell 3) Enter `clear` at the eshell prompt Expected behavior: The contents of the eshell buffer are scrolled by a single page, leaving a blank window. Actual behavior: The contents of the eshell buffer are scrolled by 6,599 lines and the message "Error during redisplay: (eval (mode-line-eol-desc)) signaled (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99")" is ec= hoed. Info from M-x report-emacs-bug is below. Best regards, Daniel In GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-04-12 built on juergen System Description:=09Antergos Linux Recent messages: Error during redisplay: (eval (mode-line-eol-desc)) signaled (error "Lisp n= esting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99") Error during redisplay: (eval (if (frame-parameter nil (quote client)) "@" = "")) signaled (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth= =E2=80=99") Error during redisplay: (eval (unless (display-graphic-p) "-%-")) signaled = (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99") redisplay--pre-redisplay-functions: (error "Lisp nesting exceeds =E2=80= =98max-lisp-eval-depth=E2=80=99") Error during redisplay: (eval (unless (display-graphic-p) "-%-")) signaled = (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99") Quit Making completion list... Mark set Undo! Making completion list... Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-str= ong -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_COLLATE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/dsock/.emacs.d/elpa/soap-client-3.1.5/soap-inspect hides /usr/share/e= macs/26.2/lisp/net/soap-inspect /home/dsock/.emacs.d/elpa/soap-client-3.1.5/soap-client hides /usr/share/em= acs/26.2/lisp/net/soap-client Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias term/xterm xterm time-date elec-pair finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib em-smart pcomplete comint ansi-color ring esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util 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 move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 144606 12731) (symbols 48 24197 1) (miscs 40 93 195) (strings 32 42027 1466) (string-bytes 1 1199907) (vectors 16 18583) (vector-slots 8 527167 5540) (floats 8 65 215) (intervals 56 1514 83) (buffers 992 15)) To: bug-gnu-emacs@gnu.org Subject: 26.2; Infinite recursion in eshell/clear and em-smart --text follows this line-- Hi all, I encountered the following reproduceable bug earlier today and, to my knowlege, it has not yet been reported. Here is the bug: The `eshell/clear` command triggers an infinite recursion and prints 6,599 lines when em-smart mode is active. Steps to reproduce: 1) Use the following config: (require 'eshell) (require 'em-smart) (add-hook 'eshell-mode-hook 'eshell-smart-initialize) 2) M-x eshell 3) Enter `clear` at the eshell prompt Expected behavior: The contents of the eshell buffer are scrolled by a single page, leaving a blank window. Actual behavior: The contents of the eshell buffer are scrolled by 6,599 lines and the message "Error during redisplay: (eval (mode-line-eol-desc)) signaled (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99")" is ec= hoed. Info from M-x report-emacs-bug is below. Best regards, Daniel In GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8) of 2019-04-12 built on juergen System Description:=09Antergos Linux Recent messages: Error during redisplay: (eval (mode-line-eol-desc)) signaled (error "Lisp n= esting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99") Error during redisplay: (eval (if (frame-parameter nil (quote client)) "@" = "")) signaled (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth= =E2=80=99") Error during redisplay: (eval (unless (display-graphic-p) "-%-")) signaled = (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99") redisplay--pre-redisplay-functions: (error "Lisp nesting exceeds =E2=80= =98max-lisp-eval-depth=E2=80=99") Error during redisplay: (eval (unless (display-graphic-p) "-%-")) signaled = (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99") Quit Making completion list... Mark set Undo! Making completion list... Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-str= ong -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_COLLATE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/dsock/.emacs.d/elpa/soap-client-3.1.5/soap-inspect hides /usr/share/e= macs/26.2/lisp/net/soap-inspect /home/dsock/.emacs.d/elpa/soap-client-3.1.5/soap-client hides /usr/share/em= acs/26.2/lisp/net/soap-client Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias term/xterm xterm time-date elec-pair finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib em-smart pcomplete comint ansi-color ring esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util 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 move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 144606 12731) (symbols 48 24197 1) (miscs 40 93 195) (strings 32 42027 1466) (string-bytes 1 1199907) (vectors 16 18583) (vector-slots 8 527167 5540) (floats 8 65 215) (intervals 56 1514 83) (buffers 992 15))