comparison lisp/cus-edit.el @ 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 afa7fa1e71f4
children a4773f405434
comparison
equal deleted inserted replaced
79654:f08acdd4b6ef 79655:4feb30a8db36
1410 1410
1411 ;;;###autoload 1411 ;;;###autoload
1412 (defun customize-apropos-options (regexp &optional arg) 1412 (defun customize-apropos-options (regexp &optional arg)
1413 "Customize all loaded customizable options matching REGEXP. 1413 "Customize all loaded customizable options matching REGEXP.
1414 With prefix arg, include variables that are not customizable options 1414 With prefix arg, include variables that are not customizable options
1415 \(but we recommend using `apropos-variable' instead)." 1415 \(but it is better to use `apropos-variable' if you want to find those)."
1416 (interactive "sCustomize options (regexp): \nP") 1416 (interactive "sCustomize options (regexp): \nP")
1417 (customize-apropos regexp (or arg 'options))) 1417 (customize-apropos regexp (or arg 'options)))
1418 1418
1419 ;;;###autoload 1419 ;;;###autoload
1420 (defun customize-apropos-faces (regexp) 1420 (defun customize-apropos-faces (regexp)
2339 'custom-group-link) 2339 'custom-group-link)
2340 w)) 2340 w))
2341 (get (car parents) 'custom-links)))) 2341 (get (car parents) 'custom-links))))
2342 (many (> (length links) 2))) 2342 (many (> (length links) 2)))
2343 (when links 2343 (when links
2344 (let ((pt (point))
2345 (left-margin (+ left-margin 2)))
2344 (insert "\nParent documentation: ") 2346 (insert "\nParent documentation: ")
2345 (while links 2347 (while links
2346 (push (widget-create-child-and-convert 2348 (push (widget-create-child-and-convert
2347 widget (car links) 2349 widget (car links)
2348 :button-face 'custom-link 2350 :button-face 'custom-link
2355 ((null (cdr links)) 2357 ((null (cdr links))
2356 (if many 2358 (if many
2357 (insert ", and ") 2359 (insert ", and ")
2358 (insert " and "))) 2360 (insert " and ")))
2359 (t 2361 (t
2360 (insert ", "))))))) 2362 (insert ", "))))
2363 (fill-region-as-paragraph pt (point))
2364 (delete-to-left-margin (1+ pt) (+ pt 2))))))
2361 (if parents 2365 (if parents
2362 (insert "\n") 2366 (insert "\n")
2363 (delete-region start (point))) 2367 (delete-region start (point)))
2364 (widget-put widget :buttons buttons) 2368 (widget-put widget :buttons buttons)
2365 parents)) 2369 parents))