emacs-devel
[Top][All Lists]
Advanced

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

Re: uniquify & advice


From: Richard Stallman
Subject: Re: uniquify & advice
Date: Sat, 07 Jun 2003 21:08:08 -0400

    >    (defadvice rename-buffer (after rename-buffer-uniquify activate)
    >      "Uniquify buffer names with parts of directory name."
    > 
    >    (defadvice create-file-buffer (after create-file-buffer-uniquify 
activate)
    >      "Uniquify buffer names with parts of directory name."

    Yes.  I remember looking at it in the past and ended up not doing it
    because I couldn't come up with a good hook.

For create-file-buffer, I think it would be fine to put the code
directly into the definition, no hook at all.  For rename-buffer.
calling a specific Lisp function is fine.  There's no reason for
this code to try to be "general"; in fact, it is easier to understand
if it is specific.




reply via email to

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