GNU bug report logs - #76555
30.1; PEG's doc needs some correction

Previous Next

Package: emacs;

Reported by: "Yue Yi" <include_yy <at> qq.com>

Date: Tue, 25 Feb 2025 14:55:02 UTC

Severity: minor

Found in version 30.1

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 76555 <at> debbugs.gnu.org (full text, mbox):

From: "Yue Yi" <include_yy <at> qq.com>
To: "76555" <76555 <at> debbugs.gnu.org>
Subject: 30.1; PEG's doc needs some correction
Date: Wed, 26 Feb 2025 00:36:49 +0800
[Message part 1 (text/plain, inline)]
BTW, could indent of define-peg-rule be changed from 1 to 2: ------------------------------------------------------------ (defmacro define-peg-rule (name args &amp;rest pexs)   "Define PEG rule NAME as equivalent to PEXS. The PEG expressions in PEXS are implicitly combined with the sequencing `and' operator of PEG grammars."   (declare (indent 1))                   ^^^ to 2 ------------------------------------------------------------ Currently the indentation of define-peg-rule looks strange: ------------------------------------------------------------ (define-peg-rule t--comment () 		 hello 		 world 		 ...) ------------------------------------------------------------ By using (setf (get 'define-peg-rule 'lisp-indent-function) 2), It looks better: ------------------------------------------------------------ (define-peg-rule t--comment ()   hello   world   ...) ------------------------------------------------------------
[Message part 2 (text/html, inline)]

This bug report was last modified 138 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.