GNU bug report logs - #18712
24.3; IELM fails to move point in a working buffer that is also displayed

Previous Next

Package: emacs;

Reported by: Trevor Murphy <trevor.m.murphy <at> gmail.com>

Date: Mon, 13 Oct 2014 22:31:01 UTC

Severity: minor

Tags: notabug

Found in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Trevor Murphy <trevor.m.murphy <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>, Stefan Monnier <monnier <at> iro.umontreal.ca>, Josh <josh <at> foxtail.org>
Cc: 18712 <at> 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
Glenn Morris <rgm <at> 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 <at> 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




This bug report was last modified 10 years and 161 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.