update packages
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
This is magit-section.info, produced by makeinfo version 7.1.1 from
|
||||
This is magit-section.info, produced by makeinfo version 7.2 from
|
||||
magit-section.texi.
|
||||
|
||||
Copyright (C) 2015-2025 Jonas Bernoulli
|
||||
@@ -34,7 +34,7 @@ packages that have nothing to do with Magit or Git.
|
||||
and user options see *note (magit)Sections::. This manual documents how
|
||||
you can use sections in your own packages.
|
||||
|
||||
This manual is for Magit-Section version 4.3.8.
|
||||
This manual is for Magit-Section version 4.4.2.
|
||||
|
||||
Copyright (C) 2015-2025 Jonas Bernoulli
|
||||
<emacs.magit@jonas.bernoulli.dev>
|
||||
@@ -99,12 +99,13 @@ File: magit-section.info, Node: Creating Sections, Next: Core Functions, Prev
|
||||
appropriate package prefix. This works due to some undocumented
|
||||
kludges, which are not available to other packages.
|
||||
|
||||
When optional HIDE is non-nil collapse the section body by default,
|
||||
i.e., when first creating the section, but not when refreshing the
|
||||
buffer. Else expand it by default. This can be overwritten using
|
||||
‘magit-section-set-visibility-hook’. When a section is recreated
|
||||
during a refresh, then the visibility of predecessor is inherited
|
||||
and HIDE is ignored (but the hook is still honored).
|
||||
When optional HIDE is non-‘nil’ collapse the section body by
|
||||
default, i.e., when first creating the section, but not when
|
||||
refreshing the buffer. Else expand it by default. This can be
|
||||
overwritten using ‘magit-section-set-visibility-hook’. When a
|
||||
section is recreated during a refresh, then the visibility of
|
||||
predecessor is inherited and HIDE is ignored (but the hook is still
|
||||
honored).
|
||||
|
||||
BODY is any number of forms that actually insert the section's
|
||||
heading and body. Optional NAME, if specified, has to be a symbol,
|
||||
@@ -131,10 +132,10 @@ File: magit-section.info, Node: Creating Sections, Next: Core Functions, Prev
|
||||
at ‘point’. The section should only contain a single line when
|
||||
this function is used like this.
|
||||
|
||||
When called with arguments ARGS, which have to be strings, or nil,
|
||||
then insert those strings at point. The section should not contain
|
||||
any text before this happens and afterwards it should again only
|
||||
contain a single line. If the ‘face’ property is set anywhere
|
||||
When called with arguments ARGS, which have to be strings, or
|
||||
‘nil’, then insert those strings at point. The section should not
|
||||
contain any text before this happens and afterwards it should again
|
||||
only contain a single line. If the ‘face’ property is set anywhere
|
||||
inside any of these strings, then insert all of them unchanged.
|
||||
Otherwise use the 'magit-section-heading' face for all inserted
|
||||
text.
|
||||
@@ -142,19 +143,19 @@ File: magit-section.info, Node: Creating Sections, Next: Core Functions, Prev
|
||||
The ‘content’ property of the section object is the end of the
|
||||
heading (which lasts from ‘start’ to ‘content’) and the beginning
|
||||
of the the body (which lasts from ‘content’ to ‘end’). If the
|
||||
value of ‘content’ is nil, then the section has no heading and its
|
||||
body cannot be collapsed. If a section does have a heading, then
|
||||
its height must be exactly one line, including a trailing newline
|
||||
character. This isn't enforced, you are responsible for getting it
|
||||
right. The only exception is that this function does insert a
|
||||
newline character if necessary.
|
||||
value of ‘content’ is ‘nil’, then the section has no heading and
|
||||
its body cannot be collapsed. If a section does have a heading,
|
||||
then its height must be exactly one line, including a trailing
|
||||
newline character. This isn't enforced, you are responsible for
|
||||
getting it right. The only exception is that this function does
|
||||
insert a newline character if necessary.
|
||||
|
||||
If provided, optional CHILD-COUNT must evaluate to an integer or
|
||||
boolean. If t, then the count is determined once the children have
|
||||
been inserted, using ‘magit-insert-child-count’ (which see). For
|
||||
historic reasons, if the heading ends with ":", the count is
|
||||
boolean. If ‘t’, then the count is determined once the children
|
||||
have been inserted, using ‘magit-insert-child-count’ (which see).
|
||||
For historic reasons, if the heading ends with ":", the count is
|
||||
substituted for that, at this time as well. If
|
||||
‘magit-section-show-child-count’ is nil, no counts are inserted
|
||||
‘magit-section-show-child-count’ is ‘nil’, no counts are inserted
|
||||
|
||||
-- Macro: magit-insert-section-body &rest body
|
||||
Use BODY to insert the section body, once the section is expanded.
|
||||
@@ -203,17 +204,18 @@ Function magit-section-at &optional position
|
||||
|
||||
-- Function: magit-get-section ident &optional root
|
||||
Return the section identified by IDENT. IDENT has to be a list as
|
||||
returned by ‘magit-section-ident’. If optional ROOT is non-nil,
|
||||
returned by ‘magit-section-ident’. If optional ROOT is non-‘nil’,
|
||||
then search in that section tree instead of in the one whose root
|
||||
‘magit-root-section’ is.
|
||||
|
||||
-- Function: magit-section-lineage section &optional raw
|
||||
Return the lineage of SECTION. If optional RAW is non-nil, return
|
||||
a list of section objects, beginning with SECTION, otherwise return
|
||||
a list of section types.
|
||||
Return the lineage of SECTION. If optional RAW is non-‘nil’,
|
||||
return a list of section objects, beginning with SECTION, otherwise
|
||||
return a list of section types.
|
||||
|
||||
-- Function: magit-section-content-p section
|
||||
Return non-nil if SECTION has content or an unused washer function.
|
||||
Return non-‘nil’ if SECTION has content or an unused washer
|
||||
function.
|
||||
|
||||
The next two functions are replacements for the Emacs functions that
|
||||
have the same name except for the ‘magit-’ prefix. Like
|
||||
@@ -246,10 +248,10 @@ File: magit-section.info, Node: Matching Functions, Prev: Core Functions, Up:
|
||||
|
||||
-- Function: magit-section-match condition &optional (section
|
||||
(magit-current-section))
|
||||
Return t if SECTION matches CONDITION.
|
||||
Return ‘t’ if SECTION matches CONDITION.
|
||||
|
||||
SECTION defaults to the section at point. If SECTION is not
|
||||
specified and there also is no section at point, then return nil.
|
||||
specified and there also is no section at point, then return ‘nil’.
|
||||
|
||||
CONDITION can take the following forms:
|
||||
|
||||
@@ -279,9 +281,10 @@ File: magit-section.info, Node: Matching Functions, Prev: Core Functions, Up:
|
||||
-- Function: magit-section-value-if condition &optional section
|
||||
If the section at point matches CONDITION, then return its value.
|
||||
|
||||
If optional SECTION is non-nil then test whether that matches
|
||||
instead. If there is no section at point and SECTION is nil, then
|
||||
return nil. If the section does not match, then return nil.
|
||||
If optional SECTION is non-‘nil’ then test whether that matches
|
||||
instead. If there is no section at point and SECTION is ‘nil’,
|
||||
then return ‘nil’. If the section does not match, then return
|
||||
‘nil’.
|
||||
|
||||
See ‘magit-section-match’ for the forms CONDITION can take.
|
||||
|
||||
@@ -293,25 +296,25 @@ File: magit-section.info, Node: Matching Functions, Prev: Core Functions, Up:
|
||||
first match are evaluated sequentially and the value of the last
|
||||
form is returned. Inside BODY the symbol ‘it’ is bound to the
|
||||
section at point. If no clause succeeds or if there is no section
|
||||
at point, return nil.
|
||||
at point, return ‘nil’.
|
||||
|
||||
See ‘magit-section-match’ for the forms CONDITION can take.
|
||||
Additionally a CONDITION of t is allowed in the final clause, and
|
||||
Additionally a CONDITION of ‘t’ is allowed in the final clause, and
|
||||
matches if no other CONDITION match, even if there is no section at
|
||||
point.
|
||||
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top810
|
||||
Node: Introduction2111
|
||||
Node: Creating Sections2881
|
||||
Node: Core Functions7786
|
||||
Node: Matching Functions10938
|
||||
Node: Top808
|
||||
Node: Introduction2109
|
||||
Node: Creating Sections2879
|
||||
Node: Core Functions7818
|
||||
Node: Matching Functions10993
|
||||
|
||||
End Tag Table
|
||||
|
||||
|
||||
Local Variables:
|
||||
coding: utf-8
|
||||
Info-documentlanguage: en
|
||||
End:
|
||||
|
||||
Reference in New Issue
Block a user