From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier " Newsgroups: gmane.emacs.help Subject: Re: strange behavior with multi-buffer Lisp code Date: 18 Nov 2002 17:36:26 -0500 Organization: Yale University Sender: help-gnu-emacs-admin@gnu.org Message-ID: <5ld6p2zes5.fsf@rum.cs.yale.edu> References: <86heefd2h6.fsf@kronstadt.homeunix.net> <5lheeezwcb.fsf@rum.cs.yale.edu> <86k7jaenm4.fsf@kronstadt.homeunix.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1037659710 26456 80.91.224.249 (18 Nov 2002 22:48:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2002 22:48:30 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Dugt-0006sH-00 for ; Mon, 18 Nov 2002 23:48:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18DuiV-00053u-00; Mon, 18 Nov 2002 17:50:07 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.ycc.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: rum.cs.yale.edu User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 18 Nov 2002 17:36:27 -0500, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:107177 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3728 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3728 > How does one programatically, peristently, and reliably (independently > of variables such as window configuration) change the value of point > in a non-current buffer? As I said, there is no such thing as THE value of point. Instead, there's a different value for every buffer+window pair (and this is mostly independent from which buffer is displayed in which window. I.e. a buffer that's not displayed anywhere still has a value of point for each and every window). I think what you want in your case is to look for a window displaying this buffer, select that window, do `goto-char'. This way, you'll change the value of point for this buffer+window combination. If the buffer is displayed in several windows, you might want to move `point' in each one of them, or to just choose one and change it only in that one. Stefan