From unknown Mon Jun 23 04:10:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#76853 <76853@debbugs.gnu.org> To: bug#76853 <76853@debbugs.gnu.org> Subject: Status: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 Reply-To: bug#76853 <76853@debbugs.gnu.org> Date: Mon, 23 Jun 2025 11:10:33 +0000 retitle 76853 M-b not navigating to the previous word in the prompt string = inside Eshell on emacs 30.1 reassign 76853 emacs submitter 76853 Hrishikesh S severity 76853 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 08 01:53:23 2025 Received: (at submit) by debbugs.gnu.org; 8 Mar 2025 06:53:23 +0000 Received: from localhost ([127.0.0.1]:52459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqo3m-0003mi-PB for submit@debbugs.gnu.org; Sat, 08 Mar 2025 01:53:23 -0500 Received: from lists.gnu.org ([2001:470:142::17]:48342) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tqfj0-0005xM-NH for submit@debbugs.gnu.org; Fri, 07 Mar 2025 16:59:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tqfiu-0001ki-Cu for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2025 16:59:16 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tqfis-0001wa-Hx for bug-gnu-emacs@gnu.org; Fri, 07 Mar 2025 16:59:16 -0500 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-22403cbb47fso46579865ad.0 for ; Fri, 07 Mar 2025 13:59:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741384752; x=1741989552; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=gbvWbbDpgrUYTLA9JtCzgz429u0Y9gnH6JfIEyEX5Ug=; b=WUXN5LxDcsveHQZIiJuZ2tWQVBCeEETWvIKsOjb6R7w1+McgHrrkJpW5TbaP4q3sy6 kc0uSOc5Yd7Gyn42jFj4AzFRpq1nPJR6vDFS09lPY2uPCrDqlg3RRbTMT6rGUXMC+2YH R8VAXtlVrzbuF4MVJqFKYt4UtgDRFL5Rk2UXUDPdJ9EdMNA8+Nd5bzMlHUw+dXpS23N8 Jrh9zAP0X879zKaOzyvOqg4aBDzFD0rlce5IYTZQB2Y94pA56TXFo0FfdPB/48BujnXf 4K+P+ioishHb+2PLp98gmWsPvrHVFSgZbR0ZtqI2+sgTn8uIdW4mKHpcuKoD5ooBnc5a wuEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741384752; x=1741989552; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gbvWbbDpgrUYTLA9JtCzgz429u0Y9gnH6JfIEyEX5Ug=; b=qwksp0JWw8t2yZ1TgdIINieFYhIhNUKD0E/OvBP3Cp/di45uhs9EtCoAUUybOYPAED OqBcI5dzjbvGjRXj9imtwQD849gFFqKpcfPsbaJKiyQ+Xyn0i/hXXZCDsOjXzQeBAlBX 777O6r2h68tIPmuDXCIhLOZANaBzeHN6w4NgGd7qoXn5kAaxczBqPHHuSsaIKYa9ajrp 3ls7eYopAAksjEegTXsmvkd7AbEo6eDacvQNOxBW75dmZQzE26OM4Qpt1iPiuHh0fwbb 9b/K8kr3gLLz/Fqyus2GPxZE0O8yDuzIj6CW3TkJcKcF2gFBgd/ChJM8gXam8Ciat2VQ CmLA== X-Gm-Message-State: AOJu0YxDY0yoTbWSGCdROkumxn5zFDYvckMF6wXqnQqhTOkLrLsGi1j5 WxXkQsVhW0GyQ5pQdWkRFmNQ/0RXSf5/n6JaCG5imeGkKk/7G/2RuMcut1A8T3OS7a5i+vJ6nWc oNupEVoJR6SjaaOsMMblBaMOgSoo7hWMolvs= X-Gm-Gg: ASbGnctI8So1ttV6at75vf0b9JmDIhkhH0R9tqUjIj6hdID2Ea70Rtv3EeTZJuFSMdW DkmnVeuSFS3eWNt8nGXnAcHK2XGwyJp0WIhJx5t34d18kEW+wNz5SB98ImM/kPX+xGEM9zUE3x0 IBk90l4RPVGOuEOpWAWjWbdJjHlGZgOkNiHuGFdcUSNJ+Rvp1nD+x3nzkme+g= X-Google-Smtp-Source: AGHT+IEGRHvv5PJTaQSvPbvj2tFhmdTMvDjlUqkFzh9DaRzx9dmeOm4AcOENr7bH3L8/YCOsLy4pJC449IDDUv4iJro= X-Received: by 2002:a17:90b:4c44:b0:2ff:4e8f:b055 with SMTP id 98e67ed59e1d1-2ff7cf14526mr8095068a91.35.1741384752194; Fri, 07 Mar 2025 13:59:12 -0800 (PST) MIME-Version: 1.0 From: Hrishikesh S Date: Fri, 7 Mar 2025 13:58:35 -0800 X-Gm-Features: AQ5f1JpxycqemB5P1qRwF4xZgi57SNOZJM8T81lu7pqszZZDDQ8q3LoJjs29ILw Message-ID: Subject: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000926cc1062fc7bba8" Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=hrish2006@gmail.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: In GNU Emacs 30.1, System Description: macOS 15.2 which I installed by simply running "brew install emacs" on my work machine, when I'm inside the eshell buffer, typing `M-b` does not take me back by a word like how it used to be. Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (hrish2006[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (hrish2006[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 0.0 HTML_MESSAGE BODY: HTML included in message X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 08 Mar 2025 01:53:19 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --000000000000926cc1062fc7bba8 Content-Type: text/plain; charset="UTF-8" In GNU Emacs 30.1, System Description: macOS 15.2 which I installed by simply running "brew install emacs" on my work machine, when I'm inside the eshell buffer, typing `M-b` does not take me back by a word like how it used to be. Apologies if the bug doesn't have enough information, but I was able to verify this behavior on a fresh, clean install, without any of my configuration or installed packages by running "emacs -Q" and observing the same behavior. I searched through existing bug reports and this seems like a new issue. My relevant emacs config: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; eshell ;; (require 'em-smart) (setq eshell-history-size 10000) (setq eshell-prompt-regexp "^[^#$]*[#$] ") (defun curr-dir-git-branch-string (pwd) "Returns current git branch as a string, or the empty string if PWD is not in a git repo (or the git command is not found)." (interactive) (when (and (eshell-search-path "git") (locate-dominating-file pwd ".git")) (let ((git-output (shell-command-to-string (concat "cd " pwd " && git branch | grep '\\*' | sed -e 's/^\\* //'")))) (propertize (concat " [" (if (> (length git-output) 0) (substring git-output 0 -1) "(no branch)") "]") 'face `(:foreground "green")) ))) (setq eshell-prompt-function (lambda () (concat (propertize ((lambda (p-lst) (if (> (length p-lst) 3) (concat (mapconcat (lambda (elm) (if (zerop (length elm)) "" (substring elm 0 1))) (butlast p-lst 3) "/") "/" (mapconcat (lambda (elm) elm) (last p-lst 3) "/")) (mapconcat (lambda (elm) elm) p-lst "/"))) (split-string (pwd-repl-home (eshell/pwd)) "/")) 'face `(:foreground "yellow")) (or (curr-dir-git-branch-string (eshell/pwd))) (propertize " # " 'face 'default)))) (setq eshell-highlight-prompt nil) Thank you for all the work on emacs! Regards, Hrishi --000000000000926cc1062fc7bba8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In GNU Emacs 30.1, System Description: =C2=A0macO= S 15.2

which I installed by simply running "brew= install emacs" on my work machine,
when I'm inside = the eshell buffer, typing `M-b` does not take me back by a word like how it= used to be.

