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

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

bug#6259: closed (24.0.50; `uniquify.el' advises `create-file-buffer')


From: GNU bug Tracking System
Subject: bug#6259: closed (24.0.50; `uniquify.el' advises `create-file-buffer')
Date: Tue, 28 Dec 2021 02:07:02 +0000

Your message dated Mon, 27 Dec 2021 21:06:21 -0500
with message-id <jwvv8z98ow8.fsf-monnier+emacs@gnu.org>
and subject line Re: bug#1338: uniquify uses advice
has caused the debbugs.gnu.org bug report #1338,
regarding 24.0.50; `uniquify.el' advises `create-file-buffer'
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
1338: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1338
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 24.0.50; `uniquify.el' advises `create-file-buffer' Date: Mon, 24 May 2010 10:03:04 -0700
1. I thought that distributed Emacs code was not supposed to use
`defadvice'.  `uniquify.el' uses it.
 
2. That advice makes the doc for `create-file-buffer' incorrect:
 
emacs -Q
 
C-h f create-file-buffer RET
 
There is nothing about the function being advised.
 
Now turn on `Use Directory Names in Buffer Names' from the `Options'
menu.
 
C-h f create-file-buffer RET
 
You now see this added to the doc string:
 
 This function is advised.
 
 After-advice `create-file-buffer-uniquify':
 Uniquify buffer names with parts of directory name.
 
Now turn using directory names back off again, using the same menu item.
 
C-h f create-file-buffer RET
 
still says the same thing.  It _seems_ to be saying (and it will be read
this way) that buffer names are currently being uniquified with parts of
buffer names - which is incorrect.
 
3. Besides all that, "uniquify" is not a word (OK, in English anyone can
invent a word, but it is not a well-known term).  So any such doc should
be rephrased to say what actually happens to the buffer name.
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-05-23 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'
 




--- End Message ---
--- Begin Message --- Subject: Re: bug#1338: uniquify uses advice Date: Mon, 27 Dec 2021 21:06:21 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
> uniquify.el advises rename-buffer and create-file-buffer. It would be
> nice to get rid of this,

I finally did on `master`.

> hopefully just through the addition of suitable hooks in
> those functions.

I haven't bothered with hooks, tho.


        Stefan



--- End Message ---

reply via email to

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