diff options
author | Vasilij Schneidermann <mail@vasilij.de> | 2017-09-05 20:58:08 +0200 |
---|---|---|
committer | Vasilij Schneidermann <mail@vasilij.de> | 2017-09-05 20:58:08 +0200 |
commit | 807616f53f2c9fe68bed826c720997ac6ca3b4b1 (patch) | |
tree | 375735b7bcea81a290a24207365410ea43d9e59a /nov.el | |
parent | 27b9aec689f0d1ad2a69098aeebd2057f8d5dc96 (diff) |
Move variables
Diffstat (limited to 'nov.el')
-rw-r--r-- | nov.el | 58 |
1 files changed, 29 insertions, 29 deletions
@@ -58,6 +58,35 @@ :type '(file :must-match t) :group 'nov) +(defvar nov-temp-dir nil + "Temporary directory containing the buffer's EPUB files.") +(make-variable-buffer-local 'nov-temp-dir) + +(defvar nov-content-file nil + "Path of the EPUB buffer's .opf file.") +(make-variable-buffer-local 'nov-content-file) + +(defvar nov-epub-version nil + "Version string of the EPUB buffer.") +(make-variable-buffer-local 'nov-epub-version) + +(defvar nov-metadata nil + "Metadata of the EPUB buffer.") +(make-variable-buffer-local 'nov-metadata) + +(defvar 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 + "Index of the currently rendered document in the EPUB buffer.") +(make-variable-buffer-local 'nov-documents-index) + +(defvar 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." (concat (file-name-as-directory directory) file)) @@ -270,35 +299,6 @@ Each alist item consists of the identifier and full path." ;;; UI -(defvar nov-temp-dir nil - "Temporary directory containing the buffer's EPUB files.") -(make-variable-buffer-local 'nov-temp-dir) - -(defvar nov-content-file nil - "Path of the EPUB buffer's .opf file.") -(make-variable-buffer-local 'nov-content-file) - -(defvar nov-epub-version nil - "Version string of the EPUB buffer.") -(make-variable-buffer-local 'nov-epub-version) - -(defvar nov-metadata nil - "Metadata of the EPUB buffer.") -(make-variable-buffer-local 'nov-metadata) - -(defvar 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 - "Index of the currently rendered document in the EPUB buffer.") -(make-variable-buffer-local 'nov-documents-index) - -(defvar nov-toc-id nil - "TOC identifier of the EPUB buffer.") -(make-variable-buffer-local 'nov-toc-id) - (defvar nov-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "g") 'nov-render-document) |