1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00
emacs/etc
Alan Mackenzie 9dcf599893 Amend parse-partial-sexp correctly to handle two character comment delimiters
Do this by adding a new field to the parser state: the syntax of the last
character scanned, should that be the first char of a (potential) two char
construct, nil otherwise.
This should make the parser state complete.
Also document element 9 of the parser state.  Also refactor the code a bit.

* src/syntax.c (struct lisp_parse_state): Add a new field.
(SYNTAX_FLAGS_COMSTARTEND_FIRST): New function.
(internalize_parse_state): New function, extracted from scan_sexps_forward.
(back_comment): Call internalize_parse_state.
(forw_comment): Return the syntax of the last character scanned to the caller
when that character might be the first of a two character construct.
(Fforward_comment, scan_lists): New dummy variables, passed to forw_comment.
(scan_sexps_forward): Remove a redundant state parameter.  Access all `state'
information via the address parameter `state'.  Remove the code which converts
from external to internal form of `state'.  Access buffer contents only from
`from' onwards.  Reformulate code at the top of the main loop correctly to
recognize comment openers when starting in the middle of one.  Call
forw_comment with extra argument (for return of syntax value of possible first
char of a two char construct).
(Fparse_partial_sexp): Document elements 9, 10 of the parser state in the
doc string.  Clarify the doc string in general.  Call
internalize_parse_state.  Take account of the new elements when consing up the
output parser state.

* doc/lispref/syntax.texi: (Parser State): Document element 9 and the new
element 10.  Minor wording corrections (remove reference to "trivial
cases").
(Low Level Parsing): Minor corrections.

* etc/NEWS: Note new element 10, and documentation of element 9 of parser
state.
2016-03-20 13:19:48 +00:00
..
charsets Update copyright year to 2016 2016-01-01 01:34:24 -08:00
e Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
forms Update copyright year to 2016 2016-01-01 01:34:24 -08:00
gnus
images Fix copyright years by hand 2016-01-01 01:38:07 -08:00
nxml Update nXML to use Emacs's Unicode support, and lexical-binding 2016-01-15 10:29:20 -05:00
org Update copyright year to 2016 2016-01-01 01:34:24 -08:00
refcards ; * etc/refcards/ru-refcard.tex (cyear): Update via M-x set-copyright. 2016-01-03 11:32:57 -08:00
schema Update copyright year to 2016 2016-01-01 01:34:24 -08:00
srecode Update copyright year to 2016 2016-01-01 01:34:24 -08:00
themes Update copyright year to 2016 2016-01-01 01:34:24 -08:00
tutorials Fix copyright years by hand 2016-01-01 01:38:07 -08:00
AUTHORS * etc/AUTHORS: Update the AUTHORS file 2016-03-02 17:04:36 +01:00
CALC-NEWS Update copyright year to 2016 2016-01-01 01:34:24 -08:00
CENSORSHIP Make some files in etc obsolete 2014-03-22 16:47:20 -07:00
ChangeLog.1 Spelling and grammar fixes 2016-01-01 01:59:19 -08:00
compilation.txt Update copyright year to 2016 2016-01-01 01:34:24 -08:00
COPYING
DEBUG ; * etc/DEBUG: Fix a typo. (Bug#22984) 2016-03-11 17:54:40 +02:00
DEVEL.HUMOR Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
DISTRIB Update copyright year to 2016 2016-01-01 01:34:24 -08:00
edt-user.el Kevin Gallagher has new email address 2016-02-10 20:40:28 +02:00
emacs-buffer.gdb Update copyright year to 2016 2016-01-01 01:34:24 -08:00
emacs.appdata.xml Update copyright year to 2016 2016-01-01 01:34:24 -08:00
emacs.desktop * etc/emacs.desktop: Add "Keywords". 2014-10-30 21:10:19 -07:00
emacs.icon
enriched.txt Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ERC-NEWS Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ETAGS.EBNF Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ETAGS.README Update copyright year to 2016 2016-01-01 01:34:24 -08:00
FTP Make etc/FTP and etc/ORDERS obsolete 2014-01-09 21:44:51 -05:00
future-bug
GNU Update copyright year to 2015 2015-01-01 09:18:06 -08:00
GNUS-NEWS Allow various Gnus and Message address variables to be functions 2016-02-08 13:28:37 +11:00
gnus-tut.txt Update copyright year to 2016 2016-01-01 01:34:24 -08:00
grep.txt Update copyright year to 2016 2016-01-01 01:34:24 -08:00
HELLO * etc/HELLO: Add Armenian and Mongolian greetings. 2016-01-11 20:12:12 +02:00
HISTORY * etc/HISTORY: Add some more history, plus git tags. 2016-01-31 16:54:20 -08:00
JOKES
LINUX-GNU Make some files in etc obsolete 2014-03-22 16:47:20 -07:00
MACHINES Remove support for IRIX 2016-03-07 08:26:36 -08:00
MH-E-NEWS Update copyright year to 2016 2016-01-01 01:34:24 -08:00
MORE.STUFF * etc/MORE.STUFF: Replace contents with pointer to efaq.info. 2014-01-09 14:14:28 -05:00
NEWS Amend parse-partial-sexp correctly to handle two character comment delimiters 2016-03-20 13:19:48 +00:00
NEWS.1-17 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NEWS.18 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NEWS.19 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NEWS.20 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NEWS.21 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NEWS.22 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NEWS.23 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NEWS.24 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NEXTSTEP Update copyright year to 2016 2016-01-01 01:34:24 -08:00
NXML-NEWS Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ORDERS Make etc/FTP and etc/ORDERS obsolete 2014-01-09 21:44:51 -05:00
ORG-NEWS Update copyright year to 2016 2016-01-01 01:34:24 -08:00
package-keyring.gpg * etc/package-keyring.gpg: New file. 2014-09-24 10:28:27 -04:00
PROBLEMS Remove support for IRIX 2016-03-07 08:26:36 -08:00
ps-prin0.ps Update copyright year to 2016 2016-01-01 01:34:24 -08:00
ps-prin1.ps Update copyright year to 2016 2016-01-01 01:34:24 -08:00
publicsuffix.txt Update publicsuffix.txt. 2016-02-06 16:11:18 +11:00
README Update copyright year to 2016 2016-01-01 01:34:24 -08:00
rgb.txt
ses-example.ses Update copyright year to 2016 2016-01-01 01:34:24 -08:00
spook.lines * etc/spook.lines: Minor commentary update 2013-08-28 21:05:19 -04:00
TERMS Update copyright year to 2016 2016-01-01 01:34:24 -08:00
THE-GNU-PROJECT Make some files in etc obsolete 2014-03-22 16:47:20 -07:00
TODO * etc/TODO: Minor quoting and grammar fixes. 2016-02-28 01:27:35 -08:00
WHY-FREE Make some files in etc obsolete 2014-03-22 16:47:20 -07:00
yow.lines Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2016 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)