GNU bug report logs - #44554
27.1; Feature request: SRFI-62 style comments for Emacs Lisp.

Previous Next

Package: emacs;

Reported by: Vladimir Nikishkin <lockywolf <at> gmail.com>

Date: Tue, 10 Nov 2020 14:05:01 UTC

Severity: wishlist

Merged with 57966

Found in versions 27.1, 28.1

Full log


View this message in rfc822 format

From: Eduardo Ochs <eduardoochs <at> gmail.com>
To: Jean Louis <bugs <at> gnu.support>
Cc: 44554 <at> debbugs.gnu.org, Vladimir Nikishkin <lockywolf <at> gmail.com>, Lars Ingebrigtsen <larsi <at> gnus.org>, Richard Stallman <rms <at> gnu.org>
Subject: bug#44554: 27.1; Feature request: SRFI-62 style comments for Emacs Lisp.
Date: Thu, 12 Nov 2020 20:55:51 -0300
I use this a lot in my elip files, but with a space between the
initial apostrophe and the open perenthesis, like this:

;; A test:
' (let ((ee-youtubedl-dirs '("DIR1" "DIR2")))
    (find-youtubedl-links))

Without the space after the apostrophe a C-x C-e after the sexp would
just return the (let ...) instead of executing it. I like this trick
because it works anywhere and beginners understand it in seconds.

  Cheers,
    Eduardo Ochs
    http://angg.twu.net/#eev
    http://angg.twu.net/emacsconf2019.html


On Wed, 11 Nov 2020 at 10:59, Jean Louis <bugs <at> gnu.support> wrote:
>
> * Vladimir Nikishkin <lockywolf <at> gmail.com> [2020-11-11 11:19]:
> > Just to clarify,
> >
> > I am not asking that exactly the syntax of srfi-62 as it is be added.
> > (Although Emacs Lisp already uses #'symbol as a reader-syntax switch,
> > so I suspect that it is possible)
> > I am asking for _some_ syntax to comment out valid sexps, whichever
> > fits Emacs Lisp most.
>
> Would this work?
>
> '(
>
> )
>
> Or there could be some macro to comment out anything:
>
> (do-not-process
>
> Put anything you wish here.
>
> )




This bug report was last modified 2 years and 268 days ago.

Previous Next


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