unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6313: `define-coding-system' docs - two disjoint entries for `:eol-type'
@ 2010-05-30 19:19 MON KEY
  2010-05-30 19:51 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: MON KEY @ 2010-05-30 19:19 UTC (permalink / raw)
  To: 6313

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\





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#6313: `define-coding-system' docs - two disjoint entries for `:eol-type'
  2010-05-30 19:19 bug#6313: `define-coding-system' docs - two disjoint entries for `:eol-type' MON KEY
@ 2010-05-30 19:51 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2010-05-30 19:51 UTC (permalink / raw)
  To: MON KEY; +Cc: 6313-done

> Date: Sun, 30 May 2010 15:19:45 -0400
> From: MON KEY <monkey@sandpframing.com>
> Cc: 
> 
> The `define-coding-system' docstring contains two disjoint descriptions for
> property `:eol-type' and expected values:

Thanks, I fixed this (revno 100486).





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-30 19:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-30 19:19 bug#6313: `define-coding-system' docs - two disjoint entries for `:eol-type' MON KEY
2010-05-30 19:51 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).