emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rmail and the raw-text coding system


From: Stefan Monnier
Subject: Re: Rmail and the raw-text coding system
Date: Fri, 14 Jan 2011 16:00:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>     It then decodes the BABYL message part:

>     (unless (and coding-system
>                (coding-system-p coding-system))
>       (setq coding-system
>           ;; Emacs 21.1 and later writes RMAIL files in emacs-mule, but
>           ;; earlier versions did that with the current buffer's encoding.
>           ;; So we want to favor detection of emacs-mule (whose normal
>           ;; priority is quite low), but still allow detection of other
>           ;; encodings if emacs-mule won't fit.  The call to
>           ;; detect-coding-with-priority below achieves that.
>           (car (detect-coding-with-priority
>                 from to
>                 '((coding-category-emacs-mule . emacs-mule))))))
>     (unless (memq coding-system
>                 '(undecided undecided-unix))
>       (set-buffer-modified-p t)               ; avoid locking when decoding
>       (let ((buffer-undo-list t))
>       (decode-coding-region from to coding-system))
>       (setq coding-system last-coding-system-used))
>     (set-buffer-modified-p modifiedp)
>     (setq buffer-file-coding-system nil)
>     (setq save-buffer-coding-system
>         (or coding-system 'undecided))))

> This process leaves the buffer as a unibyte buffer.  

The question for me is why did it choose raw-text here (which results
indeed in a unibyte buffer)?  It should have been emacs-mule.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]