@@ -192,7 +192,7 @@ followed by an OFFSET (if present use its value otherwise use
192192 (if (and (eq haskell-literate 'bird )
193193 (eq (following-char ) ?\> ))
194194 (forward-char 1 ))
195- (looking-at-p " [ \t ]*$" )))
195+ (looking-at " [ \t ]*$" )))
196196
197197(defun haskell-indent-back-to-indentation ()
198198 " `back-to-indentation' function but dealing with Bird-style literate scripts."
@@ -311,7 +311,7 @@ It deals with both Bird style and non Bird-style scripts."
311311 (delete-region (point ) (line-beginning-position 2 )))
312312 (goto-char beg) ; Remove end.
313313 (beginning-of-line )
314- (if (looking-at-p " \\\\ begin{code}" )
314+ (if (looking-at " \\\\ begin{code}" )
315315 (kill-line 1 )))
316316 (save-excursion ; Add the literate indication.
317317 (goto-char end)
@@ -396,10 +396,10 @@ Returns the location of the start of the comment, nil otherwise."
396396 (cond
397397 ((haskell-indent-empty-line-p) 'empty )
398398 ((haskell-indent-in-comment (point-min ) (point )) 'comment )
399- ((looking-at-p " \\ (\\ ([[:alpha:]]\\ (\\ sw\\ |'\\ )*\\ )\\ |_\\ )[ \t\n ]*" )
399+ ((looking-at " \\ (\\ ([[:alpha:]]\\ (\\ sw\\ |'\\ )*\\ )\\ |_\\ )[ \t\n ]*" )
400400 'ident )
401- ((looking-at-p " \\ (|[^|]\\ )[ \t\n ]*" ) 'guard )
402- ((looking-at-p " \\ (=[^>=]\\ |::\\ |∷\\ |→\\ |←\\ |->\\ |<-\\ )[ \t\n ]*" ) 'rhs )
401+ ((looking-at " \\ (|[^|]\\ )[ \t\n ]*" ) 'guard )
402+ ((looking-at " \\ (=[^>=]\\ |::\\ |∷\\ |→\\ |←\\ |->\\ |<-\\ )[ \t\n ]*" ) 'rhs )
403403 (t 'other )))
404404
405405(defvar haskell-indent-current-line-first-ident " "
@@ -488,7 +488,7 @@ Returns the location of the start of the comment, nil otherwise."
488488 " Check if there is no otherwise at GUARD."
489489 (save-excursion
490490 (goto-char guard)
491- (not (looking-at-p " |[ \t ]*otherwise\\ >" ))))
491+ (not (looking-at " |[ \t ]*otherwise\\ >" ))))
492492
493493
494494(defun haskell-indent-guard (start end end-visible indent-info )
@@ -937,12 +937,12 @@ and find indentation info for each part."
937937 " Return non-nil if point is in front of a `let' that has no `in' .
938938START is the position of the presumed `in' ."
939939 ; ; We're looking at either `in' or `let' .
940- (when (looking-at-p " let" )
940+ (when (looking-at " let" )
941941 (ignore-errors
942942 (save-excursion
943943 (forward-word 1 )
944944 (forward-comment (point-max ))
945- (if (looking-at-p " {" )
945+ (if (looking-at " {" )
946946 (progn
947947 (forward-sexp 1 )
948948 (forward-comment (point-max ))
@@ -1001,7 +1001,7 @@ OPEN is the start position of the comment in which point is."
10011001 indent-info)))
10021002
10031003 ; ; We really are inside a comment.
1004- (if (looking-at-p " -}" )
1004+ (if (looking-at " -}" )
10051005 (progn
10061006 (forward-char 2 )
10071007 (forward-comment -1 )
@@ -1131,7 +1131,7 @@ is at the end of an otherwise-non-empty line."
11311131
11321132(defun haskell-indent-inside-paren (open )
11331133 ; ; there is an open structure to complete
1134- (if (looking-at-p " \\ s)\\ |[;,]" )
1134+ (if (looking-at " \\ s)\\ |[;,]" )
11351135 ; ; A close-paren or a , or ; can only correspond syntactically to
11361136 ; ; the open-paren at `open' . So there is no ambiguity.
11371137 (progn
@@ -1150,7 +1150,7 @@ is at the end of an otherwise-non-empty line."
11501150 (let* ((end (point ))
11511151 (basic-indent-info
11521152 ; ; Anything else than a ) is subject to layout.
1153- (if (looking-at-p " \\ s.\\ |\\ $ " )
1153+ (if (looking-at " \\ s.\\ |\\ $ " )
11541154 (haskell-indent-point-to-col open) ; align a punct with (
11551155 (let ((follow (save-excursion
11561156 (goto-char (1+ open))
@@ -1216,14 +1216,14 @@ START if non-nil is a presumed start pos of the current definition."
12161216 ; ; in string?
12171217 ((setq open (haskell-indent-in-string start (point )))
12181218 (list (list (+ (haskell-indent-point-to-col open)
1219- (if (looking-at-p " \\\\ " ) 0 1 )))))
1219+ (if (looking-at " \\\\ " ) 0 1 )))))
12201220
12211221 ; ; in comment ?
12221222 ((setq open (haskell-indent-in-comment start (point )))
12231223 (haskell-indent-comment open start))
12241224
12251225 ; ; Closing the declaration part of a `let' or the test exp part of a case.
1226- ((looking-at-p " \\ (?:in\\ |of\\ |then\\ |else\\ )\\ >" )
1226+ ((looking-at " \\ (?:in\\ |of\\ |then\\ |else\\ )\\ >" )
12271227 (haskell-indent-closing-keyword start))
12281228
12291229 ; ; Right after a special keyword.
@@ -1378,7 +1378,7 @@ TYPE is either 'guard or 'rhs."
13781378 (if (<= (haskell-indent-current-indentation) defcol)
13791379 (progn
13801380 (move-to-column defcol)
1381- (if (and (looking-at-p defname) ; start of equation
1381+ (if (and (looking-at defname) ; start of equation
13821382 (not (haskell-indent-open-structure start-block (point ))))
13831383 (push (cons (point ) 'eqn ) eqns-start)
13841384 ; ; found a less indented point not starting an equation
0 commit comments