all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu>
Subject: Re: strange behavior with multi-buffer Lisp code
Date: 18 Nov 2002 17:36:26 -0500	[thread overview]
Message-ID: <5ld6p2zes5.fsf@rum.cs.yale.edu> (raw)
In-Reply-To: 86k7jaenm4.fsf@kronstadt.homeunix.net

> 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

  reply	other threads:[~2002-11-18 22:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-18  2:40 strange behavior with multi-buffer Lisp code Ian Zimmerman
2002-11-18 16:17 ` Stefan Monnier <foo@acm.com>
2002-11-18 18:31   ` Ian Zimmerman
2002-11-18 22:36     ` Stefan Monnier <foo@acm.com> [this message]
2002-11-19  0:38       ` Ian Zimmerman
2002-11-19  6:04         ` Ian Zimmerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5ld6p2zes5.fsf@rum.cs.yale.edu \
    --to=monnier+gnu.emacs.help/news/@flint.cs.yale.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.