GNU bug report logs -
#18712
24.3; IELM fails to move point in a working buffer that is also displayed
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18712 in the body.
You can then email your comments to 18712 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18712
; Package
emacs
.
(Mon, 13 Oct 2014 22:31:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Trevor Murphy <trevor.m.murphy <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 13 Oct 2014 22:31:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi, list. I just noticed the following. If I start from `emacs
-Q', then go:
1. M-x ielm RET
2. C-c C-b *scratch* RET
3. Type `(goto-char 1)' at the ELISP prompt and hit RET
4. C-x 4 C-o *scratch* RET
Then I see the *scratch* buffer in the other window with its point
on the first character in the buffer (the first `;' on the first
line).
However, if I reverse the order of steps (3) and (4) above, again
starting from `emacs -Q':
1. M-x ielm RET
2. C-c C-b *scratch* RET
3. C-x 4 C-o *scratch* RET
4. Type `(goto-char 1)' at the ELISP prompt and hit RET
Then I see the *scratch* buffer in the other window with its point
unmoved (still at the start of the second line after the initial
scratch message).
Is this a bug? And, if so, is it reproducible given the info
below?
Thanks in advance.
In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.12.2)
of 2014-06-11 on var-lib-archbuild-staging-i686-jgc
Windowing system distributor `The X.Org Foundation', version
11.0.11601000
System Description: Arch Linux
Configured using:
`configure '--prefix=/usr' '--sysconfdir=/etc'
'--libexecdir=/usr/lib'
'--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft'
'CFLAGS=-march=i686 -mtune=generic -O2 -pipe
-fstack-protector-strong
--param=ssp-buffer-size=4'
'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'
'CPPFLAGS=-D_FORTIFY_SOURCE=2''
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
--
Trevor Murphy
GnuPG Key: 0x83881C0A
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18712
; Package
emacs
.
(Tue, 14 Oct 2014 15:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 18712 <at> debbugs.gnu.org (full text, mbox):
Trevor Murphy wrote:
> 1. M-x ielm RET
> 2. C-c C-b *scratch* RET
> 3. Type `(goto-char 1)' at the ELISP prompt and hit RET
> 4. C-x 4 C-o *scratch* RET
>
> Then I see the *scratch* buffer in the other window with its point on
> the first character in the buffer (the first `;' on the first line).
>
> However, if I reverse the order of steps (3) and (4) above, again
> starting from `emacs -Q':
> 1. M-x ielm RET
> 2. C-c C-b *scratch* RET
> 3. C-x 4 C-o *scratch* RET
> 4. Type `(goto-char 1)' at the ELISP prompt and hit RET
>
> Then I see the *scratch* buffer in the other window with its point
> unmoved (still at the start of the second line after the initial
> scratch message).
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.
Added tag(s) notabug.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 14 Oct 2014 15:45:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18712
; Package
emacs
.
(Tue, 14 Oct 2014 18:54:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 18712 <at> debbugs.gnu.org (full text, mbox):
> Is this a bug?
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'.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18712
; Package
emacs
.
(Tue, 14 Oct 2014 19:59:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 18712 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Tue, Oct 14, 2014 at 11:53 AM, Stefan Monnier <monnier <at> iro.umontreal.ca>
wrote:
> > Is this a bug?
>
> 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'.
>
What would be involved in implementing something like a
`ielm-change-working-window-buffer' that behaved as the OP
expected?
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18712
; Package
emacs
.
(Tue, 14 Oct 2014 23:50:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 18712 <at> debbugs.gnu.org (full text, mbox):
> What would be involved in implementing something like a
> `ielm-change-working-window-buffer' that behaved as the OP
> expected?
The same kind of code as used in ielm-change-working-buffer.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18712
; Package
emacs
.
(Fri, 17 Oct 2014 19:06:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 18712 <at> debbugs.gnu.org (full text, mbox):
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
bug closed, send any further explanations to
18712 <at> debbugs.gnu.org and Trevor Murphy <trevor.m.murphy <at> gmail.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 11 Feb 2015 01:30:07 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 11 Mar 2015 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.