help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to redefine Parantheses?


From: Paul Batt
Subject: Re: How to redefine Parantheses?
Date: Mon, 9 Apr 2007 18:48:08 +0200

"Eli Zaretskii" <eliz@gnu.org> 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








reply via email to

[Prev in Thread] Current Thread [Next in Thread]