unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Drew Adams <drew.adams@oracle.com>
Cc: 17567@debbugs.gnu.org
Subject: bug#17567: 24.4.50; doc string of `define-derived-mode'
Date: Sat, 25 Sep 2021 10:15:16 -0700	[thread overview]
Message-ID: <CADwFkmkQ+sCsh-XqOSdgdF_QuPr4uAn7VL_8mCewHvhG1Bo7oA@mail.gmail.com> (raw)
In-Reply-To: <8e27e542-96e8-4342-a761-8c066fe3d307@default> (Drew Adams's message of "Fri, 23 May 2014 12:35:53 -0700 (PDT)")

tags 17567 + fixed
close 17567 28.1
thanks

Drew Adams <drew.adams@oracle.com> writes:

> The doc string erroneously says that parameter NAME is "a string
> which will appear in the status line".
>
> Emacs does not have a "status line".  That term is used nowhere.
>
> What should be said about NAME is that it defines the value of variable
> `mode-name' for mode CHILD.  A user consulting that variable will see
> that its value is used in the mode line etc.

Drew Adams <drew.adams@oracle.com> writes:

> 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.)

I have now fixed this on (commit e4c9081d46).  This change will be a
part of the upcoming Emacs 28.1.

Please verify that this fix works for you, but for now I'm closing this
bug report.  If you see anything that is wrong, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.  You could also just report a new bug.

Thanks again for the bug report!





  reply	other threads:[~2021-09-25 17:15 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23 19:15 bug#17567: 24.4.50; doc string of `define-derived-mode' Drew Adams
2014-05-23 19:35 ` Drew Adams
2021-09-25 17:15   ` Stefan Kangas [this message]
2021-09-25 17:30     ` Eli Zaretskii
2021-09-25 18:01       ` Stefan Kangas
2021-09-25 18:46         ` Eli Zaretskii
2021-09-25 19:07           ` Stefan Kangas
2021-09-25 19:11             ` Eli Zaretskii
2021-09-25 19:38               ` Stefan Kangas
2021-09-25 17:36     ` bug#17567: [External] : " Drew Adams
2021-09-25 18:42       ` Eli Zaretskii
2021-09-25 18:59         ` Drew Adams
2021-09-25 19:05           ` Eli Zaretskii
2021-09-25 19:44             ` Drew Adams
2021-09-25 19:53               ` Eli Zaretskii
2021-09-25 21:08                 ` Drew Adams
2021-09-27 22:36                   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmkQ+sCsh-XqOSdgdF_QuPr4uAn7VL_8mCewHvhG1Bo7oA@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=17567@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).