From: Mirko M. <mirko.m@hotmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: uniquify conflicts with package workgroups2
Date: Tue, 7 Jan 2014 15:53:17 +0000 (UTC) [thread overview]
Message-ID: <loom.20140107T165145-463@post.gmane.org> (raw)
In-Reply-To: jwvy52spz5b.fsf-monnier+gmane.emacs.help@gnu.org
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
> > I managed to solve the problem forcing uniquify to get the "base name"
> > form the file name if the buffer is visiting a file, else it uses the
> > buffer name, which could have been retrieved by workgroups2.
>
> Better make workgroups2 do what desktop does: use
> uniquify-buffer-base-name instead of buffer-name.
>
> Stefan
>
>
You are right, that is another way.
NOTES:
When you switch uniquify on, to fix the buffer name, save the session
(wg-save-session), then restart emacs.
----------
diff -c /root/.emacs.d/elpa/workgroups2-20131224.657/workgroups-functions.el
/root/workgroups-functions.el
*** /root/.emacs.d/elpa/workgroups2-20131224.657/workgroups-functions.el
2014-01-07 15:10:24.000000000 +0100
--- /root/workgroups-functions.el 2014-01-07 15:41:57.000000000 +0100
***************
*** 199,205 ****
"Return the serialization (a wg-buf) of Emacs buffer BUFFER."
(with-current-buffer buffer
(wg-make-buf
! :name (buffer-name)
:file-name (buffer-file-name)
:point (point)
:mark (mark)
--- 199,210 ----
"Return the serialization (a wg-buf) of Emacs buffer BUFFER."
(with-current-buffer buffer
(wg-make-buf
! ;; base name of the buffer or file; replaces the buffer name if
managed by uniquify
! :name (or (and (fboundp 'uniquify-buffer-base-name)
! (if (buffer-file-name)
! (file-name-nondirectory (buffer-file-name))
! (uniquify-buffer-base-name)))
! (buffer-name))
:file-name (buffer-file-name)
:point (point)
:mark (mark)
Diff finished. Tue Jan 7 16:13:46 2014
next prev parent reply other threads:[~2014-01-07 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-06 19:40 uniquify conflicts with package workgroups2 Mirko M.
2014-01-06 21:41 ` Stefan Monnier
2014-01-07 15:53 ` Mirko M. [this message]
2014-01-08 12:58 ` Stefan Monnier
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=loom.20140107T165145-463@post.gmane.org \
--to=mirko.m@hotmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.