[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question to pop-to-buffer
From: |
Klaus Berndl |
Subject: |
Re: question to pop-to-buffer |
Date: |
29 Aug 2003 09:04:37 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
On Thu, 28 Aug 2003, Kevin Rodgers wrote:
> Eli Zaretskii wrote:
>
> >>From: Klaus Berndl <klaus.berndl@sdm.de>
> >>Newsgroups: gnu.emacs.help
> >>Date: 28 Aug 2003 11:24:06 +0200
> >>
> >>my question: Does pop-to-buffer use the lisp-version of display-buffer or
> >>the C-version?
> > display-buffer is itself a built-in function, which means there's
> > only a C version of it.
>
>
> More precisely: there's only a C implementation of it. But there is a Lisp
> binding as well.
>
>
> >>I have adviced display-buffer but when i call pop-to-buffer then
> >>this advice seems not to be called...
> > You cannot advice built-in functions.
>
> Actually, you can, but it will only have an effect if the function is
> called
>
> via its Lisp binding. Since built-in functions almost always call other
> built-in functions via their C binding, advising display-buffer will not
> affect its behavior when it's called by pop-to-buffer.
Thanks, Kevin, this was exactly the answer i expect. I have already assumed
that but i wanted to get sure.
Klaus
--
Klaus Berndl mailto: klaus.berndl@sdm.de
sd&m AG http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220