From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: About elements in `format-alist' Date: Tue, 18 Jun 2013 00:24:22 +0200 Message-ID: <878v28tlyh.fsf@web.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371507882 15098 80.91.229.3 (17 Jun 2013 22:24:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2013 22:24:42 +0000 (UTC) Cc: emacs-devel To: Xue Fuqiao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 18 00:24:38 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uohql-0002bR-TX for ged-emacs-devel@m.gmane.org; Tue, 18 Jun 2013 00:24:36 +0200 Original-Received: from localhost ([::1]:53357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uohql-0005Yr-GG for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2013 18:24:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uohqg-0005Tg-IG for emacs-devel@gnu.org; Mon, 17 Jun 2013 18:24:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uohqf-0003ly-Ly for emacs-devel@gnu.org; Mon, 17 Jun 2013 18:24:30 -0400 Original-Received: from mout.web.de ([212.227.17.11]:58346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uohqf-0003lt-DN for emacs-devel@gnu.org; Mon, 17 Jun 2013 18:24:29 -0400 Original-Received: from drachen.dragon ([2.201.167.137]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0MCqmp-1Uf7TU0dpj-009ea1; Tue, 18 Jun 2013 00:24:27 +0200 Mail-Followup-To: Xue Fuqiao , emacs-devel In-Reply-To: (Xue Fuqiao's message of "Mon, 17 Jun 2013 07:02:21 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:AEtTkd7+E2/umJalzZ5tCm1WXPwXzUlv3V8DEXUpiRY3ZrSjAYk LFaxv9R5jGuw+yMDzOsiJeuwj5kb5wybrmo0DVMEoICS36cOIJ/yLo0NCzoncCt3fd/U87O VwIjDC+VIlTz6B8VXpv5zhYIiGqThC/eCrpDrprfILUejb/s8sfRokf9cS+Q1f52V/6/l+5 xR4nM2I3+jrikiKHsP+Iw== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.11 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160531 Archived-At: Xue Fuqiao writes: > Hi list, > > In the doc string of `format-alist': > > Elements are of the form > (NAME DOC-STR REGEXP FROM-FN TO-FN MODIFY MODE-FN PRESERVE). > > There should be 8 elements in each list. But there are only 7 elements > in each list of the default value. Which one is absent? If there's an > optional element, I think we should mention it in the doc string. Looks like missing elements are just treated as if they were nil (the code uses `nth'). Dunno if it's worth the trouble of making a bug report - since holding the convention doesn't make problems (does it?). Regards, Michael.