From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: varro Newsgroups: gmane.emacs.help Subject: minor annoyance with automatic insertion of encoding string Date: 30 Jan 2014 00:37:19 GMT Message-ID: Reply-To: gyliamos@gmail.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1391042421 7958 80.91.229.3 (30 Jan 2014 00:40:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 00:40:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 30 01:40:27 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8fg6-0004hf-LS for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 01:40:22 +0100 Original-Received: from localhost ([::1]:45831 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8fg6-0003Zz-9X for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jan 2014 19:40:22 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-X-Trace: individual.net 74IgQybmab+qSE8T5ukqxQQQwTEinePQYBjLI2bVL4STQk4uNh Cancel-Lock: sha1:4+Coue2o3xrVoeGsGu9qcCccTpU= User-Agent: slrn/1.0.1 (FreeBSD) Original-Xref: usenet.stanford.edu gnu.emacs.help:203506 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95775 Archived-At: I've noticed that when I insert a non-ASCII character into one of my source files, Emacs automatically inserts an encoding directive like: # -*- coding: utf-8 -*- when I save the file. I assume this has something to do with my having: (setq-default buffer-file-coding-system 'utf-8-unix) in my .emacs file, but I don't understand the reason for this and find it a bit annoying. Can anyone enlighten me on why this is happening? -- Will