Mercurial > emacs
changeset 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 | 40b9ac329030 |
children | 66a18d2f078a |
files | lisp/wid-edit.el |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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))