GNU bug report logs - #21732
25.0.50; intermittent failure using windmove when in doc-view buffer

Previous Next

Package: emacs;

Reported by: Daniel McClanahan <danieldmcclanahan <at> gmail.com>

Date: Thu, 22 Oct 2015 07:13:02 UTC

Severity: normal

Merged with 23809, 24804

Found in versions 24.5, 25.0.50, 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: martin rudalics <rudalics <at> gmx.at>
To: Daniel McClanahan <danieldmcclanahan <at> gmail.com>, 
 Eli Zaretskii <eliz <at> gnu.org>
Cc: 21732 <at> debbugs.gnu.org, Tassilo Horn <tsdh <at> gnu.org>
Subject: Re: bug#21732: 25.0.50; intermittent failure using windmove when
 in doc-view buffer
Date: Mon, 09 Nov 2015 09:26:50 +0100
> To reproduce:
> 1. Start emacs from master with -Q.
> 2. (require 'windmove) and set `windmove-wrap-around' to t.
> 3. Split the window horizontally, then vertically.
> 4. Display a pdf with doc-view in the buffer at the bottom right.
> 4. Use `windmove-left' or `windmove-right' into the frame border.

What does "into the frame border" mean here?

> See the attached image to get an idea of what step #2 means (in this case, I'm
> running `windmove-right', which only produces an error after I follow the above
> steps; normally, it works just fine). I'm running graphical emacs on arch linux
> in X. The error only occurs for the affected doc-view buffer; it does not affect
> other doc-view buffers.

At the time you invoke ‘windmove-right’ and it fails the doc-view window
is selected.  Correct?  What does

M-: (window-in-direction 'right nil nil nil t) RET

in the doc-view window give?  And what do

M-: (window-in-direction 'right nil nil -1 t) RET

and

M-: (window-in-direction 'right nil nil 1 t) RET

give?

>> Alternatively, you could try to add the function ‘window-in-direction’ (in
>> window.el) temporarily to your .emacs.
>
> Added the revised version to .emacs and evaluated. The `when' clause was always
> nil because `my-value' was always a positive number (this is on the window
> erroring out when running windmove-left/right), but here's the value
> `my-variable` it would have been set to if the `when' clause was true:
>
> ("window: #<window 4 on *Minibuf-1*> direction : above sign: nil wrap: nil mini:
> nil posn-cons: (234 . 0)" "window: #<window 8 on project_guidelines.pdf>
> direction : right sign: nil wrap: t mini: t posn-cons: (965 . 1011)")

IIRC the problem is that we have to trace the case where ‘my-value’ is
negative.  So these values are probably not useful.

martin





This bug report was last modified 8 years and 209 days ago.

Previous Next


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