From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: save-excursion again Date: Sat, 19 Jun 2010 16:56:36 +0200 Message-ID: References: <19483.43525.253000.115910@gargle.gargle.HOWL> <87pqzncc0y.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276959433 17740 80.91.229.12 (19 Jun 2010 14:57:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 Jun 2010 14:57:13 +0000 (UTC) Cc: Uday S Reddy , Stefan Monnier , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 19 16:57:11 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OPzTl-0007Jy-GE for ged-emacs-devel@m.gmane.org; Sat, 19 Jun 2010 16:57:05 +0200 Original-Received: from localhost ([127.0.0.1]:36279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPzTk-0008AZ-V9 for ged-emacs-devel@m.gmane.org; Sat, 19 Jun 2010 10:57:05 -0400 Original-Received: from [140.186.70.92] (port=58952 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPzTe-0008AU-Hf for emacs-devel@gnu.org; Sat, 19 Jun 2010 10:56:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPzTd-00076f-6h for emacs-devel@gnu.org; Sat, 19 Jun 2010 10:56:58 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:60893) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPzTd-00076U-4Z for emacs-devel@gnu.org; Sat, 19 Jun 2010 10:56:57 -0400 Original-Received: by gyg4 with SMTP id 4so1902820gyg.0 for ; Sat, 19 Jun 2010 07:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=iXEYH+w5mCA/EDLnrtp8eqldrO8+zWr72l/TRtR6tfE=; b=NLSEEDnD/A7wVSJNd7Ya52wGchMi7K44l7QJeyP0H0ANgCSR1JcJrn3lTZxT0LqyCx TEtWjb9GjmKYdb+/RC5HcPZVHWUKg+lBBuNy2hZIfbTqpeCEKbB/xsNSLqCkI33rUMUB RPpxxo/y7XKXUGinw/enmi6ND8Lm8PbFxRb6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=CfE4068XdW8miQjdMVmkaBHeQ/K8xkKLhDW21i/MaVH9/0gGFNnIDeIbQkPMoHBLRx zmqri7FByBOvW1XItWV0KPQdHTT7gNo5ErMqyUJLLBGLv9ga2tIFESIab3UrmYf79j43 OuFsXYeLeVO6v5sfmTnW4xQS08BMKZu05AFQ4= Original-Received: by 10.101.172.1 with SMTP id z1mr2050717ano.235.1276959416286; Sat, 19 Jun 2010 07:56:56 -0700 (PDT) Original-Received: by 10.100.154.15 with HTTP; Sat, 19 Jun 2010 07:56:36 -0700 (PDT) In-Reply-To: <87pqzncc0y.fsf@uwakimon.sk.tsukuba.ac.jp> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:126224 Archived-At: On Sat, Jun 19, 2010 at 4:50 PM, Stephen J. Turnbull wrote: > Uday S Reddy writes: > > The point is that if > > =C2=A0 =C2=A0;; current buffer is "bar" > =C2=A0 =C2=A0(save-excursion > =C2=A0 =C2=A0 (set-buffer "foo") > =C2=A0 =C2=A0 (frob-current-buffer)) Just a simple question from someone that does not understand: What is wrong with just saving the point in the buffer you are interested and then returning to that, i.e. (let ((here (point)) ;; maybe (point-marker) sometimes ... (prog1