* [BUG] 21.3 next-single-char-property-change fails to find faces
@ 2004-03-12 13:18 Jari Aalto+mail.linux
0 siblings, 0 replies; only message in thread
From: Jari Aalto+mail.linux @ 2004-03-12 13:18 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 2465 bytes --]
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 #2: form-all-test.php.jpg --]
[-- Type: image/jpeg, Size: 94365 bytes --]
[-- Attachment #3: Type: text/plain, Size: 2030 bytes --]
--
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/
[-- Attachment #4: Type: text/plain, Size: 148 bytes --]
_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-12 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 13:18 [BUG] 21.3 next-single-char-property-change fails to find faces Jari Aalto+mail.linux
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.