From: martin rudalics <rudalics@gmx.at>
To: Daniel McClanahan <danieldmcclanahan@gmail.com>,
Eli Zaretskii <eliz@gnu.org>
Cc: 21732@debbugs.gnu.org, Tassilo Horn <tsdh@gnu.org>
Subject: bug#21732: 25.0.50; intermittent failure using windmove when in doc-view buffer
Date: Mon, 09 Nov 2015 09:26:50 +0100 [thread overview]
Message-ID: <564058CA.2030908@gmx.at> (raw)
In-Reply-To: <CALuGEhKQfFWk7P462k=hCHk+J_aFKuV31ma-+69P0gBe_osAOA@mail.gmail.com>
> 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
prev parent reply other threads:[~2015-11-09 8:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 7:12 bug#21732: 25.0.50; intermittent failure using windmove when in doc-view buffer Daniel McClanahan
2015-10-22 10:05 ` martin rudalics
2015-10-22 14:56 ` Eli Zaretskii
2015-10-23 3:52 ` Daniel McClanahan
2015-10-23 5:43 ` Tassilo Horn
2015-10-23 18:22 ` Daniel McClanahan
2015-10-23 19:28 ` Tassilo Horn
2015-10-24 7:58 ` martin rudalics
2015-10-24 9:21 ` martin rudalics
2015-11-07 9:51 ` Daniel McClanahan
2015-11-07 12:30 ` Eli Zaretskii
2015-11-09 1:53 ` Daniel McClanahan
2015-11-09 8:26 ` martin rudalics [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=564058CA.2030908@gmx.at \
--to=rudalics@gmx.at \
--cc=21732@debbugs.gnu.org \
--cc=danieldmcclanahan@gmail.com \
--cc=eliz@gnu.org \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.