From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Tadeus (Eus) Prastowo" <0x657573@googlemail.com> Newsgroups: gmane.emacs.help Subject: Re: How to disable file extension auto-detection or auto-action? Date: Tue, 22 Mar 2011 16:59:25 +0100 Message-ID: <1300809565.6241.226.camel@0x657573> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300809670 29209 80.91.229.12 (22 Mar 2011 16:01:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Mar 2011 16:01:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 22 17:01:04 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 1Q2411-0002HZ-KS for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Mar 2011 17:01:03 +0100 Original-Received: from localhost ([127.0.0.1]:34353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q240x-0006Ty-Pj for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Mar 2011 12:01:00 -0400 Original-Received: from [140.186.70.92] (port=50782 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q23zk-0006Dk-Ip for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 11:59:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <0x657573@googlemail.com>) id 1Q23zg-0004qb-Kd for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 11:59:44 -0400 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:33562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <0x657573@googlemail.com>) id 1Q23zg-0004qK-FM for help-gnu-emacs@gnu.org; Tue, 22 Mar 2011 11:59:40 -0400 Original-Received: by eyh6 with SMTP id 6so1950964eyh.0 for ; Tue, 22 Mar 2011 08:59:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=Rgc2K7DcBlPic+dZl4MAVm9yWCEZ02f/miYQ4/aC0iQ=; b=vhmjhahoRM2IDJxYXiUwTyWEFXX1wb9Cx9mwwUFJiVN1T0Ckb/i9dZRS+dPbi9g4W0 RFUZzi5lVg9m5d2OkYwJDGI7yvQTm4uG7FedyG0PBATup+Lkl5P8S/VpGs+4/+2Rldth yfIvO3dcBSLGKUK0zRatsNlQPinLTLjkfKm3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=i/srY2Nvy1ew/lHN+AdfPh73ri1iIQcHgxRaiI37BbQ6eIPhEn6arYT7DF7/BpNQeJ IYksmYbsSgTPB5fXpaX74NaQA6hWjw4k4+hXezNorR5RGz08SIGqov9f9pZPIfj6wZ8Z fmMa7ovPq6REq25JqVW2ye8WWfI8JaTUxvZFg= Original-Received: by 10.14.135.199 with SMTP id u47mr2005020eei.40.1300809578478; Tue, 22 Mar 2011 08:59:38 -0700 (PDT) Original-Received: from [10.248.0.230] ([84.18.157.200]) by mx.google.com with ESMTPS id q53sm2914930eeh.11.2011.03.22.08.59.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2011 08:59:36 -0700 (PDT) In-Reply-To: X-Mailer: Evolution 2.30.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.169 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:80320 Archived-At: Hi Andrea! On Tue, 2011-03-22 at 13:17 +0100, Andrea Crotti wrote: > Hi Tadeus (I think you know me :)) Long time no see! :-) > If the files .bz2 that you want to modify have something unique (like a > path prefix) you might also add an entry to auto-mode-alist with a > matching regexp. > > For example > "bugs.*.bz2$" . fundamental-mode 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. Thanks. [1] http://www.emacswiki.org/emacs/AutoModeAlist -- Best regards, Eus (FSF member #4445) In this digital era, where computing technology is pervasive, your freedom depends on the software controlling those computing devices. Join free software movement today! It is free as in freedom, not as in free beer! Join: http://www.fsf.org/