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

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

bug#18712: 24.3; IELM fails to move point in a working buffer that is al


From: Trevor Murphy
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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 via email to

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