From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Add M-x occur to the menu-bar Date: 07 Feb 2004 01:52:29 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3F69E6FF.9050702@yahoo.com> <4n8yjto16h.fsf@collins.bwh.harvard.edu> <4nisixjibl.fsf@collins.bwh.harvard.edu> <20040127230323.GB5407@fencepost> <4n7jzc919v.fsf@collins.bwh.harvard.edu> <4nn085i7nl.fsf@collins.bwh.harvard.edu> <4noese37h0.fsf@collins.bwh.harvard.edu> <4nbrodxwqm.fsf@collins.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076115324 32051 80.91.224.253 (7 Feb 2004 00:55:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Feb 2004 00:55:24 +0000 (UTC) Cc: Ted Zlatanov , emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Feb 07 01:55:18 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ApGkg-00010e-00 for ; Sat, 07 Feb 2004 01:55:18 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ApGkf-0002JN-00 for ; Sat, 07 Feb 2004 01:55:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ApGiy-0007ea-RF for emacs-devel@quimby.gnus.org; Fri, 06 Feb 2004 19:53:32 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ApGiY-0007eS-TM for emacs-devel@gnu.org; Fri, 06 Feb 2004 19:53:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ApGi2-0007ZI-AW for emacs-devel@gnu.org; Fri, 06 Feb 2004 19:53:05 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ApGi0-0007Z5-2W for emacs-devel@gnu.org; Fri, 06 Feb 2004 19:52:32 -0500 Original-Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1ApGg9-0008NP-1q; Fri, 06 Feb 2004 19:50:37 -0500 Original-To: Stefan Monnier In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 13 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19781 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19781 Stefan Monnier writes: > > (save-excursion > > (set-buffer buffer) > > Also known as (with-current buffer buffer It's not the same if buffer is already selected. In that case the first version restores the cursor position afterwards and the second doesn't. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum