emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#24266: closed (25.1.50: Major mode set on line 1 c


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#24266: closed (25.1.50: Major mode set on line 1 cannot be changed.)
Date: Sat, 20 Aug 2016 08:36:02 +0000

Your message dated Sat, 20 Aug 2016 08:34:34 +0000
with message-id <address@hidden>
and subject line Re: bug#24266: Acknowledgement (25.1.50: Major mode set on 
line 1 cannot be changed.)
has caused the debbugs.gnu.org bug report #24266,
regarding 25.1.50: Major mode set on line 1 cannot be changed.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
24266: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24266
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 25.1.50: Major mode set on line 1 cannot be changed. Date: Fri, 19 Aug 2016 15:30:16 +0000 User-agent: Mutt/1.5.24 (2015-08-30)
Hello, Emacs.

Create a file which sets the mode in line 1, e.g.:

    /* -*- Mode: C -*- */

.  Start emacs -Q, then visit that file with C-x C-f.  It's major mode
is C Mode.

Now try, successively, M-x fundamental-mode, M-x c++-mode.  The major
mode stays C Mode in both cases.  This is a bug.

Note: the bug was introduced by patch

    commit 25f455815bfaa868dc470d445413df9a7a546c46
    Author: Alan Mackenzie <address@hidden>
    Date:   Thu May 5 11:05:49 2016 +0000

    Call hack-local-variables from major modes rather than from file visiting

    This prevents file/directory local variables from being lost when the major
    mode is set or changed.

It's cause was an inaccuracy in the doc string for
`hack-local-variables-prop-line'.

A patch is available and will be committed soon.

-- 
Alan Mackenzie (Nuremberg, Germany).



--- End Message ---
--- Begin Message --- Subject: Re: bug#24266: Acknowledgement (25.1.50: Major mode set on line 1 cannot be changed.) Date: Sat, 20 Aug 2016 08:34:34 +0000 User-agent: Mutt/1.5.24 (2015-08-30)
Bug fixed in savannah master branch.

-- 
Alan Mackenzie (Nuremberg, Germany).


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]