all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dmitry@gutov.dev>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: 67171@debbugs.gnu.org, sbaugh@catern.com, juri@linkov.net
Subject: bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command
Date: Thu, 7 Dec 2023 02:10:07 +0200	[thread overview]
Message-ID: <a24802d5-7897-6aef-79a7-aa960521434e@gutov.dev> (raw)
In-Reply-To: <87zfyne5ac.fsf@melete.silentflame.com>

On 06/12/2023 17:09, Sean Whitton wrote:

>> Combined with
>>
>>    (put 'vc-print-root-log 'project-switch-with-default-directory t)
>>
>> somewhere in your init script.
>>
>> The alternative would be tagging all project-related commands. Even if we also
>> check for the 'project-' prefix in command's name, the user-defined commands
>> using the project API will be affected (I don't know for how many it would be
>> a problem, but still).
> 
> This solution makes sense.  We definitely want the user to have a way to
> tag additional commands.  But couldn't we pre-tag some, like this one,
> for example?  It is difficult to think of wanting to not have this one
> tagged.  And the user could always remove the tag in their init.

That would be a half-measure still. And why this command but not others? 
And if others too, then which ones?

It might seem natural to you, but it never occurred to add 
vc-print-root-log to project-prefix-map to me. What other commands would 
not occur to us both but would to others?

Would it make sense to tag all VC commands? Or just consider the 'vc-' 
prefix as a negative?

To consider the "alternative" approach once more, we could recognize the 
  'project-' commands as the ones that should use 
project-current-directory-override. But the rest would use 
default-directory, unless they have a property 'project-related' or 
something. That would exclude user-defined commands in the beginning, 
but then again, the difference between binding 
project-current-directory-override and default-directory might matter 
only to a small fraction of them.





  reply	other threads:[~2023-12-07  0:10 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-14 13:13 bug#67171: 30.0.50; (At least) some VC commands fail with project-prefix-or-any-command Sean Whitton
2023-11-20  2:17 ` Dmitry Gutov
2023-11-23 15:21   ` Sean Whitton
2023-11-23 17:20     ` Juri Linkov
2023-11-23 22:21       ` Dmitry Gutov
2023-11-24  7:46         ` Juri Linkov
2023-11-24 12:27           ` Dmitry Gutov
2023-11-25 18:39             ` Juri Linkov
2023-11-25 19:07               ` Dmitry Gutov
2023-11-25 19:10                 ` Juri Linkov
2023-11-25 19:13                   ` Dmitry Gutov
2023-11-25 19:13               ` Eli Zaretskii
2023-11-27  7:39                 ` Juri Linkov
2023-11-23 22:30     ` Dmitry Gutov
2023-12-05 22:40   ` Sean Whitton
2023-12-06  0:26     ` Dmitry Gutov
2023-12-06 15:09       ` Sean Whitton
2023-12-07  0:10         ` Dmitry Gutov [this message]
2023-12-07 11:23           ` Sean Whitton
2023-12-08 20:37             ` Dmitry Gutov
2023-12-08 21:29               ` Sean Whitton
2023-12-06 17:10       ` Juri Linkov
2023-12-07  0:01         ` Dmitry Gutov
2023-12-07 17:22           ` Juri Linkov
2023-12-07 17:34             ` Dmitry Gutov
2023-12-08  7:40               ` Juri Linkov

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=a24802d5-7897-6aef-79a7-aa960521434e@gutov.dev \
    --to=dmitry@gutov.dev \
    --cc=67171@debbugs.gnu.org \
    --cc=juri@linkov.net \
    --cc=sbaugh@catern.com \
    --cc=spwhitton@spwhitton.name \
    /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.