GNU bug report logs - #77683
31.0.50; Feature Request: Make the project switch message customizable or optional

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Rahul Juliato <rahuljuliato@HIDDEN>; dated Wed, 9 Apr 2025 23:53:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 77683 <at> debbugs.gnu.org:


Received: (at 77683) by debbugs.gnu.org; 10 Apr 2025 06:58:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 10 02:58:13 2025
Received: from localhost ([127.0.0.1]:43432 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u2lrY-0000wr-TW
	for submit <at> debbugs.gnu.org; Thu, 10 Apr 2025 02:58:13 -0400
Received: from relay2-d.mail.gandi.net ([217.70.183.194]:41859)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1u2lrS-0000vl-V7
 for 77683 <at> debbugs.gnu.org; Thu, 10 Apr 2025 02:58:07 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 023F4441C5;
 Thu, 10 Apr 2025 06:57:59 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Rahul Juliato <rahuljuliato@HIDDEN>
Subject: Re: bug#77683: 31.0.50; Feature Request: Make the project switch
 message customizable or optional
In-Reply-To: <66AC5CA1-25FC-47C1-82CD-76103AC7C505@HIDDEN>
Organization: LINKOV.NET
References: <66AC5CA1-25FC-47C1-82CD-76103AC7C505@HIDDEN>
Date: Thu, 10 Apr 2025 09:44:59 +0300
Message-ID: <87cydkv7kk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvtdekvdefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejjeeikeefseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtoheprhgrhhhulhhjuhhlihgrthhosehgmhgrihhlrdgtohhm
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 77683
Cc: 77683 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> While I appreciate the intention of giving more context by showing the
> current project path, in practice, the dynamic length of this path
> shifts the position of the command hints in the minibuffer. This causes
> a jarring and inconsistent experience every time I switch projects. This
> happens especially for projects with longer paths, where the options
> appear far to the right or wrapped in a new line at some random
> position.
>
> Would it be possible to make this message:
> - Optional via a user-facing variable, or
> - Customizable (e.g., via a custom formatting function or hook)?

Another option would be to truncate a long dir name
like does the recently added option 'dired-filename-display-length'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77683; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Apr 2025 23:52:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 09 19:52:58 2025
Received: from localhost ([127.0.0.1]:42723 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u2fE1-0000ls-Sp
	for submit <at> debbugs.gnu.org; Wed, 09 Apr 2025 19:52:58 -0400
Received: from lists.gnu.org ([2001:470:142::17]:43726)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <rahuljuliato@HIDDEN>)
 id 1u2fDy-0000lX-Uz
 for submit <at> debbugs.gnu.org; Wed, 09 Apr 2025 19:52:55 -0400
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 <rahuljuliato@HIDDEN>)
 id 1u2fDt-0007vJ-J3
 for bug-gnu-emacs@HIDDEN; Wed, 09 Apr 2025 19:52:49 -0400
Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rahuljuliato@HIDDEN>)
 id 1u2fDr-0001gL-8Q
 for bug-gnu-emacs@HIDDEN; Wed, 09 Apr 2025 19:52:49 -0400
