diff options
| author | Richard M. Stallman | 1995-04-08 18:04:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-04-08 18:04:43 +0000 |
| commit | a7e5e8cbc727ce0955db64c75c033188b0a7fe69 (patch) | |
| tree | 7e06dd75d0381fcfb68e6e75212aa05d48753b37 | |
| parent | c412c8081c8365f77ffcc50862bf4a79c28386c8 (diff) | |
| download | emacs-a7e5e8cbc727ce0955db64c75c033188b0a7fe69.tar.gz emacs-a7e5e8cbc727ce0955db64c75c033188b0a7fe69.zip | |
(tar-clear-modification-flags): Fix several bugs.
| -rw-r--r-- | lisp/tar-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el index 722a86fda7d..aa55d066958 100644 --- a/lisp/tar-mode.el +++ b/lisp/tar-mode.el | |||
| @@ -4,7 +4,6 @@ | |||
| 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.21bis (some cleanup by ESR) | ||
| 8 | ;; Keywords: unix | 7 | ;; Keywords: unix |
| 9 | 8 | ||
| 10 | ;;; This file is part of GNU Emacs. | 9 | ;;; This file is part of GNU Emacs. |
| @@ -889,10 +888,11 @@ for this to be permanent." | |||
| 889 | 888 | ||
| 890 | (defun tar-clear-modification-flags () | 889 | (defun tar-clear-modification-flags () |
| 891 | "Remove the stars at the beginning of each line." | 890 | "Remove the stars at the beginning of each line." |
| 891 | (interactive) | ||
| 892 | (save-excursion | 892 | (save-excursion |
| 893 | (goto-char 0) | 893 | (goto-char 1) |
| 894 | (while (< (point) tar-header-offset) | 894 | (while (< (point) tar-header-offset) |
| 895 | (if (looking-at "*") | 895 | (if (not (eq (following-char) ?\ )) |
| 896 | (progn (delete-char 1) (insert " "))) | 896 | (progn (delete-char 1) (insert " "))) |
| 897 | (forward-line 1)))) | 897 | (forward-line 1)))) |
| 898 | 898 | ||