Don't change indentation rules for >= and =

* lisp/emacs-lisp/rx.el: `>=` and `=` are much more likely functions
than RX constructs and the indentation machinery currently has
no way to tell them apart.
Suggested by Michael Herdeegen.
This commit is contained in:
Mattias Engdegård 2022-06-30 14:31:47 +02:00
parent 6f773186e3
commit 00dbc5937d

View file

@ -1112,10 +1112,12 @@ can expand to any number of values."
;; Declare Lisp indentation rules for constructs that take 1 or 2 ;; Declare Lisp indentation rules for constructs that take 1 or 2
;; parameters before a body of RX forms. ;; parameters before a body of RX forms.
(dolist (sym '( group-n submatch-n = >=)) ;; (`>=' and `=' are omitted because they are more likely to be used
(put sym 'lisp-indent-function 1)) ;; as Lisp functions than RX constructs.)
(dolist (sym '( ** repeat)) (put 'group-n 'lisp-indent-function 1)
(put sym 'lisp-indent-function 2)) (put 'submatch-n 'lisp-indent-function 1)
(put '** 'lisp-indent-function 2)
(put 'repeat 'lisp-indent-function 2)
(defun rx--translate (item) (defun rx--translate (item)