From: Eli Zaretskii <eliz@gnu.org>
To: Daniel McClanahan <danieldmcclanahan@gmail.com>
Cc: 21732@debbugs.gnu.org, tsdh@gnu.org
Subject: bug#21732: 25.0.50; intermittent failure using windmove when in doc-view buffer
Date: Sat, 07 Nov 2015 14:30:45 +0200 [thread overview]
Message-ID: <83r3k2outm.fsf@gnu.org> (raw)
In-Reply-To: <CALuGEhJQ0OFmSmio8UHaRGtemOjunfDq=vcZmZn+coJy5TExwA@mail.gmail.com>
> From: Daniel McClanahan <danieldmcclanahan@gmail.com>
> Date: Sat, 7 Nov 2015 03:51:15 -0600
> Cc: Tassilo Horn <tsdh@gnu.org>, 21732@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>
>
> Sorry for the late response, I've been working with other things and
> haven't had time to analyze it when this was reproduced. Managed to
> reproduce it today and had time to attach gdb. Before you check out
> the stack trace, note the following paragraph first.
>
> Eli, thanks for the suggestion to attempt to manually trigger the
> error. After viewing the "*Backtrace*" buffer, I manually tried to
> enter a huge value for `posn-at-point' (I tried the exact value
> 681965) on a doc-view buffer, and received the wholenump error
> reliably, but ONLY in the buffer which displays the error I described
> in the original post. In other buffers (I tried C, org-mode, and other
> doc-view buffers), (posn-at-point 681965 (selected-window)) just
> returns nil instead of erroring out. It's interesting to note that
> currently the doc-view buffer which I was able to reproduce the error
> on is no longer displaying the error when I use `windmove-up', but is
> still erroring out when I run (posn-at-point 681965
> (selected-window)).
>
> In short:
> - (posn-at-point 681965 (selected-window)) returns nil on most
> buffers. (Replace 681965 with some point outside the buffer range.)
> - On doc-view buffers which have already gone into the failure state
> (through black magic we don't know yet), it throws the wholenump
> error.
> - This appears to be a buffer thing, not a window thing, since closing
> and reopening the window displaying the failing buffer and running
> (posn-at-point 681965 (selected-window)) causes the wholenump error.
Thanks for looking into this. I cannot run doc-view here,
unfortunately. Can I ask you to step inside pos_visible_p, which is
called by Fpos_visible_in_window_p, and see where this negative Y
coordinate is produced? I think this somehow happens because doc-view
in effect lets Emacs show a large image, but I couldn't reproduce the
problem by visiting an image file, so there's probably something I'm
missing.
next prev parent reply other threads:[~2015-11-07 12:30 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 [this message]
2015-11-09 1:53 ` Daniel McClanahan
2015-11-09 8:26 ` martin rudalics
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=83r3k2outm.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=21732@debbugs.gnu.org \
--cc=danieldmcclanahan@gmail.com \
--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.