From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gustavo Seabra Newsgroups: gmane.emacs.help Subject: Re: select 'mode' from command line? Date: Wed, 29 Jun 2005 18:24:59 -0400 Message-ID: References: <7db78fe19f8ca2a7f1668ac6c7ba5654@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1120083677 7487 80.91.229.2 (29 Jun 2005 22:21:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2005 22:21:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 30 00:21:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DnkvS-0000LN-AY for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jun 2005 00:20:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dnl3a-0001IW-3i for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jun 2005 18:29:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dnl1C-0000Y6-P1 for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 18:26:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dnl1A-0000XA-Nd for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 18:26:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dnl0M-00004s-Tm for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 18:26:02 -0400 Original-Received: from [64.233.162.204] (helo=zproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dnl46-00008q-5o for help-gnu-emacs@gnu.org; Wed, 29 Jun 2005 18:29:54 -0400 Original-Received: by zproxy.gmail.com with SMTP id x7so542880nzc for ; Wed, 29 Jun 2005 15:24:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bWh6a+dyIQ36uR8A0w+bBvgGWBZpuoWtUPF8uKWsUZ3muzMeDQ19e8lgRVdD6CdlMILmK+59iaLzT9+T3qoFo7S3Ob6W1UH2zmBAOi12YziXJ3Gxza7DpZQkCsHD8X1JO/Kk3hS01DtciQgUWNhh3AWSz/+qqBS64b9HeAUNNfU= Original-Received: by 10.36.222.65 with SMTP id u65mr63649nzg; Wed, 29 Jun 2005 15:24:59 -0700 (PDT) Original-Received: by 10.36.7.4 with HTTP; Wed, 29 Jun 2005 15:24:59 -0700 (PDT) Original-To: Peter Dyballa In-Reply-To: <7db78fe19f8ca2a7f1668ac6c7ba5654@Web.DE> Content-Disposition: inline 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:27722 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27722 On 6/29/05, Peter Dyballa wrote: >=20 > Am 29.06.2005 um 21:25 schrieb Gustavo Seabra: >=20 > > I'm working witha code that has both fortran 77 and fortran 90 parts. > > All the > > files, however, are named *.f, and emacs always opens them with the > > 'fortran > > mode', which is actually more fortran77. >=20 > Why don't you let your f90 files begin with a comment: >=20 > C -*- mode: f90; coding: iso-8859-15; -*- >=20 > This line among the first few switches GNU Emacs in the right mood. >=20 > -- > Greetings >=20 > Pete >=20 > "One person with a belief is a social power equal to ninety-nine who > have only interests." - John Stuart Mill >=20 >=20 Thanks! that solved the problem, but I had to use: !C -*- mode: f90; coding: iso-8859-15; -*- instead. Otherwise the f90 compiler complains (the "C" on the 1st line is not understood as a comment in F90, "!" is. --=20 ---------------------------------------------------------------------------= ------------------ Gustavo Seabra