Received: by mail-pg1-x535.google.com with SMTP id
 41be03b00d2f7-af93cd64ef3so186925a12.2
 for <bug-gnu-emacs@HIDDEN>; Wed, 09 Apr 2025 16:52:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1744242764; x=1744847564; darn=gnu.org;
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=c4I3lut8Mm+BqE68QhtBt4n0MbSux7g64gITB4d5tvY=;
 b=GQqHdTMAJXQzyjY5FGD/GrbFI8kQnBf4V6zXeFQQnoB7UvbOAt13TTkkrwBSVgDSqI
 /bvGyPfWU0NWCH9bu+ACxMr/O7T7aFTPwz/7ID1hgY5ps0d9z7nF2ozEzD1t25neb5cv
 yo/L9rM3prHuudBmRJkVkUMp2sGHkQLgpyHxOD9X6Ss6DoKWCX8bHa2eI3Ocwq91Zs3K
 e5OAWeTpqFDwAdeRwIIzFfiuibqTbFgCY9AbC3hROyox5fse3Dv6D0jsqPdv2Y/kGNXF
 Vy+lB/QR5AKJ9bDvnjgHvfyYNEpP4xxd/fiS9Yh8aLRI7Pq58TP9GC77f4rcQyvGp8h9
 n0SA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1744242764; x=1744847564;
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=c4I3lut8Mm+BqE68QhtBt4n0MbSux7g64gITB4d5tvY=;
 b=HeYNC3MH8wdvKYi4HTbkRkh96UvzgLYirqKsecIp2KqdJHUaj/lgiJqwoharXh5B2n
 QO+OuiNY2by+2Oub98rHLm6xZgZkfCdnAOw6N6k7B1+XMjqP1Vx7Rz+rKdvz7Pse+mZI
 ur90JAqHF3iSKMx7ti3BzkqZNChtHMNeaCSV+TpxYWv0xll/A4kpfb+K60fdjzd6mqjM
 SPcqMpEyPCcc++KYhX/2+dquDj7hRNobKoTpWGZMZSRHEaPUkWOhfIgntwpE6eJDOzYP
 vLdXca9TwtVTnmOD7zwRopImtNJs8w1M3pfU7UUOqSXKYEdYkFZ8aIJ3WjU/OB+dhEPV
 lO0Q==
X-Gm-Message-State: AOJu0YzHXu392G7L/Rk5eMVBRWGN5T652tKNZcul/KnHj72sxOUGInWB
 mV3cW34pGFpsJn5XLT2h7DdYIbXlxjC5+DEw0Gq5zJbvN9jgLzQ0DmSWi4vhQPE=
X-Gm-Gg: ASbGncs99ZOplfllAjCpa6g7rPhNJpaOIkMjpHkBoN17+rAV6Z7haL8vJCWQAis2ccF
 fa1EfIVlL+rjnWWw/HSWEAsmlV0TWa8147bkdGFQQyNgV51I1/k7Bwfg/A8x/Qm89d2xJegNHzW
 8j0ayOiqXSqDyffa0SZ2DPxDlaWF/B5DzDX7e/dt+RMZYibP08/Fuu9ihNsjp36unLhu1E/TnXm
 0cc7YGAUyP5PrS89UHI8jD7Fvvnba8E1YhtugdOvhblwXbenARqdLs9KuiGkGKshR24Nj2U6DUX
 /4eDx6ny9yvaEidvQFPRv2bTtz/gRxcFWQ1uiKcETtiYMrSVfs3CumNQskuZ+fBqCljg
X-Google-Smtp-Source: AGHT+IFoTgYbYkFmHd5oO1XCQikh8lgk97Ol/VeGmIK27DJSMBkZDpN0QA8lMhgRZ5d5ARR9XDPaBQ==
X-Received: by 2002:a17:903:1c7:b0:223:4c09:20b8 with SMTP id
 d9443c01a7336-22b42c12ed6mr11336505ad.37.1744242763504; 
 Wed, 09 Apr 2025 16:52:43 -0700 (PDT)
Received: from smtpclient.apple ([2804:7f0:9181:eafc:35dd:49bb:5a6:907])
 by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-22ac7c93addsm18065785ad.152.2025.04.09.16.52.42
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 09 Apr 2025 16:52:43 -0700 (PDT)
From: Rahul Juliato <rahuljuliato@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.500.181.1.5\))
Subject: 31.0.50; Feature Request: Make the project switch message 
 customizable or optional
Message-Id: <66AC5CA1-25FC-47C1-82CD-76103AC7C505@HIDDEN>
Date: Wed, 9 Apr 2025 20:52:27 -0300
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3826.500.181.1.5)
Received-SPF: pass client-ip=2607:f8b0:4864:20::535;
 envelope-from=rahuljuliato@HIDDEN; helo=mail-pg1-x535.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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_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.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Thank you for your continued work on =3Dproject.el=3D.

I=E2=80=99d like to suggest a small usability improvement related to =
commit
=
[[https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D86e17fbcbddb57b=
0653b7046202e54624c477836][86e17fbcbddb]],
which modified the prompt shown when invoking =3Dproject-switch-project=3D=
:

#+begin_src emacs-lisp
(setq choice (read-key-sequence (concat
  (if dir
      (format-message "Command in `%s': "
                      (propertize dir 'face 'font-lock-string-face))
    "Command: ")
  prompt)))
