1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00
emacs/doc/lispref
Mattias Engdegård db3fea2e5c Detect and prevent function alias loops in fset and defalias
Make `fset` and `defalias` signal an error on attempts to create
circular alias chains.  This is more effective, efficient and
convenient than permitting alias loops to be created and trying to
detect them at run time each time a function is called, which is what
we have been doing until now, badly.

* lisp/help-fns.el (help-fns--analyze-function):
Don't pass obsolete argument.
* lisp/subr.el (function-alias-p):
* src/data.c (indirect_function, Findirect_function): Simplify.
Now error-free, second argument obsolete.
(Ffset): Detect loops.
* test/lisp/help-fns-tests.el (help-fns--analyze-function-recursive):
* test/lisp/subr-tests.el (test-alias-p):
Adapt tests.
* test/src/data-tests.el (data-tests-fset, data-tests-defalias): New.
* doc/lispref/eval.texi (Function Indirection):
* doc/lispref/functions.texi (Defining Functions, Function Cells):
Update manual.
* etc/NEWS: Announce.
2023-02-21 10:42:00 +01:00
..
abbrevs.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
anti.texi Rewrite Antinews in ELisp manual for Emacs 29 2023-01-01 19:37:22 +02:00
back.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
backups.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
book-spine.texi
buffers.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ChangeLog.1 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
commands.texi Rename with/without-narrowing to with/without-restriction 2023-02-13 20:11:28 +02:00
compile.texi ; Improve documentation of 'native-comp-enable-subr-trampolines' 2023-02-19 11:04:57 +02:00
control.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
customize.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
debugging.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
display.texi Rename with/without-narrowing to with/without-restriction 2023-02-13 20:11:28 +02:00
doclicense.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
edebug.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
elisp.texi ; Fix tree-sitter manual title case 2023-01-02 14:25:54 -08:00
errors.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eval.texi Detect and prevent function alias loops in fset and defalias 2023-02-21 10:42:00 +01:00
files.texi Merge from origin/emacs-29 2023-02-12 03:27:46 +01:00
frames.texi Allow 'icon-title-format' to have the value t 2023-02-17 09:40:32 +02:00
functions.texi Detect and prevent function alias loops in fset and defalias 2023-02-21 10:42:00 +01:00
gpl.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
hash.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
help.texi ; Fix description of etc/DOC 2023-01-07 19:16:47 +02:00
hooks.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
index.texi
internals.texi Merge from origin/emacs-29 2023-02-13 06:30:12 +01:00
intro.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
keymaps.texi Improve `keymap-set-after' documentation 2023-01-20 15:14:44 +01:00
lay-flat.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
lists.texi ; Improve documentation of 'proper-list-p' 2023-02-05 15:15:35 +02:00
loading.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
macros.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
Makefile.in ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
maps.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
markers.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
minibuf.texi Add `yes-or-no-prompt' user option 2023-01-23 09:17:15 +01:00
modes.texi Improve documentation of 'header-line-indent-mode' 2023-02-03 16:45:56 +02:00
nonascii.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
numbers.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
objects.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
os.texi Add 'file-user-uid' to get the connection-local effective UID 2023-01-16 17:11:02 -08:00
package.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
parsing.texi ; Fix recent changes in treesit docs 2023-02-10 14:14:05 +02:00
positions.texi Merge from origin/emacs-29 2023-02-15 14:41:04 +01:00
processes.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
README ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
records.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
searching.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sequences.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
spellfile Rewrites of Elisp manual including tab-bar and tab-line changes 2021-10-18 09:58:48 +02:00
streams.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
strings.texi ; Fix minor mistakes in documentation 2023-01-18 14:28:59 +02:00
symbols.texi Document the 'definition-name' property. 2023-01-07 19:57:30 +02:00
syntax.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
text.texi ; Improve documentation of hash functions. 2023-02-11 12:28:43 +02:00
threads.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tips.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
two-volume-cross-refs.txt ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
two-volume.make ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
variables.texi ; * doc/lispref/variables.texi (File Local Variables): Improve indexing. 2023-01-28 16:59:17 +02:00
windows.texi ; Fix wording of last change. 2023-02-18 19:45:33 +02:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Copyright (C) 2001-2023 Free Software Foundation, Inc.  -*- outline -*-
See the end of the file for license conditions.


README for the Emacs Lisp Reference Manual.

* This directory contains the texinfo source files for the Emacs Lisp
Reference Manual.

* Report bugs in the Lisp Manual (or in Emacs) using M-x report-emacs-bug.
To ask questions, use the help-gnu-emacs mailing list.

* The Emacs Lisp Reference Manual is quite large.  It totals around
1100 pages in smallbook format; the info files total around 3.0 megabytes.

* You can format this manual for Info, for printing hardcopy using TeX,
or for HTML.

* You can buy nicely printed copies from the Free Software Foundation.
Buying a manual from the Free Software Foundation helps support our GNU
development work.  See <https://shop.fsf.org/>.
(At time of writing, this manual is out of print.)

* The master file for formatting this manual for Tex is called 'elisp.texi'.
It contains @include commands to include all the chapters that make up
the manual.

* This distribution contains a Makefile that you can use with GNU Make.

** To make an Info file, you need to install Texinfo, then run 'make info'.

** Use 'make elisp.pdf' or 'make elisp.html' to create PDF or HTML versions.


This file is part of GNU Emacs.

GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.