summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2004-11-11 21:40:43 +0000
committerJuri Linkov <juri@jurta.org>2004-11-11 21:40:43 +0000
commitf46692199f2bc8e49b1138308f78660aae290a18 (patch)
tree0a1d2038299d06652464f1a733a0f8debcaea2e2
parent81668eb26016c75dcc5808f638ec1c4fac4300c2 (diff)
downloademacs-f46692199f2bc8e49b1138308f78660aae290a18.tar.gz
(describe-char): Replace syntax-after with code
from its previous version.
-rw-r--r--lisp/descr-text.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/descr-text.el b/lisp/descr-text.el
index 72ddde7c8cb..7dd6966a486 100644
--- a/lisp/descr-text.el
+++ b/lisp/descr-text.el
@@ -507,7 +507,10 @@ as well as widgets, buttons, overlays, and text properties."
(format "%d" (nth 1 split))
(format "%d %d" (nth 1 split) (nth 2 split)))))
("syntax"
- ,(let ((syntax (syntax-after pos)))
+ ,(let* ((st (if parse-sexp-lookup-properties
+ (get-char-property pos 'syntax-table)))
+ (syntax (if (consp st) st
+ (aref (or st (syntax-table)) (char-after pos)))))
(with-temp-buffer
(internal-describe-syntax-value syntax)
(buffer-string))))