# HG changeset patch # User Richard M. Stallman # Date 797364283 0 # Node ID 1234d00b8492f07a9e1e2e499c118422a72cbf1c # Parent 474b17d364dbc9cc8a2b2d705e56aa0bc40996f1 (tar-clear-modification-flags): Fix several bugs. diff -r 474b17d364db -r 1234d00b8492 lisp/tar-mode.el --- 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 ;; 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))))