emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/ws-butler c13632209c 05/14: looking-at -> looking-at-p


From: ELPA Syncer
Subject: [nongnu] elpa/ws-butler c13632209c 05/14: looking-at -> looking-at-p
Date: Thu, 7 Nov 2024 01:01:08 -0500 (EST)

branch: elpa/ws-butler
commit c13632209cfac69d5e8d83288ae221615774554c
Author: Henrik Lissner <henrik@lissner.net>
Commit: Maxim Cournoyer <maxim.cournoyer@gmail.com>

    looking-at -> looking-at-p
    
    The matchdata isn't being used anyway.
---
 ws-butler.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ws-butler.el b/ws-butler.el
index 3131aa58b9..89ff80554e 100644
--- a/ws-butler.el
+++ b/ws-butler.el
@@ -140,7 +140,7 @@ Also see `require-final-newline'."
      ;;
      ;; We refuse to remove final-newline regardless of the value of
      ;; `require-final-newline'
-     (when (looking-at "\n\\(\n\\|\\'\\)")
+     (when (looking-at-p "\n\\(?:\n\\|\\'\\)")
        (forward-char 1)))
    (when require-final-newline
      (unless (bolp)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]