From unknown Sat Aug 16 10:42:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9796 <9796@debbugs.gnu.org> To: bug#9796 <9796@debbugs.gnu.org> Subject: Status: Major mode selection after "save as" Reply-To: bug#9796 <9796@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:42:54 +0000 retitle 9796 Major mode selection after "save as" reassign 9796 emacs submitter 9796 Dani Moncayo severity 9796 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 19 12:07:04 2011 Received: (at submit) by debbugs.gnu.org; 19 Oct 2011 16:07:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGYfY-000551-0x for submit@debbugs.gnu.org; Wed, 19 Oct 2011 12:07:04 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGYfV-00054Y-KZ for submit@debbugs.gnu.org; Wed, 19 Oct 2011 12:07:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGYeI-0006Lm-Vv for submit@debbugs.gnu.org; Wed, 19 Oct 2011 12:05:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:37032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGYeI-0006LC-FF for submit@debbugs.gnu.org; Wed, 19 Oct 2011 12:05:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]:59136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGYeF-0007FN-9B for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 12:05:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGYe9-0006I2-C0 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 12:05:43 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:57133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGYe9-0006Hy-72 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 12:05:37 -0400 Received: by yxs7 with SMTP id 7so2221037yxs.0 for ; Wed, 19 Oct 2011 09:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=KjIyZeVfRvfIeeNkhDIW4VO33NxxP0oEFt0LUYqy43Q=; b=aKCG0sYwVwXJJpgMIN8nsIfaUcG9hXNEkf4b2x3siK/Y7bs7ITW3S4V+fE1GGJvlif POLwGB8sNCfjyGd4CTs7P8XkehaHfNTmpireyGRMPA7ZR+7j/+awYtQ9FFK7ebQ2NaoG WWje+j1+cOBsRrWW4TFy+51wOKBgXaQBYclyc= MIME-Version: 1.0 Received: by 10.236.183.129 with SMTP id q1mr10695894yhm.35.1319040336842; Wed, 19 Oct 2011 09:05:36 -0700 (PDT) Received: by 10.236.36.40 with HTTP; Wed, 19 Oct 2011 09:05:36 -0700 (PDT) Date: Wed, 19 Oct 2011 18:05:36 +0200 Message-ID: Subject: 24.0.90; Mayor mode selection after "save as" From: Dani Moncayo To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) >From "emacs -Q": 1. Create a new buffer and write something into it. 2. Type "C-x C-s" and save the buffer as "test.txt". 3. Now Type "C-x C-w" and save another copy as "test.sql". The mayor mode chosen for the "test.sql" buffer is "SQL", whereas the one chosen when I kill all buffers and visit the "test.sql" file is "SQL[ANSI]". I expected that the chosen mode was the same in both cases. In GNU Emacs 24.0.90.1 (i386-mingw-nt5.1.2600) of 2011-10-18 on DANI-PC Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5)' -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 19 13:10:36 2011 Received: (at 9796) by debbugs.gnu.org; 19 Oct 2011 17:10:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGZf1-0006Xg-Me for submit@debbugs.gnu.org; Wed, 19 Oct 2011 13:10:36 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGZez-0006XP-Gb for 9796@debbugs.gnu.org; Wed, 19 Oct 2011 13:10:34 -0400 Received: by gyh20 with SMTP id 20so1848846gyh.3 for <9796@debbugs.gnu.org>; Wed, 19 Oct 2011 10:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=i96zA4uDZDDr+7OTxwoh6v3c4UNtuGwckyA9bZ04z/g=; b=JJU7oO2crk1QKaPNFBKIQ/EPw/1bYeqJD9YZv2ph3FCZMeQQVsgQ5i+wd4fDy63ly4 LxdNH6NObXv6VZiORH+pofyRDq32b3ldVAcmTBSo+N1i8ne6XOr3fCSJDO0WHd9aAHnv qKJRkysgAvbQb9yuSWuVrvyq1coFm1KNNsFao= MIME-Version: 1.0 Received: by 10.236.183.129 with SMTP id q1mr11099151yhm.35.1319044164382; Wed, 19 Oct 2011 10:09:24 -0700 (PDT) Received: by 10.236.36.40 with HTTP; Wed, 19 Oct 2011 10:09:24 -0700 (PDT) Date: Wed, 19 Oct 2011 19:09:24 +0200 Message-ID: Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" From: Dani Moncayo To: 9796@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: 9796 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.7 (---) retitle 9796 Major mode selection after "save as" stop > The mayor mode chosen for the "test.sql" buffer is "SQL", whereas the ^^^^^ s/mayor/major/ Sorry. -- Dani Moncayo From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 19 17:44:38 2011 Received: (at 9796) by debbugs.gnu.org; 19 Oct 2011 21:44:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGdwB-0004yx-V5 for submit@debbugs.gnu.org; Wed, 19 Oct 2011 17:44:37 -0400 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGdw9-0004yq-B5 for 9796@debbugs.gnu.org; Wed, 19 Oct 2011 17:44:34 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RGdv5-0001zl-HY; Wed, 19 Oct 2011 17:43:27 -0400 From: Glenn Morris To: Dani Moncayo Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" References: X-Spook: Janet Reno Fedayeen sweep Cocaine undercover Maple red X-Ran: a4B&f)VJ,:%%y,QA+6Du263%uH-'7`o{WHM(>G|mjob~)bbrp6Y{[HoLLS3*44K1BYdszx X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 19 Oct 2011 17:43:27 -0400 In-Reply-To: (Dani Moncayo's message of "Wed, 19 Oct 2011 19:09:24 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9796 Cc: 9796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) The issue you are reporting is specific to sql-mode. The [] piece is added by sql-highlight-product, which sql-mode runs via hack-local-variables-hook. Changing a buffer's filename changes the major-mode (if change-major-mode-with-file-name is non-nil), but does not re-hack the local variables. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 19 17:52:56 2011 Received: (at 9796) by debbugs.gnu.org; 19 Oct 2011 21:52:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGe4F-0005AS-ND for submit@debbugs.gnu.org; Wed, 19 Oct 2011 17:52:56 -0400 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGe4E-0005AL-1x for 9796@debbugs.gnu.org; Wed, 19 Oct 2011 17:52:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RGe3A-0002Re-AC; Wed, 19 Oct 2011 17:51:48 -0400 From: Glenn Morris To: Dani Moncayo Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" References: X-Spook: Sundevil data haven benelux IDEA TWA Attorney General INS X-Ran: &Ms'On_*;|KG`;V{a*"jh_T;6Y`i_gOr/g-`.>+Qq#+to"BRp`lrb[j/81|.c.#VyqXav* X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 19 Oct 2011 17:51:48 -0400 In-Reply-To: (Glenn Morris's message of "Wed, 19 Oct 2011 17:43:27 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9796 Cc: 9796@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Glenn Morris wrote: > Changing a buffer's filename changes the major-mode (if > change-major-mode-with-file-name is non-nil), but does not re-hack the > local variables. I guess it probably should, since any specified file local variables get clobbered by the mode change. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 19 20:32:09 2011 Received: (at 9796) by debbugs.gnu.org; 20 Oct 2011 00:32:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGgYL-0000M2-K5 for submit@debbugs.gnu.org; Wed, 19 Oct 2011 20:32:09 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGgYI-0000LX-Hd for 9796@debbugs.gnu.org; Wed, 19 Oct 2011 20:32:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAAZrn05MCqLO/2dsb2JhbABEqQGBBoFuAQEEAVYjEAsOJhIUGA0kiBO2WYgbBKEshEU X-IronPort-AV: E=Sophos;i="4.69,375,1315195200"; d="scan'208";a="143191802" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 19 Oct 2011 20:30:55 -0400 Received: by pastel.home (Postfix, from userid 20848) id C82524E131; Wed, 19 Oct 2011 20:30:53 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" Message-ID: References: Date: Wed, 19 Oct 2011 20:30:53 -0400 In-Reply-To: (Glenn Morris's message of "Wed, 19 Oct 2011 17:51:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9796 Cc: 9796@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >> Changing a buffer's filename changes the major-mode (if >> change-major-mode-with-file-name is non-nil), but does not re-hack the >> local variables. > I guess it probably should, since any specified file local variables get > clobbered by the mode change. As mentioned in some earlier post (several months ago), I think that normal-mode should run hack-local-variables. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 19 21:27:55 2011 Received: (at 9796) by debbugs.gnu.org; 20 Oct 2011 01:27:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGhQJ-0001cT-BK for submit@debbugs.gnu.org; Wed, 19 Oct 2011 21:27:55 -0400 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGhQG-0001cM-E1 for 9796@debbugs.gnu.org; Wed, 19 Oct 2011 21:27:53 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RGhPB-0006Yi-S8; Wed, 19 Oct 2011 21:26:45 -0400 From: Glenn Morris To: Stefan Monnier Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" References: X-Spook: Honduras Baranyi Soviet BROMURE Panama ammunition smuggle X-Ran: 0.x9k,qOkbPp:%TxlUsTn9oa@HN[b59z5k@i#njOuz2.8,QWXne'[ZGR#a&(4n:Kkjr;gu X-Hue: blue X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 19 Oct 2011 21:26:45 -0400 In-Reply-To: (Stefan Monnier's message of "Wed, 19 Oct 2011 20:30:53 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9796 Cc: 9796@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Stefan Monnier wrote: > As mentioned in some earlier post (several months ago), I think that > normal-mode should run hack-local-variables. It already does (and always has)? set-auto-mode is being used here though, not normal-mode. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 19 22:25:12 2011 Received: (at 9796) by debbugs.gnu.org; 20 Oct 2011 02:25:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGiJk-0002sv-Dz for submit@debbugs.gnu.org; Wed, 19 Oct 2011 22:25:12 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGiJi-0002sk-HP for 9796@debbugs.gnu.org; Wed, 19 Oct 2011 22:25:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EABuGn05MCqLO/2dsb2JhbABEqQKBBoFuAQEEAVYjEAsOJhIUGA0kiBO2KYgbBKEshEU X-IronPort-AV: E=Sophos;i="4.69,375,1315195200"; d="scan'208";a="143203457" Received: from 76-10-162-206.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 19 Oct 2011 22:23:58 -0400 Received: by ceviche.home (Postfix, from userid 20848) id AFB74660B6; Wed, 19 Oct 2011 22:23:57 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" Message-ID: References: Date: Wed, 19 Oct 2011 22:23:57 -0400 In-Reply-To: (Glenn Morris's message of "Wed, 19 Oct 2011 21:26:45 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9796 Cc: 9796@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >> As mentioned in some earlier post (several months ago), I think that >> normal-mode should run hack-local-variables. > It already does (and always has)? > set-auto-mode is being used here though, not normal-mode. So I guess we shouldn't use set-auto-mode here. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 21 02:17:37 2011 Received: (at 9796) by debbugs.gnu.org; 21 Oct 2011 06:17:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH8QC-0002Sr-Db for submit@debbugs.gnu.org; Fri, 21 Oct 2011 02:17:36 -0400 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH8Q9-0002Sj-NT for 9796@debbugs.gnu.org; Fri, 21 Oct 2011 02:17:34 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RH8Ow-0002hs-JN; Fri, 21 Oct 2011 02:16:18 -0400 From: Glenn Morris To: Stefan Monnier Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" References: X-Spook: Aladdin spies number key NASA BATF USDOJ Leitrim Nazi X-Ran: =F$p=:,yM]i+4#iSslfhfyK6g1yxs)"dUm2@Yi0}sIIz>z`62SZ (Stefan Monnier's message of "Wed, 19 Oct 2011 22:23:57 -0400") Message-ID: <64y5we3m4t.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9796 Cc: 9796@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Stefan Monnier wrote: >> set-auto-mode is being used here though, not normal-mode. > > So I guess we shouldn't use set-auto-mode here. normal-mode first switches to fundamental-mode, then changes to the right mode, then turns font-lock off and on. Is that necessary here? Also it does not have a "keep-mode-if-same" argument. It seems simpler to me for set-visited-file-name just to hack-local-variables. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 21 08:53:39 2011 Received: (at 9796) by debbugs.gnu.org; 21 Oct 2011 12:53:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHEbS-0003tW-Pq for submit@debbugs.gnu.org; Fri, 21 Oct 2011 08:53:39 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHEbQ-0003tH-9s for 9796@debbugs.gnu.org; Fri, 21 Oct 2011 08:53:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EABhqoU5MCqLO/2dsb2JhbABDqRuBBoFuAQEEAVYjEAsOJhIUGA0kiBO0BYhABKEyhEU X-IronPort-AV: E=Sophos;i="4.69,385,1315195200"; d="scan'208";a="143520604" Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Oct 2011 08:52:16 -0400 Received: by pastel.home (Postfix, from userid 20848) id 5A1DB591FC; Fri, 21 Oct 2011 08:52:15 -0400 (EDT) From: Stefan Monnier To: Glenn Morris Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" Message-ID: References: <64y5we3m4t.fsf@fencepost.gnu.org> Date: Fri, 21 Oct 2011 08:52:15 -0400 In-Reply-To: <64y5we3m4t.fsf@fencepost.gnu.org> (Glenn Morris's message of "Fri, 21 Oct 2011 02:16:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9796 Cc: 9796@debbugs.gnu.org, Dani Moncayo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) >>> set-auto-mode is being used here though, not normal-mode. >> So I guess we shouldn't use set-auto-mode here. > normal-mode first switches to fundamental-mode, then changes to the > right mode, then turns font-lock off and on. Is that necessary here? > Also it does not have a "keep-mode-if-same" argument. > It seems simpler to me for set-visited-file-name just to > hack-local-variables. For 24.1, yes. But in general we'd want to restructure the code a bit to make it harder to avoid running hack-local-variables-hook (or maybe provide a new hook to replace it, which is guaranteed to run after changing a major-mode). Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 27 02:40:46 2011 Received: (at 9796-done) by debbugs.gnu.org; 27 Oct 2011 06:40:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJJdt-0005Xo-DE for submit@debbugs.gnu.org; Thu, 27 Oct 2011 02:40:46 -0400 Received: from fencepost.gnu.org ([140.186.70.10] ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RJJdq-0005Xf-Nm for 9796-done@debbugs.gnu.org; Thu, 27 Oct 2011 02:40:43 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RJJc5-0002Ft-Dt; Thu, 27 Oct 2011 02:38:53 -0400 From: Glenn Morris To: 9796-done@debbugs.gnu.org Subject: Re: bug#9796: 24.0.90; Major mode selection after "save as" References: <64y5we3m4t.fsf@fencepost.gnu.org> X-Spook: e-bomb radar New World Order electronic surveillance IMF X-Ran: n3nN[<4[Y-<'j>iG:Hs__&Vo:wK["B:DD^ah:6P#$AwevdqfsPbw)n5Dkfb^UlL]wvGY}) X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 27 Oct 2011 02:38:52 -0400 In-Reply-To: (Stefan Monnier's message of "Fri, 21 Oct 2011 08:52:15 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9796-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Version: 24.0.91 Should be fixed now. From unknown Sat Aug 16 10:42:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 24 Nov 2011 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator