help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange behavior with multi-buffer Lisp code


From: Ian Zimmerman
Subject: Re: strange behavior with multi-buffer Lisp code
Date: 18 Nov 2002 16:38:09 -0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

itz> How does one programatically, peristently, and reliably
itz> (independently of variables such as window configuration) change
itz> the value of point in a non-current buffer?

Stefan> As I said, there is no such thing as THE value of point.
Stefan> Instead, there's a different value for every buffer+window
Stefan> pair (and this is mostly independent from which buffer is
Stefan> displayed in which window.  I.e. a buffer that's not displayed
Stefan> anywhere still has a value of point for each and every
Stefan> window).

Stefan> I think what you want in your case is to look for a window
Stefan> displaying this buffer, select that window, do `goto-char'.
Stefan> This way, you'll change the value of point for this
Stefan> buffer+window combination.  If the buffer is displayed in
Stefan> several windows, you might want to move `point' in each one of
Stefan> them, or to just choose one and change it only in that one.

OK, that sounds like a plan.  I'll try it and report.

-- 
Ian Zimmerman, Oakland, California, U.S.A. I did not vote for Emperor Bush.
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087


reply via email to

[Prev in Thread] Current Thread [Next in Thread]