From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: font-lock in rexx-mode Date: Sat, 09 Dec 2006 09:11:21 -0500 Message-ID: References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165675236 8085 80.91.229.10 (9 Dec 2006 14:40:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2006 14:40:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 09 15:40:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gt3NO-0006D7-Lq for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Dec 2006 15:40:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gt3NO-0001Va-2Y for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Dec 2006 09:40:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.umontreal.ca!news.umontreal.ca.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 09 Dec 2006 08:11:21 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:TdWnOAQPxuAA2CqgCoCzM019ThI= Original-Lines: 28 Original-NNTP-Posting-Host: 132.204.27.213 Original-X-Trace: sv3-RNGv4xxxyCg64GCOQgQoN1hMsdpzOyXJcgdGWUwrhVD1PnCT1pIUv68OsP/PVSSVyzaFrrvaRfxu3UY!L0o5VLKZrQ+hJ9N8jjzpRHoGioNbxi/9xw/YpGTg9WLt4xoN0a1F9AG0SC23JSFv9dwCLkPw5MOa!+U6pfc19dZlLQRJuvQ== Original-X-Complaints-To: abuse@umontreal.ca X-DMCA-Complaints-To: abuse@umontreal.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:143769 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: , 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:39372 Archived-At: >> So if in Rexx a \ should not escape the >> next char, the syntax-table should be changed. >> Currently rexx-mode.el does: >> >> (modify-syntax-entry ?\\ "\\" rexx-mode-syntax-table) >> >> which as that \ should be treated as an escape char. So either this >> line is in error, or the \ should sometimes be treated as an escape >> char and sometimes not. I don't know anything about the syntax of >> Rexx, so I have no idea when \ escapes and when it doesn't. E.g. how >> do you escape a " inside a string in Rexx? > Thanks for the response. I don't understand why, but commenting out the > above line and restarting emacs doesn't change the behavior. (I do not > have a rexx-mode.elc. If I start emacs with --no-init-file, rexx-mode is > not recognized.) It's normal: this line is superfluous since it just repeats the default setting of \. Instead of removing it, you want to replace it with another line such as (modify-syntax-entry ?\\ "." rexx-mode-syntax-table) where the "." means "punctuation". See C-h f modify-syntax-entry RET for a bit more documentation. Stefan