From: Dmitry Gutov <dmitry@gutov.dev>
To: Protesilaos Stavrou <info@protesilaos.com>,
Philip Kaludercic <philipk@posteo.net>
Cc: 64799@debbugs.gnu.org
Subject: bug#64799: [PATCH] Add 'project-prompt-key' face
Date: Tue, 25 Jul 2023 04:56:27 +0300 [thread overview]
Message-ID: <0e8dbebf-c0cb-01db-8a01-c7c7a165b826@gutov.dev> (raw)
In-Reply-To: <874jlt7t4f.fsf@protesilaos.com>
On 24/07/2023 08:53, Protesilaos Stavrou wrote:
>> From: Philip Kaludercic <philipk@posteo.net>
>> Date: Sun, 23 Jul 2023 13:59:41 +0000
>
>> [... 14 lines elided]
>
>>>> Does this even need a separate face, or shouldn't `help-key-binding' be
>>>> reused directly?
>>>
>>> That would be my choice, though also with the removal of the square
>>> brackets around it. The proposed patch is for backward-compatibility.
>>
>> Backwards-compatible to what?
>
> Just so that existing users do not complain.
>
>> Can someone depend on this specific behaviour?
>
> No, but the appearance still comes with certain expectations. Plus,
> there is this at the top of the file:
>
> ;; This is a GNU ELPA :core package. Avoid using functionality that
> ;; not compatible with the version of Emacs recorded above
>
> The required Emacs version is 26.1, while that of 'help-key-binding' is
> 28.1.
Indeed, so if we switch to it in project.el, it will need some polyfill
for Emacs 26-27.
> Perhaps a user option for the whole 'format' would be better?
We can add a user option. But while we could also apply 'face' property
on that option's string value, that doesn't seem like a very
user-friendly approach toward someone who will want to change the face
used (it will require some Lisp knowledge from the user).
But a user option to change how the prompt text is constructed -- why
not. E.g. one defaulting to "[%s] %s".
next prev parent reply other threads:[~2023-07-25 1:56 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-23 8:19 bug#64799: [PATCH] Add 'project-prompt-key' face Protesilaos Stavrou
2023-07-23 13:41 ` Philip Kaludercic
2023-07-23 13:49 ` Protesilaos Stavrou
2023-07-23 13:59 ` Philip Kaludercic
2023-07-24 5:53 ` Protesilaos Stavrou
2023-07-25 1:56 ` Dmitry Gutov [this message]
2023-07-25 6:39 ` Philip Kaludercic
2023-07-25 13:05 ` Dmitry Gutov
2023-07-26 4:50 ` Protesilaos Stavrou
2023-07-26 11:10 ` Eli Zaretskii
2023-07-27 1:01 ` Dmitry Gutov
2023-07-27 5:28 ` Eli Zaretskii
2023-07-28 0:56 ` Dmitry Gutov
2023-07-28 5:51 ` Eli Zaretskii
2023-07-27 1:28 ` Dmitry Gutov
2023-07-28 3:33 ` Protesilaos Stavrou
2023-08-12 0:35 ` Dmitry Gutov
2023-07-28 6:35 ` Philip Kaludercic
2023-08-23 10:35 ` Visuwesh
2023-08-23 12:18 ` Philip Kaludercic
2023-08-23 12:44 ` Dmitry Gutov
2023-08-23 14:13 ` Visuwesh
2023-08-23 15:24 ` Dmitry Gutov
2023-08-23 15:35 ` Visuwesh
2023-08-23 15:37 ` Dmitry Gutov
2023-08-23 15:45 ` Visuwesh
2023-08-23 16:40 ` Dmitry Gutov
2023-08-23 17:36 ` Visuwesh
2023-08-24 11:59 ` Mauro Aranda
2023-08-24 12:34 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e8dbebf-c0cb-01db-8a01-c7c7a165b826@gutov.dev \
--to=dmitry@gutov.dev \
--cc=64799@debbugs.gnu.org \
--cc=info@protesilaos.com \
--cc=philipk@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.