emacs-devel
[Top][All Lists]
Advanced

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

Re: bookmarks / switch-to-buffer


From: Karl Fogel
Subject: Re: bookmarks / switch-to-buffer
Date: Fri, 11 Nov 2005 00:45:55 -0600
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Luc Teirlinck <address@hidden> writes:
> If you advise a function to return a value that is different from the
> documented one, then of course you run the risk to run into problems.
> That is a bug in your advise, not a bug in Emacs.

I agree with Luc on this one.

The code may be a bit misleading there, because the return value of
the 'switch-to-buffer' call isn't really used for its conditional
value in the 'and', it's just one of the things that needs to happen
in the sequence of events.  But it's still correct.  If you advise a
function in such a way as to change its documented return value, you
should be prepared for code to stop working...

Best,
-Karl




reply via email to

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