Mercurial > emacs
diff lisp/wid-edit.el @ 81715:c7f2dc6a69fc
(widget-documentation-string-value-create): Insert indentation spaces.
| author | Chong Yidong <cyd@stupidchicken.com> |
|---|---|
| date | Thu, 05 Jul 2007 22:10:48 +0000 |
| parents | 8429053c4496 |
| children | b98604865ea0 |
line wrap: on
line diff
--- a/lisp/wid-edit.el Thu Jul 05 22:10:36 2007 +0000 +++ b/lisp/wid-edit.el Thu Jul 05 22:10:48 2007 +0000 @@ -2910,6 +2910,8 @@ (let ((before (substring doc 0 (match-beginning 0))) (after (substring doc (match-beginning 0))) button) + (when (and indent (not (zerop indent))) + (insert-char ?\s indent)) (insert before ?\s) (widget-documentation-link-add widget start (point)) (setq button @@ -2928,6 +2930,8 @@ (insert after) (widget-documentation-link-add widget start (point))) (widget-put widget :buttons (list button))) + (when (and indent (not (zerop indent))) + (insert-char ?\s indent)) (insert doc) (widget-documentation-link-add widget start (point)))) (insert ?\n))
