all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 23.0.50; `mode-name' variable docs out of date WRT features
@ 2007-12-30 19:12 sand
  2007-12-31 14:42 ` Richard Stallman
  0 siblings, 1 reply; 7+ messages in thread
From: sand @ 2007-12-30 19:12 UTC (permalink / raw)
  To: emacs-pretest-bug

Recent Emacs snapshots have extended the `mode-name' variable, so that
constructs such as

  '(sgml-xml-mode "XML" "SGML")

are allowed.  (See, for example, the definition of `sgml-mode'.)  The
documentation does not cover this list representation at all.  The
node "(elisp) Major Mode Conventions" states:

   * The major mode command should set the variable `mode-name' to the
     "pretty" name of the mode, as a string.  This string appears in the
     mode line.

and the node "(elisp) Mode Line Variables" states:

 -- Variable: mode-name
     This buffer-local variable holds the "pretty" name of the current
     buffer's major mode.  Each major mode should set this variable so
     that the mode name will appear in the mode line.

which implies (via "pretty") that this is a string, but doesn't
actually say what is allowed and what isn't.

The docs need to be updated to describe the new list-based
representation and how it is interpreted.

Derek

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

end of thread, other threads:[~2008-01-10  2:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-30 19:12 23.0.50; `mode-name' variable docs out of date WRT features sand
2007-12-31 14:42 ` Richard Stallman
2008-01-02  2:55   ` Stefan Monnier
2008-01-02  3:06     ` Miles Bader
2008-01-02  4:22       ` Stefan Monnier
2008-01-03  9:50     ` Richard Stallman
2008-01-10  2:16       ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.