GNU bug report logs -
#70577
[PATCH] New command other-project-prefix
Previous Next
Full log
Message #65 received at 70577 <at> debbugs.gnu.org (full text, mbox):
On 06/05/2024 20:25, Juri Linkov wrote:
>>> Wow, everything works now, will test more as a primary 'C-x p p' command.
>>
>> Thanks, let me know if you find any other problems.
>
> I confirm that everything works nicely, thanks. The only
> problem is that after trying to use it, its order looks unnatural.
> I already accustomed to this order: 1) select the project,
> 2) run the command. This is handy especially with
> project-switch-commands set to 'project-prefix-or-any-command'.
Could be a problem indeed, but only if we are aiming at changing the
default. We're probably not going to do that, or at least not right away.
> This order looks more logical because after selecting the
> project, the user mentally switches to another project, and
> then types a command with arguments in the switched project.
> However, the reverse order of typing a command keys
> before switching the project looks like trying
> to run the command in the previous project.
> Also the problem is that typing a command keys and reading
> the command arguments is separated by reading a project.
My advantage (maybe?) is that I don't use the "switch project" command
very often. But when I do and I think about it, it kinds of seem to
stick out compared to some other commands, in particular "prefix" ones,
that you have two separate key sequences which you need to input,
instead of just one longer one.
That's where my main motivation for this patch comes (the other being
that 'C-h' works with it).
Speaking of the implementation strategy, though, I think the current
other-project-prefix implementation still doesn't work well together
with project-other-*-command.
I.e. I'd expect 'C-x p P C-x 4 p f' to function as "find file in
different project", but it both interrupts the key sequence before the
last char (with a prompt), and ultimately fails to switch to that
different project.
> Maybe many users would prefer other-project-prefix, I don't know.
> But other-project-prefix can't replace project-switch-project,
> only to be an alternative.
I think we could add the new command, and then revisit the question of
defaults in 1-2 years. I guess the main difficulty is documenting all
the new alternatives added in Emacs 30 adequately, so the user can make
a confident choice which one to use.
This bug report was last modified 182 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.