From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: bookmarks / switch-to-buffer Date: Wed, 9 Nov 2005 19:08:45 -0600 (CST) Message-ID: <200511100108.jAA18jG06530@raven.dms.auburn.edu> References: <6FE5EC78-45A4-462C-B927-1480A2B2CE75@gmail.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1131584989 15455 80.91.229.2 (10 Nov 2005 01:09:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2005 01:09:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 10 02:09:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ea0wE-0002a8-C7 for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2005 02:09:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ea0wD-00066B-Pf for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2005 20:09:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ea0w2-000666-78 for emacs-devel@gnu.org; Wed, 09 Nov 2005 20:09:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ea0w1-00065u-Mr for emacs-devel@gnu.org; Wed, 09 Nov 2005 20:09:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ea0w1-00065r-Jz for emacs-devel@gnu.org; Wed, 09 Nov 2005 20:09:01 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ea0w1-0005gb-Hq for emacs-devel@gnu.org; Wed, 09 Nov 2005 20:09:01 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.13.3+Sun/8.13.3) with ESMTP id jAA1902m002703; Wed, 9 Nov 2005 19:09:00 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id jAA18jG06530; Wed, 9 Nov 2005 19:08:45 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: david.reitter@gmail.com In-reply-to: <6FE5EC78-45A4-462C-B927-1480A2B2CE75@gmail.com> (message from David Reitter on Thu, 10 Nov 2005 00:49:15 +0000) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.1 (manatee.dms.auburn.edu [131.204.53.104]); Wed, 09 Nov 2005 19:09:00 -0600 (CST) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45651 Archived-At: 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.