summaryrefslogtreecommitdiff
path: root/doc/lispintro
Commit message (Collapse)AuthorAgeFilesLines
* ; * doc/lispintro/emacs-lisp-intro.texi (nthcdr): Whitespace (bug#71033).Eli Zaretskii2024-05-181-2/+2
|
* Fix a typo in Introduction to Emacs Lisp (bug#70571).Brad Howes2024-04-271-1/+1
| | | | Copyright-paperwork-exempt: yes
* Fix info-xref-testsEli Zaretskii2024-01-131-1/+1
| | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (How let Binds Variables): Fix cross-reference. (Bug#68428) * test/lisp/info-xref-tests.el (info-xref-test-write-file): Fix test on MS-Windows when run from MSYS Bash.
* Introduce 'let' using lexical binding in the Lisp IntroductionJim Porter2024-01-091-22/+149
| | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Prevent confusion): Rework the explanation to discuss how things work under lexical binding. (How let Binds Variables): Describe the differences between lexical and dynamic binding (including how to configure it). (defvar): Mention that 'defvar' declares variables as always dynamically-bound (bug#66756).
* ; Add 2024 to copyright yearsPo Lu2024-01-0214-14/+14
|
* ; Fix footnotes in ELisp Intro manualEli Zaretskii2023-12-241-16/+19
|
* Fix usage of `setq-default' and offer more suggestionsXiyue Deng2023-12-241-6/+14
| | | | | | | | | | | cd61af0 changed from default-major-mode to major-mode in the first code sample but didn't change the rest. This patch fixes this and add some explanations of why use `setq-default' instead of `setq'. In addition, it gives background on suggesting using text-mode as default mode and suggest other alternatives. * doc/lispintro/emacs-lisp-intro.texi (Text and Auto-fill): Fix usage of `setq-default' and offer more suggestions. (Bug#67848)
* Add explanation for extra parentheses in ELisp IntroductionXiyue Deng2023-12-231-0/+4
| | | | | * doc/lispintro/emacs-lisp-intro.texi (fwd-para while): Add a note to explain the extra parentheses. (Bug#67820)
* Add sample code to the "let*" section in "forward-paragraph"Xiyue Deng2023-12-231-1/+34
| | | | | * doc/lispintro/emacs-lisp-intro.texi (fwd-para let): Add code sample. (Bug#67817)
* doc/lispintro: Don't mention `set` (bug#67734)Stefan Monnier2023-12-211-84/+49
| | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Using set): Delete. (Using setq): Adjust accordingly. (setq): Rename from "set & setq" and don't refer to `set` any more. (Review): Don't mention `set` any more.
* ; Fix typosStefan Kangas2023-12-031-1/+1
|
* Drop extra parenthesis in example code in Emacs Lisp IntroductionXiyue Deng2023-12-021-2/+2
| | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Small buffer case): Drop trailing unmatched parenthesis. (Bug#67576) Copyright-paperwork-exempt: yes
* Fix example code in Emacs Lisp Introduction manualXiyue Deng2023-12-011-6/+6
| | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Optional Arguments): Fix indentation in an example. (Bug#67559) Copyright-paperwork-exempt: yes
* Fix example in Emacs Lisp Intro manualEli Zaretskii2023-12-011-4/+5
| | | | | | * doc/lispintro/emacs-lisp-intro.texi (beginning-of-buffer opt arg): Fix indentation in example. Reported by Xiyue Deng <manphiz@gmail.com>. (Bug#67560)
* ; * doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer): Fix last change.Eli Zaretskii2023-11-291-3/+3
|
* Add more text to clarify the behavior of 'with-current-buffer'Xiyue Deng2023-11-291-1/+5
| | | | | | | * doc/lispintro/emacs-lisp-intro.texi (copy-to-buffer): Expand description of 'with-current-buffer'. (Bug#67521) Copyright-paperwork-exempt: yes
* Fix wording in ELisp Intro manualRichard Stallman2023-11-191-5/+6
| | | | | * doc/lispintro/emacs-lisp-intro.texi (Lisp macro): Improve wording in description of 'unless'. (Bug#67185)
* ; Another Texinfo fixEli Zaretskii2023-10-221-0/+1
| | | | | * doc/lispintro/emacs-lisp-intro.texi (Counting function definitions): Fix Texinfo 7.1 warning.
* ; * doc/lispintro/emacs-lisp-intro.texi (car & cdr): Fix typo.Eli Zaretskii2023-06-251-1/+1
| | | | (cherry picked from commit 0ebedd0119c1bc3c1f55e873385a01e97f102766)
* Clarify list terminologyRichard M. Stallman2023-06-251-20/+35
| | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Lists diagrammed): Mention "cons cell". Add index entries. (car & cdr): Simplify etymology of `car' and `cdr'. Explain why for some purposes they are better than `first' and `rest'. Mention cons cells. (cherry picked from commit 188c90c7c111dbbdc3edd29c23b59ade26f97bfd)
* Fix some Texinfo markup in manualsBasil L. Contovounesios2023-06-131-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/macos.texi (Mac / GNUstep Customization): * doc/lispintro/emacs-lisp-intro.texi (condition-case): * doc/lispref/control.texi (pcase Macro): * doc/lispref/debugging.texi (Internals of Debugger): * doc/lispref/internals.texi (Building Emacs): * doc/lispref/modes.texi (Imenu): (Parser-based Font Lock, Parser-based Indentation): * doc/lispref/parsing.texi (Retrieving Nodes, Tree-sitter C API): * doc/lispref/processes.texi (Network, Bindat Types): * doc/lispref/searching.texi (Rx Functions): * doc/lispref/text.texi (Replacing): * doc/lispref/windows.texi (Textual Scrolling): * doc/misc/calc.texi (Killing From Stack, Customizing Calc): * doc/misc/cc-mode.texi (Misc Font Locking, List Line-Up): * doc/misc/ede.texi (ede-cpp-root-project) (ede-proj-target-makefile, ede-sourcecode): * doc/misc/ert.texi (Running Tests in Batch Mode): * doc/misc/eudc.texi (Emacs-only Configuration, The Server Hotlist): * doc/misc/eww.texi (Advanced): * doc/misc/flymake.texi (Starting Flymake) (Proc customization variables): * doc/misc/tramp.texi (File name completion): * doc/misc/gnus.texi (Summary Buffer Lines, Gnus Registry Setup) (Fancy splitting to parent, Customizing the IMAP Connection) (Mail Source Specifiers, Agent as Cache): Consistently mark up nil and t as @code. Also fix the markup and wording of some surrounding text (bug#64016). * doc/lispref/display.texi (SVG Images, Icons): * doc/lispref/modes.texi (Customizing Keywords): Prefer ASCII apostrophe over Unicode right single quotation mark.
* ; Minor fix in Emacs Lisp Intro manualEli Zaretskii2023-04-211-4/+5
| | | | | | * doc/lispintro/emacs-lisp-intro.texi (what-line): Fix punctuation and wording. Reported by Holger Kienle <hkienle@posteo.de>. (Bug#62998)
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-0114-14/+14
|
* ; * doc/lispintro/emacs-lisp-intro.texi (Complete kill-region): Fix typoShynur2022-11-231-1/+1
|
* Abolish max-specpdl-size (bug#57911)Mattias EngdegÄrd2022-09-191-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The max-lisp-eval-depth limit is sufficient to prevent unbounded stack growth including the specbind stack; simplify matters for the user by not having them to worry about two different limits. This change turns max-specpdl-size into a harmless variable with no effects, to keep existing code happy. * lisp/subr.el (max-specpdl-size): Define as an ordinary (but obsolete) dynamic variable. * admin/grammars/Makefile.in: * doc/lispintro/emacs-lisp-intro.texi (Loops & Recursion): * doc/lispref/control.texi (Cleanups): * doc/lispref/edebug.texi (Checking Whether to Stop): * doc/lispref/eval.texi (Eval): * doc/lispref/variables.texi (Local Variables): * doc/misc/calc.texi (Recursion Depth): Update documentation. * etc/NEWS: Announce. * src/eval.c (FletX): Use safe iteration to guard against circular bindings list. (syms_of_eval): Remove old max-specpdl-size definition. (init_eval_once, restore_stack_limits, call_debugger) (signal_or_quit, grow_specpdl_allocation): * leim/Makefile.in: * lisp/Makefile.in: * lisp/calc/calc-stuff.el (calc-more-recursion-depth) (calc-less-recursion-depth): * lisp/calc/calc.el (calc-do): * lisp/cedet/semantic/ede-grammar.el (ede-proj-makefile-insert-rules): * lisp/cedet/semantic/grammar.el (semantic-grammar-batch-build-one-package): * lisp/cus-start.el (standard): * lisp/emacs-lisp/comp.el (comp--native-compile): * lisp/emacs-lisp/edebug.el (edebug-max-depth): (edebug-read-and-maybe-wrap-form, edebug-default-enter): * lisp/emacs-lisp/regexp-opt.el (regexp-opt): * lisp/eshell/esh-mode.el (eshell-mode): * lisp/loadup.el (max-specpdl-size): * lisp/mh-e/mh-e.el (mh-invisible-headers): * lisp/net/shr.el (shr-insert-document, shr-descend): * lisp/play/hanoi.el (hanoi-internal): * lisp/progmodes/cperl-mode.el: * src/fileio.c (Fdo_auto_save): Remove references to and modifications of max-specpdl-size.
* Merge from origin/emacs-28Stefan Kangas2022-08-171-1/+1
|\ | | | | | | | | | | a4078fa628 ; * lisp/vc/ediff.el: Improve wording in last change. dd077ebded Revert "; * doc/lispintro/emacs-lisp-intro.texi: Fix typo." 362c9ab879 * doc/misc/gnus.texi (Article Washing): Fix Links URL.
| * Revert "; * doc/lispintro/emacs-lisp-intro.texi: Fix typo."Stefan Kangas2022-08-161-1/+1
| | | | | | | | | | | | This reverts commit 9d0dba44da7ac83d018fff3c26d33dac12ebd806. This was not a typo, but incorrectly matching parens in Info-mode.
* | Merge from origin/emacs-28Stefan Kangas2022-08-151-1/+1
|\| | | | | | | | | 9d0dba44da ; * doc/lispintro/emacs-lisp-intro.texi: Fix typo. 0e336fa51f ; Improve documentation of minibuffer history wrt completion
| * ; * doc/lispintro/emacs-lisp-intro.texi: Fix typo.Stefan Kangas2022-08-141-1/+1
| |
* | Don't use obsolete library as example in Elisp IntroStefan Kangas2022-08-141-21/+7
| | | | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Several files recursively) (Sorting, Files List): Don't use obsolete library makesum.el as example.
* | Merge from origin/emacs-28Stefan Kangas2022-08-131-15/+2
|\| | | | | | | | | | | 72fc7258bf Delete references to deleted library hilit19.el e746fc2e7b Delete stale comments from Lisp Intro manual 77613b9217 ; Delete redundant installation instructions from ebnf2ps.el
| * Delete stale comments from Lisp Intro manualStefan Kangas2022-08-121-15/+2
| | | | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Args as Variable or List) (print-elements-of-list, Miscellaneous): Delete some references to Emacs 22.
* | Change current-time back to list formPaul Eggert2022-04-281-3/+6
| | | | | | | | | | | | | | | | | | | | | | Change current-time and related functions back to using the traditional list form. Also, add a new boolean variable current-time-list that lets people try out (TICKS . HZ) form, with the goal of smoothing the transition. * src/timefns.c (CURRENT_TIME_LIST): Change default back to true. (current-time-list): New boolean Lisp variable, which defaults to CURRENT_TIME_LIST. All uses of CURRENT_TIME_LIST changed to use current_time_list, and all documentation changed.
* | Use (TICKS . HZ) for current-time etc.Paul Eggert2022-04-251-3/+3
| | | | | | | | | | * src/timefns.c (CURRENT_TIME_LIST): Change default to false. All documentation changed.
* | Make the eintr.html target match what's on the webLars Ingebrigtsen2022-02-072-4/+2
| | | | | | | | | | | | * doc/lispintro/Makefile.in (HTML_TARGETS, eintr.html): Make the name match the URL at https://www.gnu.org/software/emacs/manual/eintr.html (bug#38817).
* | Merge from origin/emacs-28Eli Zaretskii2022-01-0114-14/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-0114-14/+14
| |
* | ; Fix spelling; be consistent with "key binding" (Bug#52674)Stefan Kangas2021-12-211-22/+22
| |
* | Cleanup append-to-buffer section in ELisp IntroYugaEgo2021-12-181-98/+49
| | | | | | | | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (append-to-buffer, Buffer Related Review, fwd-para let): Finalize shifting focus of the 'let*' introduction to the 'append-to-buffer' section. Improve wording, fix typos, remove redundant comments (Bug#8275).
* | Merge from origin/emacs-28Stefan Kangas2021-12-011-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e632b83a28 Update authors.el for Emacs 28 e9fdb11903 ; * ChangeLog.3: Some additional fixes. 8fa4749df1 ; * ChangeLog.3: Filename fixes. ea5a90b4f4 * lisp/repeat.el: Fix long-standing problem when a random ... ef4954b69c * lisp/repeat.el (repeat-keep-prefix): Change default to nil. 6d5886e780 * test/lisp/repeat-tests.el (repeat-tests-call-b): Test fo... 9e16c6a96d ; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc... 9aa8fd6e62 * src/callint.c (Fcall_interactively): Fix inhibit_mouse_e... 70c229b1fc Fix regression in gdb-frame-handler cd9dd26d24 Format and index concept 'predicate' in ELisp Intro ab291656d0 ; * ChangeLog.3: Fix typos. 354f6c5609 ; * ChangeLog.3: Formatting fixes. 6192525a96 ; make change-history-commit
| * Format and index concept 'predicate' in ELisp IntroYugaEgo2021-11-301-1/+2
| | | | | | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Wrong Type of Argument): Add index and format definition (bug#52197). Copyright-paperwork-exempt: yes
* | Merge from origin/emacs-28Stefan Kangas2021-11-121-1/+1
|\| | | | | | | | | | | a6905e90cc Fix problem with temp buffer killing in package-install-file 144ad77fda Fix Lisp Intro markup error 24b86cb4f7 Fix ACL errors with WebDAV volumes on MS-Windows
| * Fix Lisp Intro markup errorLars Ingebrigtsen2021-11-121-1/+1
| | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Insert let): Fix @code markup error (bug#51777).
* | Merge from origin/emacs-28Glenn Morris2021-10-291-1/+1
|\| | | | | | | | | | | | | | | 08de838531 ; Improve commentary in the last change 3da9fa875b Make hieroglyphs display correctly with existing fonts 928e05f2d6 Clarify "default face attributes" in the ELisp manual 5dbb04e0eb Make `C-u RET' work again d72fefdeab Fix typos in the manual and in a comment
| * Fix typos in the manual and in a commentJan Synacek2021-10-281-1/+1
| | | | | | | | | | | | | | | | * lisp/minibuffer.el (completion-pcm--hilit-commonality): * doc/lispintro/emacs-lisp-intro.texi (Mode Line): Fix typos (bug#51434). Copyright-paperwork-exempt: yes
* | Merge from origin/emacs-28Glenn Morris2021-10-271-0/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2bdd5732aa (origin/emacs-28) ; * etc/NEWS: Fix last change. 492b927909 Fix help commands for menu-bar menus 9589be772d ; * etc/NEWS: Fix typos. d353fc4a00 ; Explain why "kinds of atom" isn't a typo 47a3750162 ; * etc/NEWS: Improve wording of the Emoji entry. b814712796 ; Checkdoc fixes in image-dired.el e45b3fc521 Improve function documentation with text from XDG BDS spec 284c77eeb6 * lisp/transient.el: Update to package version 0.3.7. 40400e6977 ; Revert parts of "Use string-replace instead of replace-r... 214c2e268c ; Revert parts of "Use string-search instead of string-mat... # Conflicts: # etc/NEWS
| * ; Explain why "kinds of atom" isn't a typoEli Zaretskii2021-10-271-0/+4
| | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Lisp Atoms): Add a comment explaining why "kinds of atom" isn't a typo.
* | Merge from origin/emacs-28Glenn Morris2021-10-251-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | a2c17e115e (origin/emacs-28) Merge branch 'emacs-28' of git.savannah.... fde56eeb76 Revert "Fix a typo in emacs-lisp-intro.texi" 4779d3ba19 * doc/lispref/functions.texi (Mapping Functions): Use #' w... 85ea3f7f47 Fix issue with interpreting ANSI codes in eshell 50f9436146 image-dired: Doc fix to better explain thumbnail generation bb475e10b9 Clarify two image-dired docstrings f5b4bb4a6f Fix flymake example backend conditions in the manual 0771d8939a * etc/PROBLEMS: Mention problems with regexp matcher. (Bu... ee579033b9 * test/lisp/repeat-tests.el: New file. 7385a7667f * lisp/tab-bar.el (tab-bar-move-repeat-map): Fix alias bin... 56caf1c9b8 Use restrictive umask when creating image-dired data 3b5de7f991 ; lisp/transient.el: Revert some misguided stylistic fixes.
| * Revert "Fix a typo in emacs-lisp-intro.texi"Eli Zaretskii2021-10-251-1/+1
| | | | | | | | | | | | | | | | | | This reverts commit 98eb6d783a482cd7ebca7ec656b0775b82c68e57. I've consulted with Richard Stallman about this, and he says that the original wording, "kinds of atom", is both correct and more elegant writing. So I'm restoring the original text. * doc/lispintro/emacs-lisp-intro.texi (Lisp Atoms): Undo the fix of a "typo" that wasn't a typo. (Bug#51271)
* | Add comment on reworking a section in emacs-lisp-intro.texiStefan Kangas2021-10-211-0/+17
| | | | | | | | | | * doc/lispintro/emacs-lisp-intro.texi (Body of mark-whole-buffer): Add comment about how one could rework this section.