From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: bookmarks / switch-to-buffer Date: Fri, 11 Nov 2005 00:45:55 -0600 Message-ID: <877jbf8yxo.fsf@floss.red-bean.com> References: <6FE5EC78-45A4-462C-B927-1480A2B2CE75@gmail.com> <200511100108.jAA18jG06530@raven.dms.auburn.edu> Reply-To: kfogel@red-bean.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1131691843 20801 80.91.229.2 (11 Nov 2005 06:50:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2005 06:50:43 +0000 (UTC) Cc: david.reitter@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 11 07:50:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EaSih-0001me-GG for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2005 07:49:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EaSig-0005ck-LK for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2005 01:49:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EaSfa-00053U-Bo for emacs-devel@gnu.org; Fri, 11 Nov 2005 01:45:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EaSfW-00052u-60 for emacs-devel@gnu.org; Fri, 11 Nov 2005 01:45:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EaSfR-00052i-Ou for emacs-devel@gnu.org; Fri, 11 Nov 2005 01:45:47 -0500 Original-Received: from [207.115.57.46] (helo=ylpvm15.prodigy.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EaSfR-0001sA-Uq for emacs-devel@gnu.org; Fri, 11 Nov 2005 01:45:46 -0500 Original-Received: from pimout7-ext.prodigy.net (pimout7-int.prodigy.net [207.115.4.147]) by ylpvm15.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id jAB6kXjR008102 for ; Fri, 11 Nov 2005 01:46:35 -0500 X-ORBL: [65.42.95.245] Original-Received: from floss.red-bean.com (adsl-65-42-95-245.dsl.chcgil.ameritech.net [65.42.95.245]) by pimout7-ext.prodigy.net (8.13.4 outbound domainkey aix/8.13.4) with ESMTP id jAB6jb17085818; Fri, 11 Nov 2005 01:45:41 -0500 Original-Received: from kfogel by floss.red-bean.com with local (Exim 3.36 #1 (Debian)) id 1EaSfb-0007tZ-00; Fri, 11 Nov 2005 00:45:55 -0600 Original-To: Luc Teirlinck Emacs: everything *and* the kitchen sink. In-Reply-To: <200511100108.jAA18jG06530@raven.dms.auburn.edu> (Luc Teirlinck's message of "Wed, 9 Nov 2005 19:08:45 -0600 (CST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:45722 Archived-At: Luc Teirlinck 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