unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Tadeus (Eus) Prastowo" <0x657573@googlemail.com>
To: Andrea Crotti <andrea.crotti.0@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to disable file extension auto-detection or auto-action?
Date: Tue, 22 Mar 2011 16:59:25 +0100	[thread overview]
Message-ID: <1300809565.6241.226.camel@0x657573> (raw)
In-Reply-To: <sa0lj079wod.fsf@gmail.com>

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/




  reply	other threads:[~2011-03-22 15:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21  8:12 How to disable file extension auto-detection or auto-action? Tadeus (Eus) Prastowo
2011-03-22 12:17 ` Andrea Crotti
2011-03-22 15:59   ` Tadeus (Eus) Prastowo [this message]
     [not found]   ` <mailman.1.1300809590.31145.help-gnu-emacs@gnu.org>
2011-03-22 19:31     ` Ralf Fassel
2011-03-23 18:34       ` Tadeus (Eus) Prastowo
     [not found] <mailman.1.1300728119.14572.help-gnu-emacs@gnu.org>
2011-03-22  1:30 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2011-03-22 21:27 Andrea Crotti
     [not found] <mailman.5.1300829265.13753.help-gnu-emacs@gnu.org>
2011-03-23  1:47 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1300809565.6241.226.camel@0x657573 \
    --to=0x657573@googlemail.com \
    --cc=andrea.crotti.0@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).