aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-06-27 10:54:26 +0000
committerGerd Moellmann2000-06-27 10:54:26 +0000
commitd365421f859f6c88e3dc4b610c87adaef3cb099c (patch)
treea8c95c81640a38b179bcc7f6603e22da1add6499
parent0b431debcc6c20cf404f4fb583c217f3b8c573d1 (diff)
downloademacs-d365421f859f6c88e3dc4b610c87adaef3cb099c.tar.gz
emacs-d365421f859f6c88e3dc4b610c87adaef3cb099c.zip
(describe-variable): Don't insert a second `'s' in front
of the string `value is shown below'. Since the syntax-table to emacs-lisp-mode-syntax-table makes forward-sexp skip over an existing `'s', so that this won't be deleted.
-rw-r--r--lisp/help.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 1a25fe78601..c3dfc518aaf 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -847,13 +847,16 @@ Returns the documentation as a string, also."
847 (set-buffer standard-output) 847 (set-buffer standard-output)
848 (if (> (count-lines (point-min) (point-max)) 10) 848 (if (> (count-lines (point-min) (point-max)) 10)
849 (progn 849 (progn
850 ;; Note that setting the syntax table like below
851 ;; makes forward-sexp move over a `'s' at the end
852 ;; of a symbol.
850 (set-syntax-table emacs-lisp-mode-syntax-table) 853 (set-syntax-table emacs-lisp-mode-syntax-table)
851 (goto-char (point-min)) 854 (goto-char (point-min))
852 (if valvoid 855 (if valvoid
853 (forward-line 1) 856 (forward-line 1)
854 (forward-sexp 1) 857 (forward-sexp 1)
855 (delete-region (point) (progn (end-of-line) (point))) 858 (delete-region (point) (progn (end-of-line) (point)))
856 (insert "'s value is shown below.\n\n") 859 (insert " value is shown below.\n\n")
857 (save-excursion 860 (save-excursion
858 (insert "\n\nValue:")))))) 861 (insert "\n\nValue:"))))))
859 (princ "Documentation:") 862 (princ "Documentation:")