unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Paren highlighting does not look at syntax table text properties
@ 2004-04-03 18:23 Michael Schierl
  0 siblings, 0 replies; only message in thread
From: Michael Schierl @ 2004-04-03 18:23 UTC (permalink / raw)


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@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (i386-msvc-windows98.3000)
 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: deu
  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:

Consider the following Emacs lisp code:

(setq parse-sexp-lookup-properties t) 
(let ((str "( :-] )"))
  (put-text-property 2 5 'syntax-table '(0) str)
  (insert str))

If I understand the documentation correctly, this should insert a
smily in parentheses where all three smily characters should be
treated as whitespace.

It works that far that when highlight paren mode is enabled, and
placing point before the "(", it will highlight the ")" properly
(without changes it'd highlight the "]" and show "Mismatched
parentheses") and vice versa. However, when I place point after the
"]" char, it *will* be highlighted as a mismatched parenthesis,
although it should be white space and thus not be highlighted at all.

More complex expressions lead to some "random" character in the buffer
to be highlighted (which are neither parens nor should be treated as
parens by their syntax table text property), but I did not find a
small example to reproduce.

Recent input:
M-x r e p o r t - e m a c s - b <tab> <return>

Recent messages:
[snipped]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-03 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-03 18:23 Paren highlighting does not look at syntax table text properties Michael Schierl

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).