changeset 11301:1234d00b8492

(tar-clear-modification-flags): Fix several bugs.
author Richard M. Stallman <rms@gnu.org>
date Sat, 08 Apr 1995 18:04:43 +0000
parents 474b17d364db
children a9b5c1d727b7
files lisp/tar-mode.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/tar-mode.el	Sat Apr 08 18:03:38 1995 +0000
+++ b/lisp/tar-mode.el	Sat Apr 08 18:04:43 1995 +0000
@@ -4,7 +4,6 @@
 
 ;; Author: Jamie Zawinski <jwz@lucid.com>
 ;; Created: 04 Apr 1990
-;; Version: 1.21bis (some cleanup by ESR)
 ;; Keywords: unix
 
 ;;; This file is part of GNU Emacs.
@@ -889,10 +888,11 @@
 
 (defun tar-clear-modification-flags ()
   "Remove the stars at the beginning of each line."
+  (interactive)
   (save-excursion
-    (goto-char 0)
+    (goto-char 1)
     (while (< (point) tar-header-offset)
-      (if (looking-at "*")
+      (if (not (eq (following-char) ?\ ))
 	  (progn (delete-char 1) (insert " ")))
       (forward-line 1))))