From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Edward O'Connor" Newsgroups: gmane.emacs.help Subject: Re: How to rescan for mode comment in new buffer? Date: Fri, 31 Jul 2009 13:07:10 -0700 Message-ID: <3b31caf90907311307s3e364050i98844d89a9a66d5c@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249070889 25934 80.91.229.12 (31 Jul 2009 20:08:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 20:08:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "KARR, DAVID (ATTCINW)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 31 22:08:02 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MWyOU-0005lb-NJ for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 22:07:58 +0200 Original-Received: from localhost ([127.0.0.1]:55111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWyOU-0007yr-3a for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 16:07:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWyO7-0007yY-BP for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 16:07:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWyO4-0007vY-1z for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 16:07:35 -0400 Original-Received: from [199.232.76.173] (port=46042 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWyO3-0007vF-Lp for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 16:07:31 -0400 Original-Received: from mail-vw0-f182.google.com ([209.85.212.182]:52865) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWyO2-0006oV-O5 for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 16:07:30 -0400 Original-Received: by vws12 with SMTP id 12so319590vws.24 for ; Fri, 31 Jul 2009 13:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=zbcBSAiBXNfK7xjeTIOKv8l97vvH0QzzgKbRem3plfk=; b=s3u6iThawRG4DNQ7kumUHkboGDXRpDItuJUUrR0hN+iNMJZKbvB2up0zu6OHAb9h0b BrUFY9Trn/6cmOXvO0rUZlhArDHYDXVhJphOjsBWu6ea6+wcqR/sckQQDHnH9TIY3QS1 cljTgfBwNN2m36PoSnTT7TwdeE8nnZUNB3OBA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=XqiNJCQHXpaKYor/FKi9ryWuSBpUyx5S9MbJd39IH/DWxoEpfU+R71BtLvlE/msFx6 DkqDLK6Dcaxs6XUt1FyO6lJL2NFjx5pR6DRnpnJTJGcgPaA9SbBicZUyF2mH3hnqXt2H UbJ0wE4vM4gjdcOu0lL/9aUA+gWntGQphoKOs= Original-Received: by 10.220.72.129 with SMTP id m1mr3400606vcj.76.1249070850140; Fri, 31 Jul 2009 13:07:30 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66581 Archived-At: > If I've created a new empty file and pasted in the header that will make > the shell and Emacs recognize it as a Perl script, what's the easiest > way to "refresh" it so that Emacs recognizes that it has to go into Perl > mode? =C2=A0I could just manually run "perl-mode", but I'd rather a clean= er > way to do it. =C2=A0Saving, killing the buffer and reloading it seems > excessive also. M-x normal-mode RET HTH. HAND. Ted