#+end_src


=3Dproject-switch-project=3D. Specifically, this part:

#+begin_src emacs-lisp
(setq choice (read-key-sequence (concat
  (if dir
      (format-message "Command in `%s': "
                      (propertize dir 'face 'font-lock-string-face))
    "Command: ")
  prompt)))
#+end_src

While I appreciate the intention of giving more context by showing the
current project path, in practice, the dynamic length of this path
shifts the position of the command hints in the minibuffer. This causes
a jarring and inconsistent experience every time I switch projects. This
happens especially for projects with longer paths, where the options
appear far to the right or wrapped in a new line at some random
position.

Would it be possible to make this message:
- Optional via a user-facing variable, or
- Customizable (e.g., via a custom formatting function or hook)?

I think this would provide a more stable and predictable UI, while still
preserving the enhanced context for users who want it.

Thanks again for your time and consideration!

Best regards, =20
Rahul Martim Juliato




In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.4.0, NS
appkit-2575.50 Version 15.4 (Build 24E248)) of 2025-04-09 built on
MacBook-Pro.local
Repository revision: 686032ddaf31cacae9a6cd963d9fcbc85ba3905a
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2575
System Description:  macOS 15.4

Configured using:
'configure --with-mailutils --with-imagemagick --with-ns'

Configured features:
ACL GNUTLS IMAGEMAGICK LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER
PNG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP ZLIB

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

Major mode: Lisp Interaction

Minor modes in effect:
  display-line-numbers-mode: t
  flymake-mode: t
  icomplete-vertical-mode: t
  icomplete-mode: t
  electric-pair-mode: t
  which-key-mode: t
  minibuffer-electric-default-mode: t
  minibuffer-depth-indicate-mode: t
  xterm-mouse-mode: t
  winner-mode: t
  save-place-mode: t
  savehist-mode: t
  repeat-mode: t
  recentf-mode: t
  global-auto-revert-mode: t
  pixel-scroll-precision-mode: t
  delete-selection-mode: t
  override-global-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-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
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug qp utf-7 reveal misearch multi-isearch
dired-aux dired-x epa-file network-stream nsm gnus-ml gnus-topic nndraft
nnmh nnmaildir whitespace nnnil gnus-agent gnus-srvr gnus-score
score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime
smime gnutls dig nntp gnus-cache gnus-sum shr pixel-fill kinsoku
url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml
gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int
gnus-range message sendmail yank-media 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 noutline outline vc-git files-x
vc-dispatcher bookmark cursor-sensor display-line-numbers eglot
external-completion jsonrpc xref diff diff-mode track-changes ert ewoc
debug backtrace find-func pcase imenu checkdoc lisp-mnt flymake project
thingatpt private icomplete elec-pair which-key init rx finder-inf
package browse-url xdg url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util mailcap
url-handlers url-parse url-vars modus-vivendi-tinted-theme modus-themes
minibuf-eldef mb-depth gnus nnheader gnus-util mail-utils range mm-util
mail-prsvr rcirc parse-time iso8601 auth-source eieio eieio-core
password-cache json map time-date disp-table time xt-mouse winner
cus-edit pp saveplace savehist repeat warnings icons recentf tree-widget
wid-edit autorevert filenotify grep compile text-property-search comint
ansi-osc ansi-color pixel-scroll cua-base ring subr-x delsel cus-load
edmacro kmacro byte-opt cl-macs gv cl-extra help-mode
use-package-bind-key bind-key easy-mmode use-package-ensure cl-seq
use-package-core cl-loaddefs cl-lib bytecomp byte-compile early-init rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
ucs-normalize mule-util 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 seq simple cl-generic
indonesian philippine 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
theme-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 kqueue cocoa ns lcms2
multi-tty make-network-process tty-child-frames emacs)

Memory information:
((conses 16 311490 849047) (symbols 48 26051 333)
(strings 32 71441 29650) (string-bytes 1 2018323) (vectors 16 41663)
(vector-slots 8 394879 255642) (floats 8 315 9159)
(intervals 56 1605 904) (buffers 992 25))




Acknowledgement sent to Rahul Juliato <rahuljuliato@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#77683; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 10 Apr 2025 07:00:02 UTC

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