Apologies if the bug doesn= 9;t have enough information, but I was able to verify this behavior on a fr= esh, clean install, without any of my configuration or installed packages b= y running

"emacs -Q" and = observing the same behavior.

I searched th= rough existing bug reports and this seems like a new issue.
<= br>
My relevant emacs config:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; es= hell
;;
(require 'em-smart)
(setq eshell-history-size 10000)(setq eshell-prompt-regexp "^[^#$]*[#$] ")


(defun curr-dir-git-branch-string (pwd)
= =C2=A0 "Returns current git branch as a string, or the empty string if=
PWD is not in a git repo (or the git command is not found)."
= =C2=A0 (interactive)
=C2=A0 (when (and (eshell-search-path "git&quo= t;)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(locate-dominating-f= ile pwd ".git"))
=C2=A0 =C2=A0 (let ((git-output (shell-comman= d-to-string (concat "cd " pwd " && git branch | grep= '\\*' | sed -e 's/^\\* //'"))))
=C2=A0 =C2=A0 =C2= =A0 (propertize (concat " ["
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (if (> (length git-output) 0)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (substring git-output 0 -1)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "(no branch)&q= uot;)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "]") &#= 39;face `(:foreground "green"))
=C2=A0 =C2=A0 =C2=A0 )))
(setq eshell-prompt-function
=C2=A0 =C2=A0 =C2=A0 (lambda ()
=C2=A0= =C2=A0 =C2=A0 =C2=A0 (concat
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(propert= ize ((lambda (p-lst)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (if (>= (length p-lst) 3)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (concat
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0(mapconcat (lambda (elm) (if (zerop (length elm)) ""
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (= substring elm 0 1)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (butlast p-lst 3)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 "/")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0"/"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(mapconcat (lambda (elm) elm)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (last p-lst 3)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/"))
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (mapconcat (lambda (elm) e= lm)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0p-lst
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"/")))
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 (split-string (pwd-repl-home (eshell/pwd)) &quo= t;/")) 'face `(:foreground "yellow"))
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0(or (curr-dir-git-branch-string (eshell/pwd)))
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(propertize " # " 'face 'd= efault))))

(setq eshell-highlight-prompt nil)


Thank you for all the work on emacs!


Regards,
Hrishi


--000000000000926cc1062fc7bba8-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 08 03:21:48 2025 Received: (at 76853) by debbugs.gnu.org; 8 Mar 2025 08:21:48 +0000 Received: from localhost ([127.0.0.1]:52664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqpRM-0002yH-9R for submit@debbugs.gnu.org; Sat, 08 Mar 2025 03:21:48 -0500 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:56477) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tqpRJ-0002xz-4N for 76853@debbugs.gnu.org; Sat, 08 Mar 2025 03:21:45 -0500 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5e4d50ed90aso3291322a12.0 for <76853@debbugs.gnu.org>; Sat, 08 Mar 2025 00:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741422099; x=1742026899; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=eNfZ3Ns4rhI8qE1Fu9+/8hM2F5YEnckUluBCfcB7tIw=; b=kCBo6hdILPnm66cxJ0GZsA0sGAY8Vg9C+Q6SldCh6I9TFv2lsjFJypKunW0DmHBVoO um6cgD2p+eIC8Z5ah6JAvFNZAffqG1X2jBz8wfRdbVHmr6/wOoz0tKHSoXs/4kr0dHMI rnflkqAljyuRnQCUKJTobXgHfDuMYzA7i82Tv5gMNlW/PaEnlzwk3A/XG8gQ8MJxScv5 9U+FpVs/y66gO3iQleyOliyAX7gMKnoQ+MwOwCWwIJlz/Ip6OLTkdkyjCj42xOHI8LRo ZWAyLZ6sBwzb32QI5tSwlwCWW+PCCrINUOwphRkclFT8RJJF9+Yv0wkkYSUnGN6/qjlh f9/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741422099; x=1742026899; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eNfZ3Ns4rhI8qE1Fu9+/8hM2F5YEnckUluBCfcB7tIw=; b=oYuWEEj7ohkJFdNzC30JAPwTct8lyAKHscKJLdhhKh6pm+cLA1qrXBmDoUcnltYnXu luO/TzbV01+WwMBsrhnvLlupZ33YJR7YOp5NeqR9Z28Go+bcapvpPaBwWPBJ789Kjisu G2MreHzjf+62zQFz90mqk6QyiCstrsjovulh58P6G1E6ZCSmwRaLcwDa4RO9am5Ogqg3 yfRrE7XqjmeQgwzVnP65uOpmKzYtXB3JiE+pWexevxP0WytOZy57H5AmVKUdQr03SrbJ 7yj6ARthcIA+uIfX+ZBU8xulS6cj1C3wOnNoD5uJmZONdKyR083Sa7c3aLWmRSO0HL4M 1Hdw== X-Forwarded-Encrypted: i=1; AJvYcCVxUz7Z8GCbQnpTtLb8iW1d3dfft8BKaKmOyta/0+TxNVpHmU4lX3S9xtzbPGNbHHuo+nF1LQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxhoFGgjW26D0jXHr+56SSr0am71oWW+IyDt5dvn4ZfzCKsZgzR htZBOG0WzMpHa31ufclZw1OKVbx3wiDvDHkqdTGwR1jcBB/r5n91xm1ovJjDLX53hPPa9Up7DBf Lyx6oGPCiCqROf3ZMUV07EkkuMtIvErDVlSw= X-Gm-Gg: ASbGncsCfyy7vO8YWJefWjMm9ak3sBLPbr6SoBT2n8EKqg2lU9KpiiOLL82aSXWe6TW sbdv54abyE2Pxz3r6lokgwEfhywtvnQxuyqGN6dHHYD1wuF9mCjktLdP9qI7byNF2ad02J0fqJ8 6id73A4pRCoyD1cs0WrTno6AJjHg== X-Google-Smtp-Source: AGHT+IFfzwl2GSa/v9TQc4yqrTm0hMuLTqMHdli/zyBTZVCIKZCsVXnpzxV4rFa/2z0rqY6ruEezTplgHqsIGS1VAYA= X-Received: by 2002:a05:6402:5109:b0:5e4:99af:b7c with SMTP id 4fb4d7f45d1cf-5e5e22da11bmr7319062a12.9.1741422098756; Sat, 08 Mar 2025 00:21:38 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 8 Mar 2025 00:21:37 -0800 From: Stefan Kangas In-Reply-To: References: MIME-Version: 1.0 Date: Sat, 8 Mar 2025 00:21:37 -0800 X-Gm-Features: AQ5f1JoQaIARp9gBAk1L-2N2tt63OCDHnwFxx8C-qm-GDSWJvwydBPbBP2nTy-E Message-ID: Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 To: Hrishikesh S , 76853@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76853 Cc: Jim Porter X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hrishikesh S writes: > In GNU Emacs 30.1, System Description: macOS 15.2 > > which I installed by simply running "brew install emacs" on my work machine, > when I'm inside the eshell buffer, typing `M-b` does not take me back by a > word like how it used to be. > > Apologies if the bug doesn't have enough information, but I was able to > verify this behavior on a fresh, clean install, without any of my > configuration or installed packages by running > > "emacs -Q" and observing the same behavior. > > I searched through existing bug reports and this seems like a new issue. Jim, any comments? > My relevant emacs config: > > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; > eshell ;; (require 'em-smart) (setq eshell-history-size 10000) (setq > eshell-prompt-regexp "^[^#$]*[#$] ") > > > (defun curr-dir-git-branch-string (pwd) > "Returns current git branch as a string, or the empty string if > PWD is not in a git repo (or the git command is not found)." > (interactive) > (when (and (eshell-search-path "git") > (locate-dominating-file pwd ".git")) > (let ((git-output (shell-command-to-string (concat "cd " pwd " && git > branch | grep '\\*' | sed -e 's/^\\* //'")))) > (propertize (concat " [" > (if (> (length git-output) 0) > (substring git-output 0 -1) > "(no branch)") > "]") 'face `(:foreground "green")) > ))) > > (setq eshell-prompt-function > (lambda () > (concat > (propertize ((lambda (p-lst) > (if (> (length p-lst) 3) > (concat > (mapconcat (lambda (elm) (if (zerop (length elm)) "" > (substring elm 0 1))) > (butlast p-lst 3) > "/") > "/" > (mapconcat (lambda (elm) elm) > (last p-lst 3) > "/")) > (mapconcat (lambda (elm) elm) > p-lst > "/"))) > (split-string (pwd-repl-home (eshell/pwd)) "/")) 'face > `(:foreground "yellow")) > (or (curr-dir-git-branch-string (eshell/pwd))) > (propertize " # " 'face 'default)))) > > (setq eshell-highlight-prompt nil) From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 08 13:05:37 2025 Received: (at 76853) by debbugs.gnu.org; 8 Mar 2025 18:05:37 +0000 Received: from localhost ([127.0.0.1]:56723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqyYK-0004Op-P4 for submit@debbugs.gnu.org; Sat, 08 Mar 2025 13:05:37 -0500 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:52724) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tqyYI-0004OY-8R for 76853@debbugs.gnu.org; Sat, 08 Mar 2025 13:05:34 -0500 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-223fd89d036so58596775ad.1 for <76853@debbugs.gnu.org>; Sat, 08 Mar 2025 10:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741457128; x=1742061928; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=QGiBqlANftwUcjrYWavkRT+jEOfUoAi9rw5RjiG1Jfs=; b=diwAAnMI8T+jQw0jZSeMejMnsNAZFsKv64+5xPZwWnPLzR5WhvPRcYMH0eB6ZVBqDK rX0JJCa1iG769ofya/wtJ8KddlrmH9xg0NbwcJ8ZoEx4Ble0dBBu3e2FmjsHsfXvtav7 JHaM1YnOJu+e2mwD30LqIucoSXYRm+ueX4ICid6M+Pf7rdzyHBiy00lpkbanKgVdkFQp E72SR3qOQsDuw9vdXC6YVR5wMwKcYpA3IMruof1mgYCVL9gU27yWONoxALtvcDArmRoR hiC1Oh/oetK1cBehAemZSRAemBGfx9yi4J2C67Epyz94fTSb6p1releZmbpGXy0lYIaE Jqqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741457128; x=1742061928; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QGiBqlANftwUcjrYWavkRT+jEOfUoAi9rw5RjiG1Jfs=; b=iEbQyma5IZFZQlE9J/f1K1g/KbIItVCQcDAjFlCkmt/pHZozVs1Tf6crD7lc2zsGJE SSA67a6yRvRiPpRQRewrcpwYG1zt7cDz4+QQz+ldZMXExO2dqjJsEjLo/FEfjl+xo9W4 MFZ7XRyaTgeRgZHW4MEh290XdsIxtHr3ZJZjfQvDswAJho/5jZxpSWGG6RQPol4R/PAl yd905TX0rdpimksDoe34uO8DXqSV+SKoR5+I8pk1BrG3oC05AUFc4uy2h9kJF/zsbxS8 IJ9LFmfEqlHNOKigixx1ZVq9z7zxXKTvp22zpflgfQXf8RwaTPeHV1c2EtXJnQ3RS1wq h7uw== X-Forwarded-Encrypted: i=1; AJvYcCXrUBwsRRWaQYSS2O71JZVN4O2AbaX9X/ng5x8K9rz4m5JdARVe8yQP8Qg2eITYlz5X6XMErg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yxv6ybm1lAagNRG5LUoAPa7EzS4z6RKPzb4D5dMsEOVrX06VhUR rlCd2g51j4Z2jdewPoOljx2hgWcTP5twBMakTgl20vlQUo5gqcC2 X-Gm-Gg: ASbGnctgE6PlLKI5IWVl3IT+MXZC+L2/eU/cD9GjL7HgTuIjUV8u+jQ7BjB6b/brqZ4 ni1VbGszrLoDgx2yKu/+Q0suAA7cNXCXpCMqDp0wEa018i57uQ8FZK+kjNclEIIIpJ128uX8ivW tVt2Zedf2DFjPqfjCB8frO/qCZtOSRAyTPGBv44PB6/qW6XBomWGYEBgSZDtKMWeDtCTTTia1F0 OQ5HYIU4JT2sDK3FAerzYShMewFpjW9cdRsuzpAQQP8jt7YAlM+pYRwv6jC+DizX4Q1xf3K6L2F F+FOKtqPDpBkKVilnMswDhmUc7eUa9byg+5CLa+aGZ5vVUvdrTCvOMGxyq8BeHAcvPUK7LGKFMd niPFWrUQcJcJZwsbarcsT5Yj4 X-Google-Smtp-Source: AGHT+IG/Wjqtt7U5gIOjE7yJpFJ2/eIUyISpkH3Ss/wSMQuM1WtRuCzDSxez4bvQTtvbK9/8pxACiQ== X-Received: by 2002:a17:903:2281:b0:215:8d49:e2a7 with SMTP id d9443c01a7336-22428c1908amr124008005ad.50.1741457127884; Sat, 08 Mar 2025 10:05:27 -0800 (PST) Received: from [192.168.1.2] (syn-023-240-109-202.res.spectrum.com. [23.240.109.202]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-224109e8532sm49502765ad.56.2025.03.08.10.05.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Mar 2025 10:05:27 -0800 (PST) Message-ID: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> Date: Sat, 8 Mar 2025 10:05:25 -0800 MIME-Version: 1.0 Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 To: Stefan Kangas , Hrishikesh S , 76853@debbugs.gnu.org References: Content-Language: en-US From: Jim Porter In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76853 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 3/8/2025 12:21 AM, Stefan Kangas wrote: > Hrishikesh S writes: > >> which I installed by simply running "brew install emacs" on my work machine, >> when I'm inside the eshell buffer, typing `M-b` does not take me back by a >> word like how it used to be. [snip] > > Jim, any comments? Like 'shell' has for a long time, Eshell now uses fields when propertizing the prompt, and '(for|back)ward-word' don't move across field boundaries by default. So this is the intended default behavior. You could try setting 'inhibit-field-text-motion' to nil buffer-locally, though maybe that's a drastic change. Is there a better way to do that? (Or if not, should there be?) From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 09 23:12:59 2025 Received: (at 76853) by debbugs.gnu.org; 10 Mar 2025 03:12:59 +0000 Received: from localhost ([127.0.0.1]:35604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1trTZb-0003xk-GW for submit@debbugs.gnu.org; Sun, 09 Mar 2025 23:12:59 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:48182) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1trTZY-0003xU-BA for 76853@debbugs.gnu.org; Sun, 09 Mar 2025 23:12:56 -0400 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-2243803b776so50860885ad.0 for <76853@debbugs.gnu.org>; Sun, 09 Mar 2025 20:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741576370; x=1742181170; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ibJ54fioPL7lMnqphNw03RqjsCF04wC8q6YHcPMtq+s=; b=KqCMjQZoH0qsTXNbZaweNbN6bys0RhIAhHuCUcgoqXrt4KVz1CmpwfArUX8F+bRLFb xogTP5DRqHfrQdaWndsgxQmLp2IdlWf0S9h8b7Ocg960H/6tmCUsODWTiMWzE2xh8aWs 7SG9MsOPQq5WmcKjdxrbF8apTC8td3nkrA/4bQPI6z/INWKfefOBaGFn3G/OYLSKSeAh YcZqMyrZfq1r98gILANgxu/MNl7QFDR/7c9oygJ9/qi5AZupa2rseZQXYr51c7hO4dz2 bor+zwviUIwlMoxZgQB59bUV6F/e8uYqDZ7JFLWLvbUd0rnwW4808HJ1QC3bg2WSchl5 z1vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741576370; x=1742181170; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ibJ54fioPL7lMnqphNw03RqjsCF04wC8q6YHcPMtq+s=; b=fr9Y3xHHBanOk07Tr3DIKNBeXnSxC1m7JLbarrJ4JRQw4ozOh8vXoyp1XLmDekIwCa N3SmdkFIwbLZ/M+80kGMBhSxNb63O2L4X5nw2jEea8pOOBbbwMMLzof5cL4Y1yqmFRSo Q4d26czwx/4FAAe0ipoqhRYlQa927bR68LZGn/BjGXIDOvM0wbhYMVu0uB4aX3Z7+5Pd q/WDK6rH0H83/XkeC43ENU8LE5D3RHCvdtYGP46yGPBftR5L4ouq+lcLx2H+iZq8t4W1 Mdt/uOWp81xGfjnQpB4OlRcUsZgmMx9tajLUp3zwOdtfZqpzTZSldo+6CBQ/Tgv5gIud 0ATQ== X-Forwarded-Encrypted: i=1; AJvYcCWOuQvQalgNECyuNAowmgr8p5ktxem/CONHUPieseeJR97HO47KvIJxbRldxgI+QbFRR8zeJA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YykCV9QdArBLTKu04ZL6mSwU4npSw82ZHEahxgKBqOFdXWn2+dB dG62sabm8AjCg30s1+pb5NexqAxHecJ3JrqtW8i+OuaX9pcHZmuP451u1nLO74xOAj1XlC97UNy QVZEOh/bLgixmUyRtb6rKh3ZaepI= X-Gm-Gg: ASbGncsJPGh9Qlxdw61g0mFhrXsQrES5CLAVhr+F4+7FYvOhcC6F3ScSkHbhnh4z1xF dBGAv0CGZHnBZ1BCxU/a5sdd2y0+vBA8KVdRfRtJUBDToUCOAS1xB8PaEb8G+DbvrCTA6ebMgeV Hcpn+2LSmLJx1BVYDZzUAyd6o2y9oIa4omrn/ctpRCpLarrRKKFcZEdAw2Bho= X-Google-Smtp-Source: AGHT+IGfQiAg7UZS9typ5HaMESuIvZiaD2SJwjXbB5H+w4FCWgDkAT9fSvjvBYlD6L2rxCLT7YqjVJ5XiMLiYjesl7w= X-Received: by 2002:a17:902:d48c:b0:223:6180:1bea with SMTP id d9443c01a7336-22428ab7339mr177642925ad.37.1741576369830; Sun, 09 Mar 2025 20:12:49 -0700 (PDT) MIME-Version: 1.0 References: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> In-Reply-To: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> From: Hrishikesh S Date: Sun, 9 Mar 2025 20:12:13 -0700 X-Gm-Features: AQ5f1Jo_y5p6x665SU6UTp5rQfXLCTtv1mEa0MvESyTYzPwyEbk6MiQawXdlZDs Message-ID: Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 To: Jim Porter Content-Type: multipart/alternative; boundary="000000000000df86b6062ff458ec" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 76853 Cc: Stefan Kangas , 76853@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --000000000000df86b6062ff458ec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I see.. Thanks for the response! I will try setting `'inhibit-field-text-motion` and test. I'm used to using `M-b` a lot when I'm inside eshell as it lets me copy parts of my current directory when running commands (e.g: copy the git branch I'm on before pushing, etc), so found the change to be a bit jarring. As long as there is a way to get back the old behavior, I have no complaints :) Regards, Hrishi On Sat, Mar 8, 2025 at 10:05=E2=80=AFAM Jim Porter = wrote: > On 3/8/2025 12:21 AM, Stefan Kangas wrote: > > Hrishikesh S writes: > > > >> which I installed by simply running "brew install emacs" on my work > machine, > >> when I'm inside the eshell buffer, typing `M-b` does not take me back > by a > >> word like how it used to be. > [snip] > > > > Jim, any comments? > > Like 'shell' has for a long time, Eshell now uses fields when > propertizing the prompt, and '(for|back)ward-word' don't move across > field boundaries by default. So this is the intended default behavior. > > You could try setting 'inhibit-field-text-motion' to nil buffer-locally, > though maybe that's a drastic change. Is there a better way to do that? > (Or if not, should there be?) > --000000000000df86b6062ff458ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I see.. Thanks for the respons= e! I will try setting `'inhibit-field-text-motion` and test.

I'm used to using `M-b` a lot when I'm insid= e eshell as it lets me copy parts of my current directory when running comm= ands
(e.g: copy the git branch I'm on before pushing, etc= ), so found the change to be a bit jarring. As long as there is a way
=
to get back the old behavior, I have no complaints :)

Regards,
Hrishi

On Sat, Mar 8, 2025 at 10:05=E2=80=AFAM Jim Porter <jporterbugs@gmail.com> wrote:
On 3/8/2025 12:21 AM, St= efan Kangas wrote:
> Hrishikesh S <hrish2006@gmail.com> writes:
>
>> which I installed by simply running "brew install emacs"= on my work machine,
>> when I'm inside the eshell buffer, typing `M-b` does not take = me back by a
>> word like how it used to be.
[snip]
>
> Jim, any comments?

Like 'shell' has for a long time, Eshell now uses fields when
propertizing the prompt, and '(for|back)ward-word' don't move a= cross
field boundaries by default. So this is the intended default behavior.

You could try setting 'inhibit-field-text-motion' to nil buffer-loc= ally,
though maybe that's a drastic change. Is there a better way to do that?=
(Or if not, should there be?)
--000000000000df86b6062ff458ec-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 10 01:41:48 2025 Received: (at 76853-done) by debbugs.gnu.org; 10 Mar 2025 05:41:48 +0000 Received: from localhost ([127.0.0.1]:35962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1trVtc-0002lR-Dv for submit@debbugs.gnu.org; Mon, 10 Mar 2025 01:41:48 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:54629) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1trVta-0002lA-Ra for 76853-done@debbugs.gnu.org; Mon, 10 Mar 2025 01:41:47 -0400 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5dca468c5e4so7238533a12.1 for <76853-done@debbugs.gnu.org>; Sun, 09 Mar 2025 22:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741585300; x=1742190100; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=TwUnTMZ88dpASV83chZVc82/L9m/+IHPJvuZqg17US8=; b=XEG8QJjDghWCDWR/Mj2qmbwbyplzHDRetA8WlWjvTy8iKs1U1zDmigt6+97579w/26 84JlHkztG51s/YRa0LFu2JQfwr4yz2LFtUOb/gY7PHNjP/afn0NOcNFh1OyOkddvoUTf O5jziucRZCdICmBowhU0ZoUwlUSV7J97+awyP2Y+liKXL1YwbPLMAroEwnDV5wZY+seh mBv7REZu+peJWWIMhdMt/tb8ma5xSfGubQNBjOJuiOND1xYQ9a//l5NcAZXpGJEA5h2q PxURZzZtVXW30XKb3VeB3GT+k4ZSvKlCfGN30//FJ2i44f/jK0FU9uVRbkDkiQh1kY8I Ev7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741585300; x=1742190100; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TwUnTMZ88dpASV83chZVc82/L9m/+IHPJvuZqg17US8=; b=jCrv/OO7D8uVjJDnwyj2MVM8fR5MjcxrhHzE5E5+0YCwLhbpD1+vJUlY5qH6c3NNyg kHDr4ShZ6TmX8R0PZuVe4yOAvdjBZFhHDlF+/05te5tWJO4A7bpYZFKvYZJWy7a0wU1k NOvlZ8zX231DkWjHsQONc/6tSH5NREmmsQPtmkKhLjfpQwB+iLz32VykvshTC+eHnlVr cxRwkAgxEO+7LnAaTdL43aSoWsdd0Vzora5BnJvsmKenmLOdovFkv85C6FiucU4ra9QS MZGjKzoO7ouw+JgaO1ZrpNG5Cic8EfMzzyISbK2ivGVKPqhZu3ebtQqOFzXZeBS+UBKu 9oog== X-Gm-Message-State: AOJu0Yz532AVsIBz0EpziwlZAHp1aPB7BQmHDxMrJwDiW1CCiyukTk2G 4ADAno8IIdoplP6hKQoc/THXvCzMKfBu3jwt0HQbCYhHH8JwBtTnle3uCwcJuRIGLsUdfwJnf/g cM7gHLkVIZVGqzL5Lz9W/8ReED9Co9cFJ X-Gm-Gg: ASbGnctV6yZZcB4LbpO1V1ZWFWoMk7zFh+S4qZmv2+g0eVh9hkENKGE8zLABC69vKiR ygOPdTfmypcrbnmBdR2kdPEumBkjj2wRNUs0zX/TRNs+q6RgNHtjt1Yt1ItI6NQJAjmRZxgORVx Ml2M+w1AthdqxsBy3tLqc8eOojCcI= X-Google-Smtp-Source: AGHT+IF0y67K71dg7KtUGv+wf0OV8K20j8wNGcPDKeBrOUvmSjSvUL1kPLaOBQ7u9AjmML27UNuL7/iu1YQ4pXaagwU= X-Received: by 2002:a05:6402:3507:b0:5e5:b3cb:38aa with SMTP id 4fb4d7f45d1cf-5e5e24dd558mr12170752a12.25.1741585300471; Sun, 09 Mar 2025 22:41:40 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 10 Mar 2025 05:41:40 +0000 From: Stefan Kangas In-Reply-To: References: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> MIME-Version: 1.0 Date: Mon, 10 Mar 2025 05:41:40 +0000 X-Gm-Features: AQ5f1Jqly2Xv6W0NzS_M6QgOy938-QM4eW5NUKBLmhVZMnGdgalSXiVLDsXQzaI Message-ID: Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 To: Hrishikesh S , Jim Porter Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76853-done Cc: 76853-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hrishikesh S writes: > I see.. Thanks for the response! I will try setting > `'inhibit-field-text-motion` and test. > > I'm used to using `M-b` a lot when I'm inside eshell as it lets me copy > parts of my current directory when running commands > (e.g: copy the git branch I'm on before pushing, etc), so found the change > to be a bit jarring. As long as there is a way > to get back the old behavior, I have no complaints :) Thanks, so I guess we can therefore close this bug. I'm doing that with this message. From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 13 23:33:35 2025 Received: (at 76853-done) by debbugs.gnu.org; 14 Mar 2025 03:33:35 +0000 Received: from localhost ([127.0.0.1]:59208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tsvnj-00026I-9G for submit@debbugs.gnu.org; Thu, 13 Mar 2025 23:33:35 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:58548) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tsvng-00025t-7p for 76853-done@debbugs.gnu.org; Thu, 13 Mar 2025 23:33:32 -0400 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2ff6ae7667dso3568899a91.0 for <76853-done@debbugs.gnu.org>; Thu, 13 Mar 2025 20:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741923206; x=1742528006; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sJ7RJa9OKGK+LragvjMfexaTvG2kgJsvc4kblntD3lQ=; b=nShaqI9bLcs0QMaQI1PeQo5SzBJw2ftXYFqlHEzZigJKvGnZ6qE954jsvdAoC3Z58l UoBNbRiJAAMz6ZL6TR0amcy/9plbQr5BPCuNwSc5boMTWzX25SuNpG78KMFqOiKyRxKA ogUn8OOqyjA2jqAM2GbuhG2Fbl6W2O3j/S37P3QCa/4gdRdl8P0d/w+0zK1K/eSbWQEJ Nn4MKHFGgNpR4hRYL5W0IPMqrPuBjsTdBcB/g6Q/b9vlScevoXSioytlaRGouNKXtlxb jzF2nN8ZcFzeQvd5S6rs74h3+kGlq+KW6A62HglH4l3f/r1pOqoWRYlxN7KKxfV288t1 wicQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741923206; x=1742528006; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sJ7RJa9OKGK+LragvjMfexaTvG2kgJsvc4kblntD3lQ=; b=Wa8X9YxsEG6rtPHegKx5Webfh0QJuc2OcIQBzKmKp703i1sloI5djKIKIlUMrFGhep Kw5/BdMqFc8T3BEfx2zleJQkwCal6HTGN03U7NOQDZKfuFF555c+sGxl+bx9ORfM5H9a X603BnKF7+EA5P8cv5IcQ2g6SbbsUq+dYgpzCbOTZIsvV1hdJ4FsdN44MdJlu04r63ji QhDHp/NQLfvXlDqpOB2HUIcjXy7jRSCXsx/BaqzBQ4h5x9i3XyKYdAMK1KWoTEdn+FmS UPbb+tVoASQdah/TZ/YIDOxD7+JNPMccpyD1KvDk2Sa+Zne6kdCZCfuXqH0x2rBptI0v FNWQ== X-Forwarded-Encrypted: i=1; AJvYcCXKdNNTXMPhFKgyKHIBYmpDeu5XAdHrvIzeqOIFqAeyaGZc8T8b4cdYgODdP856wNEfHEkYAGZ0kntg@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx0xM/sfWhCwcsXy8eF5+GhReMoiEppPIDf2JXPEoAor1eaEjsA 6Zp3W9WskmsJl19lHXDeU+dJ6ioTJ+ohSQIsF+tl/OMddHvRzhodu/UaKA43u6XIrGw7KIuskKW r7NSxDcKYEvqNGlx17Ma27X2mTYw= X-Gm-Gg: ASbGncs3ZALfClfaWS7i5Y+P1pAREcC5LiFwD7hK3JV/hF5gxozD2vJFQOaT7LiIdI5 uPvfZqf4+3L3PbfOCVlpXTS/FIrOJMJ6VlkL6rPTipf0U2AULk20gtujsgA7mnDHoP+cEIMSXw/ llep2e1cWziAtd7kYLg5wZ5MjoaccnE/zoL//ratRWi7468l7xsPrR1kCqVg== X-Google-Smtp-Source: AGHT+IERgy4ZuCdz4FOZ11+inY4mmr1vkPqizBMXCEMEcvuJuXdKFk9qgRBVeyYIyweSPZcL14ObnoMf7Dppoa0Je0I= X-Received: by 2002:a17:90a:d60f:b0:2fc:b40:339a with SMTP id 98e67ed59e1d1-30151cd77f2mr1532622a91.10.1741923205857; Thu, 13 Mar 2025 20:33:25 -0700 (PDT) MIME-Version: 1.0 References: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> In-Reply-To: From: Hrishikesh S Date: Thu, 13 Mar 2025 20:32:49 -0700 X-Gm-Features: AQ5f1Jp3kDhwH-KpAI-m0vVcva4zeJp4FUMsgrldtj_tg-tAmfNbqOhGD5wiaPA Message-ID: Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 To: Stefan Kangas Content-Type: multipart/alternative; boundary="000000000000e94ba80630451971" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 76853-done Cc: Jim Porter , 76853-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --000000000000e94ba80630451971 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Stefan, I tried this: (add-hook 'eshell-mode-hook (lambda () (setq-local inhibit-field-text-motion nil))) but this doesn't work (retains current behavior and describe-variable says that the default value for "inhibit-field-text-motion" is nil). This worked: (add-hook 'eshell-mode-hook (lambda () (setq-local inhibit-field-text-motion t))) but then I lose the completions I get when I type a command like `cd ` It would be nice if I could get back the behavior I was used to in emacs 29. Currently, I'm managing by first hitting `C-b` followed by `M-b`. :) Regards, Hrishi On Sun, Mar 9, 2025 at 10:41=E2=80=AFPM Stefan Kangas wrote: > Hrishikesh S writes: > > > I see.. Thanks for the response! I will try setting > > `'inhibit-field-text-motion` and test. > > > > I'm used to using `M-b` a lot when I'm inside eshell as it lets me copy > > parts of my current directory when running commands > > (e.g: copy the git branch I'm on before pushing, etc), so found the > change > > to be a bit jarring. As long as there is a way > > to get back the old behavior, I have no complaints :) > > Thanks, so I guess we can therefore close this bug. > > I'm doing that with this message. > --000000000000e94ba80630451971 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Stefan,

I tri= ed this:

(add-hook 'eshell-mode-hook (= lambda () (setq-local inhibit-field-text-motion nil)))

but this doesn't work (retains current behavior and descri= be-variable says that the default value for "inhibit-field-text-motion= " is nil).=C2=A0

This worked:
(add-hook 'eshell-mode-hook (lambda () (setq-local inhibit-field= -text-motion t)))

but then I lose the comp= letions I get when I type a command like `cd <tab>`
I= t would be nice if I could get back the behavior I was used to in emacs 29.= =C2=A0
Currently, I'm managing by first hitting `C-b` fol= lowed by `M-b`.

:)

Regards,
Hrishi


=
On Sun, Mar 9, 2025 at 10:41=E2=80=AFPM Stefan Kangas <stefankangas@gmail.com> wrote:<= br>
Hrishikesh S <= ;hrish2006@gmail.c= om> writes:

> I see.. Thanks for the response! I will try setting
> `'inhibit-field-text-motion` and test.
>
> I'm used to using `M-b` a lot when I'm inside eshell as it let= s me copy
> parts of my current directory when running commands
> (e.g: copy the git branch I'm on before pushing, etc), so found th= e change
> to be a bit jarring. As long as there is a way
> to get back the old behavior, I have no complaints :)

Thanks, so I guess we can therefore close this bug.

I'm doing that with this message.
--000000000000e94ba80630451971-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 13 23:47:10 2025 Received: (at 76853) by debbugs.gnu.org; 14 Mar 2025 03:47:10 +0000 Received: from localhost ([127.0.0.1]:59243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tsw0r-0002ny-To for submit@debbugs.gnu.org; Thu, 13 Mar 2025 23:47:10 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:54290) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tsw0q-0002nf-8W for 76853@debbugs.gnu.org; Thu, 13 Mar 2025 23:47:08 -0400 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2ff6a98c638so3644151a91.0 for <76853@debbugs.gnu.org>; Thu, 13 Mar 2025 20:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741924022; x=1742528822; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=g4bxPZSf06vpTHwtmJhVsctEsl83KhbJPgZ9R5yVCYw=; b=frh3IIiuetYOcUfHsxCey74+3aRwpAVkfhEUV1wloPLMKALcdJErekQfJIa+cb7twj G9vFqgsR8r9/hiRZ87VtfRwGliUjcqwnEDPSGWgVMk9JAyMGlOLsD1otprK1lR12yGcn ORmWza4kxD62HDhtdSoH3crKlwl59Hr5Xtz72CB8NcvHz2SAMPMMdJC+A4OxoaKrygdC m4pd/Vm9UxSq6sSfuedzaxO2yegT0f+KqplJDkRxFmPGu89IyTKQ7Gf0o0oNAGvEYkoo bAbxxDqMC8rnW0NSWiOJPrS3HdTK2KS1Hs+IBhcpkr2729SdSFaMwIql02921SJRHrZt Y3fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741924022; x=1742528822; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=g4bxPZSf06vpTHwtmJhVsctEsl83KhbJPgZ9R5yVCYw=; b=ZWCMSwGjextqkYW/fnryjIPujQznNcABvqC+rzzgHiedHKk8mEkAp9KsOJsvvREeik eW/Wq6Og+YXQcFCiBn+kGBvwP2O1/w2A3qJ5FvyS597hkf/1siZAAv/n4ET+WUYnNX74 Q4zzfD4RmUAZDqx9cnaGQZHvPe+L3XUHrlZnYyG/3RMVgkn+XNutnutfde9g6iKnqtm6 d9zTeUx3wmWBzj3myC08YkDC6usul7/ZquMeh6S0iB8sVRfpYoJpivpgNUNRQU9OZFsg LIM1hjHAH7X6wOHWXETeTxt0Ik71Wl/1B+gN8WE3BT24kSR9/X8y/xKV+6iHtbrpkUHi osRQ== X-Gm-Message-State: AOJu0YwB7KlLqXRWrZpsIiQZE45PH9szS3nj9INri/H8laJLTSFl7Qs9 SswMiSNKc4bhyDbOA5B7q7rIpXoOmqyxLMcPbKL09aWsTt9xaVXJ X-Gm-Gg: ASbGnctNfIql05ye45EQmSzaF3hvnfZ6vnCV1jHhNl6GGQr5lbpceRr76qDtgFcX/vY buLlrTVDuxmwzb5fiTVaNyepY56WhdAzRbuGZE2DiJuv5ZZXdV4gJl9FDnMqiXcj0w1tQV8FQZ7 mf7MKhciiYI2qUF+bJ+j8+ihy1MBT1Pj/4oIwayfWanHvCk8ozo+H+Y/yUeh2GWuuy4/uZA2Wft XULyVTH2eLpb1x67WGFotBBu/fGLkaQi9T4gZ88/6EuzPAMvG9dLOoBzBq/rfhamaqMMvPWGPDq TpQvYHwp43UNdiL7GsqmwVNdRyjsbj4qfktFtFYNntNJN5lBav19Y/TJBWJX8PgneShF37uiNlL r725XCB32onrMf3ZD4mGpqyBE X-Google-Smtp-Source: AGHT+IFMcMyUSABfNsVRMrWwjAI2XF7DQdqc7sjZeOdXVDd2CGzO0sbjT2r1Odn8NekqMZKTuVunNw== X-Received: by 2002:a05:6a20:9c8e:b0:1f5:790c:94a with SMTP id adf61e73a8af0-1f5c11dc288mr1879633637.25.1741924022026; Thu, 13 Mar 2025 20:47:02 -0700 (PDT) Received: from [192.168.1.2] (syn-023-240-109-202.res.spectrum.com. [23.240.109.202]) by smtp.googlemail.com with ESMTPSA id 41be03b00d2f7-af56ea932c3sm2065938a12.63.2025.03.13.20.47.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Mar 2025 20:47:01 -0700 (PDT) Message-ID: <20481491-7df3-c339-8053-2b78d4ddb855@gmail.com> Date: Thu, 13 Mar 2025 20:47:01 -0700 MIME-Version: 1.0 Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 Content-Language: en-US To: Hrishikesh S , Stefan Kangas References: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> From: Jim Porter In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76853 Cc: 76853@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 3/13/2025 8:32 PM, Hrishikesh S wrote: > This worked: > (add-hook 'eshell-mode-hook (lambda () (setq-local > inhibit-field-text-motion t))) > > but then I lose the completions I get when I type a command like `cd ` > It would be nice if I could get back the behavior I was used to in emacs > 29. > Currently, I'm managing by first hitting `C-b` followed by `M-b`. That's unfortunate. I'm open to implementation options here. Stefan (or anyone else who wants to chime in), do you think it would make sense to say, "Users should be able to set 'inhibit-field-text-motion' to t in Eshell," and that any problems with that are bugs to be fixed? Or maybe we should handle this bug report in a different way? From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 15 08:38:00 2025 Received: (at 76853) by debbugs.gnu.org; 15 Mar 2025 12:38:00 +0000 Received: from localhost ([127.0.0.1]:39657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ttQm8-0007tX-Df for submit@debbugs.gnu.org; Sat, 15 Mar 2025 08:38:00 -0400 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:59620) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1ttQlf-0007sR-OU for 76853@debbugs.gnu.org; Sat, 15 Mar 2025 08:37:32 -0400 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-ac34257295dso21577766b.2 for <76853@debbugs.gnu.org>; Sat, 15 Mar 2025 05:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742042245; x=1742647045; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=J2IaebZasNNYNERfex89KqxQxIZT/fc+alDAemajbFI=; b=ZuG/KOR0oqgkWPP040cyRdsEkTp/bB/NsM51urQJxu7LWBmJRCONckMCNhty4ABhle kBhLY1+2FpEHvagFyMhScderNcnlisd/kVy5eMPj98so0lbBJ7x2U55yVP+MLcfhzYG9 QYN9X5E+16mD5rfxsyvpkm5yKEYbqJ+jn1KhlKWUNOwH8oa0YW+wZc2C1BOj8rQsRkan 77TEtJEjoP5fa0+tJr9ui2C1vMEvmqco5D9OTkJto95ZmNmVPOqYa18twakvECJEhHnR pMe4Augs+Q5ukQ1Ma92edOgeusb6DKoi4NDI/D4STd9Pn6nk0B2TnrKOLfX8lmbdxE6a /ADQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742042245; x=1742647045; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J2IaebZasNNYNERfex89KqxQxIZT/fc+alDAemajbFI=; b=TRYqVFZs44P9dxvdN1C1LMyjJob/Ua4DrPnH2eaDI7CcayV3dGkJx/3G4aA2TyFXyx fvXmhUQuyO1AIevAxY/ssAKOY6D7o0gH6rHAeX7RYr+eMMDbXNhDrYet/+LNtK57rtsk 9ZDuKUIx/N1mGPziNUHIvO32jbnIh73GPacYhNTB7Z1cpIKC8nACvVzr3z1wcGkuyddf 6/cuWtcH7uYlFGOjW4ycpCtv+nTtO4Ljh1xRX+x/uhcrj+oKyEItawWQuFblBlGy6fIc gxVpBGxgdS3atIUX9ocKJpsaC1jUme2oMLWNjNk9vYxIJstL7VS6R9X75orsSU2OQOud dGNw== X-Gm-Message-State: AOJu0YwiZ3fauiAP27aChunPo9cmyhRfn93W2CLV/Md3wjIru6huTwJ3 dWZb/ZQFY6sM1oVO1a6S+v/vlhMwELBEON4xvdpay22rnfXdIQMDzxNrWDA5KFjeICfjW8S64Gi jmcCTAxbaJ2ELiJaPKOvXv3UPSx4= X-Gm-Gg: ASbGnctftI4zVHphIgT2ZKW1BS16rZcVt9Qs3CtOy6zO0fpumCbs5jNjBlhSV9+JHm6 vSlBTKaVJki2oafTYEs+ba19O70Gte6HUsMXkiTj3+t7pwVPmmbZ0mGoCyLPTBF0Tahx/pP14v3 2CI6fTaXMNwTXUEvEJ+khd0Ul/CkaoNL3yoyrl5PI= X-Google-Smtp-Source: AGHT+IED+/ixsiEjPfpsFroLCzAIs5teVFmQc7vr66hmLzVvqll0i6jJHsh70lJdl/X/r7z5AbVKl2vJX4LzDV5dQWU= X-Received: by 2002:a17:906:c10d:b0:abf:70fb:7f05 with SMTP id a640c23a62f3a-ac3304d6057mr627971466b.50.1742042245137; Sat, 15 Mar 2025 05:37:25 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 15 Mar 2025 05:37:24 -0700 From: Stefan Kangas In-Reply-To: <20481491-7df3-c339-8053-2b78d4ddb855@gmail.com> References: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> <20481491-7df3-c339-8053-2b78d4ddb855@gmail.com> MIME-Version: 1.0 Date: Sat, 15 Mar 2025 05:37:24 -0700 X-Gm-Features: AQ5f1JpYTzNosWADVzC7_VnW3iI_CIV9pJ-0Yx63YCUONVTMR32V6UoCsaxExtk Message-ID: Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 To: Jim Porter , Hrishikesh S Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76853 Cc: Stefan Monnier , 76853@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jim Porter writes: > On 3/13/2025 8:32 PM, Hrishikesh S wrote: >> This worked: >> (add-hook 'eshell-mode-hook (lambda () (setq-local >> inhibit-field-text-motion t))) >> >> but then I lose the completions I get when I type a command like `cd ` >> It would be nice if I could get back the behavior I was used to in emacs >> 29. >> Currently, I'm managing by first hitting `C-b` followed by `M-b`. > > That's unfortunate. I'm open to implementation options here. Stefan (or > anyone else who wants to chime in), do you think it would make sense to > say, "Users should be able to set 'inhibit-field-text-motion' to t in > Eshell," and that any problems with that are bugs to be fixed? > > Or maybe we should handle this bug report in a different way? I don't have a strong opinion myself, but if we can fix that then it does seem a bit better. Maybe Stefan Monnier (in Cc) has some ideas. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 15 10:08:10 2025 Received: (at 76853) by debbugs.gnu.org; 15 Mar 2025 14:08:11 +0000 Received: from localhost ([127.0.0.1]:42987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ttSBM-00079e-To for submit@debbugs.gnu.org; Sat, 15 Mar 2025 10:08:10 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:31527) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ttSBD-000782-9n for 76853@debbugs.gnu.org; Sat, 15 Mar 2025 10:07:59 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id CF15C1001BD; Sat, 15 Mar 2025 10:07:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1742047673; bh=CHIoOP/EhIJEA2Pm0fn5bP9Pg6vGvttpEffnFs1dz2U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PDu457QmNcxo79Yu3uRv5Zh/1CXZHysQIMOkBiMgTBC8KXIPGNpp/gnKl3EauQsV2 cGej7kfNGTL7EZ4F3xmRwWtvkhhXZC07Srsr3LDmLFjtqOLQ/8mdoxiQkbzoKXGqrr 1MeviicPCJd06LxvBOxFpNPyfsVKffC8hUdoDLYII1dG012K0HxvNItkBsoGhBR8qN AIbwmOaVlNLQLsGs7fpW93tYVVcKm7+wltm3XjQvr98jzA/7VzdXqB9C3v2EGZbTaY t9o4UflW000xpD+x+XKesHlauatQqrp/UznMHk1EETzwalUUDvKtDCNV4FJhQ4hSSa tJF7ijrVKYIQw== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 2A0571000DF; Sat, 15 Mar 2025 10:07:53 -0400 (EDT) Received: from pastel (unknown [104.247.242.5]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EE737120642; Sat, 15 Mar 2025 10:07:52 -0400 (EDT) From: Stefan Monnier To: Jim Porter Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 In-Reply-To: <20481491-7df3-c339-8053-2b78d4ddb855@gmail.com> Message-ID: References: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> <20481491-7df3-c339-8053-2b78d4ddb855@gmail.com> Date: Sat, 15 Mar 2025 10:07:51 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.383 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76853 Cc: Hrishikesh S , Stefan Kangas , 76853@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> This worked: >> (add-hook 'eshell-mode-hook (lambda () (setq-local >> inhibit-field-text-motion t))) >> but then I lose the completions I get when I type a command like `cd >> ` >> It would be nice if I could get back the behavior I was used to in >> emacs 29. >> Currently, I'm managing by first hitting `C-b` followed by `M-b`. > > That's unfortunate. I'm open to implementation options here. Stefan (or > anyone else who wants to chime in), do you think it would make sense to say, > "Users should be able to set 'inhibit-field-text-motion' to t in Eshell," > and that any problems with that are bugs to be fixed? The `inhibit-*` variables are generally not considered configuration variables, so we should look for other ways to provide the desired behavior. E.g. provide navigation commands which don't pay attention to field boundaries, so Hrishi can bind this to `M-b`? Or provide a config var which works a bit like `inhibit-field-text-motion` but affects only the specific commands which pay attention to it (and only when called interactively)? Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 15 17:02:25 2025 Received: (at 76853) by debbugs.gnu.org; 15 Mar 2025 21:02:26 +0000 Received: from localhost ([127.0.0.1]:43750 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ttYeG-0000No-GN for submit@debbugs.gnu.org; Sat, 15 Mar 2025 17:02:25 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:44070) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1ttYeC-0000N0-SV for 76853@debbugs.gnu.org; Sat, 15 Mar 2025 17:02:21 -0400 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-2255003f4c6so54055275ad.0 for <76853@debbugs.gnu.org>; Sat, 15 Mar 2025 14:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742072534; x=1742677334; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=LvSulvFlCXbaY0cY2YwDFCRbPtPs9hLSicp5G6k2FuQ=; b=hlx5uTN5lsAo1HcsiY6OUB+M5yXEE34s4vxCjWIkL8JWjYNxO0RMtxuI69busjbyZg T0XyIpcFWw4FVYJHNDenMA+Izj5rI8WdT6kF60uTAWZFCe2rtMzRkBp1UkZceHA6D1I3 vnnOl7IbMgTFHzJXsO5eMnvwPBVGuDCXumYcEU6YsK4g3Qw8FS+RHiiQHJf48rer2bCH 7tqnRF7F15vL1HVKXjySk9iDsjR24JSFWRG6eptNlWzPOSxex0/CdWbxGHzQzUd1Z/Ye Z7B2BO77t7MhzIHkb7/sFAWaRBxqdFXgeOuh+s7XvAJ9QscekNA5bFjGwjM1yc/rIhw/ ZR3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742072534; x=1742677334; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LvSulvFlCXbaY0cY2YwDFCRbPtPs9hLSicp5G6k2FuQ=; b=jtJW2yrukAU1pEuWrrZwcgvhvEP9PC046EGf9JPgSzK8h958ovFByWAwcdfENX15TD xiPmXmFAytgNg9sgRYi8BKPAT93koK+Rdoe5kb9La50G8eQWKE6FV8wVwKTInrGB97Lv wBCptco1EoKG7Anpt/4a5WTAp47pGi5uyWmpR9F7k8pXikA3rEeGHA/c8EP7Ylq3ZglY Bsuqg/oirjPc2T5DBM96QfDBvrSNBiuScqtdfHGOE2xozmeDCvusdTN2Cov+W7zJurs2 3bVoLT0COHoaIeiCvUDrkYgpC5BSAVSyMoMQ2hsaHLGDm8ARpSqtMxgNrJBFp0zxh30a GQZg== X-Forwarded-Encrypted: i=1; AJvYcCXGB9qOFBBgewWCz8BbwvmMbMLUz/IR2QS9WCuqzTp9ScuIHy5b9mPyHn0jr/pDITPtzBgIMA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxsBAbPszkqVSl4BGcLwxDraJtJ1rtUAxoBjNKKuglMVmagNTG7 gFFQeW+W9007jCnH9fF1RIJ2y4HJOFZDFGRoqPHNF/KEVZI49tQ6 X-Gm-Gg: ASbGnctu5s+Wc+3tk83t3V/xmAKMsSctj5xaHKL9WDPgSV3NHi732qcxzZdSX2InfME MH4i2WroNHvQIZ13RV5Ng+FHevGR800Okghwe1NJpUJg98V60HjzQVSskaHWloM9MOmsmrBhysc ZWHRvOKoPocTOFIL5TrxdC6PgFfCugAfBNKdtpVuceKC3iXa8TYsmE0+lz8GWNmAIZKFRieOnvs mOr55kzwT0CIcvpQeO+Xd7pr5bLpzMZa2EkVgXNY2Hr4VgNYlgYfM0ONJ1YNMh42eLYFB0QYAQX MuC+Iwzg/wZC0iDinuxLELZRpWvutrZs14MB4yGmwwXI1TD80k6lArsmCpvRyEe5WEEvxztM98f TACxN/2CqUDdYp576cXCww3h9 X-Google-Smtp-Source: AGHT+IG/NCMcUt8G8W51Rk/k6j6XA2gFQnZYSagX9tisnlUAEnV5zlvwjPom5GMd0H/N38k+qGZDtw== X-Received: by 2002:a17:902:d2ca:b0:224:fa0:36d2 with SMTP id d9443c01a7336-225e0a82dcamr99770935ad.26.1742072534518; Sat, 15 Mar 2025 14:02:14 -0700 (PDT) Received: from [192.168.1.2] (syn-023-240-109-202.res.spectrum.com. [23.240.109.202]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-225c6bbe960sm48035665ad.200.2025.03.15.14.02.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Mar 2025 14:02:14 -0700 (PDT) Message-ID: Date: Sat, 15 Mar 2025 14:02:13 -0700 MIME-Version: 1.0 Subject: Re: bug#76853: M-b not navigating to the previous word in the prompt string inside Eshell on emacs 30.1 Content-Language: en-US To: Stefan Monnier References: <1ef1e9a1-216d-485c-89d4-ae6d1234cd5e@gmail.com> <20481491-7df3-c339-8053-2b78d4ddb855@gmail.com> From: Jim Porter In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76853 Cc: Hrishikesh S , Stefan Kangas , 76853@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 3/15/2025 7:07 AM, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > The `inhibit-*` variables are generally not considered configuration > variables, so we should look for other ways to provide the > desired behavior. > > E.g. provide navigation commands which don't pay attention to field > boundaries, so Hrishi can bind this to `M-b`? > Or provide a config var which works a bit like > `inhibit-field-text-motion` but affects only the specific commands which > pay attention to it (and only when called interactively)? Thanks, this is in line with what I was thinking, but was hesitant to propose. I'll see about a patch along these lines. From unknown Mon Jun 23 04:10:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 13 Apr 2025 11:24:52 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator