comparison lispref/customize.texi @ 67063:bc77b2e433fb

(Common Keywords): Update links types custom-manual and url-link. Add link types emacs-library-link, file-link, function-link, variable-link, custom-group-link.
author Juri Linkov <juri@jurta.org>
date Mon, 21 Nov 2005 07:56:04 +0000
parents 17e84500628a
children e5693a64f4ea
comparison
equal deleted inserted replaced
67062:001a781c565e 67063:bc77b2e433fb
49 @item :link @var{link-data} 49 @item :link @var{link-data}
50 Include an external link after the documentation string for this item. 50 Include an external link after the documentation string for this item.
51 This is a sentence containing an active field which references some 51 This is a sentence containing an active field which references some
52 other documentation. 52 other documentation.
53 53
54 There are four alternatives you can use for @var{link-data}: 54 There are several alternatives you can use for @var{link-data}:
55 55
56 @table @code 56 @table @code
57 @item (custom-manual @var{info-node}) 57 @item (custom-manual @var{info-node})
58 Link to an Info node; @var{info-node} is a string which specifies the 58 Link to an Info node; @var{info-node} is a string which specifies the
59 node name, as in @code{"(emacs)Top"}. The link appears as 59 node name, as in @code{"(emacs)Top"}. The link appears as
60 @samp{[manual]} in the customization buffer. 60 @samp{[Manual]} in the customization buffer and enters the built-in
61 Info reader on @var{info-node}.
61 62
62 @item (info-link @var{info-node}) 63 @item (info-link @var{info-node})
63 Like @code{custom-manual} except that the link appears 64 Like @code{custom-manual} except that the link appears
64 in the customization buffer with the Info node name. 65 in the customization buffer with the Info node name.
65 66
66 @item (url-link @var{url}) 67 @item (url-link @var{url})
67 Link to a web page; @var{url} is a string which specifies the @acronym{URL}. 68 Link to a web page; @var{url} is a string which specifies the
68 The link appears in the customization buffer as @var{url}. 69 @acronym{URL}. The link appears in the customization buffer as
70 @var{url} and invokes the WWW browser specified by
71 @var{browse-url-browser-function}.
69 72
70 @item (emacs-commentary-link @var{library}) 73 @item (emacs-commentary-link @var{library})
71 Link to the commentary section of a library; @var{library} is a string 74 Link to the commentary section of a library; @var{library} is a string
72 which specifies the library name. 75 which specifies the library name.
76
77 @item (emacs-library-link @var{library})
78 Link to an Emacs Lisp library file; @var{library} is a string which
79 specifies the library name.
80
81 @item (file-link @var{file})
82 Link to a file; @var{file} is a string which specifies the name of the
83 file to visit with @code{find-file} when the user invokes this link.
84
85 @item (function-link @var{function})
86 Link to the documentation of a function; @var{function} is a string
87 which specifies the name of the function to describe with
88 @code{describe-function} when the user invokes this link.
89
90 @item (variable-link @var{variable})
91 Link to the documentation of a variable; @var{variable} is a string
92 which specifies the name of the variable to describe with
93 @code{describe-variable} when the user invokes this link.
94
95 @item (custom-group-link @var{group})
96 Link to another customization group. Invoking it creates a new
97 customization buffer for @var{group}.
73 @end table 98 @end table
74 99
75 You can specify the text to use in the customization buffer by adding 100 You can specify the text to use in the customization buffer by adding
76 @code{:tag @var{name}} after the first element of the @var{link-data}; 101 @code{:tag @var{name}} after the first element of the @var{link-data};
77 for example, @code{(info-link :tag "foo" "(emacs)Top")} makes a link to 102 for example, @code{(info-link :tag "foo" "(emacs)Top")} makes a link to