[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parens matching does match wrong parentheses
From: |
Richard Stallman |
Subject: |
Re: Parens matching does match wrong parentheses |
Date: |
Sat, 18 Sep 2004 15:07:23 -0400 |
This problem is not restricted to rtf-code, elisp also suffers from it.
Try auto-indenting the following piece of elisp:
(defvar generic-rtf-mode-syntax-table
(let ((table (make-syntax-table)))
(modify-syntax-entry ?( "." table)
(modify-syntax-entry ?) "." table)
(modify-syntax-entry ?[ "." table)
(modify-syntax-entry ?] "." table)
table))
To avoid the problem, you should write that as follows:
This problem is not restricted to rtf-code, elisp also suffers from it.
Try auto-indenting the following piece of elisp:
(defvar generic-rtf-mode-syntax-table
(let ((table (make-syntax-table)))
(modify-syntax-entry ?/( "." table)
(modify-syntax-entry ?/) "." table)
(modify-syntax-entry ?/[ "." table)
(modify-syntax-entry ?/] "." table)
table))
For hand-editing of RTF, you would want to use a modified syntax
table. Is that a common enough activity that we would want to
have an RTF mode to do this? I would have guess not.