[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 80798fc 72/85: oc.el (org-cite-register-processor):
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 80798fc 72/85: oc.el (org-cite-register-processor): Silence a compiler warning |
Date: |
Mon, 27 Sep 2021 15:57:53 -0400 (EDT) |
branch: externals/org
commit 80798fcdbb05a81e885ee5bb44facb7543f5a886
Author: Bastien <bzg@gnu.org>
Commit: Bastien <bzg@gnu.org>
oc.el (org-cite-register-processor): Silence a compiler warning
* lisp/oc.el:
(org-cite-register-processor): Silence a compiler warning.
---
lisp/oc.el | 163 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 88 insertions(+), 75 deletions(-)
diff --git a/lisp/oc.el b/lisp/oc.el
index 2a23544..1fa5629 100644
--- a/lisp/oc.el
+++ b/lisp/oc.el
@@ -19,39 +19,43 @@
;;; Commentary:
-;; This library provides tooling to handle citations in Org, e.g, activate,
-;; follow, insert, and export them, respectively called "activate", "follow",
-;; "insert" and "export" capabilities. Libraries responsible for providing
-;; some, or all, of these capabilities are called "citation processors".
-
-;; Such processors are defined using `org-cite-register-processor'. Using this
-;; function, it is possible, in addition to giving it a name, to attach
-;; functions associated to capabilities. As such, a processor handling
citation
-;; export must set the `:export-citation' property to an appropriate function.
-;; Likewise, "activate" capability requires an appropriate `:activate'
property,
-;; "insert" requires `:insert' property and, unsurprisingly, "follow"
capability
-;; implies `:follow' property.
-
-;; As a user, the first thing to do is setting a bibliography, either globally
-;; with `org-cite-global-bibliography', or locally using one or more
-;; "bibliography" keywords. Then one can select any registered processor for
-;; each capability by providing a processor name to the variables
-;; `org-cite-activate-processor' and `org-cite-follow-processor'.
-
-;; The "export" capability is slightly more involved as one need to select the
-;; processor providing it, but may also provide a default style for citations
-;; and bibliography. Also, the choice of an export processor may depend of the
-;; current export back-end. The association between export back-ends and
-;; triplets of parameters can be set in `org-cite-export-processors' variable,
-;; or in a document, through the "cite_export" keyword.
-
-;; Eventually, this library provides some tools, mainly targeted at processor
-;; implementors. Most are export-specific and are located in the "Tools only
-;; available during export" and "Tools generating or operating on parsed data"
-;; sections.
-
-;; The few others can be used directly from an Org buffer, or operate on
-;; processors. See "Generic tools" section.
+;; This library provides tooling to handle citations in Org, e.g,
+;; activate, follow, insert, and export them, respectively called
+;; "activate", "follow", "insert" and "export" capabilities.
+;; Libraries responsible for providing some, or all, of these
+;; capabilities are called "citation processors".
+
+;; Such processors are defined using `org-cite-register-processor'.
+;; Using this function, it is possible, in addition to giving it a
+;; name, to attach functions associated to capabilities. As such, a
+;; processor handling citation export must set the `:export-citation'
+;; property to an appropriate function. Likewise, "activate"
+;; capability requires an appropriate `:activate' property, "insert"
+;; requires `:insert' property and, unsurprisingly, "follow"
+;; capability implies `:follow' property.
+
+;; As a user, the first thing to do is setting a bibliography, either
+;; globally with `org-cite-global-bibliography', or locally using one
+;; or more "bibliography" keywords. Then one can select any
+;; registered processor for each capability by providing a processor
+;; name to the variables `org-cite-activate-processor' and
+;; `org-cite-follow-processor'.
+
+;; The "export" capability is slightly more involved as one need to
+;; select the processor providing it, but may also provide a default
+;; style for citations and bibliography. Also, the choice of an
+;; export processor may depend of the current export back-end. The
+;; association between export back-ends and triplets of parameters can
+;; be set in `org-cite-export-processors' variable, or in a document,
+;; through the "cite_export" keyword.
+
+;; Eventually, this library provides some tools, mainly targeted at
+;; processor implementors. Most are export-specific and are located
+;; in the "Tools only available during export" and "Tools generating
+;; or operating on parsed data" sections.
+
+;; The few others can be used directly from an Org buffer, or operate
+;; on processors. See "Generic tools" section.
;;; Code:
@@ -334,79 +338,88 @@ Return nil if no such processor is found."
(defun org-cite-register-processor (name &rest body)
"Mark citation processor NAME as available.
-NAME is a symbol. BODY is a property list, where the following optional keys
-can be set:
+NAME is a symbol. BODY is a property list, where the following
+optional keys can be set:
`:activate'
- Function activating a citation. It is called with a single argument: a
- citation object extracted from the current buffer. It may add text
- properties to the buffer. If it is not provided,
`org-cite-fontify-default'
- is used.
+ Function activating a citation. It is called with a single
+ argument: a citation object extracted from the current
+ buffer. It may add text properties to the buffer. If it is
+ not provided, `org-cite-fontify-default' is used.
`:export-bibliography'
- Function rendering a bibliography. It is called with six arguments: the
- list of citation keys used in the document, as strings, a list of
- bibliography files, the style, as a string or nil, the local properties, as
- a property list, the export back-end, as a symbol, and the communication
- channel, as a property list.
+ Function rendering a bibliography. It is called with six
+ arguments: the list of citation keys used in the document, as
+ strings, a list of bibliography files, the style, as a string
+ or nil, the local properties, as a property list, the export
+ back-end, as a symbol, and the communication channel, as a
+ property list.
- It is called at each \"print_bibliography\" keyword in the parse tree.
- It may return a string, a parsed element, a list of parsed elements, or
nil.
- When it returns nil, the keyword is ignored. Otherwise, the value it
returns
- replaces the keyword in the export output.
+ It is called at each \"print_bibliography\" keyword in the
+ parse tree. It may return a string, a parsed element, a list
+ of parsed elements, or nil. When it returns nil, the keyword
+ is ignored. Otherwise, the value it returns replaces the
+ keyword in the export output.
`:export-citation' (mandatory for \"export\" capability)
- Function rendering citations. It is called with four arguments: a citation
- object, the style, as a pair, the export back-end, as a symbol, and the
- communication channel, as a property list.
+ Function rendering citations. It is called with four
+ arguments: a citation object, the style, as a pair, the
+ export back-end, as a symbol, and the communication channel,
+ as a property list.
- It is called on each citation object in the parse tree. It may return
- a string, a parsed object, a secondary string, or nil. When it returns
nil,
- the citation is ignored. Otherwise, the value it returns replaces the
- citation object in the export output.
+ It is called on each citation object in the parse tree. It
+ may return a string, a parsed object, a secondary string, or
+ nil. When it returns nil, the citation is ignored.
+ Otherwise, the value it returns replaces the citation object
+ in the export output.
`:export-finalizer'
- Function called at the end of export process. It must accept six
arguments:
- the output, as a string, a list of citation keys used in the document, a
- list of bibliography files, the expected bibliography style, as a string or
- nil, the export back-end, as a symbol, and the communication channel, as a
+ Function called at the end of export process. It must accept
+ six arguments: the output, as a string, a list of citation
+ keys used in the document, a list of bibliography files, the
+ expected bibliography style, as a string or nil, the export
+ back-end, as a symbol, and the communication channel, as a
property list.
- It must return a string, which will become the final output from the export
- process, barring subsequent modifications from export filters.
+ It must return a string, which will become the final output
+ from the export process, barring subsequent modifications
+ from export filters.
`:follow'
- Function called to follow a citation. It accepts two arguments, the
- citation or citation reference object at point, and any prefix argument
- received during interactive call of `org-open-at-point'.
+ Function called to follow a citation. It accepts two
+ arguments, the citation or citation reference object at
+ point, and any prefix argument received during interactive
+ call of `org-open-at-point'.
`:insert'
- Function called to insert a citation. It accepts two arguments, the
- citation or citation reference object at point or nil, and any prefix
- argument received.
+ Function called to insert a citation. It accepts two
+ arguments, the citation or citation reference object at point
+ or nil, and any prefix argument received.
`:cite-styles'
- When the processor has export capability, the value can specify what cite
- styles, variants, and their associated shortcuts are supported. It can be
- useful information for completion or linting.
+ When the processor has export capability, the value can
+ specify what cite styles, variants, and their associated
+ shortcuts are supported. It can be useful information for
+ completion or linting.
The expected format is
((STYLE . SHORTCUTS) . VARIANTS))
- where STYLE is a string, SHORTCUTS a list of strings or nil, and VARIANTS
is
- a list of pairs (VARIANT . SHORTCUTS), VARIANT being a string and SHORTCUTS
- a list of strings or nil.
+ where STYLE is a string, SHORTCUTS a list of strings or nil,
+ and VARIANTS is a list of pairs (VARIANT . SHORTCUTS),
+ VARIANT being a string and SHORTCUTS a list of strings or
+ nil.
- The \"nil\" style denotes the processor fall-back style. It should have a
- corresponding entry in the value.
+ The \"nil\" style denotes the processor fall-back style. It
+ should have a corresponding entry in the value.
Return a non-nil value on a successful operation."
(declare (indent 1))
- [elpa] externals/org faf1ba8 34/85: Merge branch 'bugfix', (continued)
- [elpa] externals/org faf1ba8 34/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 63a5af9 63/85: Backport commit 85e9e5f61 from Emacs, ELPA Syncer, 2021/09/27
- [elpa] externals/org 5e58af5 52/85: oc-csl: Use citeproc-el to create CSL processor itemgetters, ELPA Syncer, 2021/09/27
- [elpa] externals/org be0cdd1 40/85: org-mouse: Support intermediate-state checkboxes, ELPA Syncer, 2021/09/27
- [elpa] externals/org db67c7e 55/85: Move some ob-*el files to the new org-contrib repo, ELPA Syncer, 2021/09/27
- [elpa] externals/org 2aa2615 59/85: Document new agenda faces in the ORG-NEWS, ELPA Syncer, 2021/09/27
- [elpa] externals/org b80b0a5 51/85: org-clock.el: Make org-notify support macOS notification, ELPA Syncer, 2021/09/27
- [elpa] externals/org 78783f4 48/85: ob-core.el: Add ability to use closures as default header arguments, ELPA Syncer, 2021/09/27
- [elpa] externals/org b2da9ea 64/85: Backport commit 0da8118dc from Emacs, ELPA Syncer, 2021/09/27
- [elpa] externals/org 7d67719 68/85: org-manual: comment about latex code-block export, ELPA Syncer, 2021/09/27
- [elpa] externals/org 80798fc 72/85: oc.el (org-cite-register-processor): Silence a compiler warning,
ELPA Syncer <=
- [elpa] externals/org 593740c 74/85: etc/ORG-NEWS: Mention the citation engine and reorder items, ELPA Syncer, 2021/09/27
- [elpa] externals/org c76a7ee 76/85: org: Refactor width in `org-display-inline-images', ELPA Syncer, 2021/09/27
- [elpa] externals/org e816ae1 75/85: org: Display proportional image widths, ELPA Syncer, 2021/09/27
- [elpa] externals/org 981bcbf 80/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org c90f96c 77/85: org: Support displaying X% width images, ELPA Syncer, 2021/09/27
- [elpa] externals/org 4594423 79/85: doc/org-manual.org: Fix typo, ELPA Syncer, 2021/09/27
- [elpa] externals/org 09dc3fa 83/85: org-protocol.el: decode "+" in query part as space, ELPA Syncer, 2021/09/27
- [elpa] externals/org 663255e 85/85: org: Remove obsolete default LaTeX packages, ELPA Syncer, 2021/09/27
- [elpa] externals/org 3d35718 44/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 69850c1 58/85: ob-core.el (org-babel--file-desc): Remove unused condition, ELPA Syncer, 2021/09/27