]> code.delx.au - gnu-emacs/commitdiff
(bibtex-strings, bibtex-reference-keys):
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 26 Dec 2005 15:54:21 +0000 (15:54 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 26 Dec 2005 15:54:21 +0000 (15:54 +0000)
Don't use the `args' argument of lazy-completion-table.

lisp/textmodes/bibtex.el

index 82c79ae256946750eb1830e7967aa9695b5d0344..161b5fbc126fda6d091c2e480254505c4e797956 100644 (file)
@@ -1044,13 +1044,15 @@ At most `bibtex-entry-kill-ring-max' items are kept here.")
 
 (defvar bibtex-strings
   (lazy-completion-table bibtex-strings
-                         bibtex-parse-strings (bibtex-string-files-init))
+                         (lambda ()
+                           (bibtex-parse-strings (bibtex-string-files-init))))
   "Completion table for BibTeX string keys.
 Initialized from `bibtex-predefined-strings' and `bibtex-string-files'.")
 (make-variable-buffer-local 'bibtex-strings)
 
 (defvar bibtex-reference-keys
-  (lazy-completion-table bibtex-reference-keys bibtex-parse-keys nil t)
+  (lazy-completion-table bibtex-reference-keys
+                         (lambda () (bibtex-parse-keys nil t)))
   "Completion table for BibTeX reference keys.
 The CDRs of the elements are t for header keys and nil for crossref keys.")
 (make-variable-buffer-local 'bibtex-reference-keys)