]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-variable): Don't insert a second `'s' in front
authorGerd Moellmann <gerd@gnu.org>
Tue, 27 Jun 2000 10:54:26 +0000 (10:54 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 27 Jun 2000 10:54:26 +0000 (10:54 +0000)
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.

lisp/help.el

index 1a25fe78601e5577c3ef384727b17c43298a8100..c3dfc518aaf26c1d1d56076ac978b3e09a6f2c6b 100644 (file)
@@ -847,13 +847,16 @@ Returns the documentation as a string, also."
            (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:")