GNU bug report logs -
#74709
[PATCH] Avoid empty unique qualifier in buffer name
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#74709: [PATCH] Avoid empty unique qualifier in buffer name
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 74709 <at> debbugs.gnu.org.
--
74709: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74709
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> Cc: 74709 <at> debbugs.gnu.org
> Date: Sat, 07 Dec 2024 11:04:14 +0100
> From: Manuel Giraud via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> Visuwesh <visuweshm <at> gmail.com> writes:
>
> > [வெள்ளி டிசம்பர் 06, 2024] Manuel Giraud wrote:
> >
> >> Visuwesh <visuweshm <at> gmail.com> writes:
> >>
> >>> [வெள்ளி டிசம்பர் 06, 2024] Manuel Giraud via "Bug reports for GNU Emacs,
> >>> the Swiss army knife of text editors" wrote:
> >>>
> >>>> Tags: patch
> >>>>
> >>>> Hi,
> >>>>
> >>>> This patch prevents from having an empty unique qualifier in the buffer
> >>>> name. Maybe this could happen with others file buffer as well but, most
> >>>> of the time, you could witness it with Dired buffer in homedir. Here is
> >>>> a recipe:
> >>>>
> >>>> - emacs -Q
> >>>> - C-x d /ssh:somewhere: ;; This buffer is named "~</ssh:somewhere:>"
> >>>> - C-x d /~/ ;; This buffer is named "~<>"
> >>>>
> >>>> With this patch, the last buffer will simply be named "~" instead.
> >>>
> >>> I usually have ~/tmp visited in a Dired buffer. Sometimes I also visit
> >>> /tmp which gets named as "tmp<>". With this patch, /tmp's buffer is
> >>> named "tmp" instead. This confuses me as I am used to seeing "tmp" for
> >>> ~/tmp's Dired buffer more often than not. Can we gate this new
> >>> behaviour behind a user option please?
> >>
> >> I don't think that there is more confusion then if you only have /tmp
> >> opened which will have its buffer named "tmp", no?
> >
> > Sorry, I meant having /tmp being "tmp" when both ~/tmp and /tmp are open
> > is confusing for the aforementioned reason.
>
> Yes, you're right. Thinking a bit more about it, I don't think this
> patch was a good idea anymore. When a buffer is named "tmp<>" it
> conveys the information that there is another buffer with the same base
> name. If it is just named "tmp", we have lost this bit of information.
Thanks. Since there were no further comments withing 2 weeks, I'm now
closing this bug.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
Tags: patch
Hi,
This patch prevents from having an empty unique qualifier in the buffer
name. Maybe this could happen with others file buffer as well but, most
of the time, you could witness it with Dired buffer in homedir. Here is
a recipe:
- emacs -Q
- C-x d /ssh:somewhere: ;; This buffer is named "~</ssh:somewhere:>"
- C-x d /~/ ;; This buffer is named "~<>"
With this patch, the last buffer will simply be named "~" instead.
In GNU Emacs 31.0.50 (build 26, x86_64-unknown-openbsd7.6, X toolkit) of
2024-12-06 built on computer
Repository revision: 2c1dfba7feb67c39299da0579a2be7ff14e13ccb
Repository branch: mgi/unique
Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
System Description: OpenBSD computer 7.6 GENERIC.MP#458 amd64
Configured using:
'configure CC=egcc CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib MAKEINFO=gmakeinfo --prefix=/home/manuel/emacs
--bindir=/home/manuel/bin --with-x-toolkit=lucid
--with-toolkit-scroll-bars=no --without-cairo
--without-compress-install'
[0001-Avoid-empty-unique-qualifier-in-buffer-name.patch (text/patch, attachment)]
[Message part 6 (text/plain, inline)]
--
Manuel Giraud
This bug report was last modified 211 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.