emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11464: closed (24.1.50; pos-visible-in-window-p re


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11464: closed (24.1.50; pos-visible-in-window-p returns a false positive with bidi text)
Date: Sun, 13 May 2012 18:25:02 +0000

Your message dated Sun, 13 May 2012 21:26:03 +0300
with message-id <address@hidden>
and subject line Re: bug#11464: 24.1.50; pos-visible-in-window-p returns a 
false positive with bidi text
has caused the debbugs.gnu.org bug report #11464,
regarding 24.1.50; pos-visible-in-window-p returns a false positive with bidi 
text
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11464: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11464
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.1.50; pos-visible-in-window-p returns a false positive with bidi text 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.

The bug happens in trunk and emacs-24, but not in emacs-23, so it
could be considered as a regression ;-)


(let (before after)
  (pop-to-buffer (get-buffer-create "test"))
  (erase-buffer)

  (dotimes (i (* 2 (window-height)))
    (insert "\u05d0\n"))                ; HEBREW LETTER ALEF
  (insert "Last line\n")
  (goto-char (point-min))

  (setq before (pos-visible-in-window-p (point-max)))

  (insert "a")
  (setq after (pos-visible-in-window-p (point-max)))
  (message "Visible: before: %S, after: %S" before after))


In GNU Emacs 24.1.50.8 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.1)
 of 2012-05-13 on arirop
Bzr revision: 108213 address@hidden
Windowing system distributor `Fedora Project', version 11.0.11200000
Configured using:
 `configure '--with-x-toolkit=gtk3''

-- 
Ari Roponen



--- End Message ---
--- Begin Message --- Subject: Re: 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
> From: Ari Roponen <address@hidden>
> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]