unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Trevor Murphy <trevor.m.murphy@gmail.com>
To: Glenn Morris <rgm@gnu.org>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	Josh <josh@foxtail.org>
Cc: 18712@debbugs.gnu.org
Subject: bug#18712: 24.3; IELM fails to move point in a working buffer that is also displayed
Date: Fri, 17 Oct 2014 15:05:18 -0400	[thread overview]
Message-ID: <87bnpams9d.fsf@gmail.com> (raw)
In-Reply-To: <8761fnlioq.fsf@gmail.com>

Glenn Morris <rgm@gnu.org> writes:

> I think this is not a bug; you are seeing the difference between 
> "window point" and "point". See section "Windows and Point" in 
> the elisp manual.

Thank you for the manual reference, Glenn.

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

> 
> No, but it's a common trap.  Every buffer has as many "points" 
> as it has windows displaying it (plus one for the buffer 
> itself).  So if you want to move point in a specific window, you 
> need to either select the window before moving, or use 
> `set-window-point'.

Window points!  That makes so much sense now.

Rather than rewrite the `ielm-change-working-buffer' code, I've 
just after-advised `ielm-send-input' to set the window point in 
the working buffer.

Thanks, all!

--
Trevor Murphy
GnuPG Key: 0x83881C0A





      reply	other threads:[~2014-10-17 19:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-13 22:16 bug#18712: 24.3; IELM fails to move point in a working buffer that is also displayed Trevor Murphy
2014-10-14 15:41 ` Glenn Morris
2014-10-14 18:53 ` Stefan Monnier
2014-10-14 19:57   ` Josh
2014-10-14 23:49     ` Stefan Monnier
2014-10-17 19:05       ` Trevor Murphy [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87bnpams9d.fsf@gmail.com \
    --to=trevor.m.murphy@gmail.com \
    --cc=18712@debbugs.gnu.org \
    --cc=josh@foxtail.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rgm@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).