changeset 29958:7507f083dcc5

(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.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 27 Jun 2000 10:54:26 +0000
parents ea2d96457adb
children d4e54e70814f
files lisp/help.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Tue Jun 27 10:25:51 2000 +0000
+++ b/lisp/help.el	Tue Jun 27 10:54:26 2000 +0000
@@ -847,13 +847,16 @@
 	    (set-buffer standard-output)
 	    (if (> (count-lines (point-min) (point-max)) 10)
 		(progn
+		  ;; Note that setting the syntax table like below
+		  ;; makes forward-sexp move over a `'s' at the end
+		  ;; of a symbol.
 		  (set-syntax-table emacs-lisp-mode-syntax-table)
 		  (goto-char (point-min))
 		  (if valvoid
 		      (forward-line 1)
 		    (forward-sexp 1)
 		    (delete-region (point) (progn (end-of-line) (point)))
-		    (insert "'s value is shown below.\n\n")
+		    (insert " value is shown below.\n\n")
 		    (save-excursion
 		      (insert "\n\nValue:"))))))
 	  (princ "Documentation:")