From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#21732: 25.0.50; intermittent failure using windmove when in doc-view buffer Date: Mon, 09 Nov 2015 09:26:50 +0100 Message-ID: <564058CA.2030908@gmx.at> References: <83lhavt0ic.fsf@gnu.org> <874mhiw34z.fsf@gnu.org> <562B3A2D.9060705@gmx.at> <562B4D9C.8050103@gmx.at> <83r3k2outm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447057635 3759 80.91.229.3 (9 Nov 2015 08:27:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2015 08:27:15 +0000 (UTC) Cc: 21732@debbugs.gnu.org, Tassilo Horn To: Daniel McClanahan , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 09 09:27:07 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 1Zvhn8-0003vN-KW for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Nov 2015 09:27:06 +0100 Original-Received: from localhost ([::1]:50927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zvhn8-0005Hf-3F for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Nov 2015 03:27:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zvhn5-0005HZ-B1 for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2015 03:27:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zvhn4-0007hm-BY for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2015 03:27:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zvhn4-0007hd-7u for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2015 03:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zvhn3-00052p-PU for bug-gnu-emacs@gnu.org; Mon, 09 Nov 2015 03:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Nov 2015 08:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21732 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21732-submit@debbugs.gnu.org id=B21732.144705761619376 (code B ref 21732); Mon, 09 Nov 2015 08:27:01 +0000 Original-Received: (at 21732) by debbugs.gnu.org; 9 Nov 2015 08:26:56 +0000 Original-Received: from localhost ([127.0.0.1]:58165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zvhmx-00052R-If for submit@debbugs.gnu.org; Mon, 09 Nov 2015 03:26:55 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:51818) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zvhmv-00052J-Ba for 21732@debbugs.gnu.org; Mon, 09 Nov 2015 03:26:53 -0500 Original-Received: from [192.168.1.100] ([213.162.68.97]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MVN0w-1Zv6M13pNu-00YlGO; Mon, 09 Nov 2015 09:26:52 +0100 In-Reply-To: X-Provags-ID: V03:K0:m4nJ9zlbqFGkzx6nwffcxe818I/ilwwlJd3Xrway278lYxkiTNA uGv+0P0WpOxjM3HXFqFvlt/ZYM5ACT0vd1JpC7bUAsNfSoTue7c0u5M/JQ2NoAjYg/EDmxJ KVllChtQqij5+CRhOXgjeW5naq2aiC8IaSf6i3zpRs9hmMaOZ8rZTvXGOw4nCJnPebleuTt EvDZWrjIY0xPCKrrvZaKQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:kHauV5JrlKU=:3SZFJ7wvOuzZbyu9wp98cl XptZkDPcvnqd5HPPXm+oWcU0CHWbnSCHfY5viyKAp0QFShnPx+rJkhbLiCxhg880LSMohd1Os Hd7BPXvw84DteS9cuM3aMjFWhu4M55sNZlS5WWAMqS6B7Dg12pNqSko1O1JHil/aTEsV+3ahV xZYPqnEbzvkTtKNbPK6GqP2/BFYwZCHnH3q/oTVn0xo1lf1RRXsmg9pHqARm2Y27OS6rc+fHG popS+BY3n5PmMGEbNR6BKR2dgdYB/LhH7Y0p4/08tPcXtvoDE8j7kxoKvmxGjuhEkehIkifvb FKqW/1INS0CJOi9WLeZlXJutr21F67OZDqWaA/rtVBMg4+NisqhMjx879nb4ENBu1J8VVg5IS aBQ+aghXnrB8AdI7Fv9gNOGXBJn6eSCopTHyM95J2750Hhnmz8E4n4w7DNXElcaFjU1lxJD/g RD332XH4ZMZSMEiMZPFBn0pF7+w7sfVA0+Nq/jRecWuMoebaPCQJyrUeopFxVuDpKwRUnVpOP xo7zfcZBKl5hpa9339U63ycOqjAvsZiItL4pDd/2uGuHLz31qAPnKikKRXE5PkEkGkyGgo5B8 xeIki2Ecy1EMVNFpJybBbo8+Kpri8uf6bB1zFY/UVlXNpCtJthHik+/od+3G5sKqo5+phj7oq 8Vwa78+2XsHJRoCe0bRyaq5DLm20vrl/oZYZFx+9Ffo29/5nMx61Sjc2717UOz/qGMZUecNix uzIdHmjUJ6926DdTngAD/lbKaJvExqhg0LdgvZH+iRbNbFLNpv7rBote4dHlUSZ91d+j2NT5 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:108600 Archived-At: > 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 c= ase, 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 a= rch 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 =E2=80=98windmove-right=E2=80=99 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 =E2=80=98window-in-d= irection=E2=80=99 (in >> window.el) temporarily to your .emacs. > > Added the revised version to .emacs and evaluated. The `when' clause w= as always > nil because `my-value' was always a positive number (this is on the wi= ndow > 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: # direction : above sign: nil wrap:= nil mini: > nil posn-cons: (234 . 0)" "window: # > direction : right sign: nil wrap: t mini: t posn-cons: (965 . 1011)") IIRC the problem is that we have to trace the case where =E2=80=98my-valu= e=E2=80=99 is negative. So these values are probably not useful. martin