Mercurial > emacs
diff lisp/tutorial.el @ 103768:ed7c4b27122a
(tutorial--describe-nonstandard-key):
Adjust the message for when a key has been unbound.
(help-with-tutorial): Hide the arch-tag.
| author | Glenn Morris <rgm@gnu.org> |
|---|---|
| date | Wed, 08 Jul 2009 02:37:11 +0000 |
| parents | 51502f108f8e |
| children | 2e0765155e47 |
line wrap: on
line diff
--- a/lisp/tutorial.el Wed Jul 08 02:34:55 2009 +0000 +++ b/lisp/tutorial.el Wed Jul 08 02:37:11 2009 +0000 @@ -138,9 +138,11 @@ " is the command `") (insert (format "%s" db)) (insert "'. " - "However, your customizations have rebound it to the command `") - (insert (format "%s" cb)) - (insert "'.") + "However, your customizations have " + (if cb + (format "rebound it to the command `%s'" cb) + "unbound it")) + (insert ".") (when mapsym (insert " (For the more advanced user:" " This binding is in the keymap `" @@ -862,6 +864,10 @@ (when (< old-point 1) (setq old-point 1)) (goto-char old-point)) + ;; Delete the arch-tag line, so as not to confuse readers. + (goto-char (point-max)) + (if (search-backward ";;; arch-tag: " nil t) + (delete-region (point) (point-max))) (goto-char (point-min)) (search-forward "\n<<") (beginning-of-line)
