From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "KARR, DAVID (ATTCINW)" Newsgroups: gmane.emacs.help Subject: How to rescan for mode comment in new buffer? Date: Fri, 31 Jul 2009 12:55:16 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249070167 23605 80.91.229.12 (31 Jul 2009 19:56:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 19:56:07 +0000 (UTC) To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 31 21:56:00 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 1MWyCs-0000ag-5x for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 21:55:58 +0200 Original-Received: from localhost ([127.0.0.1]:44368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWyCr-00066R-M2 for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 15:55:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWyCV-000661-Q0 for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 15:55:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWyCP-00063o-I5 for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 15:55:34 -0400 Original-Received: from [199.232.76.173] (port=58688 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWyCO-00063K-T3 for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 15:55:28 -0400 Original-Received: from mail120.messagelabs.com ([216.82.250.83]:51695) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWyCO-0004hF-1f for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 15:55:28 -0400 X-VirusChecked: Checked X-Env-Sender: dk068x@att.com X-Msg-Ref: server-11.tower-120.messagelabs.com!1249070124!37776429!1 X-StarScan-Version: 6.0.0; banners=-,-,- X-Originating-IP: [144.160.112.25] Original-Received: (qmail 11610 invoked from network); 31 Jul 2009 19:55:24 -0000 Original-Received: from sbcsmtp3.sbc.com (HELO tlph064.enaf.dadc.sbc.com) (144.160.112.25) by server-11.tower-120.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 31 Jul 2009 19:55:24 -0000 Original-Received: from enaf.dadc.sbc.com (localhost.localdomain [127.0.0.1]) by tlph064.enaf.dadc.sbc.com (8.14.3/8.14.3) with ESMTP id n6VJtOWN021761 for ; Fri, 31 Jul 2009 14:55:24 -0500 Original-Received: from td03xsmtp007.US.Cingular.Net (td03xsmtp007.us.cingular.net [170.35.131.171]) by tlph064.enaf.dadc.sbc.com (8.14.3/8.14.3) with ESMTP id n6VJtIR5021633 for ; Fri, 31 Jul 2009 14:55:18 -0500 Original-Received: from bd01xsmtp004.US.Cingular.Net ([135.163.18.45]) by td03xsmtp007.US.Cingular.Net with Microsoft SMTPSVC(6.0.3790.3959); Fri, 31 Jul 2009 14:55:18 -0500 Original-Received: from BD01MSXMB018.US.Cingular.Net ([135.214.27.52]) by bd01xsmtp004.US.Cingular.Net with Microsoft SMTPSVC(6.0.3790.3959); Fri, 31 Jul 2009 12:55:17 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to rescan for mode comment in new buffer? Thread-Index: AcoSGNMtQTotbe4BRuedsgbyH2XOtQ== X-OriginalArrivalTime: 31 Jul 2009 19:55:17.0599 (UTC) FILETIME=[D3D5A6F0:01CA1218] X-TM-AS-Product-Ver: SMEX-7.0.0.1607-5.5.1027-16798.001 X-TM-AS-Result: No--3.519700-0.000000-31 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:66580 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? I could just manually run "perl-mode", but I'd rather a cleaner way to do it. Saving, killing the buffer and reloading it seems excessive also.