From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Arjan Bos Newsgroups: gmane.emacs.help Subject: Re: parens matching not matching all matching parens Date: Fri, 17 Sep 2004 19:25:13 +0200 Organization: Planet Internet Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <871xh1zy4n.fsf@tc-1-100.kawasaki.gol.ne.jp> Reply-To: Arjan.Bos@ISeeYou.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095442178 10041 80.91.229.6 (17 Sep 2004 17:29:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2004 17:29:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 17 19:29:26 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C8MY2-0003qO-00 for ; Fri, 17 Sep 2004 19:29:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8Mdl-0000SN-Qo for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Sep 2004 13:35:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!news.zanker.org!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!textnews.wxs.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: ip51cc04e5.adsl-surfen.hetnet.nl Original-X-Trace: reader11.wxs.nl 1095442402 22260 81.204.4.229 (17 Sep 2004 17:33:22 GMT) Original-X-Complaints-To: abuse@planet.nl Original-NNTP-Posting-Date: 17 Sep 2004 17:33:22 GMT User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en In-Reply-To: <871xh1zy4n.fsf@tc-1-100.kawasaki.gol.ne.jp> Original-Xref: shelby.stanford.edu gnu.emacs.help:125381 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20736 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20736 Miles Bader wrote: > > Perhaps you want to remove the parenthes-syntax of "(" and ")" (and > maybe brackets too), so that only braces will ever participate in > matching, e.g.: > > (defvar my-wacky-syntax-table > (let ((table (make-syntax-table))) > (modify-syntax-entry ?( "." table) > (modify-syntax-entry ?) "." table) > (modify-syntax-entry ?[ "." table) > (modify-syntax-entry ?] "." table) > table)) > > ;; ... later, in mode init function: > (set-syntax-table my-wacky-syntax-table) > > -Miles Miles, Sounds like a plan. Do you have any idea as to how I can integrate that in the generic-mode setup I have currently? This is what I have: ;; rtf-mode (define-generic-mode 'rtf-generic-mode nil nil (list "\\\\\\([a-z]+\\(-?[0-9]+\\)? ?\\)") (list "\\.[rR][tT][fF]") nil) So I should call some function in the last `nil' I presume. Is it possible to combine the (defvar my-wacky-syntax-table ...) with the (set-syntax-table ... )? Thanks In Advance, Arjan -- If you really want to contact me, then replace the "I see you" text by its three letter accronym, hetnet. Fabricate Diem PVNC, Motto of the Night Watch -- Terry Pratchett