From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: parens matching not matching all matching parens Date: Fri, 17 Sep 2004 18:22:42 GMT 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> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095445475 19292 80.91.229.6 (17 Sep 2004 18:24:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2004 18:24:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 17 20:24:30 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 1C8NPK-00085C-00 for ; Fri, 17 Sep 2004 20:24:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8NV3-0001qN-UZ for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Sep 2004 14:30:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:gygCqCyMGDSZ2cAVlEDWLvKIjuE= Original-Lines: 30 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1095445362 132.204.24.84 (Fri, 17 Sep 2004 14:22:42 EDT) Original-NNTP-Posting-Date: Fri, 17 Sep 2004 14:22:42 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:125385 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:20740 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20740 > (define-generic-mode 'rtf-generic-mode > nil > nil > (list "\\\\\\([a-z]+\\(-?[0-9]+\\)? ?\\)") > (list "\\.[rR][tT][fF]") > nil) Try (defvar rtf-font-lock-keywords '("\\\\\\([a-z]+\\(-?[0-9]+\\)? ?\\)")) (defvar rtf-mode-syntax-table (let ((st (make-syntax-table))) (modify-syntax-entry ?\( "." st) (modify-syntax-entry ?\) "." st) (modify-syntax-entry ?\[ "." st) (modify-syntax-entry ?\] "." st) st)) ;;;###autoload (add-to-list 'auto-mode-alist '("\\.[rR][tT][fF]\\'" . rtf-mode)) (define-derived-mode rtf-mode text-mode "RTF" "Major mode for Rich Text Format." (set (make-local-variable 'font-lock-defaults) '(rtf-font-lock-keywords))) -- Stefan