]> git.eshelyaron.com Git - emacs.git/commitdiff
(custom-add-parent-links): Fill the "Parent documentation" text.
authorRichard M. Stallman <rms@gnu.org>
Sat, 29 Dec 2007 19:26:14 +0000 (19:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 29 Dec 2007 19:26:14 +0000 (19:26 +0000)
lisp/ChangeLog
lisp/cus-edit.el

index 0ab192367524be69c6054c8df42423591645fc6c..2e4ff332ce65941d6422535331b64690f03a118a 100644 (file)
        * facemenu.el (list-colors-print): Use :background and :foreground
        instead of background-color and foreground-color.
 
+2007-12-29  Drew Adams  <drew.adams@oracle.com>
+
+       * cus-edit.el (custom-add-parent-links):
+       Fill the "Parent documentation" text.
 2007-12-29  Eli Zaretskii  <eliz@gnu.org>
 
        * textmodes/ispell.el (ispell-grep-command): Use "grep" on
index 40ff46f1675ccf87480c5c30bae0d963bffc0150..7fccf0c6130dcf795c35d9e97c76a39145476255 100644 (file)
@@ -1412,7 +1412,7 @@ that are not customizable options, as well as faces and groups
 (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 @@ If INITIAL-STRING is non-nil, use that rather than \"Parent groups:\"."
                                         (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 @@ If INITIAL-STRING is non-nil, use that rather than \"Parent groups:\"."
                           (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)))