aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2004-11-11 21:40:43 +0000
committerJuri Linkov2004-11-11 21:40:43 +0000
commitf46692199f2bc8e49b1138308f78660aae290a18 (patch)
tree0a1d2038299d06652464f1a733a0f8debcaea2e2
parent81668eb26016c75dcc5808f638ec1c4fac4300c2 (diff)
downloademacs-f46692199f2bc8e49b1138308f78660aae290a18.tar.gz
emacs-f46692199f2bc8e49b1138308f78660aae290a18.zip
(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."
507 (format "%d" (nth 1 split)) 507 (format "%d" (nth 1 split))
508 (format "%d %d" (nth 1 split) (nth 2 split))))) 508 (format "%d %d" (nth 1 split) (nth 2 split)))))
509 ("syntax" 509 ("syntax"
510 ,(let ((syntax (syntax-after pos))) 510 ,(let* ((st (if parse-sexp-lookup-properties
511 (get-char-property pos 'syntax-table)))
512 (syntax (if (consp st) st
513 (aref (or st (syntax-table)) (char-after pos)))))
511 (with-temp-buffer 514 (with-temp-buffer
512 (internal-describe-syntax-value syntax) 515 (internal-describe-syntax-value syntax)
513 (buffer-string)))) 516 (buffer-string))))