From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: Re: sh mode for region only ? Date: Thu, 10 May 2012 11:44:06 +0800 Message-ID: <87obpwd7jt.fsf@xc.laptop> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1336621535 16344 80.91.229.3 (10 May 2012 03:45:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 03:45:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 10 05:45:34 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSKJq-0006k1-Dl for geh-help-gnu-emacs@m.gmane.org; Thu, 10 May 2012 05:45:34 +0200 Original-Received: from localhost ([::1]:48879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSKJp-00057P-Jo for geh-help-gnu-emacs@m.gmane.org; Wed, 09 May 2012 23:45:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSKJk-00057I-GT for help-gnu-emacs@gnu.org; Wed, 09 May 2012 23:45:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSKJi-000091-Sa for help-gnu-emacs@gnu.org; Wed, 09 May 2012 23:45:28 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSKJi-00008g-Lb for help-gnu-emacs@gnu.org; Wed, 09 May 2012 23:45:26 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SSKJg-0006iQ-HR for help-gnu-emacs@gnu.org; Thu, 10 May 2012 05:45:24 +0200 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 May 2012 05:45:24 +0200 Original-Received: from XeCycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 May 2012 05:45:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:+NkPMyVVPeO2iVw0EZF0SKKJCDQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:84786 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alexandre Oberlin writes: > Thanks for your suggestion. > > I tried to check if one of those solutions would work at least > while editing but none does. Actually in the narrowed region or > cloned buffer the syntax highlighting seems to take into account > the unseen text to set the highlighting. I need to copy the sh > region to a new file to get the correct syntax highlighting. Apart from multiple modes, you can try working with Org mode, which gives a nice way of embedding source code in documents. =2D-=20 Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJPqzmJAAoJEI1xjsR3leWRy50H/3xgyjw3Tq8m4hErSk+LcH/R pxYZFH8Lsy9xREQ/g5fm2z3FUnCBWVytmijiNmT8hW6VOvh6KxzQOVNGHKLP1LXv lhSakC5pFoXT8WogAe52FEIzWFiK3EcJ9370UV5k5luBaahl9OeymlKMk1Dgcw8h jQzc01H4xvueTJntfotud+acpcLnW32nPt/Kj7gukSvhB23/2fDYX80O1PB5+ueg oF3ro71IwBzlpsdkMHJML2TvAa6N1Pt/9/h6KZF2hDYynHLf38U+LApM7m4As5P3 IrVDaY2+CAJ0vMQYFn7SKp8PTrn0kzyO9d/mv7j53SaFTxqkOsrHNiJz1/hbykg= =mteR -----END PGP SIGNATURE----- --=-=-=--