[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: My uncomment-region broke
From: |
Eli Zaretskii |
Subject: |
Re: My uncomment-region broke |
Date: |
Tue, 02 Nov 2021 16:56:46 +0200 |
> From: Ken Goldman <kgoldman@us.ibm.com>
> Date: Tue, 2 Nov 2021 10:18:08 -0400
>
> (defun uncomment-region (b e)
> "Remove one level of comment around region."
> (interactive "r")
> (comment-region b e -1))
>
> I've been using this for years. I select a region with the
> mouse and this uncomments it. With new emacs, I get
>
> comment-region-default-1: Wrong number of arguments: (lambda (b e) "Remove
> one level of comment around region." (interactive "r") (comment-region b e
> -1)), 3
>
> I'm not an elisp programmer. Can someone supply a replacement?
You want
(comment-region b e '(4))
instead of the last line.
(Or just say "C-u M-x comment-region RET".)