unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 7696@debbugs.gnu.org
Subject: bug#7696: 24.0.50; Elisp manual, doc of `mode-name' and `major-mode'
Date: Mon, 20 Dec 2010 20:27:16 -0800	[thread overview]
Message-ID: <82D1404D4CF749D886386C2656CC2DAE@us.oracle.com> (raw)

(elisp) Auto Major Mode documents variable `major-mode'.
(elisp) Major Mode Conventions documents variable `mode-name'.
 
1. `major-mode' doesn't really have much to do with How Emacs Chooses a
Major Mode.  Or, rather, it has to do with that and many other things
equally.  So I don't think this is a great place to document this var.
 
2. More importantly, users sometimes look for the pretty name of the
major mode, which is the value of var `mode-name'.  They won't find it
by looking for anything associated with "major", since the name doesn't
reflect that (unfortunately).
 
At the very least, we should have an index entry that reflects the
search for such a variable using "major": `major-mode name'.  (It might
not even be a bad idea to create an alias, `major-mode-name', for
`mode-name'.)
 
Most importantly in this regard, there should be a cross-ref from the
description of `major-mode' to the node that describes `mode-name'.
Better would be to also mention `mode-name' at that location. 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-12-20 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 






             reply	other threads:[~2010-12-21  4:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21  4:27 Drew Adams [this message]
2012-01-28  4:33 ` bug#7696: 24.0.50; Elisp manual, doc of `mode-name' and `major-mode' Chong Yidong
2012-01-29  5:21 ` Drew Adams

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=82D1404D4CF749D886386C2656CC2DAE@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=7696@debbugs.gnu.org \
    /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).