summaryrefslogtreecommitdiff
path: root/lisp/tar-mode.el
diff options
context:
space:
mode:
authorMark Oteiza <mvoteiza@udel.edu>2017-07-06 23:53:19 -0400
committerMark Oteiza <mvoteiza@udel.edu>2017-07-06 23:59:58 -0400
commit51275358e91d654e0cb49b749bf83d2fa19476c7 (patch)
tree970d07fdd0c9c7c2818781695237ef986c630c1d /lisp/tar-mode.el
parent1eefada3f277e533cf74bc77ecd36f42c07a96cb (diff)
downloademacs-51275358e91d654e0cb49b749bf83d2fa19476c7.tar.gz
Convert more uses of looking-at to following-char
More followup to Karl Fogel's commit a84da83c1. * lisp/dired-aux.el (dired-add-entry, dired-subdir-hidden-p): * lisp/dired-x.el (dired-mark-unmarked-files, dired-mark-sexp): * lisp/help-fns.el (doc-file-to-man, doc-file-to-info): * lisp/proced.el (proced-toggle-marks): * lisp/progmodes/f90.el (f90-indent-line): * lisp/ses.el (ses-load): * lisp/tar-mode.el (tar-expunge): Replace instances of looking-at with char comparisons using following-char.
Diffstat (limited to 'lisp/tar-mode.el')
-rw-r--r--lisp/tar-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index f25b1a45ba1..1d453d2980e 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -1118,7 +1118,7 @@ for this to be permanent."
(save-excursion
(goto-char (point-min))
(while (not (eobp))
- (if (looking-at "D")
+ (if (= (following-char) ?D)
(progn (tar-expunge-internal)
(setq n (1+ n)))
(forward-line 1)))