From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joerg Schuster Newsgroups: gmane.emacs.help Subject: Re: write your own emacs mode Date: 16 Dec 2003 14:06:05 +0100 Organization: Department of Computer Sciences, University of Munich Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1071580622 9756 80.91.224.253 (16 Dec 2003 13:17:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2003 13:17:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 14:16:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AWF4G-0004W8-00 for ; Tue, 16 Dec 2003 14:16:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AWG0n-0000iu-6Q for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Dec 2003 09:17:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!irazu.switch.ch!switch.ch!news.belwue.de!informatik.tu-muenchen.de!lmu.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: pinatubo.cis.uni-muenchen.de Original-X-Trace: minotaurus.cip.informatik.uni-muenchen.de 1071579965 27570 129.187.148.50 (16 Dec 2003 13:06:05 GMT) Original-X-Complaints-To: usenet@informatik.uni-muenchen.de Original-NNTP-Posting-Date: Tue, 16 Dec 2003 13:06:05 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:119380 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:15319 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15319 Jesper Harder writes: > I'm not quite sure about what you intend to do. But I'll recommend > the very handy tool `M-x re-builder' for crafting some suitable > regexps. Thanks a lot. It turned out that my problems had a really trivial reason: I wasn't aware of some differences between Emacs regexps and other regexps. I had often used those parts of Emacs regexps that are like python or perl regexps before and so it didn't occur to me that this could be the point. > (modify-syntax-entry ...) is a function call, not a function. You > can use something like: > > '((lambda () (modify-syntax-entry ?\" "w"))) I see. Thanks.