From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Re: Something like an array (list) of a class Date: Mon, 13 Apr 2009 05:27:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: <986ab02e-7c55-46b3-8d8c-8cf18bff16da@r37g2000yqn.googlegroups.com> References: <665d0b7a-3230-4123-b9f4-2a645f44dd1c@a7g2000yqk.googlegroups.com> <9fe617de-13d8-4dbc-82f8-3cc575008e48@o18g2000vbi.googlegroups.com> <0b45eaa6-232b-4bc3-a505-d47910f6478d@37g2000yqp.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239626531 10475 80.91.229.12 (13 Apr 2009 12:42:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2009 12:42:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 14:43:30 2009 Return-path: Envelope-to: geh-help-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 1LtLVP-0008TB-NS for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2009 14:43:20 +0200 Original-Received: from localhost ([127.0.0.1]:34899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtLU1-0002Ws-5e for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2009 08:41:53 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!r37g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: posting.google.com 1239625665 21972 127.0.0.1 (13 Apr 2009 12:27:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 13 Apr 2009 12:27:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r37g2000yqn.googlegroups.com; posting-host=84.53.123.169; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.9.0.8) Gecko/2009032600 SUSE/3.0.8-1.1.1 Firefox/3.0.8,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168427 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63705 Archived-At: On 13 apr, 13:55, Decebal wrote: > =A0 =A0 =A0 (ModeLine > =A0 =A0 =A0 =A0(:constructor nil) > =A0 =A0 =A0 =A0(:constructor new-ModeLine (type description display funct= ion)) > =A0 =A0 =A0 =A0) > =A0 =A0 =A0 (type =A0 =A0 =A0 =A0:read-only t) > =A0 =A0 =A0 (description :read-only t) > =A0 =A0 =A0 (display =A0 =A0 :read-only t) > =A0 =A0 =A0 (function =A0 =A0:read-only t) > =A0 =A0 =A0 ) > > =A0 =A0 (setq e (new-ModeLine > =A0 =A0 =A0 =A0 =A0 =A0 =A0"word" > =A0 =A0 =A0 =A0 =A0 =A0 =A0"Display number of words" > =A0 =A0 =A0 =A0 =A0 =A0 =A0"W" > =A0 =A0 =A0 =A0 =A0 =A0 =A0'buffer-count-words > =A0 =A0 =A0 =A0 =A0 =A0 =A0) > =A0 =A0 =A0 =A0 =A0 ) The function buffer-count-words exist, but how do I execute it? (eval (ModeLine-function e)) doesnot work.