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

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

[BUG] 21.3 next-single-char-property-change fails to find faces


From: Jari Aalto+mail.linux
Subject: [BUG] 21.3 next-single-char-property-change fails to find faces
Date: Fri, 12 Mar 2004 15:18:35 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (windows-nt) (i386-msvc-nt5.0.2195)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs <AT> gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (i386-msvc-nt5.0.2195)
 of 2003-03-28 on buffy
configured using `configure --with-msvc (12.00)'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: eng
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

SUBJECT: next-single-char-property-change fails to find faces

With complex highlighting code with overlays and faces, the
next-single-char-property-change fails to detect changes. In the following
code excerpt from PHP, the situation is like this. When point
is at position "a(point 206)", it jumps to "b(point 281)". Same if 
cursor is put at "f", it jumps to "b(point 281)".


    (goto-char (next-single-char-property-change 206 'face nil (point-max)))


    <?php-a-
    function formDisplay()      // function
    {
    -b-?>

The area between A .. B is colorized. But so is "function" with
different color. The point should stop at "f"; at word "function".

The colors are best seen in picture (also attached):

    http://www.tierra.dyndns.org:81/emacs/tmp/form-all-test.php.jpg

HOW TO REPRODUCE

    wget http://tierra.dyndns.org:81/emacs/htmlize-php.tar.bz2

    1. Unpack tar
    2. Open emacs
    3. C-x C-f htmlize-php/htmlize-test.el
    4. M-x eval-buffer
    5. You should now see the PHP mode and coloring

    6. call 

    (goto-char (next-single-char-property-change 206 'face nil (point-max)))

APPEARS:

    - Win32 Native Emacs
      (emacs-version)"GNU Emacs 21.3.1 (i386-msvc-nt5.0.2195)
      of 2003-03-28 on buffy"

    - Win32 Cygwin Emacs (-nw mode)
      (emacs-version)"GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit)
      of 2003-01-23 on DRACO"

    - Linux
      GNU Emacs 21.3.1 (i386-pc-linux-gnu, X toolkit)
      of 2003-10-31 on raven, modified by Debian

NOTES

Site www.tierra.dyndns may not respond immediately. It's there if you
try again a little later or another day.


Jari

Attachment: form-all-test.php.jpg
Description: JPEG image


-- 
http://tiny-tools.sourceforge.net/
Swatch @time   http://www.mir.com.my/iTime/itime.htm
               http://www.ryanthiessen.com/swatch/resources.htm
Use Licenses!  http://www.linuxjournal.com/article.php?sid=6225
Which Licence? http://www.linuxjournal.com/article.php?sid=4825
OSI Licences   http://www.opensource.org/licenses/




Recent input:
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
C-w <up> <up> <down-mouse-1> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <down-mouse-1> 
<mouse-movement> <mouse-movement> <mouse-1> [ B U G 
] SPC 3 <backspace> 2 1 . 3 SPC C-y SPC f a i l u r 
e <down> <down> <down> <down> <down> <down> <return> 
<return> <up> <up> <down-mouse-1> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<drag-mouse-1> M-x r e p o r t <tab> <return>

Recent messages:
Generating summary...done
my: ispell dictionary english [*mail*] 
Mark set
TinyMail: post-command error: (error "No field")
Spot the error by turning on Emacs debug and calling
(tinymail-process-1 'force) or Cu M-x tinymail-process-1
TinyMail: (error watch) Please Check *Messages* buffer.
Mark set [2 times]
Auto-saving...done
Loading emacsbug...done

-- 
http://tiny-tools.sourceforge.net/
Swatch @time   http://www.mir.com.my/iTime/itime.htm
               http://www.ryanthiessen.com/swatch/resources.htm
Use Licenses!  http://www.linuxjournal.com/article.php?sid=6225
Which Licence? http://www.linuxjournal.com/article.php?sid=4825
OSI Licences   http://www.opensource.org/licenses/

reply via email to

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