unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* mule: why not show the damage of choosing "raw-text" etc. now?
@ 2002-04-23 18:07 Dan Jacobson
  2002-04-24  7:19 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2002-04-23 18:07 UTC (permalink / raw)


I do a certain M-x compile command that produces output that looks
like normal big5 chinese... at least the first page of which that I
see in the split window.

I attempt to write this to disk with C-x C-w some_filename.

Due to some non-big5 character somewhere deep in the output, I encounter

   These default coding systems were tried:
     chinese-big5-unix
   However, none of them safely encodes the target text.

   Select one of the following safe coding systems:
     raw-text emacs-mule no-conversion

Well, whichever choice I make **_the file still looks good on my
screen_**, until of course the next time I start emacs (or the less
pager), when it has then become a unrecoverable bunch of <98>'s.

My point is, _why allow the file to keep on looking good this
session?_  If you are going to turn it into a "unrecoverable bunch of
<98>'s", why not do it now in front of the user's face instead of
having him think that the file is A-OK, and can be e-mailed to
friends, or is ready to go for the big presentation tomorrow?

Sure, emacs has its reasons for being unable to save the file in the
character set I wanted. OK, fine.  But why keep on displaying the file
in the comfortable character set instead of tipping of the user of
what the file now looks like next time he attempts to read it?
-- 
http://jidanni.org/ Taiwan(04)25854780

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

* Re: mule: why not show the damage of choosing "raw-text" etc. now?
  2002-04-23 18:07 mule: why not show the damage of choosing "raw-text" etc. now? Dan Jacobson
@ 2002-04-24  7:19 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2002-04-24  7:19 UTC (permalink / raw)



On 24 Apr 2002, Dan Jacobson wrote:

> I do a certain M-x compile command that produces output that looks
> like normal big5 chinese... at least the first page of which that I
> see in the split window.
> 
> I attempt to write this to disk with C-x C-w some_filename.
> 
> Due to some non-big5 character somewhere deep in the output, I encounter
> 
>    These default coding systems were tried:
>      chinese-big5-unix
>    However, none of them safely encodes the target text.

Does it help to say "C-x RET c big5 RET M-x compile RET" instead?

> My point is, _why allow the file to keep on looking good this
> session?_  If you are going to turn it into a "unrecoverable bunch of
> <98>'s", why not do it now in front of the user's face instead of
> having him think that the file is A-OK, and can be e-mailed to
> friends, or is ready to go for the big presentation tomorrow?

Because the Mule design is that Emacs never considers how it will encode 
the file until such time as you actually ask it to do so.  One problem 
with what you suggest is that yanking some text that cannot be encoded in 
the buffer's coding system will trigger annoying questions or even 
display gibberish, even though all you want is remove some of the text 
you've yanked, or maybe save the buffer with a different encoding.

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

end of thread, other threads:[~2002-04-24  7:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-23 18:07 mule: why not show the damage of choosing "raw-text" etc. now? Dan Jacobson
2002-04-24  7:19 ` 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).