From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Paul Batt" Newsgroups: gmane.emacs.help Subject: Re: How to redefine Parantheses? Date: Mon, 9 Apr 2007 18:48:08 +0200 Message-ID: <57v926F2f0ldoU1@mid.individual.net> References: <57rjbgF2eksvjU1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1176151860 7489 80.91.229.12 (9 Apr 2007 20:51:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 Apr 2007 20:51:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 09 22:50:20 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Haxmz-0004mO-5o for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2007 19:36:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Haxqp-0000HC-4F for geh-help-gnu-emacs@m.gmane.org; Mon, 09 Apr 2007 13:40:23 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-X-Trace: individual.net jvjAgLXcg+c3+vu5Ojj41gYPDqTSITohiOc5uHIUqxFlDj2lw= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original Original-Xref: shelby.stanford.edu gnu.emacs.help:146925 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42535 Archived-At: "Eli Zaretskii" schrieb im Newsbeitrag news:mailman.1835.1176020435.7795.help-gnu-emacs@gnu.org... > You need to change the syntax class of those characters. See the > documentation of char-syntax and modify-syntax-entry. Thank you. I am almost totally lisp illiterate, but after some reading in the manual I put (modify-syntax-entry ?« "." text-mode-syntax-table) (modify-syntax-entry ?» "." text-mode-syntax-table) in my .emacs, which in part appears to do what I wanted. Characters « and » are no longer treated as parantheses. However, there is still another problem with these. I also wanted to set up a keyboard macro for them. So I put (fset 'anfein "«") (global-set-key "\C-z" 'anfein) in my .emacs. This will work for all characters or strings, but does not for « and ». I get an error message, "After 0 kbd macro iterations: Keyboard macro terminated by a command ringing the bell" instead. So something still is weird regarding « and ». What could it be? Thank you, Paul