summaryrefslogtreecommitdiff
path: root/ebib-keywords.el
diff options
context:
space:
mode:
authorJoost Kremers <joostkremers@fastmail.fm>2014-11-19 07:44:14 +0100
committerJoost Kremers <joostkremers@fastmail.fm>2014-11-19 07:44:14 +0100
commit0f8936cc204f95306f7d1cfd93536b3e82bdd967 (patch)
tree95bc22988f4d6340057c765ed5e4923f52a03233 /ebib-keywords.el
parent4f66950d88d1220c9f4b294f3eb065ea9c2b02b3 (diff)
Enable lexical binding
Fix a few bugs that turned up as a result.
Diffstat (limited to 'ebib-keywords.el')
-rw-r--r--ebib-keywords.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/ebib-keywords.el b/ebib-keywords.el
index 3db3007..e932ba4 100644
--- a/ebib-keywords.el
+++ b/ebib-keywords.el
@@ -1,4 +1,4 @@
-;;; ebib-keywords.el --- Part of Ebib, a BibTeX database manager
+;;; ebib-keywords.el --- Part of Ebib, a BibTeX database manager -*- lexical-binding: t -*-
;; Copyright (c) 2003-2014 Joost Kremers
;; All rights reserved.
@@ -167,8 +167,7 @@ keywords and the third the keywords added in this session."
(defun ebib--keywords-save-new-keywords (db)
"Check if new keywords were added to DB and save them as required."
- (let ((lst (ebib--keywords-new-p db))
- (file (ebib--keywords-get-file db)))
+ (let ((lst (ebib--keywords-new-p db)))
(when (and (cl-third lst) ; if there are new keywords
(or (eq ebib-keywords-file-save-on-exit 'always)
(and (eq ebib-keywords-file-save-on-exit 'ask)