all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: mule-ja@m17n.org
Subject: Re: problem with system_eol_type
Date: Tue, 01 Aug 2006 11:03:22 +0900	[thread overview]
Message-ID: <b4mbqr5xled.fsf@jpl.org> (raw)
In-Reply-To: E1G7g47-00074N-5S@fencepost.gnu.org

;; Mule-ja people, you can read all the followups at:
;; http://news.gmane.org/group/gmane.emacs.devel/thread=57837/force_load=t

>>>>> In <E1G7g47-00074N-5S@fencepost.gnu.org> Richard Stallman wrote:

[...]

> I see two possible approaches to this:

> 1. Fix those programs to specify `-unix'.  That way, they should get
> LF eol behavior in all Emacs versions on all systems.

> 2. Take out your old change, and implement something at the UI level,
> perhaps in a function that reads a coding system name.

> #1 is clearly easier.  Is there any strong argument against it?

I think it is reasonable to use the eol which is system's
default when saving text files.  Since Gnus uses `raw-text' by
default to save files in many cases, mail files, for example,
are now saved with CRLF in DOS machines, otherwise with LF.  It
will be useful when other programs use those files.  So, I agree
to the recent behavior of Emacs but am negative to change Gnus'
default.

By the way, why is not CR used in Mac when specifying the coding
system `foo', not `foo-eol'?

Contrary to this argument concerning saving of files, I hope the
forms

(encode-coding-string "bar\n" 'foo)

and

(with-temp-buffer
  (insert "bar\n")
  (encode-coding-region (point-min) (point-max) 'foo)
  (buffer-string))

always return "bar\n" regardless of the system-type in the
future as well.

I don't have an idea how we should do when communicating with
processes.  Sorry.

  reply	other threads:[~2006-08-01  2:03 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31  6:04 problem with system_eol_type Kenichi Handa
2006-07-31  9:46 ` Reiner Steib
2006-07-31 16:30   ` Stefan Monnier
2006-07-31 17:00     ` Jason Rumney
2006-07-31 17:28       ` Eli Zaretskii
2006-07-31 17:28     ` Eli Zaretskii
2006-07-31 17:52     ` Stefan Monnier
2006-07-31 17:27 ` Eli Zaretskii
2006-07-31 22:16 ` Richard Stallman
2006-08-01  2:03   ` Katsumi Yamaoka [this message]
2006-08-01  3:19     ` Stefan Monnier
2006-08-01  6:10       ` Katsumi Yamaoka
2006-08-09 10:35     ` Katsumi Yamaoka
2006-08-09 12:27       ` Stefan Monnier
2006-08-09 22:07         ` Katsumi Yamaoka
2006-08-10  1:13       ` Richard Stallman
2006-08-10  7:35         ` Reiner Steib

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=b4mbqr5xled.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=mule-ja@m17n.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.