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

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

bug#47975: 28.0.50; Project prefixed buffer name


From: Juri Linkov
Subject: bug#47975: 28.0.50; Project prefixed buffer name
Date: Sun, 25 Apr 2021 00:54:27 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

tags 47975 fixed
close 47975 28.0.50
thanks

>> It seems the commit 08fab316a1 calls for more changes:
>
> I stopped short of doing this keeping in mind the possibility for fixing
> and reusing uniquify not too far off in the future.

Reusing uniquify is welcome, it could eliminate the need of redefining
the built-in commands to be able to generate unique compilation buffer names:

(defun my-project-compile ()
  (interactive)
  ;; Like ‘project-compile’ but generate unique buffer names:
  (let ((default-directory (project-root (project-current t)))
        (compilation-buffer-name-function
         (lambda (mode)
           (generate-new-buffer-name
            (project-prefixed-buffer-name mode)))))
    (compile (compilation-read-command (car compile-history)) nil)))

> But please feel free to install, it shouldn't hurt either way.

Now installed in master.





reply via email to

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