From: Dmitry Gutov <dgutov@yandex.ru>
To: Juri Linkov <juri@linkov.net>
Cc: Gabriel <gabriel376@hotmail.com>, 59502@debbugs.gnu.org
Subject: bug#59502: 29.0.50; [PATCH] Dedicated buffers per project
Date: Wed, 7 Dec 2022 04:35:35 +0200 [thread overview]
Message-ID: <03249dbc-af36-503f-baa6-c0af8fd01274@yandex.ru> (raw)
In-Reply-To: <86tu288qpd.fsf@mail.linkov.net>
On 06/12/2022 19:23, Juri Linkov wrote:
>>> (setopt project-buffer-name-function
>>> (lambda (name)
>>> (format "*%s-%s*"
>>> (project-name (project-current))
>>> name)))
>> A couple more thoughts: the buffer name function will generally be used
>> before the buffer is created. The value of default-directory might even be
>> wrong.
> I haven't tried the proposed patch yet. But it would be interesting to
> guess how it will behave with 'C-x p p ...'.
More testing is welcome.
> Do you think it will get
> the project name from the original project, or from another project
> where it switches to?
It all depends on what's in project-find-functions. With project-vc it
will probably work as expected (module the problem that was brought up
in bug#59722, but we'll need to fix that separately anyway), but it can
behave unexpectedly with more complex project-finding logic, like the
one favored by Stephen L. or Eli Z., where belonging to a project is not
defined by the directory only. But possibly by the major mode as well.
And I'm guessing project-buffer-name-function will usually be called
before the major mode is set.
prev parent reply other threads:[~2022-12-07 2:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-23 5:11 bug#59502: 29.0.50; [PATCH] Dedicated buffers per project Gabriel
2022-11-25 1:37 ` Dmitry Gutov
2022-11-25 2:55 ` Gabriel
2022-11-25 8:14 ` Kévin Le Gouguec
2022-11-25 13:27 ` Gabriel
2022-12-06 17:21 ` Juri Linkov
2022-12-07 2:31 ` Dmitry Gutov
2022-12-07 7:50 ` Juri Linkov
2022-12-10 1:50 ` Dmitry Gutov
2022-12-10 17:34 ` Juri Linkov
2022-12-04 23:50 ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-25 7:09 ` daanturo
2022-12-05 2:35 ` Dmitry Gutov
2022-12-06 17:23 ` Juri Linkov
2022-12-07 2:35 ` Dmitry Gutov [this message]
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=03249dbc-af36-503f-baa6-c0af8fd01274@yandex.ru \
--to=dgutov@yandex.ru \
--cc=59502@debbugs.gnu.org \
--cc=gabriel376@hotmail.com \
--cc=juri@linkov.net \
/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.