From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pmlists@free.fr (Peter =?utf-8?Q?M=C3=BCnster?=) Newsgroups: gmane.emacs.help,gmane.emacs.devel Subject: Re: Major mode weirdness. Date: Wed, 13 Jul 2011 23:37:46 +0200 Organization: Micropit Message-ID: <878vs1276d.fsf@micropit.couberia.bzh> References: <87d3hejj8p.fsf@UlanBator.myhome.westell.com> <87oc0y81tc.wl%v.plechinger@gmail.com> <87zkkhyku1.fsf@UlanBator.myhome.westell.com> <87k4bl99ef.wl%v.plechinger@gmail.com> <87oc0xyj26.fsf@gilead.invalid> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310593219 19645 80.91.229.12 (13 Jul 2011 21:40:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 21:40:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 23:40:16 2011 Return-path: Envelope-to: geh-help-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 1Qh7AF-0007KH-QV for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 23:40:15 +0200 Original-Received: from localhost ([::1]:54988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh7AE-0003ik-Fj for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 17:40:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh78U-0003eP-6F for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 17:38:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qh78S-0003sp-BF for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 17:38:25 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:34919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh78R-0003sj-Vd for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 17:38:24 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qh78K-0006Gg-Qq for help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 23:38:16 +0200 Original-Received: from arennes-651-1-106-120.w2-2.abo.wanadoo.fr ([2.2.1.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jul 2011 23:38:16 +0200 Original-Received: from pmlists by arennes-651-1-106-120.w2-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jul 2011 23:38:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-651-1-106-120.w2-2.abo.wanadoo.fr User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:C1CTFhojd99QP6JwLOh2QZaazY8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81578 gmane.emacs.devel:142013 Archived-At: On Wed, Jul 13 2011, Daniel Schoepe wrote: > At any rate, I guess the docstring for default-major-mode possibly > should say more than just "use `major-mode' instead" though. Here a tiny patch (cross-post to emacs.devel): === modified file 'lisp/subr.el' --- lisp/subr.el 2011-07-02 04:27:41 +0000 +++ lisp/subr.el 2011-07-13 21:31:03 +0000 @@ -1174,7 +1174,8 @@ (make-obsolete-variable 'default-buffer-file-type 'buffer-file-type "23.2") (make-obsolete-variable 'default-cursor-in-non-selected-windows 'cursor-in-non-selected-windows "23.2") (make-obsolete-variable 'default-buffer-file-coding-system 'buffer-file-coding-system "23.2") -(make-obsolete-variable 'default-major-mode 'major-mode "23.2") +(make-obsolete-variable 'default-major-mode + "use (setq-default major-mode ...) instead" "23.2") (make-obsolete-variable 'default-enable-multibyte-characters "use enable-multibyte-characters or set-buffer-multibyte instead" "23.2") -- Peter