GNU bug report logs - #76235
[PATCH] Improve prompt for 'project-switch-project'

Previous Next

Package: emacs;

Reported by: Ship Mints <shipmints <at> gmail.com>

Date: Wed, 12 Feb 2025 17:59:02 UTC

Severity: normal

Tags: patch

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ship Mints <shipmints <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: Dmitry Gutov <dmitry <at> gutov.dev>, 76235 <at> debbugs.gnu.org
Subject: bug#76235: [PATCH] Improve prompt for 'project-switch-project'
Date: Fri, 14 Feb 2025 07:00:01 -0500
[Message part 1 (text/plain, inline)]
Square brackets are a good idea, and visually appealing, for these kinds of
context-hinted prompts.

On Fri, Feb 14, 2025 at 2:06 AM Juri Linkov <juri <at> linkov.net> wrote:

> >> Instead of project--switch-project-command, I'm using
> >> project-prefix-or-any-command that already has
> >> the project root in the prompt "[execute in %s]:".
> >> So it's nice that project--switch-project-command
> >> will have the same.
> >
> > Hey, do you think it should look more similar to the new addition as
> > well? Something like:
> >
> > -  (project-any-command project-prefix-map "[execute in %s]:"))
> > +  (project-any-command project-prefix-map
> > +                       (concat
> > +                        "Execute in `"
> > +                        (propertize "%s" 'face 'font-lock-string-face)
> > +                        "':")))
>
> I think square brackets [execute in %s] look better
> and will be in line with square brackets in defcustom crm-prompt
> when we will push the patch from bug#76028 when no more fixes
> for completing-read-multiple are needed to avoid merge conflicts.
>
[Message part 2 (text/html, inline)]

This bug report was last modified 88 days ago.

Previous Next


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