all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: 30538@debbugs.gnu.org
Subject: bug#30538: Elisp manual doesn't say how to get a raw syntax descriptor of a character.
Date: Mon, 19 Feb 2018 20:32:33 +0000	[thread overview]
Message-ID: <20180219203233.GB5688@ACM> (raw)

Hello, Emacs.

The title says it all.  Actually, in the early part of the Elisp manual,
it does say that `aref' works on char-tables.  And around the syntax part
of the manual, much later, it says that syntax tables are char-tables.

This makes it far too much work for somebody to find out what to do.
Therefore I suggest the following amendment, for Emacs-26:



diff --git a/doc/lispref/syntax.texi b/doc/lispref/syntax.texi
index b37f2b22b8..585ecf760d 100644
--- a/doc/lispref/syntax.texi
+++ b/doc/lispref/syntax.texi
@@ -972,6 +972,9 @@ Syntax Table Internals
 below.  @var{matching-char}, if non-@code{nil}, specifies a matching
 character (similar to the second character in a syntax descriptor).
 
+Use @code{aref} (@pxref{Array Functions}) to get the raw syntax
+descriptor of a character, e.g. @code{(aref (syntax-table) ch)}.
+
   Here are the syntax codes corresponding to the various syntax
 classes:
 


-- 
Alan Mackenzie (Nuremberg, Germany).





             reply	other threads:[~2018-02-19 20:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-19 20:32 Alan Mackenzie [this message]
2018-02-20 18:57 ` bug#30538: Elisp manual doesn't say how to get a raw syntax descriptor of a character Eli Zaretskii
2018-02-22 18:43   ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180219203233.GB5688@ACM \
    --to=acm@muc.de \
    --cc=30538@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.