summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoost Kremers <joostkremers@fastmail.fm>2021-12-09 00:35:32 +0100
committerJoost Kremers <joostkremers@fastmail.fm>2021-12-09 00:35:32 +0100
commit3d46fb939371664682c711750367de088aa66f92 (patch)
tree2be382da3bf0e3192111e60ebdc73efebdfd17cd
parent8d7cf64badde2b14baac277cac85e83777da9409 (diff)
Use `none` in `parsebib--biblatex-inheritances`.
In order to resolve issue [#231](https://github.com/joostkremers/ebib/issues/231) in Ebib, the formats of `parsebib--biblatex-inheritances` and `ebib-biblatex-inheritances` need to be synchronised. Using keywords somehow feels less Elisp-y, and the Ebib version is user-customisable, where a plain symbol may be more user-friendly.
-rw-r--r--parsebib.el94
1 files changed, 47 insertions, 47 deletions
diff --git a/parsebib.el b/parsebib.el
index 94a007b..56a401f 100644
--- a/parsebib.el
+++ b/parsebib.el
@@ -60,22 +60,22 @@ id is stored in the entry in the special field `=hashid='.")
(defvar parsebib--biblatex-inheritances '(;; Source Target
("all" "all"
- (("ids" . :none)
- ("crossref" . :none)
- ("xref" . :none)
- ("entryset" . :none)
- ("entrysubtype" . :none)
- ("execute" . :none)
- ("label" . :none)
- ("options" . :none)
- ("presort" . :none)
- ("related" . :none)
- ("relatedoptions" . :none)
- ("relatedstring" . :none)
- ("relatedtype" . :none)
- ("shorthand" . :none)
- ("shorthandintro" . :none)
- ("sortkey" . :none)))
+ (("ids" . none)
+ ("crossref" . none)
+ ("xref" . none)
+ ("entryset" . none)
+ ("entrysubtype" . none)
+ ("execute" . none)
+ ("label" . none)
+ ("options" . none)
+ ("presort" . none)
+ ("related" . none)
+ ("relatedoptions" . none)
+ ("relatedstring" . none)
+ ("relatedtype" . none)
+ ("shorthand" . none)
+ ("shorthandintro" . none)
+ ("sortkey" . none)))
;; Source Target
("mvbook, book" "inbook, bookinbook, suppbook"
@@ -87,69 +87,69 @@ id is stored in the entry in the special field `=hashid='.")
(("title" . "maintitle")
("subtitle" . "mainsubtitle")
("titleaddon" . "maintitleaddon")
- ("shorttitle" . :none)
- ("sorttitle" . :none)
- ("indextitle" . :none)
- ("indexsorttitle" . :none)))
+ ("shorttitle" . none)
+ ("sorttitle" . none)
+ ("indextitle" . none)
+ ("indexsorttitle" . none)))
;; Source Target
("mvcollection, mvreference" "collection, reference, incollection, inreference, suppcollection"
(("title" . "maintitle")
("subtitle" . "mainsubtitle")
("titleaddon" . "maintitleaddon")
- ("shorttitle" . :none)
- ("sorttitle" . :none)
- ("indextitle" . :none)
- ("indexsorttitle" . :none)))
+ ("shorttitle" . none)
+ ("sorttitle" . none)
+ ("indextitle" . none)
+ ("indexsorttitle" . none)))
;; Source Target
("mvproceedings" "proceedings, inproceedings"
(("title" . "maintitle")
("subtitle" . "mainsubtitle")
("titleaddon" . "maintitleaddon")
- ("shorttitle" . :none)
- ("sorttitle" . :none)
- ("indextitle" . :none)
- ("indexsorttitle" . :none)))
+ ("shorttitle" . none)
+ ("sorttitle" . none)
+ ("indextitle" . none)
+ ("indexsorttitle" . none)))
;; Source Target
("book" "inbook, bookinbook, suppbook"
(("title" . "booktitle")
("subtitle" . "booksubtitle")
("titleaddon" . "booktitleaddon")
- ("shorttitle" . :none)
- ("sorttitle" . :none)
- ("indextitle" . :none)
- ("indexsorttitle" . :none)))
+ ("shorttitle" . none)
+ ("sorttitle" . none)
+ ("indextitle" . none)
+ ("indexsorttitle" . none)))
;; Source Target
("collection, reference" "incollection, inreference, suppcollection"
(("title" . "booktitle")
("subtitle" . "booksubtitle")
("titleaddon" . "booktitleaddon")
- ("shorttitle" . :none)
- ("sorttitle" . :none)
- ("indextitle" . :none)
- ("indexsorttitle" . :none)))
+ ("shorttitle" . none)
+ ("sorttitle" . none)
+ ("indextitle" . none)
+ ("indexsorttitle" . none)))
;; Source Target
("proceedings" "inproceedings"
(("title" . "booktitle")
("subtitle" . "booksubtitle")
("titleaddon" . "booktitleaddon")
- ("shorttitle" . :none)
- ("sorttitle" . :none)
- ("indextitle" . :none)
- ("indexsorttitle" . :none)))
+ ("shorttitle" . none)
+ ("sorttitle" . none)
+ ("indextitle" . none)
+ ("indexsorttitle" . none)))
;; Source Target
("periodical" "article, suppperiodical"
(("title" . "journaltitle")
("subtitle" . "journalsubtitle")
- ("shorttitle" . :none)
- ("sorttitle" . :none)
- ("indextitle" . :none)
- ("indexsorttitle" . :none))))
+ ("shorttitle" . none)
+ ("sorttitle" . none)
+ ("indextitle" . none)
+ ("indexsorttitle" . none))))
"Inheritance scheme for BibLaTeX cross-referencing.
Inheritances are specified for pairs of source and target entry
@@ -165,7 +165,7 @@ comma-separated list of entry types.
If no inheritance rule is set up for a given entry type+field
combination, the field inherits from the same-name field in the
cross-referenced entry. If no inheritance should take place, the
-target field is set to the symbol `:none'.")
+target field is set to the symbol `none'.")
;; Regexes describing BibTeX identifiers and keys. Note that while $ ^ & are
;; valid in BibTeX keys, they may nonetheless be problematic, because they are
@@ -330,7 +330,7 @@ such an inheritance schema."
Inheritance is determined by INHERITANCES, which is an alist of
source/target pairs. If no inheritance should take place for
SOURCE-FIELD, the target in the relevant item in INHERITANCES is
-the symbol `:none'. If there is no item for SOURCE-FIELD in
+the symbol `none'. If there is no item for SOURCE-FIELD in
INHERITANCES, SOURCE-FIELD is returned. Note that it is valid
for INHERITANCES to be nil."
;; Note: the argument INHERITANCES differs from the INHERITANCE argument in
@@ -340,7 +340,7 @@ for INHERITANCES to be nil."
(cond
((null target-field)
source-field)
- ((eq target-field :none)
+ ((eq target-field 'none)
nil)
(t target-field))))