From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18504: 24.3.93; posn-at-point intermittently returns wrong value for a valid buffer position Date: Fri, 19 Sep 2014 21:52:29 +0400 Message-ID: <541C6D5D.7030309@yandex.ru> References: <86mw9wfmxn.fsf@yandex.ru> <83ha041677.fsf@gnu.org> <541C0481.3050101@yandex.ru> <83a95v21qr.fsf@gnu.org> <541C2FBB.3030008@yandex.ru> <837g0z20oc.fsf@gnu.org> <541C33D1.6020707@yandex.ru> <834mw31zix.fsf@gnu.org> <541C3877.2010107@yandex.ru> <831tr71x0y.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1411150003 744 80.91.229.3 (19 Sep 2014 18:06:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 18:06:43 +0000 (UTC) Cc: 18504@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 20:06:36 2014 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 1XV2Zi-0005EH-8X for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 20:06:30 +0200 Original-Received: from localhost ([::1]:59792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2Zh-0001CB-MS for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 14:06:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2ZU-00016V-56 for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 14:06:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XV2ZM-0001n6-IT for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 14:06:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2ZM-0001mV-FI for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 14:06:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XV2Mf-0005Gi-Mt for bug-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Sep 2014 17:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18504 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18504-submit@debbugs.gnu.org id=B18504.141114915920222 (code B ref 18504); Fri, 19 Sep 2014 17:53:01 +0000 Original-Received: (at 18504) by debbugs.gnu.org; 19 Sep 2014 17:52:39 +0000 Original-Received: from localhost ([127.0.0.1]:46014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XV2MI-0005G5-H7 for submit@debbugs.gnu.org; Fri, 19 Sep 2014 13:52:38 -0400 Original-Received: from mail-la0-f44.google.com ([209.85.215.44]:32858) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XV2MF-0005Fw-2F for 18504@debbugs.gnu.org; Fri, 19 Sep 2014 13:52:35 -0400 Original-Received: by mail-la0-f44.google.com with SMTP id q1so3592831lam.17 for <18504@debbugs.gnu.org>; Fri, 19 Sep 2014 10:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=VTDszAC4uJR1y3RXLWY5iMa88/17qdsKRlWN3nBDuZQ=; b=CUWWPGxrF1XXg0l2fUZXjKgkKh5TAsLYScgJ3960w8A7uqh1iD/5PC2rUhEVuNYtf9 1TSYxV7Wd2Wd/rLxW89kgjgw6hzjMJ7A7LM5hHPPXnTT1ugoPx1UZKDtx1py0+z9v1X+ zqwwNJfHvAUbx1Gdf0/GHJN4twndG/akGUdWNgkISh3kwtTWzHGdk3mMEmdbGOhxOfA6 0hnqfezRcs8noHII1k3Jx1OD4un4enfy3JG1gVaOCgiA97O+y8liq7lqYBux69c59Z09 f4YnL2txJFToKl1gIs++1wi8tR8g86OHWFQJofed4aT05UHhbRvBemb/5Jp9fEGmxTu1 9yVA== X-Received: by 10.112.146.103 with SMTP id tb7mr8167472lbb.26.1411149153518; Fri, 19 Sep 2014 10:52:33 -0700 (PDT) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id qr9sm858256lbb.11.2014.09.19.10.52.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Sep 2014 10:52:32 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 In-Reply-To: <831tr71x0y.fsf@gnu.org> 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: 140.186.70.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:93532 Archived-At: On 09/19/2014 06:54 PM, Eli Zaretskii wrote: > I tried that, but the probability of getting the problem is too low on > my system. I see it maybe once in many hundreds of attempts. Have you tried that with the foofoofoo branch? The message output raises the odds on my machine considerably (1 in 5-10 attempts). > What I did see is that the coordinates returned in that case are for > the end of buffer (or maybe the last visible glyph in the window, if > EOB is beyond that). Have you tried adding more lines at the end of the buffer? Even in a tall window, and with eob far away, the incorrect value is only off by ~10 lines here. Which, incidentally, is close to how many lines the popup overlay takes up. > So the first thing I'd try to do is print the > argument POS you pass to posn-at-point in those cases -- could it be t > or some other incorrect/unexpected value? Nope. POS is always the same.