aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2000-06-14 12:47:27 +0000
committerKenichi Handa2000-06-14 12:47:27 +0000
commitcb33a0ce4c0fd33bdbcb37a32e11bb0d19513597 (patch)
tree1a071ebaa35e87f6bc45f06414c9efc0354ceff2
parent02891cc387c837044ed2b13d86adce579fb9d624 (diff)
downloademacs-cb33a0ce4c0fd33bdbcb37a32e11bb0d19513597.tar.gz
emacs-cb33a0ce4c0fd33bdbcb37a32e11bb0d19513597.zip
(tar-extract): For goto-char, use (point-min), not
0. Give correct argument to set-auto-coding-function. (tar-expunge): For goto-char, use (point-min), not 0. (tar-clear-modification-flags): For goto-char, use (point-min), not 1. (tar-subfile-save-buffer): Likewize.
-rw-r--r--lisp/tar-mode.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 8fade4c6768..5c5bdae4170 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -705,7 +705,7 @@ appear on disk when you save the tar-file's buffer."
705 (insert-buffer-substring tar-buffer start end) 705 (insert-buffer-substring tar-buffer start end)
706 (set-buffer-multibyte t)) 706 (set-buffer-multibyte t))
707 (insert-buffer-substring tar-buffer start end)) 707 (insert-buffer-substring tar-buffer start end))
708 (goto-char 0) 708 (goto-char (point-min))
709 (setq buffer-file-name 709 (setq buffer-file-name
710 ;; `:' is not allowed on Windows 710 ;; `:' is not allowed on Windows
711 (expand-file-name (concat tarname "!" name))) 711 (expand-file-name (concat tarname "!" name)))
@@ -717,7 +717,7 @@ appear on disk when you save the tar-file's buffer."
717 (and set-auto-coding-function 717 (and set-auto-coding-function
718 (save-excursion 718 (save-excursion
719 (funcall set-auto-coding-function 719 (funcall set-auto-coding-function
720 name (point-max))))) 720 name (- (point-max) (point))))))
721 (multibyte enable-multibyte-characters) 721 (multibyte enable-multibyte-characters)
722 (detected (detect-coding-region 722 (detected (detect-coding-region
723 1 (min 16384 (point-max)) t))) 723 1 (min 16384 (point-max)) t)))
@@ -920,7 +920,7 @@ for this to be permanent."
920 (multibyte enable-multibyte-characters)) 920 (multibyte enable-multibyte-characters))
921 (set-buffer-multibyte nil) 921 (set-buffer-multibyte nil)
922 (save-excursion 922 (save-excursion
923 (goto-char 0) 923 (goto-char (point-min))
924 (while (not (eobp)) 924 (while (not (eobp))
925 (if (looking-at "D") 925 (if (looking-at "D")
926 (progn (tar-expunge-internal) 926 (progn (tar-expunge-internal)
@@ -939,7 +939,7 @@ for this to be permanent."
939 "Remove the stars at the beginning of each line." 939 "Remove the stars at the beginning of each line."
940 (interactive) 940 (interactive)
941 (save-excursion 941 (save-excursion
942 (goto-char 1) 942 (goto-char (point-min))
943 (while (< (position-bytes (point)) tar-header-offset) 943 (while (< (position-bytes (point)) tar-header-offset)
944 (if (not (eq (following-char) ?\ )) 944 (if (not (eq (following-char) ?\ ))
945 (progn (delete-char 1) (insert " "))) 945 (progn (delete-char 1) (insert " ")))
@@ -1167,7 +1167,7 @@ to make your changes permanent."
1167 ;; alter the descriptor-line... 1167 ;; alter the descriptor-line...
1168 ;; 1168 ;;
1169 (let ((position (- (length tar-parse-info) (length head)))) 1169 (let ((position (- (length tar-parse-info) (length head))))
1170 (goto-char 1) 1170 (goto-char (point-min))
1171 (next-line position) 1171 (next-line position)
1172 (beginning-of-line) 1172 (beginning-of-line)
1173 (let ((p (point)) 1173 (let ((p (point))