From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105470: Improve documentation of `special' modes. Date: Tue, 16 Aug 2011 13:11:22 -0400 Message-ID: References: <838vqttoaf.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313514696 25367 80.91.229.12 (16 Aug 2011 17:11:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2011 17:11:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 16 19:11:32 2011 Return-path: Envelope-to: ged-emacs-devel@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 1QtNAm-000162-NY for ged-emacs-devel@m.gmane.org; Tue, 16 Aug 2011 19:11:28 +0200 Original-Received: from localhost ([::1]:52208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtNAl-0007sY-Vk for ged-emacs-devel@m.gmane.org; Tue, 16 Aug 2011 13:11:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtNAk-0007sL-0W for emacs-devel@gnu.org; Tue, 16 Aug 2011 13:11:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtNAi-0001Ld-Oh for emacs-devel@gnu.org; Tue, 16 Aug 2011 13:11:25 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:43253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtNAi-0001LS-Kb; Tue, 16 Aug 2011 13:11:24 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p7GHBNmX030724; Tue, 16 Aug 2011 13:11:23 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 1FD6AB40F7; Tue, 16 Aug 2011 13:11:23 -0400 (EDT) In-Reply-To: <838vqttoaf.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Aug 2011 17:38:00 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3951=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3951> : streams <672170> : uri <935691> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143319 Archived-At: >> > +If this mode is appropriate only for specially-prepared text produced by >> > +the mode itself (rather than by the user typing at the keyboard or by an >> > +external file), then the major mode command symbol should have a >> > +property named @code{mode-class} with value @code{special}, put on as >> > +follows: >> AFAIK we also use `special' for things like doc-view-mode. > It was mostly the old text, I just added the part in parentheses. > I don't actually have a good understanding of why would a mode want to > behave like that. The above explanation is purely phenomenological, > so if I would need to determine whether my mode needs it, I'd be > probably stumped. I don't really see the connection between > "specially-prepared" and "don't use me as the default mode". > Can you explain the considerations for when to use this feature? I > will then clarify this in the manual. Indeed, I'm just as lost as you are :-( For that reason, I'd be happy to get rid of this "use as the default mode" thingy. I.e. we should simply never inherit the major mode of new buffers from the current buffer (if the global value of major-mode is nil, then the default major-mode when creating a new buffer will be fundamental-mode, and that's it). Stefan