[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Commenting out lines
From: |
Christoph Dalitz |
Subject: |
Re: Commenting out lines |
Date: |
Tue, 3 Aug 2004 16:53:56 +0200 |
On Tue, 3 Aug 2004 10:45:23 -0400 (EDT)
Przemek Klosowski <address@hidden> wrote:
>
> If there is I've missed it. I find it a real pain to have to put a
> "#" in front of each of a bunch of lines whenever I want to test an
> alternative method.
>
If you use Emacs, you can mark a region and then type "ESC-x comment-region".
For some strange reason Emacs does not have a function "uncomment-region",
thus I have defined one myself in my ~/.emacs file:
;; Emacs hat zwar comment-region, aber kein uncomment-region
(defun uncomment-region (beg end &optional arg)
(interactive "*r\np")
(comment-region beg end (- arg)))
Hope this helps,
Christoph
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Commenting out lines, Vic Norton, 2004/08/02
- Re: Commenting out lines, Geraint Paul Bevan, 2004/08/02
- Re: Commenting out lines, Przemek Klosowski, 2004/08/03
- Re: Commenting out lines,
Christoph Dalitz <=
- Re: Commenting out lines, Jonathan Stickel, 2004/08/03
- Re: Commenting out lines, Geraint Paul Bevan, 2004/08/03
- Re: Commenting out lines, Jonathan Stickel, 2004/08/03
- Re: Commenting out lines, Vic Norton, 2004/08/03
- Re: Commenting out lines, Christoph Dalitz, 2004/08/04
- Re: Commenting out lines, Christoph Dalitz, 2004/08/04
Re: Commenting out lines, John W. Eaton, 2004/08/03