all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bookmarks / switch-to-buffer
@ 2005-11-10  0:49 David Reitter
  2005-11-10  1:08 ` Luc Teirlinck
  0 siblings, 1 reply; 3+ messages in thread
From: David Reitter @ 2005-11-10  0:49 UTC (permalink / raw)


The function `bookmark-jump' failed to work in my environment, where  
switch-to-buffer is advised.

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.

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.

*** bookmark.el 19 Oct 2005 09:45:43 -0000      1.84
--- bookmark.el 10 Nov 2005 00:46:21 -0000
***************
*** 1062,1068 ****
     (bookmark-maybe-historicize-string bookmark)
     (let ((cell (bookmark-jump-noselect bookmark)))
       (and cell
!          (switch-to-buffer (car cell))
            (goto-char (cdr cell))
          (progn (run-hooks 'bookmark-after-jump-hook) t)
          (if bookmark-automatically-show-annotations
--- 1062,1068 ----
     (bookmark-maybe-historicize-string bookmark)
     (let ((cell (bookmark-jump-noselect bookmark)))
       (and cell
!          (or (switch-to-buffer (car cell)) t)
            (goto-char (cdr cell))
          (progn (run-hooks 'bookmark-after-jump-hook) t)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-11  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.