GNU bug report logs -
#17567
24.4.50; doc string of `define-derived-mode'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Fri, 23 May 2014 19:17:02 UTC
Severity: minor
Tags: fixed
Merged with 20531
Found in versions 24.4.50, 25.0.50
Fixed in version 28.1
Done: Stefan Kangas <stefan <at> marxist.se>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Also, the doc string should state the types of the values of
keywords :group, :syntax-table, and :abbrev-table.
And it says that the mode runs the hook constructed by function
`derived-mode-hook-name'. Constructed how? What does constructed
mean here?
And the doc string of `derived-mode-hook-name' is no help here:
"Construct a mode-hook name based on a MODE name."
The arg is MODE. What is it? What data type? And what is
its "name"? What does it mean to construct a hook name?
And how is that name constructed from the "MODE name"?
And what about the contradiction between the doc string of
`define-derived-mode' and that of `derived-mode-hook-name'?
The former says that `d-m-h-name' constructs a _hook_. The
latter says that it constructs a hook _name_.
Far clearer for `derived-mode-hook-name' would be to just
say what it really does:
Return a symbol whose name is "-hook" appended to the
`symbol-name' of MODE.
That also makes it clear that MODE is expected to be a symbol.
(Similarly, for the other `defsubst's in derived.el.)
This bug report was last modified 3 years and 296 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.