[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
comment.el 2.0
From: |
Andreas Röhler |
Subject: |
comment.el 2.0 |
Date: |
Tue, 22 Apr 2008 14:02:29 +0200 |
User-agent: |
KMail/1.9.5 |
Hi all,
set out to fix a bug occuring in all Emacsen, reported at
http://tracker.xemacs.org/XEmacs/its/issue232
it ended up with an alternative comment.el.
Call `comment-c-test-lor' to see how it proceeds.
The bug of `indent-new-comment-line' should be gone
with the following key:
(global-set-key [(meta j)] 'comment-indent-new-line-lor)
With `c-toggle-comment-style' both C comment-styles
are available.
A call to `comment-dwim-lor' or `comment-uncomment-lor'
from inside a comment which spans over several lines
should uncomment.
With universal arg, line or region is copied and
inserted over commented part, thus
preserving old state.
Comment.el should not disturb newcomment.el; it's
suffix `-lor' means `line-or-region', designing a
new feature: If no active region exists, all
commands operate from current line.
Other main diffs to newcomment.el are:
Styles will not be chosen by customization, but
called with respective functions.
Checks for a comment-char found inside a string no
longer relies on fontifying.
The following kinds of commands should be available:
;; comment-uncomment
;; /\
;; (copy/do-not-copy) / \
;; / \
;; comment uncomment
;; /\ /\
;; / \ / \
;; / \ / \
;; plain indent all not-all
;; /\ /\
;; / \ / \
;; / \ / \
;; span-line single span-line single
;; /\ /\ /\ /\
;; / \ / \ / \ / \
;; / \ / \ / \ / \
;;
;; ------------ boxed not-boxed ----------------
Caveat: Uncomment... detects only selected
comment-style, i.e. "/* */" or "//" in C. When
uncommenting, make sure the appropriate style is
switched on.
So far
Andreas Röhler
comment.el.gz
Description: GNU Zip compressed data
comment-test.el.gz
Description: GNU Zip compressed data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- comment.el 2.0,
Andreas Röhler <=