From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Peter Newsgroups: gmane.emacs.help Subject: Re: help using/understanding syntax tables Date: Mon, 6 Feb 2017 12:12:02 -0800 (PST) Message-ID: <488abaae-bdbd-4f88-b79b-153c459729ae@googlegroups.com> References: <43e46d85-5b39-47b6-b42b-5e8c748b33f0@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1486412138 4223 195.159.176.226 (6 Feb 2017 20:15:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 20:15:38 +0000 (UTC) Injection-Date: Mon, 06 Feb 2017 20:12:02 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 21:15:35 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caph6-0000YA-Qt for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Feb 2017 21:15:24 +0100 Original-Received: from localhost ([::1]:50546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caphC-000289-6G for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Feb 2017 15:15:30 -0500 X-Received: by 10.129.130.6 with SMTP id s6mr3184454ywf.1.1486411922885; Mon, 06 Feb 2017 12:12:02 -0800 (PST) X-Received: by 10.157.43.215 with SMTP id u81mr639462ota.15.1486411922808; Mon, 06 Feb 2017 12:12:02 -0800 (PST) Original-Path: usenet.stanford.edu!q58no1178274qte.0!news-out.google.com!15ni2933itm.0!nntp.google.com!r185no1894178ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=203.15.64.15; posting-account=xn0CbQoAAAASWsnV689K01BfDuqsREZp Original-NNTP-Posting-Host: 203.15.64.15 Original-Xref: usenet.stanford.edu gnu.emacs.help:219063 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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 Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112264 Archived-At: On Sunday, February 5, 2017 at 7:18:35 PM UTC+11, Helmut Eller wrote: > On Sat, Feb 04 2017, Peter wrote: > > > I was not sure of the use of "(syntax-table)" in the 'map-char-table > > statement - I tried changing it to be "my-syntax-table" but it made no > > difference to the results. > > (syntax-table) returns the current syntax-table, i.e. the syntax-table > of the current buffer. In your example, map-char-table iterates over > the current syntax-table but then modify-syntax-entry modifies > my-syntax-table. So it looks OK. Though, you could change the entire > range without iteration like so: > > (modify-syntax-entry (cons 0 (max-char)) "w" my-syntax-table) > > I don't know why < and > don't work as they should. > > Helmut Thanks Helmut