Stephen J. Turnbull wrote:
Andreas Roehler writes:
> `forward-comment' seems broken in all Emacsen more or
> less, i.e. backward-comment failed completely, `forward-comment'
> worked in GNU for me, but is buggy in XEmacs.
I'm curious. What keys do you bind these commands to?
It exists as function only, not interactively. Simply did some checks.
Do you use
these a lot? I find that forward-sexp generally does nearly the
that's so nice with Emacs :)
so have never bothered with these functions.
As commenting is a key issue for an editor, I think it's worth to care
for, as far as time allows.
> Having a look into XEmacs syntax.c, fixing in C seems difficult.
> As forward-comment-lor might be fast enough and speed should not be not
> crucial for this function, maybe the C code should be dropped and
> this re-implementation used instead?
I worry that forward comment might be used in font-lock and similar
applications, and that would probably present a performance problem.
We can use it a while with a new name and see. Maybe others find it useful
Somebody will have to actually try it with a pure Lisp
to see, I suppose.
BTW a re-implementation exists already in newcomment.el: comment-forward
"Skip forward over N comments.
Just like `forward-comment' but only for positive N
and can use regexps instead of syntax."
Also doesn't move backward, what was needed too.
XEmacs-Beta mailing list