Subject: Re: bug#18712: 24.3; IELM fails to move point in a working buffer that is also displayed

From: Trevor Murphy <[email-masked]>
Date: Fri, 17 Oct 2014 15:05:18 -0400

Glenn Morris <[email-masked]> 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 <[email-masked]> 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