From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Has enriched-mode become =?UTF-8?Q?enriched=3F?= Date: Wed, 14 Jul 2021 01:39:35 +1200 Message-ID: <6d9ac89757d7545b65ffc7c0d280a5ec@webmail.orcon.net.nz> References: <87r1g4lzax.fsf@yandex.com> <83v95e8kxw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34872"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: Eli Zaretskii , emacs-devel@gnu.org To: Colin Baxter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 13 16:10:00 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3J6m-0008xY-3c for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Jul 2021 16:10:00 +0200 Original-Received: from localhost ([::1]:38574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3J6l-0008MM-0P for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Jul 2021 10:09:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3IdY-00044c-VR for emacs-devel@gnu.org; Tue, 13 Jul 2021 09:39:49 -0400 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:58339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3IdV-0004mv-MO; Tue, 13 Jul 2021 09:39:47 -0400 Original-Received: from [10.253.37.70] (port=34032 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1m3IdM-0006YG-2N; Wed, 14 Jul 2021 01:39:36 +1200 Original-Received: from ip-116-251-162-85.kinect.net.nz ([116.251.162.85]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 14 Jul 2021 01:39:35 +1200 In-Reply-To: <83v95e8kxw.fsf@gnu.org> X-Sender: psainty@orcon.net.nz X-GeoIP: -- Received-SPF: pass client-ip=60.234.4.34; envelope-from=psainty@orcon.net.nz; helo=smtp-1.orcon.net.nz X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_20=-0.001, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271198 Archived-At: Colin Baxter wrote: > 1. It used to be the case that I could set a local variable as > > # Local Variables: > # mode: enriched-mode > # End: > > Now the addition of mode after the hyphen gives a File local-variables > error: (void-function enriched-mode-mode). I now have to use > > # Local Variables: > # mode: enriched > # End: The latter has, to my knowledge, always been the correct/supported syntax. Perhaps there was once support for people inadvertently including a -mode suffix in a "mode:" file-local, but if so then that must have been removed a while ago. (I don't have an older version than 26.3 installed on this machine, but that certainly doesn't support "mode: FOO-mode".) I see that `enriched-mode' is a minor mode rather than a major mode, though, so I'm guessing you were doing this in a version of Emacs earlier than 24.1; either or both of these NEWS.24 entries may well be relevant: *** Using "mode: MINOR-MODE" to enable a minor mode is deprecated. Instead, use "eval: (minor-mode 1)". *** `set-auto-mode' now respects mode: local variables at the end of files, as well as those in the -*- line. -Phil