aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-12-06 19:06:12 +0000
committerStefan Monnier2004-12-06 19:06:12 +0000
commit96bda29d36fe90e894d6acb4f87d8933fecd2a46 (patch)
tree9ea1898b0e086a46dd1bd990a57f91053ac6e3c7
parente7a4820cac74a73e62a42dd623da3b8473c845cc (diff)
downloademacs-96bda29d36fe90e894d6acb4f87d8933fecd2a46.tar.gz
emacs-96bda29d36fe90e894d6acb4f87d8933fecd2a46.zip
(show-paren-function): Fix last change (2004-12-02).
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/paren.el13
2 files changed, 19 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 73331951608..2c6a4c5447b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12004-12-06 Stefan Monnier <monnier@iro.umontreal.ca> 12004-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * paren.el (show-paren-function): Fix last change (2004-12-02).
4
5 * international/mule-util.el (char-displayable-p): Return nil for
6 unibyte mode.
7
3 * subr.el (subregexp-context-p): New function. 8 * subr.el (subregexp-context-p): New function.
4 9
5 * isearch.el (isearch-quote-char): Use it. 10 * isearch.el (isearch-quote-char): Use it.
@@ -49,6 +54,12 @@
49 54
50 * progmodes/sh-script.el (sh-indent-for-then): Change default. 55 * progmodes/sh-script.el (sh-indent-for-then): Change default.
51 56
572004-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
58
59 * simple.el (blink-matching-open):
60 * textmodes/tex-mode.el (tex-validate-region):
61 Obey syntax-table text properties.
62
522004-12-02 Per Abrahamsen <abraham@dina.kvl.dk> 632004-12-02 Per Abrahamsen <abraham@dina.kvl.dk>
53 64
54 * wid-edit.el (widget-specify-field): Add `real-field' property to 65 * wid-edit.el (widget-specify-field): Add `real-field' property to
@@ -114,7 +125,7 @@
114 (xml-substitute-special): Fix validity error messages to 125 (xml-substitute-special): Fix validity error messages to
115 actually show the unexpandable entity. Added validity error if & 126 actually show the unexpandable entity. Added validity error if &
116 isn't followed by an entity. 127 isn't followed by an entity.
117 (xml-parse-tag): Concatnate any string following the a 128 (xml-parse-tag): Concatenate any string following the a
118 <![CDATA[]]> section to the parsed CDATA. 129 <![CDATA[]]> section to the parsed CDATA.
119 (xml-parse-dtd): Skip parameter entity declarations and use of 130 (xml-parse-dtd): Skip parameter entity declarations and use of
120 parameter entities. 131 parameter entities.
diff --git a/lisp/paren.el b/lisp/paren.el
index bc5c2f1f007..63300ce6238 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -169,13 +169,14 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
169 ;; kind of paren to match the one we started at. 169 ;; kind of paren to match the one we started at.
170 (when (integerp pos) 170 (when (integerp pos)
171 (let ((beg (min pos oldpos)) (end (max pos oldpos))) 171 (let ((beg (min pos oldpos)) (end (max pos oldpos)))
172 (when (/= (char-syntax (char-after beg)) ?\$) 172 (unless (eq (car (syntax-after beg)) 8) ;Not syntax `$'.
173 (setq mismatch 173 (setq mismatch
174 (not (eq (or (cdr (get-text-property (1- end) 'syntax-table)) 174 (not (or (eq (char-before end)
175 (char-before end)) 175 ;; This can give nil.
176 ;; This can give nil. 176 (cdr (syntax-after beg)))
177 (or (cdr (get-text-property beg 'syntax-table)) 177 (eq (char-after beg)
178 (matching-paren (char-after beg)))))))))))) 178 ;; This can give nil.
179 (cdr (syntax-after (1- end)))))))))))))
179 ;; 180 ;;
180 ;; Highlight the other end of the sexp, or unhighlight if none. 181 ;; Highlight the other end of the sexp, or unhighlight if none.
181 (if (not pos) 182 (if (not pos)