emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About elements in `format-alist'


From: Xue Fuqiao
Subject: Re: About elements in `format-alist'
Date: Tue, 18 Jun 2013 06:59:49 +0800

On Tue, Jun 18, 2013 at 6:24 AM, Michael Heerdegen
<address@hidden> wrote:
> Xue Fuqiao <address@hidden> 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').

Thanks.  May I install the following patch to trunk?

=== modified file 'lisp/format.el'
--- lisp/format.el    2013-01-01 09:11:05 +0000
+++ lisp/format.el    2013-06-17 22:57:24 +0000
@@ -101,6 +101,7 @@
   "List of information about understood file formats.
 Elements are of the form
 \(NAME DOC-STR REGEXP FROM-FN TO-FN MODIFY MODE-FN PRESERVE).
+If an element list is not that long, the excessive part is taken as nil.

 NAME    is a symbol, which is stored in `buffer-file-format'.

--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]