GNU bug report logs - #5366
(un)comment-line macros

Previous Next

Package: emacs;

Reported by: Mads Jensen <mje <at> inducks.org>

Date: Tue, 12 Jan 2010 20:38:01 UTC

Severity: wishlist

Tags: wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5366 in the body.
You can then email your comments to 5366 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5366; Package emacs. (Tue, 12 Jan 2010 20:38:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mads Jensen <mje <at> inducks.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 12 Jan 2010 20:38:01 GMT) Full text and rfc822 format available.

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

From: Mads Jensen <mje <at> inducks.org>
To: bug-gnu-emacs <at> gnu.org
Subject: (un)comment-line macros
Date: Tue, 12 Jan 2010 20:39:39 +0100
[Message part 1 (text/plain, inline)]
Hi,

I wrote the following two very simple macros. Nevertheless, I find them
very useless, and would be pleased if you could include them in a future
version of emacs.

(defun comment-line ()
  "comments the line"
  (interactive)
  (let ((start (point-at-bol))
	(end (point-at-eol)))
    (save-excursion
      (indent-region start end)
      (comment-region start end)
      (if (not (string= major-mode "text-mode"))
          (indent-for-tab-command)))))

(defun uncomment-line ()
  "uncomments the current line"
  (interactive)
  (let ((start (point-at-bol))
        (end (point-at-eol)))
    (save-excursion
      (uncomment-region start end)
      (if (not (string= major-mode "text-mode"))
          (indent-region start end)))))

I bound them to "C-c l" and "C-c u" respectively.

Yours sincerely,
Mads Jensen

[signature.asc (application/pgp-signature, attachment)]

Severity set to 'wishlist' from 'normal' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 13 Jan 2010 17:40:03 GMT) Full text and rfc822 format available.

Added tag(s) wontfix. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 06 Oct 2011 07:51:01 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 06 Oct 2011 07:51:02 GMT) Full text and rfc822 format available.

Notification sent to Mads Jensen <mje <at> inducks.org>:
bug acknowledged by developer. (Thu, 06 Oct 2011 07:51:02 GMT) Full text and rfc822 format available.

Message #14 received at 5366-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 5366-done <at> debbugs.gnu.org
Subject: Re: bug#5366: (un)comment-line macros
Date: Thu, 06 Oct 2011 03:50:22 -0400
tags 5366 wontfix
stop

Thanks for sending them, but I don't think Emacs needs these commands.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 03 Nov 2011 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 287 days ago.

Previous Next


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