From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: How to disable file extension auto-detection or auto-action? Date: Tue, 22 Mar 2011 22:27:39 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300829292 23918 80.91.229.12 (22 Mar 2011 21:28:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2011 21:28:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: 0x657573@googlemail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 22 22:28:08 2011 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.69) (envelope-from ) id 1Q297W-0002ck-Fq for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Mar 2011 22:28:06 +0100 Original-Received: from localhost ([127.0.0.1]:33032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q297V-00051r-Sq for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Mar 2011 17:28:05 -0400 Original-Received: from [140.186.70.92] (port=33207 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2979-00050O-Ti for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 17:27:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2978-0001aB-Ih for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 17:27:43 -0400 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:48925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2978-0001a4-Bf for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 17:27:42 -0400 Original-Received: by ewy9 with SMTP id 9so2063607ewy.0 for ; Tue, 22 Mar 2011 14:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:cc:to:mime-version:x-mailer; bh=ucjxcbz3pZOWhrsR4BgiY51KXgmKtfuGFgtFMg/lmi4=; b=IwhX0AzVrKgC6L3p3C35Cevq8mJQMMQaWU0nDhXjzmPkd4KAcLJCaxxV6pGUH52mNS neuiP5kQFQ8ZnZ03jixPeaqkYv9ctcW/x2BOv0Io8S3Uob4eb2BzsUUCQexnyCQaK4EN lzj7owSdLa0eexoIQNSL/BdqUV+dI4+C/bovY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; b=WNCWxkxk1LoywHJv5A4iEM0AI8VmiBrM+NN6KDuaT/CVCVQq4XdsD3EqBwTXf7bxTY yarASgyRkTnnNgMx7viF9nklQXBoibInkLhwcAzLzwX6CBqByVj9LLf8ZhYLz9jr7qUa YQFFQ+IuTvHBU/vRw3GKBmjr6ypGjGGt7AFv8= Original-Received: by 10.14.119.130 with SMTP id n2mr2176008eeh.59.1300829261173; Tue, 22 Mar 2011 14:27:41 -0700 (PDT) Original-Received: from ip1-201.halifax.rwth-aachen.de (ip1-201.halifax.RWTH-Aachen.DE [137.226.108.201]) by mx.google.com with ESMTPS id b52sm3139904eei.1.2011.03.22.14.27.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2011 14:27:40 -0700 (PDT) X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 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:80322 Archived-At: "Tadeus (Eus) Prastowo" <0x657573@googlemail.com> writes: > > I put the following in my ~/.emacs as per Emacs wiki[1] and do M-x > load-file ~/.emacs: > > (add-to-list 'auto-mode-alist '("\\.bz2\\'" . fundamental-mode)) > > But, Emacs still decompresses the fake .bz2 file resulting in a blank > screen. So, I think the decompression happens before auto-mode can even > do something. Try with: (add-to-list 'auto-mode-alist '("\\.bz2$" . fundamental-mode)) (it works for me), the other regexp was not correct... Hope it helped, bye ;) -- GNU Emacs 24.0.50.3 (x86_64-apple-darwin10.6.0, NS apple-appkit-1038.35) of 2011-03-05 on ip1-201.halifax.rwth-aachen.de