Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ecdbe16a
Commit
ecdbe16a
authored
Oct 14, 2001
by
Miles Bader
Browse files
Doc fixes.
parent
530893b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
17 deletions
+22
-17
lisp/button.el
lisp/button.el
+22
-17
No files found.
lisp/button.el
View file @
ecdbe16a
...
...
@@ -113,12 +113,12 @@ Buttons inherit them by setting their `category' property to that symbol."
The remaining arguments form a sequence of PROPERTY VALUE pairs,
specifying properties to use as defaults for buttons with this type
\(a button's type may be set by giving it a `type' property when
creating the button).
creating the button
, using the :type keyword argument
).
The property `
supertype
'
may be used to specify a
button-type from which
NAME inherits its default property values
\(however, the inheritance
happens only when NAME is defined; subsequent
changes to a supertype are
not reflected in its subtypes)."
In addition, the keyword argument :
supertype may be used to specify a
button-type from which
NAME inherits its default property values
\(however, the inheritance
happens only when NAME is defined; subsequent
changes to a supertype are
not reflected in its subtypes)."
(
let*
((
catsym
(
make-symbol
(
concat
(
symbol-name
name
)
"-button"
)))
(
supertype
(
or
(
plist-get
properties
'supertype
)
...
...
@@ -220,6 +220,7 @@ the normal action is used instead."
(
buffer-substring-no-properties
(
button-start
button
)
(
button-end
button
)))
(
defsubst
button-type
(
button
)
"Return BUTTON's button-type."
(
button-get
button
'type
))
(
defun
button-has-type-p
(
button
type
)
...
...
@@ -233,9 +234,10 @@ the normal action is used instead."
(
defun
make-button
(
beg
end
&rest
properties
)
"Make a button from BEG to END in the current buffer.
The remaining arguments form a sequence of PROPERTY VALUE pairs,
specifying properties to add to the button. In particular, the `type'
property may be used to specify a button-type from which to inherit
other properties; see `define-button-type'.
specifying properties to add to the button.
In addition, the keyword argument :type may be used to specify a
button-type from which to inherit other properties; see
`define-button-type'.
Also see `make-text-button', `insert-button'."
(
let
((
overlay
(
make-overlay
beg
end
nil
t
nil
)))
...
...
@@ -254,9 +256,10 @@ Also see `make-text-button', `insert-button'."
(
defun
insert-button
(
label
&rest
properties
)
"Insert a button with the label LABEL.
The remaining arguments form a sequence of PROPERTY VALUE pairs,
specifying properties to add to the button. In particular, the `type'
property may be used to specify a button-type from which to inherit
other properties; see `define-button-type'.
specifying properties to add to the button.
In addition, the keyword argument :type may be used to specify a
button-type from which to inherit other properties; see
`define-button-type'.
Also see `insert-text-button', `make-button'."
(
apply
#'
make-button
...
...
@@ -271,9 +274,10 @@ Also see `insert-text-button', `make-button'."
(
defun
make-text-button
(
beg
end
&rest
properties
)
"Make a button from BEG to END in the current buffer.
The remaining arguments form a sequence of PROPERTY VALUE pairs,
specifying properties to add to the button. In particular, the `type'
property may be used to specify a button-type from which to inherit
other properties; see `define-button-type'.
specifying properties to add to the button.
In addition, the keyword argument :type may be used to specify a
button-type from which to inherit other properties; see
`define-button-type'.
This function is like `make-button', except that the button is actually
part of the text instead of being a property of the buffer. Creating
...
...
@@ -306,9 +310,10 @@ Also see `insert-text-button'."
(
defun
insert-text-button
(
label
&rest
properties
)
"Insert a button with the label LABEL.
The remaining arguments form a sequence of PROPERTY VALUE pairs,
specifying properties to add to the button. In particular, the `type'
property may be used to specify a button-type from which to inherit
other properties; see `define-button-type'.
specifying properties to add to the button.
In addition, the keyword argument :type may be used to specify a
button-type from which to inherit other properties; see
`define-button-type'.
This function is like `insert-button', except that the button is
actually part of the text instead of being a property of the buffer.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment