From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: emacs mode line suggestions Date: Mon, 17 Nov 2008 23:46:05 +0000 Message-ID: <20081117234605.GC9335@muc.de> References: <15962952-6180-41bd-abce-1b919aa55807@v13g2000pro.googlegroups.com> <39353809-6edf-4b7e-aae2-e0dd4d614c61@a26g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226964856 31341 80.91.229.12 (17 Nov 2008 23:34:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 23:34:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 00:35:19 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L2Dck-0001LP-GR for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 00:35:18 +0100 Original-Received: from localhost ([127.0.0.1]:42683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2Dbb-0007Nu-Jo for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 18:34:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2DbK-0007Np-4U for help-gnu-emacs@gnu.org; Mon, 17 Nov 2008 18:33:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2DbH-0007Nd-PQ for help-gnu-emacs@gnu.org; Mon, 17 Nov 2008 18:33:48 -0500 Original-Received: from [199.232.76.173] (port=42451 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2DbH-0007Na-I9 for help-gnu-emacs@gnu.org; Mon, 17 Nov 2008 18:33:47 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:2676 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L2DbH-0003Ph-0c for help-gnu-emacs@gnu.org; Mon, 17 Nov 2008 18:33:47 -0500 Original-Received: (qmail 50163 invoked by uid 3782); 17 Nov 2008 23:33:45 -0000 Original-Received: from acm.muc.de (pD9E5292D.dip.t-dialin.net [217.229.41.45]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 18 Nov 2008 00:33:43 +0100 Original-Received: (qmail 9813 invoked by uid 1000); 17 Nov 2008 23:46:05 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59883 Archived-At: Hi, Eli! On Mon, Nov 17, 2008 at 10:39:57PM +0200, Eli Zaretskii wrote: > > From: Xah > > Date: Sun, 16 Nov 2008 15:17:44 -0800 (PST) > > > > switching between modes is not rarely used. I'd estimate it is > > > > used every other hour at least. Not by me. > > > Please provide some use-cases to back this up. FWIW, I almost > > > never switch the major mode in the same buffer, unless Emacs didn't > > > switch into the right one to begin with, and even then I only do > > > that once in a given buffer. > > those who use *scratch*, or create new buffer, or create new file... > > he may need to switch to the righ lang mode. > Usually, creating a new file with C-x C-f already switches on the right > mode. And even if Emacs somehow gets this wrong, it's a one-time event > for that buffer. However, if I create a new buffer with C-x C-b foo.c, it starts in Fundamental Mode, not C Mode. Is there a good reason for this, or did it just happen? It irritates me quite a bit, but not quite enough to bring me to fixing it. ;-) > > Sometimes when such buffer is used as a scratch, programer may have > > more than one lang inserted into it, and may switch to different mode > > for the right syntax coloring. > Is this frequent usage? I never use Emacs like that, but that's me. "Here documents" inside shell scripts bug me, but I never change modes to get them to fontify and indent right. It would be great to have a solid "multiple mode" working (hi, Lennart!). -- Alan Mackenzie (Nuremberg, Germany).