From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emilio Lopes Newsgroups: gmane.emacs.help Subject: Re: latex files encoding Date: Fri, 10 Aug 2007 18:03:14 +0200 Organization: The Church of Emacs Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1186764075 984 80.91.229.12 (10 Aug 2007 16:41:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Aug 2007 16:41:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 10 18:41:13 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IJXXx-0001YD-6x for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2007 18:41:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IJXXw-0003mo-PQ for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Aug 2007 12:41:08 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.freenet.de!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:6UbhIlk2KI5sjz9lcbxuCKWSCTI= Original-Lines: 22 Original-NNTP-Posting-Host: 67060124.news.freenet.de Original-X-Trace: DXC=hmZmbOZCQndECnl@32]PBkKZSdekToV0bV]H_4\jDJ[hga8fh`IQcSea_bZAOcggahCHa; []mIQ]i Original-X-Complaints-To: abuse@freenet.de Original-Xref: shelby.stanford.edu gnu.emacs.help:150907 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46483 Archived-At: Harald Hanche-Olsen writes: > (push '("[.]tex$" . utf-8) file-coding-system-alist) > (er, push is part of the cl package, so you need (require 'cl) first, > or rewrite to the equivalent non-cl elisp - which I admit I am too > lazy to figure out right now). It is called `add-to-list' and has the additional advantage of being idempotent: it will not add a value to the list if it's already there. This is a plus when you reload your init-files e.g. Note that the order of the arguments is different compared to `push' and that the list variable must be quoted: (add-to-list 'file-coding-system-alist '("[.]tex$" . utf-8)) -- Emílio C. Lopes Ich leb und weiß nit wie lang, Munich, Germany ich stirb und weiß nit wann, ich fahr und weiß nit wohin, (Martinus von Biberach) mich wundert, dass ich fröhlich bin!