From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105470: Improve documentation of `special' modes. Date: Wed, 17 Aug 2011 09:57:27 +0300 Message-ID: <831uwkttig.fsf@gnu.org> References: <838vqttoaf.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1313564258 13420 80.91.229.12 (17 Aug 2011 06:57:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 17 Aug 2011 06:57:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 17 08:57:33 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 1Qta4D-000675-8i for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2011 08:57:33 +0200 Original-Received: from localhost ([::1]:47314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qta4C-0004b8-MQ for ged-emacs-devel@m.gmane.org; Wed, 17 Aug 2011 02:57:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qta49-0004as-T2 for emacs-devel@gnu.org; Wed, 17 Aug 2011 02:57:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qta48-00017q-R3 for emacs-devel@gnu.org; Wed, 17 Aug 2011 02:57:29 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:40327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qta48-00017j-IV for emacs-devel@gnu.org; Wed, 17 Aug 2011 02:57:28 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LQ2001008K8P600@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Wed, 17 Aug 2011 09:57:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.0.3]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LQ200MQO8NPKSW0@a-mtaout22.012.net.il>; Wed, 17 Aug 2011 09:57:26 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:143351 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Tue, 16 Aug 2011 13:11:22 -0400 > > > 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). Are we sure the nil-means-use-current-buffer-major-mode feature is not used too much to get rid of it? And if we do that, how would a Lisp program specify that the major mode of the current buffer is to be used for a newly created buffer?