[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
utf-8-with-signature (was: find-file-literally-at-point)
From: |
Juri Linkov |
Subject: |
utf-8-with-signature (was: find-file-literally-at-point) |
Date: |
Mon, 09 Nov 2009 12:01:06 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) |
>> I recently found myself in need of such a function (I was going through
>> a bunch of files to strip out their UTF-8 BOMs, if you're curious),
>
> Oh, I see. That's what I regularly had to do on files produced
> by Windows editors :) Some time ago Emacs used to display BOMs,
> so it was easy to see and delete BOMs, but now doesn't anymore,
> since now the default coding system of files with the BOM is
> `utf-8-with-signature'. Forcing it to use `utf-8' with e.g.
> `C-x RET c utf-8 RET C-x C-f' is a way to display BOMs
> in an UTF-8 file.
BTW, after removing `("\\`\xEF\xBB\xBF" . utf-8-with-signature)'
from `auto-coding-regexp-alist' BOMs will be always displayed
without the need to visit files literally.
--
Juri Linkov
http://www.jurta.org/emacs/
Re: find-file-literally-at-point, Juri Linkov, 2009/11/08
utf-8-with-signature (was: find-file-literally-at-point),
Juri Linkov <=
Re: find-file-literally-at-point, Eduard Wiebe, 2009/11/06