mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
ebnf2ps: eliminate double nreverse
* lisp/progmodes/ebnf-otz.el (ebnf-split-suffix): Simplify code that relied on a rather inobvious in-place reversal of a list twice for correctness, silencing a byte-compiler warning.
This commit is contained in:
parent
ab8153b3bb
commit
119a7dd220
1 changed files with 1 additions and 2 deletions
|
|
@ -566,7 +566,7 @@
|
|||
;; determine suffix length
|
||||
(while (and (> isuf 0) (setq tail (cdr tail)))
|
||||
(let* ((cur head)
|
||||
(tlis (nreverse
|
||||
(tlis (reverse
|
||||
(if (eq (ebnf-node-kind (car tail)) 'ebnf-generate-sequence)
|
||||
(ebnf-node-list (car tail))
|
||||
(list (car tail)))))
|
||||
|
|
@ -577,7 +577,6 @@
|
|||
(setq cur (cdr cur)
|
||||
this (cdr this)
|
||||
i (1+ i)))
|
||||
(nreverse tlis)
|
||||
(setq isuf (min isuf i))))
|
||||
(setq head (nreverse head))
|
||||
(if (or (zerop isuf) (> isuf len))
|
||||
|
|
|
|||
Loading…
Reference in a new issue