From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: point when modifying other buffers Date: Wed, 06 Jan 2010 10:06:59 -0500 Message-ID: References: <9e43f0e61001060653o60bd429br4672b5f9d190b2d4@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1262790486 22268 80.91.229.12 (6 Jan 2010 15:08:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2010 15:08:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daniel Carvalho Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 06 16:07:50 2010 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.50) id 1NSXUD-0002Gj-Jq for ged-emacs-devel@m.gmane.org; Wed, 06 Jan 2010 16:07:50 +0100 Original-Received: from localhost ([127.0.0.1]:36532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSXUD-0001tu-Pe for ged-emacs-devel@m.gmane.org; Wed, 06 Jan 2010 10:07:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSXTX-0001dj-S8 for emacs-devel@gnu.org; Wed, 06 Jan 2010 10:07:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSXTR-0001bg-SR for emacs-devel@gnu.org; Wed, 06 Jan 2010 10:07:06 -0500 Original-Received: from [199.232.76.173] (port=55800 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSXTR-0001bX-Hg for emacs-devel@gnu.org; Wed, 06 Jan 2010 10:07:01 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:41895 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSXTR-0000L2-6k for emacs-devel@gnu.org; Wed, 06 Jan 2010 10:07:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtIFAOM1REvO+KPG/2dsb2JhbACBRdEohDAEiig X-IronPort-AV: E=Sophos;i="4.49,229,1262581200"; d="scan'208";a="53147787" Original-Received: from 206-248-163-198.dsl.teksavvy.com (HELO ceviche.home) ([206.248.163.198]) by ironport2-out.pppoe.ca with ESMTP; 06 Jan 2010 10:07:00 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id D4A65B4077; Wed, 6 Jan 2010 10:06:59 -0500 (EST) In-Reply-To: <9e43f0e61001060653o60bd429br4672b5f9d190b2d4@mail.gmail.com> (Daniel Carvalho's message of "Wed, 6 Jan 2010 14:53:49 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:119527 Archived-At: > (with-current-buffer my-other-buffer > (insert "abc\n")) > this keeps a temporary cursor while the elisp program runs but doesn't > move the buffer "real" position. > How can I make it change the buffer position? There is no such thing as the buffer's "real" position. > I could use something like > (set-window-point window position) > but only if there is a window displaying the buffer! But what you think as "the real position" is indeed the window-point. If there's no window showing this buffer, you'll see that point moves along with your text without having to do anything extra. Stefan