From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Carvalho Newsgroups: gmane.emacs.devel Subject: point when modifying other buffers Date: Wed, 6 Jan 2010 14:53:49 +0000 Message-ID: <9e43f0e61001060653o60bd429br4672b5f9d190b2d4@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1262789651 19229 80.91.229.12 (6 Jan 2010 14:54:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jan 2010 14:54:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 06 15:54:03 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 1NSXGt-0004m4-H7 for ged-emacs-devel@m.gmane.org; Wed, 06 Jan 2010 15:54:03 +0100 Original-Received: from localhost ([127.0.0.1]:56399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSXGu-0007Ew-0b for ged-emacs-devel@m.gmane.org; Wed, 06 Jan 2010 09:54:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSXGn-0007D8-0z for emacs-devel@gnu.org; Wed, 06 Jan 2010 09:53:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSXGi-00079O-2N for emacs-devel@gnu.org; Wed, 06 Jan 2010 09:53:56 -0500 Original-Received: from [199.232.76.173] (port=43633 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSXGh-00079A-TK for emacs-devel@gnu.org; Wed, 06 Jan 2010 09:53:51 -0500 Original-Received: from mail-fx0-f228.google.com ([209.85.220.228]:63157) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSXGh-0004RO-F0 for emacs-devel@gnu.org; Wed, 06 Jan 2010 09:53:51 -0500 Original-Received: by fxm28 with SMTP id 28so8528263fxm.26 for ; Wed, 06 Jan 2010 06:53:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=TkQhfFVrKFktsrUfelncbuEQd9kP5D+MBHZqZI64gow=; b=jFVsf9R50izFYncTIt8TlU9Xe6x4ejkz2T1AsXPu7UrnoRsU3IyP/KxLGSToMxEVqs HTAoDstwZgfK31jp7bYm8qM6ecYXx8eDcKHGHJfxbR55LEENlAekYrsPzGsUXj4c7ZHZ XBAkFcNMarLinwPw07lssT/8XhTptb7O3AZqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hnpjhaYM2KO6G4ruXfk7mwtaBbaX4QhvFzWo25v/W9YU98pzswREQd9hXL4W3wG1zU uKMXywAdm27J0Hz/pSuDVULpTlROJumuh8yPUs4jTNLKl/lYRrcpybs6PMRiDorIfIvW 6UuFsK3AufHRok9zfbfQROK3ExIlyy6J2r+rc= Original-Received: by 10.103.50.19 with SMTP id c19mr9589936muk.132.1262789629940; Wed, 06 Jan 2010 06:53:49 -0800 (PST) X-detected-operating-system: by monty-python.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:119526 Archived-At: hi I want a lisp program to make changes to other buffer without visually switching to it. (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? (insert-before-markers "abc\n") works in this case, but it is not a generic solution I could use something like (set-window-point window position) but only if there is a window displaying the buffer! I would like to listen for clarifications on this subjet, and if there are better solutions thanks lDanie