[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: syntax-after
From: |
Juri Linkov |
Subject: |
Re: syntax-after |
Date: |
Tue, 23 Nov 2004 08:27:55 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>>>> I don't know if I will have net access this week--could you please
>>>> undo it?
>>> Done,
>> It seems you forgot to undo changes to etc/NEWS and syntax.texi...
>
> Oops, sorry. I've fixed etc/NEWS and syntax.texi.
> Any other place?
You have reverted the changes in paren.el to old code:
(dir (cond ((eq (car (syntax-after (1- (point)))) 5) -1)
((eq (car (syntax-after (point))) 4) 1)))
but this code is really bad, since it uses raw enum values 4 and 5
which are nowhere documented and too implementation specific.
You already proposed a new function `syntax-class'. This would
improve the code.
I also think there should exist another function returning a complete
syntax string with all flags (e.g. `syntax-to-string').
Such C function could be created from `internal-describe-syntax-value'
(up to the line inserting "\twhich means:") with moving the rest of
the code in `internal-describe-syntax-value' (which just inserts
a readable syntax description) to Lisp side (e.g. to subr.el).
--
Juri Linkov
http://www.jurta.org/emacs/
- syntax-after, Stefan Monnier, 2004/11/11
- Re: syntax-after, Juri Linkov, 2004/11/11
- Re: syntax-after, Richard Stallman, 2004/11/12
- Re: syntax-after, Juri Linkov, 2004/11/13
- Re: syntax-after, Stefan, 2004/11/13
- Re: syntax-after, Richard Stallman, 2004/11/16
- Re: syntax-after, Stefan Monnier, 2004/11/22
- Re: syntax-after, Kim F. Storm, 2004/11/22
- Re: syntax-after, Stefan Monnier, 2004/11/22
- Re: syntax-after,
Juri Linkov <=
- Re: syntax-after, Stefan, 2004/11/23
- Re: syntax-after, Richard Stallman, 2004/11/23