From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9796: 24.0.90; Major mode selection after "save as" Date: Fri, 21 Oct 2011 02:16:18 -0400 Message-ID: <64y5we3m4t.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1319177822 11868 80.91.229.12 (21 Oct 2011 06:17:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2011 06:17:02 +0000 (UTC) Cc: 9796@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 21 08:16:57 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RH8PW-00031k-Q0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2011 08:16:55 +0200 Original-Received: from localhost ([::1]:52342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH8PV-0002xz-JX for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2011 02:16:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH8PS-0002xr-Lo for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 02:16:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RH8PR-0001F2-MK for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 02:16:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RH8PR-0001Ey-JS for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 02:16:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RH8Qb-0002TV-WA for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 02:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2011 06:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9796-submit@debbugs.gnu.org id=B9796.13191778579481 (code B ref 9796); Fri, 21 Oct 2011 06:18:01 +0000 Original-Received: (at 9796) by debbugs.gnu.org; 21 Oct 2011 06:17:37 +0000 Original-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 Original-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 Original-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 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") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 21 Oct 2011 02:18:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52969 Archived-At: 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.