From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Recognize mbox files? Date: Wed, 18 Feb 2009 12:27:22 +0900 Message-ID: <87bpt0qvad.fsf@xemacs.org> References: <1234884467.428644.9675.nullmailer@beryx.hq.kred> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234927878 24499 80.91.229.12 (18 Feb 2009 03:31:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2009 03:31:18 +0000 (UTC) Cc: xma@gnu.org, ams@gnu.org, cyd@stupidchicken.com, rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 18 04:32:33 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LZdAl-0003pf-Ga for ged-emacs-devel@m.gmane.org; Wed, 18 Feb 2009 04:32:31 +0100 Original-Received: from localhost ([127.0.0.1]:58267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZd9Q-00028o-Vz for ged-emacs-devel@m.gmane.org; Tue, 17 Feb 2009 22:31:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LZd9M-00026D-Ck for emacs-devel@gnu.org; Tue, 17 Feb 2009 22:31:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LZd9L-000250-G5 for emacs-devel@gnu.org; Tue, 17 Feb 2009 22:31:04 -0500 Original-Received: from [199.232.76.173] (port=44483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LZd9L-00024i-9o for emacs-devel@gnu.org; Tue, 17 Feb 2009 22:31:03 -0500 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]:57408) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LZd9D-00062z-SZ; Tue, 17 Feb 2009 22:30:56 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id C21BE820E; Wed, 18 Feb 2009 12:30:44 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id ED09D1A27C8; Wed, 18 Feb 2009 12:27:22 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109162 Archived-At: Stefan Monnier writes: > Alfred Szmidt writes: > > What is wrong with using real local variables? Nothing. The main issue is that you may not want to use the -*- stuff -*- hack since you do not want to touch the From_ line. Doesn't Emacs recognize local variables in the last page? Why not simply have a last "message" from Rmail that simply says This mailbox is an explicit Rmail mbox. That means that Emacs will recognize it and automatically start Rmail mode, and you can set local variables here. Keep the local variables at the end of this message. Local Variables: mode: rmail coding: binary End: Rmail could suppress display of that message ordinarily. > That's my idea as well: try to use the -*-rmail-*- tag. > It might even be possible to place it on the first ("From ") line. Nope, that loses immediately because it breaks the mbox format (FSVO "mbox format" of course, but it certainly will be different from what the system MDA generates). Why bother changing from BABYL if you're just going to break the format in a different way? Doesn't emacs recognize -*- stuff -*- in the second line? In fact, why not simply have a real local variables section as above? > Another issue is to make sure those files get opened into a unibyte > buffer (i.e. use a `binary' coding-system). So maybe the tag should > really be -*-mode:rmail;coding:binary-*-. A good reason to have a verbose Local Variables section.