From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1164: 23.0.60; Doc strings of mode-name, mode-line-format and format-mode-line Date: Tue, 14 Oct 2008 14:19:53 +0200 Message-ID: Reply-To: Eli Zaretskii , 1164@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1223987464 15845 80.91.229.12 (14 Oct 2008 12:31:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2008 12:31:04 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 14 14:32:01 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kpj3l-00079q-84 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 14:31:33 +0200 Original-Received: from localhost ([127.0.0.1]:36041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpj2f-0003h5-7Q for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Oct 2008 08:30:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kpj2I-0003Vm-O4 for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 08:30:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kpj2I-0003V2-0E for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 08:30:02 -0400 Original-Received: from [199.232.76.173] (port=57849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpj2H-0003Uq-Ne for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 08:30:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56546) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kpj2H-00041L-Dh for bug-gnu-emacs@gnu.org; Tue, 14 Oct 2008 08:30:01 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9ECTxKs018003; Tue, 14 Oct 2008 05:29:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9ECP4ZY016869; Tue, 14 Oct 2008 05:25:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 14 Oct 2008 12:25:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1164 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122398679515619 (code B ref -1); Tue, 14 Oct 2008 12:25:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 14 Oct 2008 12:19:55 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9ECJq1L015613 for ; Tue, 14 Oct 2008 05:19:53 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:58352 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kpiq1-00084t-3E for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 08:17:21 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KpisQ-0002N2-SU for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 08:19:51 -0400 Original-Received: from mtaout7.012.net.il ([84.95.2.19]:17150) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpisQ-0002Mi-Cp for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 08:19:50 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.24.3]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K8Q00JP3ABA1880@i-mtaout7.012.net.il> for emacs-pretest-bug@gnu.org; Tue, 14 Oct 2008 14:21:10 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 14 Oct 2008 08:30:02 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21473 gmane.emacs.pretest.bugs:23211 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: "C-h v mode-name RET" produces: mode-name is a variable defined in `buffer.c'. Its value is "Emacs-Lisp" Local in buffer bindings.el; global value is 0 Automatically becomes buffer-local when set in any fashion. Documentation: Pretty name of current buffer's major mode. Usually a string. See `mode-line-format' for other possible forms. Use the function `format-mode-line' to get the value as a string. The line before the last refers to mode-line-format for possible forms of mode-name. However, nothing in the doc string of mode-line-format says anything specific about the form of mode-name, and neither does the doc string of format-mode-line say anything about how to produce a string out of mode-name. In general, I loathe references to other doc strings for important information: it's a nuisance to chase multiple links when you need to do a simple job such as displaying the mode name. Unless the information is large and complex, it is better to reproduce it where it is needed, even if that requires some duplication. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file d:/gnu/emacs/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-10-14 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1255 default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f l i s / b i n d C-s m o d e C-s m a j C-s C-s C-h v C-x o C-x o C-h v m o d e - n a e m e M-x e m a c s - r e p o r e p o r t Recent messages: Making completion list... Quit call-interactively: End of buffer Mark set Quit [2 times] call-interactively: End of buffer Mark saved where search started [3 times] Mark set [3 times] Mark saved where search started [3 times] Type C-x 4 C-o RET to restore the other window, C-M-v to scroll help.