* RE: checkdoc (was: mh-e 6.2 imminent)
@ 2002-10-24 12:52 Eric M. Ludlam
2002-10-24 13:33 ` Stefan Monnier
2002-11-02 2:51 ` Bill Wohler
0 siblings, 2 replies; 4+ messages in thread
From: Eric M. Ludlam @ 2002-10-24 12:52 UTC (permalink / raw)
Cc: miles, wohler, emacs-devel, mh-e-devel
Hi,
Every suggestion from the Emacs Lisp reference manual that could be
easily tested, and auto-fixed was put into checkdoc. This has oft
provided contention over if the tests were good or bad. I opted not
to post judgment and have no personal stake in the different tests.
Every test in the checkdoc code is prefixed with a comment that
specifies why the test is there, thus a quote from the manual is
there, or I wrote in "Addendum" when I added something I thought was
lacking.
I do recommend changing the manual if you want to hack out a test
though.
Lastly, checkdoc's original organic growth lead to some lack of
configurability. I have a reconstituted checkdoc engine, but never
finished porting the tests. The engine would keep every test in it's
own function, and the test selection would be customizable via a
simple list. Lute.Kamstra@cwi.nl offered to take that engine, and
finish porting the tests. I don't know what the current state is.
It will be a long task though.
Eric
>> I've never heard of this `convention,' and indeed, it sounds kind of
>> dumb -- a `-flag' suffix doesn't really add any useful information
>> (if you know the _meaning_ of a variable, then you already know whether
>> it's boolean or not, and if you don't know the meaning, well, then it
>> hardly helps you to know that it's boolean!).
>
>It's sadly even mentioned in the elisp doc :-(
>
> work/emacs-0% grep -C flag lispref/tips.texi
> @item
> If a user option variable records a true-or-false condition, give it a
> name that ends in @samp{-flag}.
> [...]
>
>Luckily it's rarely folowed.
>
>> Why on earth does checkdoc try to enforce this? Can we take that out?
>
>I'd be happy to.
>
>> [I have my own agendas of course -- I'd like to make checkdoc complain
>> if people use a `-p' suffix for variables, or a `-face' suffix for
>> faces...]
>
>Agreed for the `-p'. For `-face', I'm still not sure either way.
>
>
> Stefan
>
--
Eric Ludlam: zappo@gnu.org, eric@siege-engine.com
Home: http://www.ludlam.net Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: www.gnu.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: checkdoc (was: mh-e 6.2 imminent)
2002-10-24 12:52 checkdoc (was: mh-e 6.2 imminent) Eric M. Ludlam
@ 2002-10-24 13:33 ` Stefan Monnier
2002-10-24 20:13 ` Re[2]: " Eric M. Ludlam
2002-11-02 2:51 ` Bill Wohler
1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2002-10-24 13:33 UTC (permalink / raw)
Cc: monnier+gnu/emacs, miles, wohler, emacs-devel, mh-e-devel
> Every suggestion from the Emacs Lisp reference manual that could be
> easily tested, and auto-fixed was put into checkdoc. This has oft
> provided contention over if the tests were good or bad. I opted not
> to post judgment and have no personal stake in the different tests.
And I agree with your approach. The only problem I can see really
(besides those in the coding convention ;-), is that when a
test fails, the testing is aborted. That is unfortunate when
I want to leave one argument unmentioned but would still want
to check that the symbols are properly quoted.
Also that means that C-u checkdoc-current-buffer RET does not
actually list all the issues. Maybe there's a way to configure
it differently, but it I didn't see it.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: checkdoc (was: mh-e 6.2 imminent)
2002-10-24 13:33 ` Stefan Monnier
@ 2002-10-24 20:13 ` Eric M. Ludlam
0 siblings, 0 replies; 4+ messages in thread
From: Eric M. Ludlam @ 2002-10-24 20:13 UTC (permalink / raw)
Cc: miles, wohler, emacs-devel, mh-e-devel
>>> "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> seems to think that:
>> Every suggestion from the Emacs Lisp reference manual that could be
>> easily tested, and auto-fixed was put into checkdoc. This has oft
>> provided contention over if the tests were good or bad. I opted not
>> to post judgment and have no personal stake in the different tests.
>
>And I agree with your approach. The only problem I can see really
>(besides those in the coding convention ;-), is that when a
>test fails, the testing is aborted. That is unfortunate when
>I want to leave one argument unmentioned but would still want
>to check that the symbols are properly quoted.
>
>Also that means that C-u checkdoc-current-buffer RET does not
>actually list all the issues. Maybe there's a way to configure
>it differently, but it I didn't see it.
[ ... ]
Yes, the mechanism is not very flexible which is why I had originally
started trying to rearchitect the insides. I guess I couldn't fathom
why anyone would not want to fix all the problems. ;)
The prefix argument should allow more than one error message per doc
string, with a few exceptions in some cascading style checks.
Perhaps it broke somewhere in its history.
Eric
--
Eric Ludlam: zappo@gnu.org, eric@siege-engine.com
Home: http://www.ludlam.net Siege: www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: www.gnu.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: checkdoc (was: mh-e 6.2 imminent)
2002-10-24 12:52 checkdoc (was: mh-e 6.2 imminent) Eric M. Ludlam
2002-10-24 13:33 ` Stefan Monnier
@ 2002-11-02 2:51 ` Bill Wohler
1 sibling, 0 replies; 4+ messages in thread
From: Bill Wohler @ 2002-11-02 2:51 UTC (permalink / raw)
Cc: monnier+gnu/emacs, miles, emacs-devel, mh-e-devel
"Eric M. Ludlam" <eric@siege-engine.com> writes:
> I do recommend changing the manual if you want to hack out a test
> though.
Definitely. The manual and checkdoc should be kept in sync and not
play different tunes.
--
Bill Wohler <wohler@newt.com> http://www.newt.com/wohler/ GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and mh-e. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-02 2:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-24 12:52 checkdoc (was: mh-e 6.2 imminent) Eric M. Ludlam
2002-10-24 13:33 ` Stefan Monnier
2002-10-24 20:13 ` Re[2]: " Eric M. Ludlam
2002-11-02 2:51 ` Bill Wohler
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).