|
1 |
| -;;; purescript-indent.el --- "semi-intelligent" indentation module for PureScript Mode |
| 1 | +;;; purescript-indent.el --- "semi-intelligent" indentation module for PureScript Mode -*- lexical-binding: t -*- |
2 | 2 |
|
3 | 3 | ;; Copyright 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
|
4 | 4 | ;; Copyright 1997-1998 Guy Lapalme
|
@@ -432,8 +432,9 @@ Returns the location of the start of the comment, nil otherwise."
|
432 | 432 | (purescript-indent-skip-blanks-and-newlines-forward end))))
|
433 | 433 |
|
434 | 434 | (defun purescript-indent-next-symbol-safe (end)
|
435 |
| - "Puts point to the next following symbol, or to end if there are no more symbols in the sexp." |
436 |
| - (condition-case errlist (purescript-indent-next-symbol end) |
| 435 | + "Puts point to the next following symbol, or to end if there are no more |
| 436 | +symbols in the sexp." |
| 437 | + (condition-case nil (purescript-indent-next-symbol end) |
437 | 438 | (error (goto-char end))))
|
438 | 439 |
|
439 | 440 | (defun purescript-indent-separate-valdef (start end)
|
@@ -1291,7 +1292,7 @@ We stay in the cycle as long as the TAB key is pressed."
|
1291 | 1292 | (if marker
|
1292 | 1293 | (goto-char (marker-position marker)))))))
|
1293 | 1294 |
|
1294 |
| -(defun purescript-indent-region (start end) |
| 1295 | +(defun purescript-indent-region (_start _end) |
1295 | 1296 | (error "Auto-reindentation of a region is not supported"))
|
1296 | 1297 |
|
1297 | 1298 | ;;; alignment functions
|
@@ -1320,7 +1321,7 @@ of the regions to move."
|
1320 | 1321 | (defun purescript-indent-align-def (p-arg type)
|
1321 | 1322 | "Align guards or rpurs within the current definition before point.
|
1322 | 1323 | If P-ARG is t align all defs up to the mark.
|
1323 |
| -TYPE is either 'guard or 'rpurs." |
| 1324 | +TYPE is either \\='guard or \\='rpurs." |
1324 | 1325 | (save-excursion
|
1325 | 1326 | (let (start-block end-block
|
1326 | 1327 | (maxcol (if (eq type 'rpurs) purescript-indent-rpurs-align-column 0))
|
@@ -1429,9 +1430,9 @@ TYPE is either 'guard or 'rpurs."
|
1429 | 1430 | (if regstack
|
1430 | 1431 | (purescript-indent-shift-columns maxcol regstack)))))))
|
1431 | 1432 |
|
1432 |
| -(defun purescript-indent-align-guards-and-rpurs (start end) |
| 1433 | +(defun purescript-indent-align-guards-and-rpurs (_start _end) |
1433 | 1434 | "Align the guards and rpurs of functions in the region, which must be active."
|
1434 |
| - ;; The `start' and `end' args are dummys right now: they're just there so |
| 1435 | + ;; The `_start' and `_end' args are dummys right now: they're just there so |
1435 | 1436 | ;; we can use the "r" interactive spec which properly signals an error.
|
1436 | 1437 | (interactive "*r")
|
1437 | 1438 | (purescript-indent-align-def t 'guard)
|
|
0 commit comments