From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Fabrice Niessen" Newsgroups: gmane.emacs.help Subject: Re: emacs mode line suggestions Date: Tue, 18 Nov 2008 10:46:12 +0100 Organization: My Googlest Message-ID: <87od0d8izf.fsf@mundaneum.com> 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 1227007980 5476 80.91.229.12 (18 Nov 2008 11:33:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2008 11:33:00 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Nov 18 12:33:57 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 1L2OqA-00007R-8W for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 12:33:55 +0100 Original-Received: from localhost ([127.0.0.1]:42823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2Ooz-0003NC-4X for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2008 06:32:41 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2!news.addix.net!tiscali!newsfeed1.ip.tiscali.net!proxad.net!feeder1-2.proxad.net!news.wiretrip.org!feeder4.cambrium.nl!feed.tweaknews.nl!news.skynet.be!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Www-site: http://www.MyGooglest.com X-Archive: encrypt User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:DMNTmJsc5X6juse2W3K+yDF7PlE= Original-Lines: 32 Original-NNTP-Posting-Date: 18 Nov 2008 09:46:13 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1227001573 reader0.news.be.easynet.net 1613 [::ffff:81.188.7.152]:24266 Original-X-Complaints-To: abuse-sq41lydJq48WI+UwmH2aBQ@public.gmane.org Original-Xref: news.stanford.edu gnu.emacs.help:164565 X-Mailman-Approved-At: Tue, 18 Nov 2008 06:32:05 -0500 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:59899 Archived-At: Hello, >>> 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!). Wat I personally do, in such cases, and because I don't have any better solution (multiple major modes?) yet, is: o narrow my buffer (`C-x n n') to the code of the "here document", o change the major mode, o update my code, and o widen back my buffer (`C-x n w'). Though, I'd be interested as well by smarter solutions than this one... Best regards, Fabrice _________________________________________________________________________ Fabrice Niessen Search the Web with "My Google Search Tools" on http://www.MyGooglest.com