From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/6740 Path: main.gmane.org!not-for-mail From: Luc Van Eycken Newsgroups: gmane.emacs.gnus.general Subject: Re: yet more Gnus questions & problems Date: Mon, 17 Jun 1996 17:26:33 +0200 Message-ID: <9606171526.AA10369@coulomb> References: <199606140448.AAA11991@csb.bu.edu> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035147153 4588 80.91.224.250 (20 Oct 2002 20:52:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:52:33 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id JAA21470 for ; Mon, 17 Jun 1996 09:12:59 -0700 Original-Received: from mailserv (mailserv.esat.kuleuven.ac.be [134.58.56.129]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Mon, 17 Jun 1996 17:26:38 +0200 Original-Received: from coulomb (coulomb.esat.kuleuven.ac.be) by mailserv (5.67b8/IDA/v1.5) id AA21563; Mon, 17 Jun 1996 17:26:34 +0200 Original-Received: by coulomb (5.65v3.2/esat.01) id AA10369; Mon, 17 Jun 1996 17:26:33 +0200 Original-To: ding@ifi.uio.no In-Reply-To: larsi@ifi.uio.no's message X-Charset: ISO_8859-1 X-Char-Esc: 29 Xref: main.gmane.org gmane.emacs.gnus.general:6740 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:6740 Lars Magne Ingebrigtsen writes: > jbw@cs.bu.edu (Joe Wells) writes: > > > 2. Can Gnus be made to work with a compressed mail folder via nnfolder? I > > have a bunch of old mail archives that I would like to keep compressed > > at all times, but also access via Gnus. > > It's a tricky question, believe it or not. If you have a folder > called "things.like.tex", you obviously don't want to open it in LaTeX > mode. On the other hand, if you have a folder called "things.gz", you > do want it to be uncompressed, quite likely. Breakage (on files that > happen to end with ".tex", ".c") is much worse than missing features, > so Gnus (and its backends) regards all files as simple modeless text > files. > > There should be a separation in Emacs handling of these issues. ".gz" > handling is something quite different than ".tex" handling, so there > shoul be a way to suppress the latter while keeping the first. Actually there is a difference in `auto-mode-alist'. Quoting from the documentation: > Alist of filename patterns vs corresponding major mode functions. > Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL). > (NON-NIL stands for anything that is not nil; the value does not matter.) > Visiting a file whose name matches REGEXP specifies FUNCTION as the > mode function to use. FUNCTION will be called, unless it is nil. > If the element has the form (REGEXP FUNCTION NON-NIL), then after > calling FUNCTION (if it's not nil), we delete the suffix that matched > REGEXP and search the list again for another match. Modes to preprocess the contents (e.g. jka-compr) use the second form "(REGEXP FUNCTION NON-NIL)" while ordinary modes (e.g. tex) use the first form "(REGEXP . FUNCTION)", so you could use it to distinguish between those two types of modes. Best regards, Luc