aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond1993-04-16 19:36:29 +0000
committerEric S. Raymond1993-04-16 19:36:29 +0000
commit0f8becaa423e64a3e3d18200724057a4d9dcdb81 (patch)
tree07777af5de223066124351fd6d1dfb06e47c7a9f
parenta4ef65847837bd4e64e42183f191339485fb9b7a (diff)
downloademacs-0f8becaa423e64a3e3d18200724057a4d9dcdb81.tar.gz
emacs-0f8becaa423e64a3e3d18200724057a4d9dcdb81.zip
Add defvars to pacify the byte compiler, at RMS's request.
-rw-r--r--lisp/tar-mode.el28
1 files changed, 16 insertions, 12 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index e7ad08c4404..f653188e3fb 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -4,7 +4,7 @@
4 4
5;; Author: Jamie Zawinski <jwz@lucid.com> 5;; Author: Jamie Zawinski <jwz@lucid.com>
6;; Created: 04 Apr 1990 6;; Created: 04 Apr 1990
7;; Version: 1.21 7;; Version: 1.21bis (some cleanup by ESR)
8;; Keywords: unix 8;; Keywords: unix
9 9
10;;; This file is part of GNU Emacs. 10;;; This file is part of GNU Emacs.
@@ -110,7 +110,11 @@ in a tar archive has been changed, but it is bad for the same reason that
110editing a file in the tar archive at all is bad - the changed version of 110editing a file in the tar archive at all is bad - the changed version of
111the file never exists on disk.") 111the file never exists on disk.")
112 112
113 113(defvar tar-parse-info nil)
114(defvar tar-header-offset nil)
115(defvar tar-superior-buffer nil)
116(defvar tar-superior-descriptor nil)
117(defvar tar-subfile-mode nil)
114 118
115;;; First, duplicate some Common Lisp functions; I used to just (require 'cl) 119;;; First, duplicate some Common Lisp functions; I used to just (require 'cl)
116;;; but "cl.el" was messing some people up (also it's really big). 120;;; but "cl.el" was messing some people up (also it's really big).
@@ -506,7 +510,7 @@ This mode redefines ^X^S to save the current buffer back into its
506associated tar-file buffer. You must save that buffer to actually 510associated tar-file buffer. You must save that buffer to actually
507save your changes to disk." 511save your changes to disk."
508 (interactive "P") 512 (interactive "P")
509 (or (and (boundp 'superior-tar-buffer) superior-tar-buffer) 513 (or (and (boundp 'tar-superior-buffer) tar-superior-buffer)
510 (error "This buffer is not an element of a tar file.")) 514 (error "This buffer is not an element of a tar file."))
511 (or (assq 'tar-subfile-mode minor-mode-alist) 515 (or (assq 'tar-subfile-mode minor-mode-alist)
512 (setq minor-mode-alist (append minor-mode-alist 516 (setq minor-mode-alist (append minor-mode-alist
@@ -606,10 +610,10 @@ directory listing."
606 (set-visited-file-name nil) ; nuke the name - not meaningful. 610 (set-visited-file-name nil) ; nuke the name - not meaningful.
607 (rename-buffer bufname) 611 (rename-buffer bufname)
608 612
609 (make-local-variable 'superior-tar-buffer) 613 (make-local-variable 'tar-superior-buffer)
610 (make-local-variable 'superior-tar-descriptor) 614 (make-local-variable 'tar-superior-descriptor)
611 (setq superior-tar-buffer tar-buffer) 615 (setq tar-superior-buffer tar-buffer)
612 (setq superior-tar-descriptor descriptor) 616 (setq tar-superior-descriptor descriptor)
613 (tar-subfile-mode 1) 617 (tar-subfile-mode 1)
614 618
615 (setq buffer-read-only read-only-p) 619 (setq buffer-read-only read-only-p)
@@ -930,15 +934,15 @@ for this to be permanent."
930This doesn't write anything to disk - you must save the parent tar-file buffer 934This doesn't write anything to disk - you must save the parent tar-file buffer
931to make your changes permanent." 935to make your changes permanent."
932 (interactive) 936 (interactive)
933 (if (not (and (boundp 'superior-tar-buffer) superior-tar-buffer)) 937 (if (not (and (boundp 'tar-superior-buffer) tar-superior-buffer))
934 (error "this buffer has no superior tar file buffer.")) 938 (error "this buffer has no superior tar file buffer."))
935 (if (not (and (boundp 'superior-tar-descriptor) superior-tar-descriptor)) 939 (if (not (and (boundp 'tar-superior-descriptor) tar-superior-descriptor))
936 (error "this buffer doesn't have an index into its superior tar file!")) 940 (error "this buffer doesn't have an index into its superior tar file!"))
937 (save-excursion 941 (save-excursion
938 (let ((subfile (current-buffer)) 942 (let ((subfile (current-buffer))
939 (subfile-size (buffer-size)) 943 (subfile-size (buffer-size))
940 (descriptor superior-tar-descriptor)) 944 (descriptor tar-superior-descriptor))
941 (set-buffer superior-tar-buffer) 945 (set-buffer tar-superior-buffer)
942 (let* ((tokens (tar-desc-tokens descriptor)) 946 (let* ((tokens (tar-desc-tokens descriptor))
943 (start (tar-desc-data-start descriptor)) 947 (start (tar-desc-data-start descriptor))
944 (name (tar-header-name tokens)) 948 (name (tar-header-name tokens))
@@ -1016,7 +1020,7 @@ to make your changes permanent."
1016 (set-buffer subfile) 1020 (set-buffer subfile)
1017 (set-buffer-modified-p nil) ; mark the tar subfile as unmodified 1021 (set-buffer-modified-p nil) ; mark the tar subfile as unmodified
1018 (message "saved into tar-buffer \"%s\" - remember to save that buffer!" 1022 (message "saved into tar-buffer \"%s\" - remember to save that buffer!"
1019 (buffer-name superior-tar-buffer)) 1023 (buffer-name tar-superior-buffer))
1020 ))) 1024 )))
1021 1025
1022 1026