From: MON KEY <monkey@sandpframing.com>
To: 6313@debbugs.gnu.org
Subject: bug#6313: `define-coding-system' docs - two disjoint entries for `:eol-type'
Date: Sun, 30 May 2010 15:19:45 -0400 [thread overview]
Message-ID: <AANLkTimtc8QefOpsKISlfRb2Gq_HdtwkjmbLpbqfnqdZ@mail.gmail.com> (raw)
The `define-coding-system' docstring contains two disjoint descriptions for
property `:eol-type' and expected values:
(let ((eols@bols 0))
(with-temp-buffer
(save-excursion (insert (documentation 'define-coding-system)))
(while (search-forward-regexp "^`:eol-type'\n\nVALUE" nil t)
(setf eols@bols (1+ eols@bols))))
eols@bols)
=> 2
(documentation 'define-coding-system)
,---- First occurrence:
| `:eol-type'
|
| VALUE is the EOL (end-of-line) format of the coding system. It must
| be one of `unix', `dos', `mac'. The symbol `unix' means Unix-like EOL
| (i.e. single LF), `dos' means DOS-like EOL (i.e. sequence of CR LF),
| and `mac' means Mac-like EOL (i.e. single CR). If omitted, on
| decoding by the coding system, Emacs automatically detects the EOL
| format of the source text.
`----
,---- Second occurrence:
| `:eol-type'
|
| VALUE must be `unix', `dos', `mac'. The symbol `unix' means Unix-like
| EOL (LF), `dos' means DOS-like EOL (CRLF), and `mac' means Mac-like
| EOL (CR). If omitted, on decoding, the coding system detects EOL
| format automatically, and on encoding, uses Unix-like EOL.
`----
--
/s_P\
next reply other threads:[~2010-05-30 19:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-30 19:19 MON KEY [this message]
2010-05-30 19:51 ` bug#6313: `define-coding-system' docs - two disjoint entries for `:eol-type' Eli Zaretskii
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=AANLkTimtc8QefOpsKISlfRb2Gq_HdtwkjmbLpbqfnqdZ@mail.gmail.com \
--to=monkey@sandpframing.com \
--cc=6313@debbugs.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.