GNU bug report logs - #6313
`define-coding-system' docs - two disjoint entries for `:eol-type'

Previous Next

Package: emacs;

Reported by: MON KEY <monkey <at> sandpframing.com>

Date: Sun, 30 May 2010 19:20:03 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: MON KEY <monkey <at> sandpframing.com>
To: bug-gnu-emacs <at> gnu.org
Subject: `define-coding-system' docs - two disjoint entries for `:eol-type'
Date: Sun, 30 May 2010 15:19:45 -0400
The `define-coding-system' docstring contains two disjoint descriptions for
property `:eol-type' and expected values:

(let ((eols <at> bols 0))
  (with-temp-buffer
    (save-excursion (insert (documentation 'define-coding-system)))
    (while (search-forward-regexp "^`:eol-type'\n\nVALUE" nil t)
      (setf eols <at> bols (1+ eols <at> bols))))
  eols <at> 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\




This bug report was last modified 14 years and 356 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.