aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2017-09-07 18:07:47 +0200
committerGitHub <noreply@github.com>2017-09-07 18:07:47 +0200
commit464ecb991845b359de4d9e30bbbfd3547e71588c (patch)
tree01af379fb351870ff6e5bc1cac4b0e5fa5eb0780
parent7c859bf5b92d24c2f3bea3c7b8c147419ab51be4 (diff)
parentbcebcda3c48d7bdba2d2e458cee7da4b6d61a7a0 (diff)
Merge pull request #10 from xiongtx/defvar-local
Use `defvar-local`
-rw-r--r--nov.el21
1 files changed, 7 insertions, 14 deletions
diff --git a/nov.el b/nov.el
index 06ab55c..fabe247 100644
--- a/nov.el
+++ b/nov.el
@@ -58,34 +58,27 @@
:type '(file :must-match t)
:group 'nov)
-(defvar nov-temp-dir nil
+(defvar-local nov-temp-dir nil
"Temporary directory containing the buffer's EPUB files.")
-(make-variable-buffer-local 'nov-temp-dir)
-(defvar nov-content-file nil
+(defvar-local nov-content-file nil
"Path of the EPUB buffer's .opf file.")
-(make-variable-buffer-local 'nov-content-file)
-(defvar nov-epub-version nil
+(defvar-local nov-epub-version nil
"Version string of the EPUB buffer.")
-(make-variable-buffer-local 'nov-epub-version)
-(defvar nov-metadata nil
+(defvar-local nov-metadata nil
"Metadata of the EPUB buffer.")
-(make-variable-buffer-local 'nov-metadata)
-(defvar nov-documents nil
+(defvar-local nov-documents nil
"Alist for the EPUB buffer's documents.
Each alist item consists of the identifier and full path.")
-(make-variable-buffer-local 'nov-documents)
-(defvar nov-documents-index 0
+(defvar-local nov-documents-index 0
"Index of the currently rendered document in the EPUB buffer.")
-(make-variable-buffer-local 'nov-documents-index)
-(defvar nov-toc-id nil
+(defvar-local nov-toc-id nil
"TOC identifier of the EPUB buffer.")
-(make-variable-buffer-local 'nov-toc-id)
(defun nov-make-path (directory file)
"Create a path from DIRECTORY and FILE."