1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00
emacs/etc
Paul Eggert 14dd9101ec Signal list cycles in ‘length’ etc.
Use macros like FOR_EACH_TAIL instead of maybe_quit to
catch list cycles automatically instead of relying on the
user becoming impatient and typing C-g (Bug#25606).
* src/fns.c (Flength, Fmember, Fmemq, Fmemql, Fassq, Fassoc, Frassq)
(Frassoc, Fdelete, Freverse):
Use FOR_EACH_TAIL instead of maybe_quit.
(Fnreverse): Use simple EQ to check for circular list instead
of rarely_quit, as this suffices in this unusual case.
(Fplist_put, Flax_plist_put, Flax_plist_put):
Use FOR_EACH_TAIL_CONS instead of maybe_quit.
(internal_equal): Use FOR_EACH_TAIL_CONS to check lists, instead
of by-hand tail recursion that did not catch cycles.
* src/fns.c (Fsafe_length, Fplist_get):
* src/xdisp.c (display_mode_element):
Use FOR_EACH_TAIL_SAFE instead of by-hand Floyd’s algorithm.
* src/lisp.h (QUIT_COUNT_HEURISTIC): Remove; no longer needed.
(rarely_quit): Simply count toward USHRT_MAX + 1, since the
fancier versions are no longer needed.
(FOR_EACH_TAIL_CONS, FOR_EACH_TAIL_SAFE)
(FOR_EACH_TAIL_INTERNAL): New macros, the last with definiens
mostly taken from FOR_EACH_TAIL.
(FOR_EACH_TAIL): Rewrite in terms of FOR_EACH_TAIL_INTERNAL.
2017-02-05 13:30:29 -08:00
..
charsets Update copyright year to 2017 2016-12-31 19:42:26 -08:00
e Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
forms Update copyright year to 2017 2016-12-31 19:42:26 -08:00
gnus
images Merge from origin/emacs-25 2017-01-01 01:10:47 -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 2017 2016-12-31 19:42:26 -08:00
refcards Merge from origin/emacs-25 2017-01-17 07:34:25 -08:00
schema Update copyright year to 2017 2016-12-31 19:42:26 -08:00
srecode Update copyright year to 2017 2016-12-31 19:42:26 -08:00
themes Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
tutorials Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
AUTHORS Merge from origin/emacs-25 2017-01-01 01:05:02 -08:00
CALC-NEWS Update copyright year to 2017 2016-12-31 19:42:26 -08:00
CENSORSHIP
ChangeLog.1 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
compilation.txt Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
COPYING
DEBUG Replace QUIT with maybe_quit 2017-01-25 21:25:37 -08:00
DEVEL.HUMOR Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
DISTRIB Update copyright year to 2017 2016-12-31 19:42:26 -08:00
edt-user.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
emacs-buffer.gdb Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
emacs.appdata.xml Update copyright year to 2017 2016-12-31 19:42:26 -08:00
emacs.desktop
emacs.icon
emacs.service Add --new-daemon, which runs in the foreground and does not fork 2016-11-15 23:28:47 -08:00
enriched.txt Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ERC-NEWS Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ETAGS.EBNF Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ETAGS.README Update copyright year to 2017 2016-12-31 19:42:26 -08:00
FTP
future-bug
GNU
GNUS-NEWS Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
gnus-tut.txt Update copyright year to 2017 2016-12-31 19:42:26 -08:00
grep.txt Update copyright year to 2017 2016-12-31 19:42:26 -08:00
HELLO Update copyright year to 2017 2016-12-31 19:42:26 -08:00
HISTORY ; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 release 2016-09-15 23:30:09 +02:00
JOKES
LINUX-GNU
MACHINES Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
MH-E-NEWS Update copyright year to 2017 2016-12-31 19:42:26 -08:00
MORE.STUFF
NEWS Signal list cycles in ‘length’ etc. 2017-02-05 13:30:29 -08:00
NEWS.1-17 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NEWS.18 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NEWS.19 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NEWS.20 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NEWS.21 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NEWS.22 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NEWS.23 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NEWS.24 Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NEWS.25 Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
NEXTSTEP Update copyright year to 2017 2016-12-31 19:42:26 -08:00
NXML-NEWS Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ORDERS
ORG-NEWS Update copyright year to 2017 2016-12-31 19:42:26 -08:00
package-keyring.gpg
PROBLEMS Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
ps-prin0.ps Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ps-prin1.ps Update copyright year to 2017 2016-12-31 19:42:26 -08:00
publicsuffix.txt Update publicsuffix.txt. 2016-02-06 16:11:18 +11:00
README Update copyright year to 2017 2016-12-31 19:42:26 -08:00
rgb.txt
ses-example.ses Update copyright year to 2017 2016-12-31 19:42:26 -08:00
spook.lines
TERMS Update copyright year to 2017 2016-12-31 19:42:26 -08:00
THE-GNU-PROJECT
TODO Update copyright year to 2017 2016-12-31 19:42:26 -08:00
WHY-FREE
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-2017 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)