GNU bug report logs - #13361
24.2.91; [regression] window point incompatible change

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Sat, 5 Jan 2013 06:15:02 UTC

Severity: normal

Tags: notabug

Found in version 24.2.91

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 13361 in the body.
You can then email your comments to 13361 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to rudalics <at> gmx.at, bug-gnu-emacs <at> gnu.org:
bug#13361; Package emacs. (Sat, 05 Jan 2013 06:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo Liu <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to rudalics <at> gmx.at, bug-gnu-emacs <at> gnu.org. (Sat, 05 Jan 2013 06:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.91; [regression] window point incompatible change
Date: Sat, 05 Jan 2013 14:13:28 +0800
I have just spent this morning trying to fix a 3rd party library
behaviour change only to find this annoying regression.

To reproduce

0. emacs -q
1. Create two buffers A and B and make them both visible in the frame
2. Insert some text in A and leave point at the end of buffer A
3. Switch to buffer B and eval
    
      (with-current-buffer "A" (goto-char (point-min)))

You will see point in buffer A doesn't change.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13361; Package emacs. (Sat, 05 Jan 2013 06:40:01 GMT) Full text and rfc822 format available.

Message #8 received at 13361 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: 13361 <at> debbugs.gnu.org
Subject: Re: bug#13361: 24.2.91; [regression] window point incompatible change
Date: Sat, 05 Jan 2013 14:32:34 +0800
Sorry not a regression. Sorry for the noise.

It is the same (albeit odd) behaviour in 24.2 too. Any idea why it
behaves so subtly like this?

Thanks,
Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13361; Package emacs. (Sat, 05 Jan 2013 08:38:02 GMT) Full text and rfc822 format available.

Message #11 received at 13361 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13361 <at> debbugs.gnu.org
Subject: Re: bug#13361: 24.2.91; [regression] window point incompatible change
Date: Sat, 05 Jan 2013 03:36:47 -0500
Leo Liu wrote:

> It is the same (albeit odd) behaviour in 24.2 too. Any idea why it
> behaves so subtly like this?

Are you asking why window-point exists and is not always equal to point?

(with-current-buffer "A"
  (message "%s:%s:%s:%s"
           (point)
           (window-point (get-buffer-window "A"))
           (progn
             (goto-char (point-min))
             (point))
           (window-point (get-buffer-window "A")))
  (sit-for 1)
  (set-window-point (get-buffer-window "A") (point-min)))




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 05 Jan 2013 08:38:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13361; Package emacs. (Sat, 05 Jan 2013 09:42:02 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#13361: 24.2.91; [regression] window point incompatible change
Date: Sat, 05 Jan 2013 17:41:16 +0800
On 2013-01-05 16:36 +0800, Glenn Morris wrote:
> Are you asking why window-point exists and is not always equal to point?

Yeah. For example some packages use with-current-buffer and move point
using goto-char and don't realise it can not be moved if the window is
visible but not current.

Leo





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13361; Package emacs. (Sat, 05 Jan 2013 11:28:02 GMT) Full text and rfc822 format available.

Message #19 received at 13361 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13361 <at> debbugs.gnu.org
Subject: Re: bug#13361: 24.2.91; [regression] window point incompatible change
Date: Sat, 05 Jan 2013 12:27:09 +0100
> Yeah. For example some packages use with-current-buffer and move point
> using goto-char and don't realise it can not be moved if the window is
> visible but not current.

If these packages are part of Emacs, please write an appropriate bug
report.  Otherwise, kindly notify the respective author.

Thanks, martin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13361; Package emacs. (Sat, 05 Jan 2013 19:14:02 GMT) Full text and rfc822 format available.

Message #22 received at 13361 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13361 <at> debbugs.gnu.org
Subject: Re: bug#13361: 24.2.91; [regression] window point incompatible change
Date: Sat, 05 Jan 2013 14:13:07 -0500
Leo Liu wrote:

> On 2013-01-05 16:36 +0800, Glenn Morris wrote:
>> Are you asking why window-point exists and is not always equal to point?
>
> Yeah. For example some packages use with-current-buffer and move point
> using goto-char and don't realise it can not be moved if the window is
> visible but not current.

As the example I gave showed, point does move. In any case, I don't see
any bug here.






bug closed, send any further explanations to 13361 <at> debbugs.gnu.org and Leo Liu <sdl.web <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 05 Jan 2013 19:14:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13361; Package emacs. (Mon, 07 Jan 2013 02:33:01 GMT) Full text and rfc822 format available.

Message #27 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#13361: 24.2.91; [regression] window point incompatible change
Date: Mon, 07 Jan 2013 10:31:58 +0800
On 2013-01-06 03:13 +0800, Glenn Morris wrote:
> As the example I gave showed, point does move. In any case, I don't see
> any bug here.

Point is moved in that context but it is reset to window point
immediately after the window being selected. I think this subtle point
would trip a lot of elisp authors. I have already seen one in
slime-fuzzy.el (3rd party lib).

Leo





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Feb 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 90 days ago.

Previous Next


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