all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xue Fuqiao <xfq.free@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: About elements in `format-alist'
Date: Tue, 18 Jun 2013 06:59:49 +0800	[thread overview]
Message-ID: <CAAF+z6EZG_Df3zW08GvPGo5zO_BdSa=W3wsugkGDYiMPCvRAAA@mail.gmail.com> (raw)
In-Reply-To: <878v28tlyh.fsf@web.de>

On Tue, Jun 18, 2013 at 6:24 AM, Michael Heerdegen
<michael_heerdegen@web.de> wrote:
> Xue Fuqiao <xfq.free@gmail.com> 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	other threads:[~2013-06-17 22:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-16 23:02 About elements in `format-alist' Xue Fuqiao
2013-06-17 22:24 ` Michael Heerdegen
2013-06-17 22:59   ` Xue Fuqiao [this message]
2013-06-18  0:57     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAF+z6EZG_Df3zW08GvPGo5zO_BdSa=W3wsugkGDYiMPCvRAAA@mail.gmail.com' \
    --to=xfq.free@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.