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

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

bug#45765: [PATCH] 28.0.50; Change default-directory before prompting in


From: Dmitry Gutov
Subject: bug#45765: [PATCH] 28.0.50; Change default-directory before prompting in project-compile
Date: Mon, 11 Jan 2021 21:13:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 11.01.2021 20:35, Juri Linkov wrote:
But before rewriting with call-interactively,
we need to find a way to use project-compile in the init files, i.e.
to find a replacement for such configurations:

   (define-key my-map "m" ;; mnemonics "make"
     (lambda ()
       (interactive)
       (project-compile
        ;; Use previous command from history
        ;; instead of the default from compile-command
        (compilation-read-command (car compile-history))
        ;; Don't use compilation-shell-minor-mode
        nil)))

Is it really possible to solve this without making project-compile a macro of some sort?

For the above code sample not to exhibit the problem from this report, it should use project-current and project-root directly.





reply via email to

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