all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: bookmarks / switch-to-buffer
Date: Wed, 9 Nov 2005 19:08:45 -0600 (CST)	[thread overview]
Message-ID: <200511100108.jAA18jG06530@raven.dms.auburn.edu> (raw)
In-Reply-To: <6FE5EC78-45A4-462C-B927-1480A2B2CE75@gmail.com> (message from David Reitter on Thu, 10 Nov 2005 00:49:15 +0000)

David Reitter wrote:

   The reason was that bookmark-jump expects switch-to-buffer to return  
   a non-nil value (if succeeded), but switch-to-buffer is not actually  
   documented to do so.

>From the docstring:

This function returns the buffer it switched to.

>From the description of the function in the Elisp manual:

It returns the buffer that it switched to.

   Therefore I'd suggest to ignore the return value of switch-to-buffer  
   in bookmark's bookmark-jump function. This fixed the problem for me.

I believe that you should fix your problem locally by fixing your advise.

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.

Sincerely,

Luc.

  reply	other threads:[~2005-11-10  1:08 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 [this message]
2005-11-11  6:45   ` Karl Fogel

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=200511100108.jAA18jG06530@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --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.