1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 12:03:55 -08:00
emacs/doc/lispref
Mattias Engdegård c60b59e04c Disallow creation of circular variable alias chains
Make `defvaralias` signal an error upon attempts to create variable
alias cycles.  This detects errors earlier and makes the alias
traversal during execution simpler and faster since no cycle detection
is needed elsewhere.
Now variable and function aliases are handled identically in these
respects.

* src/lisp.h (indirect_variable): Remove declaration.
* src/data.c (indirect_variable): Remove.
(Findirect_variable): Update doc string.  Simplify alias resolution.
(Fboundp, find_symbol_value, set_internal, default_value)
(set_default_internal, Fmake_variable_buffer_local)
(Fmake_local_variable, Fkill_local_variable, Flocal_variable_p)
(Flocal_variable_if_set_p, Fvariable_binding_locus):
* src/buffer.c (buffer_local_value):
* src/eval.c (specbind): Simplify variable alias resolution.
(Fdefvaralias): Update doc string.  Check for cycles.
* doc/lispref/variables.texi (Variable Aliases):
Mention that `defvaralias` can signal `cyclic-variable-indirection`
but `indirect-variable` cannot.
* etc/NEWS: Announce the change.
* test/src/eval-tests.el (eval-tests-defvaralias): New test.
2023-04-14 19:34:23 +02: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 Fix single-quoting style in PDF manuals 2015-05-01 12:06:38 -07:00
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 Another terminology fix in ELisp reference manual 2023-04-04 14:22:56 +03: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 Improve documentation of 'defcustom's :set keyword 2023-03-30 09:09:43 +03:00
debugging.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
display.texi Document enhancements in handling of echo-area messages 2023-04-01 12:49:18 +03: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 Minor copyedits of documentation of OClosures 2023-03-03 15:23:22 +02: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-24 06:30:11 +01:00
frames.texi Another terminology fix in ELisp reference manual 2023-04-04 14:22:56 +03:00
functions.texi Merge from origin/emacs-29 2023-04-06 14:38:20 -04: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 last change 2023-03-12 10:25:10 +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-03-14 18:14:48 +00:00
intro.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
keymaps.texi ; Fix description of new 'keymap-*' functions 2023-04-05 11:31:15 +03:00
lay-flat.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
lists.texi Repair and speed up safe-copy-tree and make it internal (bug#61962) 2023-03-12 18:12:18 +01:00
loading.texi ; Improve documentation of loading *.eln files 2023-02-26 19:51:59 +02: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 Merge commit '1bc9dfc5be' 2023-03-27 17:14:27 -04: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 ; Minor wording fix in ELisp reference manual 2023-03-16 22:05:07 +02: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 Add treesit-node-get 2023-03-30 21:55:22 -07: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 Update manual about sort 2023-04-10 11:45:09 +02: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 Improve warning about changing the string returned by symbol-name 2023-03-19 22:17:40 +01:00
syntax.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
text.texi ; Clarify documentation of 'cursor' text property 2023-03-30 16:34:41 +03: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 Disallow creation of circular variable alias chains 2023-04-14 19:34:23 +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/>.