]> git.eshelyaron.com Git - emacs.git/commitdiff
fix for bibtex.el in prior commit
authorRoland Winkler <winkler@gnu.org>
Mon, 13 Jan 2025 00:43:16 +0000 (18:43 -0600)
committerEshel Yaron <me@eshelyaron.com>
Mon, 13 Jan 2025 07:44:02 +0000 (08:44 +0100)
* lisp/textmodes/bibtex.el (bibtex-string-file-path)
(bibtex-file-path): Check for undefined environment variable
BIBINPUTS.

(cherry picked from commit 615f06ea534cd565f439b08d563a31ca2b0eea92)

lisp/textmodes/bibtex.el

index 83d8f2e6e70872414ce4b4dd642c78d384e562d2..a337c7167ca3fdeca199a52fc6588447e8f4ca68 100644 (file)
@@ -1095,7 +1095,9 @@ to the directories specified in `bibtex-string-file-path'."
   :group 'bibtex
   :type '(repeat file))
 
-(defcustom bibtex-string-file-path (split-string (getenv "BIBINPUTS") ":+" t)
+(defcustom bibtex-string-file-path
+  (let ((bibinputs (getenv "BIBINPUTS")))
+    (if bibinputs (split-string bibinputs ":+" t)))
   "List of directories to search for `bibtex-string-files'.
 By default, initialized from the BIBINPUTS environment variable.
 For backward compatibility, considered obsolete, it may also be
@@ -1117,7 +1119,9 @@ See also `bibtex-search-entry-globally'."
   :type '(repeat (choice (const :tag "bibtex-file-path" bibtex-file-path)
                          directory file)))
 
-(defcustom bibtex-file-path (split-string (getenv "BIBINPUTS") ":+" t)
+(defcustom bibtex-file-path
+  (let ((bibinputs (getenv "BIBINPUTS")))
+    (if bibinputs (split-string bibinputs ":+" t)))
   "List of directories to search for `bibtex-files'.
 By default, initialized from the BIBINPUTS environment variable.
 For backward compatibility, considered obsolete, it may also be