aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-07-05 22:12:47 +0000
committerChong Yidong2007-07-05 22:12:47 +0000
commit3e318d972dc501cc609976db863bffb196e6ab0b (patch)
treea87e2f5bc784db7fef9f3e1c56e58f37dc9515c3
parent5631b5b8467bd39aa299cf9c366cd1c6c9deb325 (diff)
downloademacs-3e318d972dc501cc609976db863bffb196e6ab0b.tar.gz
emacs-3e318d972dc501cc609976db863bffb196e6ab0b.zip
(widget-documentation-string-value-create): Insert spaces for
indentation.
-rw-r--r--lisp/wid-edit.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 1cb32e5f951..59d960e9822 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -2910,6 +2910,8 @@ link for that string."
2910 (let ((before (substring doc 0 (match-beginning 0))) 2910 (let ((before (substring doc 0 (match-beginning 0)))
2911 (after (substring doc (match-beginning 0))) 2911 (after (substring doc (match-beginning 0)))
2912 button) 2912 button)
2913 (when (and indent (not (zerop indent)))
2914 (insert-char ?\s indent))
2913 (insert before ?\s) 2915 (insert before ?\s)
2914 (widget-documentation-link-add widget start (point)) 2916 (widget-documentation-link-add widget start (point))
2915 (setq button 2917 (setq button
@@ -2928,6 +2930,8 @@ link for that string."
2928 (insert after) 2930 (insert after)
2929 (widget-documentation-link-add widget start (point))) 2931 (widget-documentation-link-add widget start (point)))
2930 (widget-put widget :buttons (list button))) 2932 (widget-put widget :buttons (list button)))
2933 (when (and indent (not (zerop indent)))
2934 (insert-char ?\s indent))
2931 (insert doc) 2935 (insert doc)
2932 (widget-documentation-link-add widget start (point)))) 2936 (widget-documentation-link-add widget start (point))))
2933 (insert ?\n)) 2937 (insert ?\n))