all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#30538: Elisp manual doesn't say how to get a raw syntax descriptor of a character.
@ 2018-02-19 20:32 Alan Mackenzie
  2018-02-20 18:57 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Mackenzie @ 2018-02-19 20:32 UTC (permalink / raw)
  To: 30538

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).





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#30538: Elisp manual doesn't say how to get a raw syntax descriptor of a character.
  2018-02-19 20:32 bug#30538: Elisp manual doesn't say how to get a raw syntax descriptor of a character Alan Mackenzie
@ 2018-02-20 18:57 ` Eli Zaretskii
  2018-02-22 18:43   ` Alan Mackenzie
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2018-02-20 18:57 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: 30538

> Date: Mon, 19 Feb 2018 20:32:33 +0000
> From: Alan Mackenzie <acm@muc.de>
> 
> 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:

OK, but:

  . this should have an appropriate index entry, to allow finding this
    stuff easily
  . please take the code snipped in @w{..}, to avoid splitting it
    between lines.

Thanks.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#30538: Elisp manual doesn't say how to get a raw syntax descriptor of a character.
  2018-02-20 18:57 ` Eli Zaretskii
@ 2018-02-22 18:43   ` Alan Mackenzie
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Mackenzie @ 2018-02-22 18:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 30538-done

Hello, Eli.

On Tue, Feb 20, 2018 at 20:57:58 +0200, Eli Zaretskii wrote:
> > Date: Mon, 19 Feb 2018 20:32:33 +0000
> > From: Alan Mackenzie <acm@muc.de>

> > 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:

> OK, but:

>   . this should have an appropriate index entry, to allow finding this
>     stuff easily
>   . please take the code snipped in @w{..}, to avoid splitting it
>     between lines.

I've committed the patch (with the amendments you've requested) and am
closing the bug.

> Thanks.

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-22 18:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-19 20:32 bug#30538: Elisp manual doesn't say how to get a raw syntax descriptor of a character Alan Mackenzie
2018-02-20 18:57 ` Eli Zaretskii
2018-02-22 18:43   ` Alan Mackenzie

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.