GNU bug report logs -
#12583
latest org-mode changes exposes bug in `comment-forward' in newcomment.el
Previous Next
Reported by: Le Wang <l26wang <at> gmail.com>
Date: Sat, 6 Oct 2012 11:08:01 UTC
Severity: minor
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 12583 <at> debbugs.gnu.org (full text, mbox):
> Before using the comment-* functions, you need to call
> comment-normalize-vars.
Which comment-* functions? All of them?
Why don't you add a specific guideline about this to the code comments or to
some doc string?
The doc string of `comment-normalize-vars' says, BTW, that it is the functions
that are autoloaded from newcomment.el that should call `c-n-v'. But you seem
to be saying that those are not the only ones.
It is also the case that not all functions that are autoloaded from
newcomment.el call `c-n-v'. So what exactly is the proper criterion? (Or do
some such functions in newcomment.el perhaps need to be corrected to call
`c-n-v'?)
For my own use, I wonder whether I should be calling `c-n-v' before I make use
of `comment-search-forward'. That function has no autoload cookie, so it does
not fit your prescription, and I have not been calling `c-n-v' and have not
noticed any problem, but I wonder anyway, since you brought this up. Just when
is it necessary or useful to call `c-n-v'?
BTW, why are there so many things besided commands that have autoload cookies in
newcomment.el? I know that you are not particularly in favor of unnecessarily
autoloading variables, so I wonder what the story is here. Thx.
This bug report was last modified 12 years and 300 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.