changeset 79655:4feb30a8db36

(custom-add-parent-links): Fill the "Parent documentation" text.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 Dec 2007 19:26:06 +0000
parents f08acdd4b6ef
children b3ebc6fbb476
files lisp/cus-edit.el
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/cus-edit.el	Sat Dec 29 19:12:30 2007 +0000
+++ b/lisp/cus-edit.el	Sat Dec 29 19:26:06 2007 +0000
@@ -1412,7 +1412,7 @@
 (defun customize-apropos-options (regexp &optional arg)
   "Customize all loaded customizable options matching REGEXP.
 With prefix arg, include variables that are not customizable options
-\(but we recommend using `apropos-variable' instead)."
+\(but it is better to use `apropos-variable' if you want to find those)."
   (interactive "sCustomize options (regexp): \nP")
   (customize-apropos regexp (or arg 'options)))
 
@@ -2341,6 +2341,8 @@
 					 (get (car parents) 'custom-links))))
                 (many (> (length links) 2)))
            (when links
+             (let ((pt (point))
+                   (left-margin (+ left-margin 2)))
              (insert "\nParent documentation: ")
              (while links
                (push (widget-create-child-and-convert
@@ -2357,7 +2359,9 @@
                           (insert ", and ")
                         (insert " and ")))
                      (t
-                      (insert ", ")))))))
+                        (insert ", "))))
+               (fill-region-as-paragraph pt (point))
+               (delete-to-left-margin (1+ pt) (+ pt 2))))))
     (if parents
         (insert "\n")
       (delete-region start (point)))