From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: utf-8-with-signature (was: find-file-literally-at-point) Date: Mon, 09 Nov 2009 12:01:06 +0200 Organization: JURTA Message-ID: <87eio8xjed.fsf_-_@mail.jurta.org> References: <3b31caf90911051613w80af4cu61352a29ce5dcd77@mail.gmail.com> <87vdhoe73d.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257763039 25798 80.91.229.12 (9 Nov 2009 10:37:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Nov 2009 10:37:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Edward O'Connor" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 09 11:37:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N7RcT-0002D8-Rk for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 11:37:10 +0100 Original-Received: from localhost ([127.0.0.1]:55687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7RcS-0006uI-Sa for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 05:37:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7RcG-0006pX-BS for emacs-devel@gnu.org; Mon, 09 Nov 2009 05:36:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7RcA-0006lq-6N for emacs-devel@gnu.org; Mon, 09 Nov 2009 05:36:54 -0500 Original-Received: from [199.232.76.173] (port=43386 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7Rc9-0006lc-U6 for emacs-devel@gnu.org; Mon, 09 Nov 2009 05:36:49 -0500 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:39955 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7Rc9-0006M2-Gs for emacs-devel@gnu.org; Mon, 09 Nov 2009 05:36:49 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (62.65.208.58.cable.starman.ee [62.65.208.58]) by mx1.starman.ee (Postfix) with ESMTP id 327B43F4149; Mon, 9 Nov 2009 12:36:43 +0200 (EET) In-Reply-To: <87vdhoe73d.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 06 Nov 2009 03:45:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116738 Archived-At: >> 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/