From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: mode-line-element-to-string Date: Thu, 11 Apr 2002 14:14:35 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200204111814.g3BIEZB32371@rum.cs.yale.edu> References: <200204111411.g3BEBkF30552@rum.cs.yale.edu> <20020411190215.49E9.LEKTU@terra.es> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018548932 27910 127.0.0.1 (11 Apr 2002 18:15:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 11 Apr 2002 18:15:32 +0000 (UTC) Cc: "Stefan Monnier" , emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vj6Z-0007G3-00 for ; Thu, 11 Apr 2002 20:15:31 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16vjMT-0007XP-00 for ; Thu, 11 Apr 2002 20:31:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vj6J-0003df-00; Thu, 11 Apr 2002 14:15:15 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vj5h-0003Z9-00 for ; Thu, 11 Apr 2002 14:14:37 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g3BIEZB32371; Thu, 11 Apr 2002 14:14:35 -0400 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.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2548 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2548 > > > Any objection to the patch below ? > > I'd also welcome comments, especially suggestions for a better name. > > emacs -q --no-site-file > M-x ielm > C-c C-b *scratch* > ; enough times for the ELISP> > ; prompt to be at the bottom > ; of the Window > (mode-line-element-to-string "%c/%l") ; repeat till it crashes > > Eventually it crashes in `display-count-lines'. Damn! The code relies on the current-buffer being the buffer displayed in the selected-window. Hmmm... Stefan