From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.help Subject: Re: help using/understanding syntax tables Date: Sun, 05 Feb 2017 09:18:33 +0100 Message-ID: References: <43e46d85-5b39-47b6-b42b-5e8c748b33f0@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486282830 19071 195.159.176.226 (5 Feb 2017 08:20:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2017 08:20:30 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 05 09:20:27 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 1caI3e-0004lj-9v for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Feb 2017 09:20:26 +0100 Original-Received: from localhost ([::1]:42127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caI3j-0003Xn-Pb for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Feb 2017 03:20:31 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!2.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.kpnqwest.it!news.kpnqwest.it.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 05 Feb 2017 02:18:34 -0600 Original-Newsgroups: gnu.emacs.help Cancel-Lock: sha1:av3kn+B1D3HSseVxMNAyKOwqCy0= Original-Lines: 17 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 212.46.169.152 Original-X-Trace: sv3-RQMv86oTuO3ivgurfcwVzRjwKl7gKWQ9YgQ1HaZqYti5SppFwfzVu4vvnLLp7LMsPDpnnNx9vGsV/xg!FRIp9AtPV8BRx2uy7cx1P/dLDGFN/BW3vx2lEE3wi6bEndY0omvHO12iuixex38= 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.40 X-Original-Bytes: 1663 Original-Xref: usenet.stanford.edu gnu.emacs.help:219062 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:112248 Archived-At: 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