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: Wed, 09 May 2012 22:32:38 +0800 Message-ID: <87obpxxw55.fsf@xc.laptop> References: <87sjf9xykf.fsf@xc.laptop> 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 1336574147 31785 80.91.229.3 (9 May 2012 14:35:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 May 2012 14:35:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 09 16:35:46 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 1SS7zT-0000kF-0C for geh-help-gnu-emacs@m.gmane.org; Wed, 09 May 2012 16:35:43 +0200 Original-Received: from localhost ([::1]:60492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS7zS-0007lZ-9j for geh-help-gnu-emacs@m.gmane.org; Wed, 09 May 2012 10:35:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS7zH-0007ja-S4 for help-gnu-emacs@gnu.org; Wed, 09 May 2012 10:35:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SS7zD-0005G6-4p for help-gnu-emacs@gnu.org; Wed, 09 May 2012 10:35:31 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS7zC-0005Fq-Tz for help-gnu-emacs@gnu.org; Wed, 09 May 2012 10:35:27 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SS7zB-0000bF-Ih for help-gnu-emacs@gnu.org; Wed, 09 May 2012 16:35:25 +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 ; Wed, 09 May 2012 16:35:25 +0200 Original-Received: from XeCycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 May 2012 16:35:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 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:G+6vRdHp+nipPq/2cxD6CGSwI64= 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:84776 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Richard Riley writes: > XeCycle writes: > >> Alexandre Oberlin writes: >> >>> Hi all, >>> >>> Is there a possibility to benefit of sh (or whatever) syntax >>> highlighting on a region only? >>> >>> This could be useful when editing a list of instructions containing cod= es. >> >> C-x n n >> >> Or a more complex C-x 4 c. > > How does that address the question? Is there some way to then have it > auto mode to the correct syntax hiliting in the narrowed region? Of course you can do something to narrow functions, but running them manually is not very hard. =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) iQEcBAEBAgAGBQJPqoAIAAoJEI1xjsR3leWR2JIH+gOZfDz5ogI8LKH+z6AwjLBO ezmWA1Gc3/kzS1DyptMrFE2SH/FLksr8ytX+68FflmenKxFGZadVdKL9kxVI+hfu uXMhZndXi6ViL6rP0ZfxAC8IXH0unfGTH3qXWAghZdI1kYbA3ZzoZLc2boUtHMuH hz27xMb5rkgro3Oa7ucYyYydic5bgOUjEA65iT/EFjzXtF0/Vj0t/9d4Wl+xeJtV XCLeOYLnSEfgul8Yjw9+nvGsVJkqkohWMVSicG7cYjsIfhhz+UtaOHVg/MCqPljg F3WsweCOLai9Vamu/JevTNQAAf/rKBFF5xA7rC582F52sE8zOTEsRlz34jhazx4= =8aZT -----END PGP SIGNATURE----- --=-=-=--