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 #80 received at 44554 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
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 14:07:46 +0000
Stefan Kangas <stefankangas <at> gmail.com> writes:

> 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 ...)))

Agree, that's one of the reasons why I agree would be nice to have ;)

As typically we do not commit commented code is no big deal as we
probably (at least I) revert the unnecessary diff hunks, but yeah would
be an improvement.  Also uncommenting would put the code in the initial
state instead of leaving unnecessary newlines.

  Andrea




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.