Subject: bug#9796: 24.0.90; Mayor mode selection after "save as"

From: Dani Moncayo <[email-masked]>
Date: Wed, 19 Oct 2011 18:05:36 +0200

>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