unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: uniquify & advice
Date: Sat, 07 Jun 2003 21:08:08 -0400	[thread overview]
Message-ID: <E19OofI-0004Sw-8w@fencepost.gnu.org> (raw)
In-Reply-To: <200306061531.h56FVFBl006394@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu)

    >    (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	other threads:[~2003-06-08  1:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-06  4:16 uniquify & advice Miles Bader
2003-06-06 15:31 ` Stefan Monnier
2003-06-08  1:08   ` Richard Stallman [this message]
2003-06-07 10:22 ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E19OofI-0004Sw-8w@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).