From dc5043f1982c4f9be18256f3d485026ae636f5db Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 24 Apr 2026 18:55:16 +0200 Subject: [PATCH] update parsebib --- .../parsebib-autoloads.el | 0 .../parsebib-pkg.el | 6 ++-- .../parsebib.el | 35 +++++++++---------- 3 files changed, 19 insertions(+), 22 deletions(-) rename elpa/{parsebib-20250316.2257 => parsebib-20250922.1100}/parsebib-autoloads.el (100%) rename elpa/{parsebib-20250316.2257 => parsebib-20250922.1100}/parsebib-pkg.el (72%) rename elpa/{parsebib-20250316.2257 => parsebib-20250922.1100}/parsebib.el (98%) diff --git a/elpa/parsebib-20250316.2257/parsebib-autoloads.el b/elpa/parsebib-20250922.1100/parsebib-autoloads.el similarity index 100% rename from elpa/parsebib-20250316.2257/parsebib-autoloads.el rename to elpa/parsebib-20250922.1100/parsebib-autoloads.el diff --git a/elpa/parsebib-20250316.2257/parsebib-pkg.el b/elpa/parsebib-20250922.1100/parsebib-pkg.el similarity index 72% rename from elpa/parsebib-20250316.2257/parsebib-pkg.el rename to elpa/parsebib-20250922.1100/parsebib-pkg.el index ab23d836..604e60cc 100644 --- a/elpa/parsebib-20250316.2257/parsebib-pkg.el +++ b/elpa/parsebib-20250922.1100/parsebib-pkg.el @@ -1,10 +1,10 @@ ;; -*- no-byte-compile: t; lexical-binding: nil -*- -(define-package "parsebib" "20250316.2257" +(define-package "parsebib" "20250922.1100" "A library for parsing bib files." '((emacs "25.1")) :url "https://github.com/joostkremers/parsebib" - :commit "7bfde4e4679413424a9a9af099203d5c23e32cd2" - :revdesc "7bfde4e46794" + :commit "4a9df6f1b4f37bbf4f8712eac99c8a25698f1c0e" + :revdesc "4a9df6f1b4f3" :keywords '("text" "bibtex") :authors '(("Joost Kremers" . "joostkremers@fastmail.fm")) :maintainers '(("Joost Kremers" . "joostkremers@fastmail.fm"))) diff --git a/elpa/parsebib-20250316.2257/parsebib.el b/elpa/parsebib-20250922.1100/parsebib.el similarity index 98% rename from elpa/parsebib-20250316.2257/parsebib.el rename to elpa/parsebib-20250922.1100/parsebib.el index 61c75836..cdc6d8d3 100644 --- a/elpa/parsebib-20250316.2257/parsebib.el +++ b/elpa/parsebib-20250922.1100/parsebib.el @@ -6,8 +6,8 @@ ;; Author: Joost Kremers ;; Maintainer: Joost Kremers ;; Created: 2014 -;; Package-Version: 20250316.2257 -;; Package-Revision: 7bfde4e46794 +;; Package-Version: 20250922.1100 +;; Package-Revision: 4a9df6f1b4f3 ;; Keywords: text bibtex ;; URL: https://github.com/joostkremers/parsebib ;; Package-Requires: ((emacs "25.1")) @@ -72,7 +72,7 @@ id is stored in the entry in the special field `=hashid='.") ;; ;; " # % ' ( ) , = { } ;; -;; Note that parentheses are allowed by BibTex, though, so I won't exclude +;; Note that parentheses are allowed by BibTeX, though, so I won't exclude ;; them here. ;; ;; Also, keys and identifiers (field and @String names) are distinguished, @@ -83,9 +83,7 @@ id is stored in the entry in the special field `=hashid='.") (defconst parsebib--bibtex-key-regexp "[^\"#%',={} \t\n\f]+" "Regexp describing a licit BibTeX key.") (defconst parsebib--bibtex-entry-start "^[ \t]*@" "Regexp describing the start of an entry.") -(defvar parsebib-postprocessing-excluded-fields '("file" - "url" - "doi") +(defvar parsebib-postprocessing-excluded-fields '("file" "url" "doi") "List of fields that should not be post-processed.") ;; Cleaning up TeX code is very slow, so we restrict it to those fields for @@ -851,18 +849,17 @@ See `parsebib-TeX-markup-replacement-alist' and the function (defvar parsebib-TeX-markup-replacement-alist `((parsebib--TeX-replace-command-or-accent - ;; This regexp matches any latex command i.e. anything that - ;; starts with a backslash. The name of the command which - ;; is either a string of alphabetic characters or a single - ;; non-alphabetic character is captured by group 1. The command - ;; can have a mandatory argument enclosed by braces which is - ;; captured by group 2. If the command has no arguments in - ;; brackets or braces, the first non-white space letter after - ;; the command is captured in group 3. This is to be able to deal - ;; with accents. - ;; Note that the capturing of arguments in braces is imperfect, - ;; because doing it properly requires sexp parsing. It will fail - ;; for cases like \command{\anothercommand{an arg}some text}. + ;; This regexp matches any latex command, i.e., anything that starts + ;; with a backslash. The name of the command, which is either a string + ;; of alphabetic characters or a single non-alphabetic character, is + ;; captured by group 1. The command can have a mandatory argument + ;; enclosed by braces which is captured by group 2. If the command has + ;; no arguments in brackets or braces, the first non-white space + ;; letter after the command is captured in group 3. This is to be able + ;; to deal with accents. Note that the capturing of arguments in + ;; braces is imperfect, because doing it properly requires sexp + ;; parsing. It will fail for cases like \command{\anothercommand{an + ;; arg}some text}. . ,(rx "\\" (group-n 1 (or (1+ letter) nonl)) (: (* blank) (opt (or (: (* (: "[" (* (not (any "]"))) "]")) "{" (group-n 2 (0+ (not (any "}")))) (opt "}")) @@ -899,7 +896,7 @@ and `parsebib-TeX-literal-replacement-alist' respectively.") ;; and get the replacement. (rep (or acc (alist-get cmd parsebib-TeX-command-replacement-alist nil nil #'equal)))) (cond - ;; If replacement is a function call it with the argument. + ;; If replacement is a function, call it with the argument. ((functionp rep) (funcall rep arg)) ;; Otherwise combine the replacement with the argument. The order of combination ;; depends on whether the command is an accent or not. -- 2.47.3