unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
[parent not found: <mailman.5.1300829265.13753.help-gnu-emacs@gnu.org>]
* Re: How to disable file extension auto-detection or auto-action?
@ 2011-03-22 21:27 Andrea Crotti
  0 siblings, 0 replies; 8+ messages in thread
From: Andrea Crotti @ 2011-03-22 21:27 UTC (permalink / raw)
  To: 0x657573; +Cc: help-gnu-emacs

"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



^ permalink raw reply	[flat|nested] 8+ messages in thread
* How to disable file extension auto-detection or auto-action?
@ 2011-03-21  8:12 Tadeus (Eus) Prastowo
  2011-03-22 12:17 ` Andrea Crotti
  0 siblings, 1 reply; 8+ messages in thread
From: Tadeus (Eus) Prastowo @ 2011-03-21  8:12 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

When working on a bug in apt-cacher[1], I needed to read the content
of *.bz2 files that actually were only text files. But, every time I
open a .bz2 file, Emacs sees the extension and does auto-decompression
resulting in an empty buffer.

Is there a way to open a file dumbly without any sort of auto-action?

Thank you.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618996

-- 
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/



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-23 18:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1.1300728119.14572.help-gnu-emacs@gnu.org>
2011-03-22  1:30 ` How to disable file extension auto-detection or auto-action? Stefan Monnier
     [not found] <mailman.5.1300829265.13753.help-gnu-emacs@gnu.org>
2011-03-23  1:47 ` Stefan Monnier
2011-03-22 21:27 Andrea Crotti
  -- strict thread matches above, loose matches on Subject: below --
2011-03-21  8:12 Tadeus (Eus) Prastowo
2011-03-22 12:17 ` Andrea Crotti
2011-03-22 15:59   ` Tadeus (Eus) Prastowo
     [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

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).