From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: ielm working buffer on the modeline Date: Thu, 28 Feb 2002 20:15:36 -0500 Message-ID: <200203010115.g211FaW05580@rum.cs.yale.edu> References: <20020228121951.6D00.LEKTU@terra.es> <5x1yf53hnr.fsf@kfs2.cua.dk> <20020228152835.6D0D.LEKTU@terra.es> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1014945762 24341 195.204.10.66 (1 Mar 2002 01:22:42 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 1 Mar 2002 01:22:42 GMT Cc: storm@cua.dk (Kim F. Storm), Andreas Schwab , emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16gbkv-0006KV-00 for ; Fri, 01 Mar 2002 02:22:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16gbgR-0000nM-00; Thu, 28 Feb 2002 20:18:03 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16gbe6-0000gK-00 for ; Thu, 28 Feb 2002 20:15:38 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g211FaW05580; Thu, 28 Feb 2002 20:15:36 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Juanma Barranquero Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1655 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1655 > ELISP> (setq mode-name '("IELM on " (:eval (buffer-name ielm-working-buffer)))) > *** Eval error *** error: "Only strings should be stored in the buffer-local variable mode-name" This restriction should be removed, I think. I bumped into it recently when I wanted to use (setq mode-name '(sgml-xml "XML" "SGML")) and (setq mode-name '(sgml-xml "XHTML" "HTML")) in sgml-mode.el. The patch is trivial. Any objection ? Stefan PS: by the way I don't understand your problem: the suggestion was to put the ielm-working-buffer name into the buffer-name, not into the mode-name. Index: buffer.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/buffer.c,v retrieving revision 1.378 diff -u -r1.378 buffer.c --- buffer.c 26 Jan 2002 23:04:27 -0000 1.378 +++ buffer.c 1 Mar 2002 01:11:19 -0000 @@ -5226,7 +5231,7 @@ doc: /* Symbol for current buffer's major mode. */); DEFVAR_PER_BUFFER ("mode-name", ¤t_buffer->mode_name, - make_number (Lisp_String), + Qnil, doc: /* Pretty name of current buffer's major mode (a string). */); DEFVAR_PER_BUFFER ("abbrev-mode", ¤t_buffer->abbrev_mode, Qnil, _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel