From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11464: 24.1.50; pos-visible-in-window-p returns a false positive with bidi text Date: Sun, 13 May 2012 21:26:03 +0300 Message-ID: <83pqa8vsxw.fsf@gnu.org> References: <87y5owjcto.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1336933493 27465 80.91.229.3 (13 May 2012 18:24:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 May 2012 18:24:53 +0000 (UTC) Cc: 11464-done@debbugs.gnu.org To: Ari Roponen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 13 20:24:52 2012 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 1STdTP-00067W-J7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 May 2012 20:24:51 +0200 Original-Received: from localhost ([::1]:33596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STdTO-0007iy-M8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 May 2012 14:24:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STdTL-0007ib-A8 for bug-gnu-emacs@gnu.org; Sun, 13 May 2012 14:24:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STdTJ-00070r-LW for bug-gnu-emacs@gnu.org; Sun, 13 May 2012 14:24:46 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STdTJ-00070h-Hv for bug-gnu-emacs@gnu.org; Sun, 13 May 2012 14:24:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1STdTa-0002uY-CV for bug-gnu-emacs@gnu.org; Sun, 13 May 2012 14:25:02 -0400 Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 May 2012 18:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 11464 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 11464@debbugs.gnu.org, eliz@gnu.org Original-Received: via spool by 11464-done@debbugs.gnu.org id=D11464.133693349811179 (code D ref 11464); Sun, 13 May 2012 18:25:02 +0000 Original-Received: (at 11464-done) by debbugs.gnu.org; 13 May 2012 18:24:58 +0000 Original-Received: from localhost ([127.0.0.1]:51691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STdTW-0002uG-5d for submit@debbugs.gnu.org; Sun, 13 May 2012 14:24:58 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:53765) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STdTB-0002tk-Uw for 11464-done@debbugs.gnu.org; Sun, 13 May 2012 14:24:57 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0M3Z003004CRR400@a-mtaout21.012.net.il> for 11464-done@debbugs.gnu.org; Sun, 13 May 2012 21:23:56 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M3Z003WO4FVOO50@a-mtaout21.012.net.il>; Sun, 13 May 2012 21:23:55 +0300 (IDT) In-reply-to: <87y5owjcto.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59994 Archived-At: > From: Ari Roponen > Date: Sun, 13 May 2012 18:54:59 +0300 > > The following code shows a problem with pos-visible-in-window-p > and bidirectional text. When there are right-to-left characters > at the beginning of the buffer, the function returns nil, as the > last line is not visible. However, when "a" is inserted into the > beginning of the buffer, the function returns t, which is > incorrect. Sigh... where are you guys on weekends, when I _really_ have time to work on Emacs?... > The bug happens in trunk and emacs-24, but not in emacs-23, so it > could be considered as a regression ;-) Nothing that's related to R2L text in a left-to-right paragraph can ever be a regression wrt Emacs 23. But since the fix is quite simple, here you go: fixed in revision 107994 on the emacs-24 branch. Thanks.