Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Chars escape-quoted in RMAIL files saved from gnus

23 views
Skip to first unread message

Scott Heftler

unread,
Apr 27, 2008, 6:13:35 PM4/27/08
to
Well, I can open files saved in `gnus-summary-save-in-rmail' format,
but many characters get escape-quoted, such as the elipsis character
`...', which I see as \205.

So what coding system variable do I need to change so that my saved
files can be read in prteey RMAIL mode but do not have ascii chars >
127 escaped out?

Thanks in advance.

-- Scott

Peter Dyballa

unread,
Apr 27, 2008, 6:49:48 PM4/27/08
to Scott Heftler, help-gn...@gnu.org

Am 28.04.2008 um 00:13 schrieb Scott Heftler:

> So what coding system variable do I need

windows-1250, windows-1251, windows-1252

--
Greetings

Pete

A blizzard is when it snows sideways.


Scott Heftler

unread,
Apr 27, 2008, 6:59:02 PM4/27/08
to
Yes, Pete, these are the CS symbols I assign to some variable; but
which one? There are so many CS variables in emacs, including special
alists for gnus and for mm, rmail, etc. To which one in particular do
I make the assignment?

-- Scott

Scott Heftler

unread,
Apr 27, 2008, 7:30:22 PM4/27/08
to
OK, so the windows-1252 ellipses display nicely in a RMAIL-mode file
saved via `gnus-summary-save-in-rmail' when I run
`universal-coding-system-argument' via C -x RET c windows-1252. But
SURELY there must be a way to automate this. So I put these in my
init file:

(prefer-coding-system 'windows-1252)
(prefer-coding-system 'utf-8)

This makes sure utf-8 is top pick, and windowsw-1252 is second.

You'd think that, when emacs encounters these \205s, it would KNOW to
pick windows-1252. But it doesn't. Is there no way to AUTOMATE
emacs' pick of coding system?

-- Scott

Peter Dyballa

unread,
Apr 28, 2008, 4:38:50 AM4/28/08
to Scott Heftler, help-gn...@gnu.org

Am 28.04.2008 um 01:30 schrieb Scott Heftler:

> You'd think that, when emacs encounters these \205s, it would KNOW to
> pick windows-1252. But it doesn't. Is there no way to AUTOMATE
> emacs' pick of coding system?


It's possible to use (file) local variables. In the file's header,
first line I think, something like

;; -*- mode: Emacs-Lisp; coding: utf-8; -*-

or at the file's end

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% coding: utf-8-unix
%%% TeX-command-default: "XeLaTeX"
%%% End:

you can set a few parameters of operation. Depending on which file
type(s) is easier to manipulate by these means you can leave out one
encoding preference. Something like this might also work (I think I
once had this active):

;;(setq file-coding-system-alist
;; (append
;; '(("\\.tex\\'" iso-latin-9-unix . iso-latin-9-unix))
;; file-coding-system-alist))

;(modify-coding-system-alist 'file "\\.tex\\'" 'iso-latin-9-unix)

Or you can decide to reduce the number of encodings you use.
Sometimes less pluralism can be more.

--
Greetings

Pete

Know thyself. Need help, call GOOGLE.


0 new messages