bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63648: 29.0.90; project.el: with switch-use-entire-map, switch-proje


From: Dmitry Gutov
Subject: bug#63648: 29.0.90; project.el: with switch-use-entire-map, switch-project errors on non-project commands
Date: Tue, 29 Aug 2023 23:40:19 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

Sorry for the possible duplicate, but it seems this message didn't reach the bug tracker, or other recipients. Resending contents below.

On 23/08/2023 20:54, Juri Linkov wrote:
There is no code where to bind a dynamic variable, because its value
should be available for the next command in the command loop.
If you agree there is no other way to implement this than 
next-default-directory,
then I could bring up the discussion on emacs-devel.

Before we dive into all that, why not try advice on 'command-execute'? For the PoC code at least. It's in Lisp since 2013.

The comment in its body does say "Called directly from the C code", but I'm not sure if that has any direct implications for us.

This attached piece of code implements the project-switch-project as you outlined. Does it work well for you/others? Careful when testing or modifying: a typo can break the command loop (and thus the session).

To me it seems a little too bare-bones, lacking the instructive hints project-switch-project currently has.

Attachment: next-dd.el
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]