From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Adding bracket tags to sgml-mode Date: Mon, 18 Jun 2012 23:47:08 -0600 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340084793 10542 80.91.229.3 (19 Jun 2012 05:46:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 05:46:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 19 07:46:33 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 1SgrGm-0002yW-Ev for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jun 2012 07:46:28 +0200 Original-Received: from localhost ([::1]:34967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgrGm-0008FO-DK for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Jun 2012 01:46:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgrGg-0008BA-Tt for help-gnu-emacs@gnu.org; Tue, 19 Jun 2012 01:46:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgrGf-0000pA-2s for help-gnu-emacs@gnu.org; Tue, 19 Jun 2012 01:46:22 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgrGe-0000oU-Rp for help-gnu-emacs@gnu.org; Tue, 19 Jun 2012 01:46:21 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SgrGX-0002QD-99 for help-gnu-emacs@gnu.org; Tue, 19 Jun 2012 07:46:13 +0200 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jun 2012 07:46:13 +0200 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Jun 2012 07:46:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: 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:85302 Archived-At: On 6/18/12 8:50 PM, Chris Hardee wrote: > I'm working with a CMS system that uses custom bracket tags, ie > {example}...*html stuff*...{/example}; unfortunately, sgml-mode > doesn't recognize them and doesn't indent properly. I'm wondering if > there is a simple way to extend sgml-mode to include these tags or if > I need to create a separate mode. Any way to point me in the right > direction would be appreciated, thanks! If you put point immediately before < and > in sgml-mode, what does `C-u C-x =' report in the *Help* buffer? Compare that to the information when point is immediately before { and }. If sgml-mode uses syntax categories to parse tags, then perhaps you can customize it to treat { and } like < and >. > (I tried nxml-mode, but it's a bit clunky and overkill for what I'm > hoping to do. I'll go with it if it's the only practical option > though) -- Kevin Rodgers Denver, Colorado, USA