From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#54834: 29.0.50; Problems with M-x dirs Date: Sun, 10 Apr 2022 10:26:52 +0200 Message-ID: <87y20dxqh2.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21738"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.12; emacs 29.0.50 To: 54834@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 10 11:01:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndTRb-0005QB-BZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 11:01:18 +0200 Original-Received: from localhost ([::1]:49554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndTRa-0005wl-1t for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 05:01:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndTRO-0005vX-QU for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 05:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndTRO-0002WU-Ei for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 05:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndTRO-0005oE-Cm for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 05:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Apr 2022 09:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54834 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.164958125822312 (code B ref -1); Sun, 10 Apr 2022 09:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Apr 2022 09:00:58 +0000 Original-Received: from localhost ([127.0.0.1]:39312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndTRJ-0005nn-Hc for submit@debbugs.gnu.org; Sun, 10 Apr 2022 05:00:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndTRH-0005nf-OH for submit@debbugs.gnu.org; Sun, 10 Apr 2022 05:00:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndTRE-0005tK-5P for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 05:00:55 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:35343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndTRA-0002Vp-Mm for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 05:00:51 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 62AFB5C00A9 for ; Sun, 10 Apr 2022 05:00:44 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 10 Apr 2022 05:00:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; bh=AxtjEPcnrXC770WivHo7BvdbsWBdT4tibaPIaZ i1aG0=; b=dauo5elTVuebI3WUXcj5LAhIim8EJzhKrkMOw6YdRVG32XJP8sqVsr Zq7XaaNh7wWEei+sdtqnjkTIYsnemnkbm51l7QZXRQKgM2QlO1DMxX45c/8POHQj H2rHWuqhucark1gkQoFac35DgwYbs4sB8iMboNaSTQ0phDcQ65ri7b7idDndn+X0 eg9xiyThoCq1rqrOyZ/yuy5qmMO3plClEkq6hNI7vgsQCnnJUWa0Ajvz3oEo6YP5 s+qw5fQE72Egsg/2r0h6tWp9onVPiS9JEQIiNCS12Bb2lVwZhf3yHj6lBC0euzpE eNKZVCIPPUuAERU7eFNO4injIIEHkRiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=AxtjEPcnrXC770Wiv Ho7BvdbsWBdT4tibaPIaZi1aG0=; b=gjF/vN2vLXnnECDN+Wnkzk/s1ns1QHu9f +xIcScw1THYj/F+Eqik/bTRlQx6yf3VbqNeC3nhrsvUpNFYof/lkC6kaIzWYG9sJ tM9aV13P2W1ptolO1a9T1vXwgGov7UBbPzvjMPbOz4vSbqpK0FTXDPdBobltgV5r OJNdpwIfeBipDn/md6TKDJCjoacAkbpvayIN0wx+nV2uGwjUCV/MF+sSoNCnHIr+ IJ0E4vTaRSZ7pdvb6EcSSLdttY63mCL8AdWMnqMeAJoZswL3K3XIOyEr6SuPqlUb xIxQufw68gtYY844vg4Ly+DsCKGQFdPzTCKtJqTw9vmvX3szPzTzA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekgedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufffkfggtgfgsehtqhertd dtreejnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehthhhorhhnsehfrghsthhm rghilhdrfhhmqeenucggtffrrghtthgvrhhnpeehhefguefhiefhudefgfeguedtfeejtd efteekheekvdevjeevieefgeevgeelgeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehthhhorhhnsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 10 Apr 2022 05:00:43 -0400 (EDT) Received-SPF: pass client-ip=66.111.4.28; envelope-from=thorn@fastmail.fm; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229646 Archived-At: Problem number one is this error: 1. emacs -Q 2. M-x shell RET 3. M-x dirs RET =3D> Error: dirs: Symbol=E2=80=99s function definition is void: string-chop= -newline This only happens with emacs 29 (current git master). The second problem is that M-x dirs seems to infloop when the required functions have been defined and this also happens with emacs 28.1: 1. emacs -Q 2. M-x shell RET 3. M-x dirs RET Emacs hangs and uses 100% of one core. Apparently, this seems to happen only when the underlying shell is fish. When I type the dirs command in *shell* manually, that's what I see: ~ $ dirs # prompt & what I've typed ~ $ dirs # seems to be echoed for some unknown reason ~ # the actual dirs output ~ $ # the new prompt The echoing of the prompt and command doesn't happen when I have an interactive fish shell in the terminal with env TERM=3Ddumb INSIDE_EMACS=3Demacs fish I've also tried setting `comint-process-echoes' to t but that doesn't help. I've tried debugging `dirs` aka `shell-resync-dirs'. When I'm in ~ and the prompt is "~ $" and I run M-x dirs, we're looping in the last `(while newelt' loop where newelt is and stays "^M~ $ dirs^M". When I C-g, what I see in the *shell* buffer is just ~ $ dirs i.e., my original prompt where the command has inserted "dirs" but the output of the command is only printed after I C-g. So it seems M-x dirs tries to parse the output before it has actually appeared. As said, this only happens with fish but not bash or zsh. In GNU Emacs 29.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, c= airo version 1.17.6) of 2022-04-10 built on thinkpad-t440p Repository revision: f29fd102d7531619a98acbf0f3e012fb0f6b233f Repository branch: master System Description: Arch Linux Configured using: 'configure --with-pgtk --with-native-compilation --with-xinput2' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM GTK3 ZLIB Important settings: value of $LC_MONETARY: de_DE.utf8 value of $LC_NUMERIC: de_DE.utf8 value of $LC_TIME: de_DE.utf8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: mu4e:main Minor modes in effect: editorconfig-mode: t global-aggressive-indent-mode: t pdf-occur-global-minor-mode: t diredfl-global-mode: t mu4e-search-minor-mode: t mu4e-update-minor-mode: t mu4e-context-minor-mode: t which-key-mode: t highlight-parentheses-mode: t corfu-global-mode: t corfu-mode: t yas-global-mode: t yas-minor-mode: t global-git-commit-mode: t magit-auto-revert-mode: t vertico-mode: t marginalia-mode: t minibuffer-depth-indicate-mode: t electric-pair-mode: t recentf-mode: t pixel-scroll-precision-mode: t pixel-scroll-mode: t override-global-mode: t save-place-mode: t savehist-mode: t shell-dirtrack-mode: t puni-global-mode: t puni-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t overwrite-mode: overwrite-mode-binary Load-path shadows: ~/Repos/el/mu/build/mu4e/mu4e hides ~/Repos/el/mu/mu4e/mu4e ~/Repos/el/mu/build/mu4e/mu4e-main hides ~/Repos/el/mu/mu4e/mu4e-main ~/Repos/el/mu/build/mu4e/mu4e-view hides ~/Repos/el/mu/mu4e/mu4e-view ~/Repos/el/mu/build/mu4e/mu4e-org hides ~/Repos/el/mu/mu4e/mu4e-org ~/Repos/el/mu/build/mu4e/mu4e-lists hides ~/Repos/el/mu/mu4e/mu4e-lists ~/Repos/el/mu/build/mu4e/mu4e-actions hides ~/Repos/el/mu/mu4e/mu4e-actions ~/Repos/el/mu/build/mu4e/mu4e-helpers hides ~/Repos/el/mu/mu4e/mu4e-helpers ~/Repos/el/mu/build/mu4e/mu4e-search hides ~/Repos/el/mu/mu4e/mu4e-search ~/Repos/el/mu/build/mu4e/mu4e-server hides ~/Repos/el/mu/mu4e/mu4e-server ~/Repos/el/mu/build/mu4e/mu4e-update hides ~/Repos/el/mu/mu4e/mu4e-update ~/Repos/el/mu/build/mu4e/mu4e-context hides ~/Repos/el/mu/mu4e/mu4e-context ~/Repos/el/mu/build/mu4e/mu4e-draft hides ~/Repos/el/mu/mu4e/mu4e-draft ~/Repos/el/mu/build/mu4e/mu4e-bookmarks hides ~/Repos/el/mu/mu4e/mu4e-bookm= arks ~/Repos/el/mu/build/mu4e/mu4e-message hides ~/Repos/el/mu/mu4e/mu4e-message ~/Repos/el/mu/build/mu4e/mu4e-compose hides ~/Repos/el/mu/mu4e/mu4e-compose ~/Repos/el/mu/build/mu4e/mu4e-headers hides ~/Repos/el/mu/mu4e/mu4e-headers ~/Repos/el/mu/build/mu4e/mu4e-mark hides ~/Repos/el/mu/mu4e/mu4e-mark ~/Repos/el/mu/build/mu4e/mu4e-contacts hides ~/Repos/el/mu/mu4e/mu4e-contac= ts ~/Repos/el/mu/build/mu4e/mu4e-icalendar hides ~/Repos/el/mu/mu4e/mu4e-icale= ndar ~/Repos/el/mu/build/mu4e/mu4e-folders hides ~/Repos/el/mu/mu4e/mu4e-folders ~/Repos/el/mu/build/mu4e/mu4e-speedbar hides ~/Repos/el/mu/mu4e/mu4e-speedb= ar ~/Repos/el/mu/build/mu4e/mu4e-contrib hides ~/Repos/el/mu/mu4e/mu4e-contrib ~/Repos/el/mu/build/mu4e/mu4e-vars hides ~/Repos/el/mu/mu4e/mu4e-vars /home/horn/.emacs.d/elpa/transient-20220406.1156/transient hides /home/horn= /Repos/el/emacs/lisp/transient Features: (shadow so-long emacsbug shortdoc cl-print pcmpl-unix dirtrack help-fns radix-tree fileloop conf-mode dabbrev magit-extras cursor-sensor misearch multi-isearch hippie-exp symbol-overlay executable view cape eglot array jsonrpc ert debug backtrace xref flymake-proc flymake pcase editorconfig-core editorconfig-core-handle editorconfig-fnmatch puni pulse project consult-vertico consult-icomplete consult dired-aux display-fill-column-indicator auto-package-update finder-inf generic yaml-mode fish-mode cargo cargo-process rust-utils rust-mode rust-rustfmt rust-playpen rust-compile rust-cargo web-mode disp-table preview-latex auto-loads tex-site editorconfig elfeed-show elfeed-search vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs debbugs-browse elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib avl-tree generator url-queue xml-query socks elpher hl-todo aggressive-indent rainbow-mode pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch pdf-misc pdf-tools pdf-view magit-bookmark bookmark jka-compr pdf-cache pdf-info tq pdf-util pdf-macs image-mode exif vc-git vc-dir ewoc epa-file rdictcc diredfl dired-x mu4e-icalendar gnus-icalendar org-capture org-refile icalendar diary-lib diary-loaddefs mu4e mu4e-org mu4e-view org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol org-keys oc org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs mu4e-main mu4e-headers mu4e-lists mu4e-compose mu4e-draft mu4e-actions smtpmail mu4e-search mu4e-bookmarks mu4e-mark mu4e-message flow-fill mule-util hl-line mu4e-contacts mu4e-update mu4e-folders mu4e-server mu4e-context mu4e-vars mu4e-helpers ido mu4e-meta ecomplete auto-dictionary flyspell ispell tramp-smb which-key highlight-parentheses restclient kind-icon svg-lib corfu yasnippet forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub let-alist gnutls forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml forge-post markdown-mode color thingatpt noutline outline forge-repo forge forge-core forge-db closql emacsql-sqlite emacsql emacsql-compiler magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor server magit-mode magit-git magit-base magit-section crm dash visual-filename-abbrev rg vc vc-dispatcher rg-info-hack advice rg-menu transient comp comp-cstr rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs grep compile debbugs soap-client url-http url-auth url-gw nsm warnings rng-xsd rng-dt rng-util xsd-regexp bug-reference vertico edmacro kmacro marginalia icomplete mb-depth use-package-diminish ace-window avy alert log4e notifications gntp elec-pair rx recentf tree-widget pixel-scroll cua-base use-package-bind-key bind-key saveplace savehist smiley gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr pixel-fill kinsoku url-file url-dired svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range message sendmail yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util text-property-search mm-util mail-prsvr mail-utils range doom-themes-ext-org doom-themes-ext-visual-bell face-remap doom-Iosvkem-theme doom-themes doom-themes-base diminish cl-extra help-mode use-package-ensure use-package-core tramp tramp-loaddefs trampver tramp-integration cus-edit pp cus-load wid-edit files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec easy-mmode info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 929579 159930) (symbols 48 53096 22) (strings 32 257765 6324) (string-bytes 1 8626416) (vectors 16 111848) (vector-slots 8 2706087 215415) (floats 8 972 722) (intervals 56 14860 737) (buffers 992 61))