bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Kangas
Subject: 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@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 ...)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]