aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2003-01-14 22:32:21 +0000
committerKim F. Storm2003-01-14 22:32:21 +0000
commit9dacec4c446210bec3a172ffc0f0abbbf0eae274 (patch)
treea366127299c47005809952a711838326a37c3528
parent38fdf6aa0d801cf7aa1d595aa170c6ea09328bd0 (diff)
downloademacs-9dacec4c446210bec3a172ffc0f0abbbf0eae274.tar.gz
emacs-9dacec4c446210bec3a172ffc0f0abbbf0eae274.zip
(archive-arc-rename-entry): Fix error message.
(archive-lzh-summarize): Replace local var `path' with `dir'. (archive-unique-fname) [!MSDOS]: Avoid byte-compiler warning.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/arc-mode.el12
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 691369ca587..9b86d8f49cf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -4,6 +4,10 @@
4 (ido-copy-current-file-name, ido-wide-find-dirs-or-files): 4 (ido-copy-current-file-name, ido-wide-find-dirs-or-files):
5 Don't use `path' as name of local variables holding a file name. 5 Don't use `path' as name of local variables holding a file name.
6 6
7 * arc-mode.el (archive-arc-rename-entry): Fix error message.
8 (archive-lzh-summarize): Rename local var `path' to `dir'.
9 (archive-unique-fname) [!MSDOS]: Avoid byte-compiler warning.
10
72003-01-14 John Paul Wallington <jpw@shootybangbang.com> 112003-01-14 John Paul Wallington <jpw@shootybangbang.com>
8 12
9 * apropos.el (apropos): Restore autoload cookie. Fix typo in 13 * apropos.el (apropos): Restore autoload cookie. Fix typo in
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index 643ea6d5d39..95b47915cd7 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -789,8 +789,8 @@ using `make-temp-file', and the generated name is returned."
789 (if (or alien (file-exists-p fullname)) 789 (if (or alien (file-exists-p fullname))
790 (make-temp-file 790 (make-temp-file
791 (expand-file-name 791 (expand-file-name
792 (if (and (fboundp 'msdos-long-file-names) 792 (if (if (fboundp 'msdos-long-file-names)
793 (not (msdos-long-file-names))) 793 (not (msdos-long-file-names)))
794 "am" 794 "am"
795 "arc-mode.") 795 "arc-mode.")
796 dir)) 796 dir))
@@ -1386,7 +1386,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1386 1386
1387(defun archive-arc-rename-entry (archive newname descr) 1387(defun archive-arc-rename-entry (archive newname descr)
1388 (if (string-match "[:\\\\/]" newname) 1388 (if (string-match "[:\\\\/]" newname)
1389 (error "File names in arc files may not contain a path")) 1389 (error "File names in arc files must not contain a directory component"))
1390 (if (> (length newname) 12) 1390 (if (> (length newname) 12)
1391 (error "File names in arc files are limited to 12 characters")) 1391 (error "File names in arc files are limited to 12 characters"))
1392 (let ((name (concat newname (substring "\0\0\0\0\0\0\0\0\0\0\0\0\0" 1392 (let ((name (concat newname (substring "\0\0\0\0\0\0\0\0\0\0\0\0\0"
@@ -1426,7 +1426,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1426 (width (string-width ifnname)) 1426 (width (string-width ifnname))
1427 (p2 (+ p 22 fnlen)) 1427 (p2 (+ p 22 fnlen))
1428 (creator (if (>= (- hsize fnlen) 24) (char-after (+ p2 2)) 0)) 1428 (creator (if (>= (- hsize fnlen) 24) (char-after (+ p2 2)) 0))
1429 mode modestr uid gid text path prname 1429 mode modestr uid gid text dir prname
1430 ) 1430 )
1431 (if (= hdrlvl 0) 1431 (if (= hdrlvl 0)
1432 (setq mode (if (= creator ?U) (archive-l-e (+ p2 8) 2) ?\666) 1432 (setq mode (if (= creator ?U) (archive-l-e (+ p2 8) 2) ?\666)
@@ -1440,7 +1440,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1440 (cond 1440 (cond
1441 ((= etype 2) (let ((i (+ p3 3))) 1441 ((= etype 2) (let ((i (+ p3 3)))
1442 (while (< i (+ p3 hsize)) 1442 (while (< i (+ p3 hsize))
1443 (setq path (concat path 1443 (setq dir (concat dir
1444 (if (= (char-after i) 1444 (if (= (char-after i)
1445 255) 1445 255)
1446 "/" 1446 "/"
@@ -1454,7 +1454,7 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
1454 (setq p3 (+ p3 hsize)) 1454 (setq p3 (+ p3 hsize))
1455 (setq hsize (archive-l-e p3 2)) 1455 (setq hsize (archive-l-e p3 2))
1456 (setq etype (char-after (+ p3 2))))))) 1456 (setq etype (char-after (+ p3 2)))))))
1457 (setq prname (if path (concat path ifnname) ifnname)) 1457 (setq prname (if dir (concat dir ifnname) ifnname))
1458 (setq modestr (if mode (archive-int-to-mode mode) "??????????")) 1458 (setq modestr (if mode (archive-int-to-mode mode) "??????????"))
1459 (setq text (if archive-alternate-display 1459 (setq text (if archive-alternate-display
1460 (format " %8d %5S %5S %s" 1460 (format " %8d %5S %5S %s"