mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-22 07:09:47 +00:00
oc: Fix docstring typos
* lisp/oc.el (org-cite-make-insert-processor): Fix typos in docstring. Fill mostly under 60 characters.
This commit is contained in:
parent
876e813334
commit
e961125768
40
lisp/oc.el
40
lisp/oc.el
@ -1523,38 +1523,42 @@ Citation keys are strings without the leading \"@\"."
|
||||
(defun org-cite-make-insert-processor (select-key select-style)
|
||||
"Build a function appropriate as an insert processor.
|
||||
|
||||
SELECT-KEY is a function called with one argument. When it is nil, the function
|
||||
should return a citation key as a string, or nil. Otherwise, the function
|
||||
should return a list of such keys, or nil. The keys should not have any leading
|
||||
\"@\" character.
|
||||
SELECT-KEY is a function called with one argument. When it is
|
||||
nil, the function should return a citation key as a string, or
|
||||
nil. Otherwise, the function should return a list of such keys,
|
||||
or nil. The keys should not have any leading \"@\" character.
|
||||
|
||||
SELECT-STYLE is a function called with one argument, the citation object being
|
||||
edited or constructed so far. It should return a style string, or nil.
|
||||
SELECT-STYLE is a function called with one argument, the citation
|
||||
object being edited or constructed so far. It should return
|
||||
a style string, or nil.
|
||||
|
||||
The return value is a function of two arguments: CONTEXT and ARG. CONTEXT is
|
||||
either a citation reference, a citation object, or nil. ARG is a prefix
|
||||
argument.
|
||||
The return value is a function of two arguments: CONTEXT and ARG.
|
||||
CONTEXT is either a citation reference, a citation object, or
|
||||
nil. ARG is a prefix argument.
|
||||
|
||||
The generated function inserts or edit a citation at point. More specifically,
|
||||
The generated function inserts or edits a citation at point.
|
||||
More specifically,
|
||||
|
||||
On a citation reference:
|
||||
|
||||
- on the prefix or right before th \"@\" character, insert a new reference
|
||||
before the current one,
|
||||
- on the prefix or right before th \"@\" character, insert
|
||||
a new reference before the current one,
|
||||
- on the suffix, insert it after the reference,
|
||||
- otherwise, update the cite key, preserving both affixes.
|
||||
|
||||
When ARG is non-nil, remove the reference, possibly removing the whole
|
||||
citation if it contains a single reference.
|
||||
When ARG is non-nil, remove the reference, possibly removing
|
||||
the whole citation if it contains a single reference.
|
||||
|
||||
On a citation object:
|
||||
|
||||
- on the style part, offer to update it,
|
||||
- on the global prefix, add a new reference before the first one,
|
||||
- on the global suffix, add a new reference after the last one,
|
||||
- on the global prefix, add a new reference before the first
|
||||
one,
|
||||
- on the global suffix, add a new reference after the last
|
||||
one.
|
||||
|
||||
Elsewhere, insert a citation at point. When ARG is non-nil, offer to complete
|
||||
style in addition to references."
|
||||
Elsewhere, insert a citation at point. When ARG is non-nil,
|
||||
offer to complete style in addition to references."
|
||||
(unless (and (functionp select-key) (functionp select-style))
|
||||
(error "Wrong argument type(s)"))
|
||||
(lambda (context arg)
|
||||
|
Loading…
Reference in New Issue
Block a user