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


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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: Mattias EngdegÄrd <mattiase <at> acm.org>,
 Lars Ingebrigtsen <larsi <at> gnus.org>, 44554 <at> debbugs.gnu.org,
 Vladimir Nikishkin <lockywolf <at> gmail.com>, Richard Stallman <rms <at> gnu.org>
Subject: Re: bug#44554: 27.1; Feature request: SRFI-62 style comments for
 Emacs Lisp.
Date: Fri, 13 Nov 2020 05:47:08 -0800
Andrea Corallo <akrl <at> sdf.org> writes:

> That said I believe `comment-dwim' solves already this problem to a good
> degree for me.
>
> given:
>
> (foo (bar))
>
> having as a region '(bar)' M-; produces
>
> (foo ;; (bar)
>      )

Indeed.

What's less fun is when you have to back the change out, or when you
want to incrementally comment out a nested sexp.  It works well, but
it's a wee bit fiddly.

For example, given:

(foo (bar ...
          (baz ...)))

With `comment-dwim', I might get something like:

(foo ;; (bar ...
     ;;      ;; (baz ...)
     ;;      )
     )

This would be more convenient:

(foo #;(bar ...
          #;(baz ...)))




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.