all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Karl Fogel <kfogel@red-bean.com>
Cc: david.reitter@gmail.com, emacs-devel@gnu.org
Subject: Re: bookmarks / switch-to-buffer
Date: Fri, 11 Nov 2005 00:45:55 -0600	[thread overview]
Message-ID: <877jbf8yxo.fsf@floss.red-bean.com> (raw)
In-Reply-To: <200511100108.jAA18jG06530@raven.dms.auburn.edu> (Luc Teirlinck's message of "Wed, 9 Nov 2005 19:08:45 -0600 (CST)")

Luc Teirlinck <teirllm@dms.auburn.edu> 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	other threads:[~2005-11-11  6:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-10  0:49 bookmarks / switch-to-buffer David Reitter
2005-11-10  1:08 ` Luc Teirlinck
2005-11-11  6:45   ` Karl Fogel [this message]

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

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

  git send-email \
    --in-reply-to=877jbf8yxo.fsf@floss.red-bean.com \
    --to=kfogel@red-bean.com \
    --cc=david.reitter@gmail.com \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.