unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7696: 24.0.50; Elisp manual, doc of `mode-name' and `major-mode'
@ 2010-12-21  4:27 Drew Adams
  2012-01-28  4:33 ` Chong Yidong
  2012-01-29  5:21 ` Drew Adams
  0 siblings, 2 replies; 3+ messages in thread
From: Drew Adams @ 2010-12-21  4:27 UTC (permalink / raw)
  To: 7696

(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'
 






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-29  5:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21  4:27 bug#7696: 24.0.50; Elisp manual, doc of `mode-name' and `major-mode' Drew Adams
2012-01-28  4:33 ` Chong Yidong
2012-01-29  5:21 ` Drew Adams

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