From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel McClanahan Newsgroups: gmane.emacs.bugs Subject: bug#21732: 25.0.50; intermittent failure using windmove when in doc-view buffer Date: Thu, 22 Oct 2015 02:12:05 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1445498001 24507 80.91.229.3 (22 Oct 2015 07:13:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Oct 2015 07:13:21 +0000 (UTC) To: 21732@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 22 09:13:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpA3g-0004RN-L6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 09:13:08 +0200 Original-Received: from localhost ([::1]:57076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpA3f-0007r6-VD for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Oct 2015 03:13:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpA3c-0007qo-14 for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 03:13:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpA3b-0004AM-00 for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 03:13:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpA3a-0004AI-S7 for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 03:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZpA3a-0003J5-FE for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 03:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel McClanahan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2015 07:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21732 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144549796912685 (code B ref -1); Thu, 22 Oct 2015 07:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Oct 2015 07:12:49 +0000 Original-Received: from localhost ([127.0.0.1]:60198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpA3M-0003IW-NK for submit@debbugs.gnu.org; Thu, 22 Oct 2015 03:12:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55372) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpA32-0003I7-FK for submit@debbugs.gnu.org; Thu, 22 Oct 2015 03:12:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpA31-0003k5-EG for submit@debbugs.gnu.org; Thu, 22 Oct 2015 03:12:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpA31-0003jz-BH for submit@debbugs.gnu.org; Thu, 22 Oct 2015 03:12:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpA30-0007bY-9c for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 03:12:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpA2z-0003jU-F9 for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 03:12:26 -0400 Original-Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]:37465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpA2z-0003jP-BS for bug-gnu-emacs@gnu.org; Thu, 22 Oct 2015 03:12:25 -0400 Original-Received: by igbhv6 with SMTP id hv6so54216936igb.0 for ; Thu, 22 Oct 2015 00:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=9JdZGQmtPT8aTUgoVT0HU+Xdh2di9tN5E+eLWc3UabQ=; b=qDfGoABVtE3hC4C12mBigCWDKkLOsbaSrSjPrAzh0KIzeGwjXNmFxuIoI3y55hhkkP 55ZNGVylk/kvV9BLCxEx37kP+L6X584ThgG4Urn2ewi+vOWQl4pw1W60MoIVO+U7ACvd AUemO/HdCfUSWpsJNPXWZFFIXN4R1PeBuNvpODinW++ScCNikSZi8iL8kCuwqDhpMgLH WjDKFB3mk2U7AfpX3tVh6XlL7uVB+sA28KAKQysCvFu0F/A0x6tPl5KMpj/SfUK4f82D oSxM9PW73rsGe+Ua+F8AzFg7MO4SBrB86v5B88oO95fzI4U8/8ti4ceoPpGXsWwNWu89 /9/g== X-Received: by 10.50.103.35 with SMTP id ft3mr34388310igb.57.1445497944560; Thu, 22 Oct 2015 00:12:24 -0700 (PDT) Original-Received: by 10.107.136.212 with HTTP; Thu, 22 Oct 2015 00:12:05 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107832 Archived-At: I've been experiencing this issue at least for months, I don't think I remember a time when it wasn't happening (I've only used emacs for a year or so). Occasionally, when viewing a file in doc-view-mode, I've noticed that using windmove (which I use for all my window movements) left, right, up, or down occasionally fails, throwing the error "Wrong type argument: wholenump, -", for some number num. I've attached gdb and found that this is because "cursor.y" of the window being chosen is negative, which I found after attaching a breakpoint to "posn-at-point," which was throwing the error, and following it down a few calls to "pos_visible_p", and checking the value of "w" in there. I don't know what "w->cursor.y" represents (I know it's cursor position, but I don't know how that maps to the cursor's lisp representation), and although I've delved into xdisp.c to see why that would be negative (but only sometimes) in doc-view buffers, I haven't been able to see where the cursor position is updated, and I've spent a few hours checking it out but am finding it difficult to follow a lot of the xdisp.c code. Is this something that has been seen before? I encounter it relatively often when working with a text buffer open in one window and a pdf open in doc-view-mode in an adjacent window. Steps to reproduce: kind of hard, since it's very intermittent. Basically, just switch window focus between a pdf and another buffer a few times over a period of editing time, and it should show up (typically within 30 minutes for me). I've also noticed that when this "wholenump" error occurs, the line number in the mode line is set to (1- the number of lines in the document), when the line number in the mode line for doc-view-mode is usually set to 1. I don't recall when this is changed. Also, after this situation occurs (the wholenump error appears), I cannot zoom in or out or change pages. Sorry for the poor report, I wish I had more information but wanted to know if this was a known problem already.