mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Prefer oddp/evenp to open-coding in a few more cases
* lisp/arc-mode.el (archive-zip-summarize): * lisp/cus-edit.el (setopt): * lisp/isearch.el (isearch-backslash): * lisp/simple.el (blink-paren-post-self-insert-function): * lisp/subr.el (setq-local, buffer-local-set-state): * lisp/term.el (term-within-quotes): * test/src/data-tests.el (test-bool-vector-bv-from-hex-string): Use oddp/evenp instead of open-coding them. Reported by Pip Cet <pipcet@protonmail.com>.
This commit is contained in:
parent
abd861ca26
commit
515542b653
7 changed files with 12 additions and 13 deletions
|
|
@ -2893,7 +2893,7 @@ The command accepts Unicode names like \"smiling face\" or
|
|||
|
||||
(defun isearch-backslash (str)
|
||||
"Return t if STR ends in an odd number of backslashes."
|
||||
(= (mod (- (length str) (string-match "\\\\*\\'" str)) 2) 1))
|
||||
(oddp (- (length str) (string-match "\\\\*\\'" str))))
|
||||
|
||||
(defun isearch-fallback (want-backslash &optional allow-invalid to-barrier)
|
||||
"Return point to previous successful match to allow regexp liberalization.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue