aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/variables.texi (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; Improve indexing in the ELisp manualEli Zaretskii2026-02-021-0/+3
| | | | | | * doc/lispref/functions.texi (Function Names): * doc/lispref/variables.texi (Tips for Defining): Improve indexing.
* Improve connection-local variables documentation.Michael Albinus2026-01-311-0/+13
| | | | | | * doc/emacs/custom.texi (Connection Variables): * doc/lispref/variables.texi (Applying Connection Local Variables): Improve documentation.
* ; Add 2026 to copyright years.Sean Whitton2026-01-011-1/+1
|
* ; Fix last changeEli Zaretskii2025-11-221-5/+6
| | | | | * doc/lispref/variables.texi (Selecting Lisp Dialect): Update due to bug#79760.
* Merge from origin/emacs-30Eli Zaretskii2025-05-171-10/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 299d3a44012 Fix saving abbrevs by 'abbrev-edit-save-buffer' 399d05332ed ; Remove confusing text from ELisp manual feecb1fbc60 ; * doc/emacs/cmdargs.texi (General Variables): More accu... 18e1aabbeaa ; Improve documentation of the -L command-line option c80fbe3f235 typescript-ts-mode: align ternary-chain branches (bug#78187) 16bfbc6fe31 ; Tramp test fixes f0ac271da38 ; Time Stamps doc: Clearer customize recipe 49c06df224a ; * doc/lispref/variables.texi (Default Value): Update. cbea5997c07 ; * lisp/mh-e/mh-e.el: Commentary: link to The MH-E Manual 0bf956235e3 Improve Tramp test eaf01d034c0 * lisp/autorevert.el (auto-revert-remote-files): Adapt do... e32bb816adb ; Improve documentation of ls-lisp.el 2d5f2434706 ; * lisp/emacs-lisp/comp.el (native-compile-prune-cache):... bb735331650 Improve Electric Pair mode documentation (bug#78021)
| * ; Remove confusing text from ELisp manualEli Zaretskii2025-05-171-8/+0
| | | | | | | | | | | | * doc/lispref/variables.texi (Defining Variables): Remove outdated confusing warning. For the details, see https://lists.gnu.org/archive/html/emacs-devel/2025-05/msg00332.html.
| * ; * doc/lispref/variables.texi (Default Value): Update.Sean Whitton2025-05-131-2/+2
| | | | | | | | Frame-local variables have been removed.
* | ; Fix wording of recently-added documentationEli Zaretskii2025-05-151-6/+7
| | | | | | | | | | | | | | * src/eval.c (Fset_buffer_local_toplevel_value) (Fbuffer_local_toplevel_value): * doc/lispref/variables.texi (Default Value): Fix wording of documentation.
* | New top-level buffer-local value functionsSean Whitton2025-05-151-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/eval.c (local_toplevel_binding) (Fbuffer_local_toplevel_value, Fset_buffer_local_toplevel_value) (syms_of_eval): New functions. * doc/lispref/variables.texi (Default Value): * lisp/subr.el (setq-local): * etc/NEWS: Document them. * test/lisp/emacs-lisp/lisp-tests.el (core-elisp-tests-4-toplevel-values): New test. * lisp/progmodes/xref.el (xref--show-xref-buffer) (xref-show-definitions-buffer-at-bottom): * lisp/vc/vc-dispatcher.el (vc-setup-buffer): Use set-buffer-local-toplevel-value.
* | ; Improve documentation of incf and decfStefan Kangas2025-03-191-0/+4
| | | | | | | | | | | | | | * doc/lispref/variables.texi (Setting Generalized Variables): Mention incf and decf. * lisp/emacs-lisp/gv.el (incf, decf): Add references to Info manual documentation on generalized variables.
* | Merge from origin/emacs-30Sean Whitton2025-03-121-7/+25
|\ \ | |/ | | | | 20291046053 Correct some outdated docs for hack-local-variables
| * Correct some outdated docs for hack-local-variablesSean Whitton2025-03-121-7/+25
| | | | | | | | | | | | | | | | | | * doc/lispref/variables.texi (File Local Variables): <hack-local-variables>: Say that it applies directory-local variables too. Add a cross-reference. (Directory Local Variables): Document dir-local-variables-alist. * lisp/files.el (hack-local-variables): Say that it always puts into effect directory-local variables.
* | Make second arg to defvar-local optionalStefan Kangas2025-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows declaring a variable both special and buffer-local like so: (defvar-local foo) * lisp/subr.el (defvar-local): Make second argument optional. * test/lisp/subr-tests.el (subr-test-defvar-local): New test. * doc/lispref/variables.texi (Creating Buffer-Local): Document above change. * etc/NEWS: * lisp/mb-depth.el (minibuffer-depth-overlay): * lisp/minibuf-eldef.el (minibuf-eldef-initial-input) (minibuf-eldef-initial-buffer-length) (minibuf-eldef-showing-default-in-prompt, minibuf-eldef-overlay): * lisp/misc.el (list-dynamic-libraries--loaded-only-p): * lisp/simple.el (minibuffer-history-isearch-message-overlay): Use above new one-argument form of 'defvar-local'.
* | New macros incf and decfStefan Kangas2025-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-lib.el (cl-incf, cl-decf): Move macros from here... * lisp/emacs-lisp/gv.el (incf, decf): ...to here. Make old names into aliases, documented as deprecated. * lisp/obsolete/cl.el: Don't alias incf and decf. * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-test-incf) (cl-lib-test-decf): Move tests from here... * test/lisp/emacs-lisp/gv-tests.el (gv-incf, gv-decf): ...to here. * doc/lispref/numbers.texi (Arithmetic Operations): * lisp/emacs-lisp/shortdoc.el (number): Document incf and decf. * doc/lispref/variables.texi (Multisession Variables): * doc/misc/cl.texi (Organization, Modify Macros, Modify Macros) (Modify Macros, Macro Bindings, For Clauses, Property Lists) (Structures, Efficiency Concerns, Obsolete Setf Customization): Delete cl-incf and cl-decf documentation, moving any relevant parts to lispref. Delete some parts that seem to primarily regard implementation details that do not warrant inclusion in lispref. Update all examples to use incf/decf.
* | (lexical-binding): Allow changing the default value (bug#74145)Stefan Monnier2025-02-181-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/loadup.el: Preserve (default-toplevel-value 'lexical-binding). * src/lread.c (Fload, Feval_buffer): Obey (default-toplevel-value 'lexical-binding). * doc/lispintro/emacs-lisp-intro.texi (Lexical vs Dynamic Binding Example): Use the lexical dialect also for the dynamic scoping example. * doc/lispref/edebug.texi (Edebug Eval): Remove long-obsolete mention of Edebug support for `lexical-let`.
* | Merge from origin/emacs-30Eli Zaretskii2025-02-081-22/+26
|\ \ | |/ | | | | | | | | | | ed9dd4705c7 ; * admin/authors.el (authors-aliases): Add aliases. 223ee56aae7 ; Avoid passive tense in Emacs manual be4cf26c167 Fix gnus-score-find-score-files-function :type 143f1096daa Improve documentation of 'file-name-concat'
| * ; Avoid passive tense in Emacs manualEli Zaretskii2025-02-081-22/+26
| | | | | | | | | | * doc/lispref/variables.texi (Defining Variables): Avoid passive tense (bug#76135).
* | Merge from origin/emacs-30Eli Zaretskii2025-02-011-2/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6447634f171 ; * admin/MAINTAINERS: Add CC Mode. 486d5d524ca Update cc-mode URL to point to nongnu.org 17ef46e849d ; * etc/NEWS: Note CVE-2024-53920 further up also. 05ee2b741f0 ; * CONTRIBUTE: Suggest to run more tests sometimes. e74efd9a428 * CONTRIBUTE: Recommend running the unit test prior to co... a9cde2463ab Don't signal an error in treesit-node-at 5d021a711a9 ; Improve documentation of '.dir-locals.el' 84595cbcc78 ; (let-alist): Document double-dot escape syntax. (Bug#75... 5617b07a45b ; Prefer HTTPS to HTTP in docs fdd23023c84 ; * admin/MAINTAINERS: Sort external packages alphabetica... 74dcfe155a9 ; * etc/NEWS: Remove temporary documentation markers. a87c382caba ; * etc/NEWS: Add missing temporary documentation tags. 3c820cd2650 Document insert-directory-program as a user option 2c1edf5f62a doc/lispref/modes.texi (Syntactic Font Lock): Update for ... # Conflicts: # etc/NEWS
| * ; Improve documentation of '.dir-locals.el'Eli Zaretskii2025-01-271-2/+3
| | | | | | | | | | | | | | * doc/lispref/variables.texi (Directory Local Variables): * doc/emacs/custom.texi (Directory Variables): Document that '.dir-locals-2.el' must be in the same directory as '.dir-locals.el'. (Bug#75890)
| * Update copyright year to 2025Stefan Kangas2025-01-021-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | ; * doc/lispref/variables.texi (Lexical Binding): Fix a recent change.Eli Zaretskii2025-01-171-1/+1
| |
* | Fix the Lisp reference manual for older TexinfoPo Lu2025-01-171-1/+1
| | | | | | | | | | | | | | | | * doc/lispref/symbols.texi (Standard Properties): Don't provide empty reference. * doc/lispref/variables.texi (Lexical Binding): Don't abuse xref in a standalone sentence.
* | Lisp Reference Manual: Index standard symbol properties.Stephen Gildea2025-01-121-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/symbols.texi (Standard Properties): * doc/lispref/commands.texi: * doc/lispref/customize.texi (Variable Definitions): * doc/lispref/help.texi: * doc/lispref/keymaps.texi: * doc/lispref/minibuf.texi (Minibuffer History): * doc/lispref/modes.texi (Setting Hooks): * doc/lispref/sequences.texi (Char-Tables): * doc/lispref/text.texi (Undo): * doc/lispref/variables.texi: Each standard symbol property has exactly one index entry, uniformly formatted as "(symbol property)".
* | Update copyright year to 2025Paul Eggert2025-01-011-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Fix display of obsolete variables in *Help*Michael Albinus2024-12-191-4/+4
|/ | | | | | | | | | | | | * doc/lispref/variables.texi (Variable Aliases): Mention `substitute-command-keys' in `make-obsolete-variable'. * lisp/font-lock.el: Revert last change. * lisp/help-fns.el (help-fns--var-obsolete): Apply `substitute-command-keys'. * lisp/emacs-lisp/byte-run.el (make-obsolete-variable): Adapt docstring.
* Mention special variables in lexical binding documentationMike Kupfer2024-11-281-1/+7
| | | | | * doc/lispref/variables.texi (Lexical Binding): Briefly mention special variables and their semantics. (Bug#74540)
* ; * doc/lispref/variables.texi (Creating Buffer-Local): Fix wording.Eli Zaretskii2024-10-021-2/+2
|
* Revert "; Minor clarification in variables.texi"Stefan Kangas2024-10-021-1/+1
| | | | This reverts commit 44156c2140772fa04ebbc0a488a85f0741e0c2ef.
* ; Minor clarification in variables.texiStefan Kangas2024-10-011-1/+1
| | | | | * doc/lispref/variables.texi (Creating Buffer-Local): Add comma to make reference clearer.
* ; Fix punctuation in docsStefan Kangas2024-07-211-1/+1
|
* (hack-dir-local-get-variables-functions): New hookStefan Monnier2024-06-091-0/+29
| | | | | | | | | | | | | Make it possible to provide more dir-local variables, such as done by the Editorconfig package. * lisp/files.el (hack-dir-local--get-variables): Make arg optional. (hack-dir-local-get-variables-functions): New hook. (hack-dir-local-variables): Run it instead of calling `hack-dir-local--get-variables`. * doc/lispref/variables.texi (Directory Local Variables): Document the new hook.
* Restore specbound keyboard-locals in the correct KBOARDPo Lu2024-05-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/variables.texi (Intro to Buffer-Local): Fix typo in documentation. * src/data.c (KBOARD_OBJFWDP): Move to lisp.h. (kboard_for_bindings): New variable. (do_symval_forwarding, store_symval_forwarding): Call kboard_for_bindings rather than retrieving this value directly. (set_default_internal): New argument WHERE; if valcontents be a Lisp_Kboard_Objfwd and WHERE be specified, save the binding there. All callers changed. * src/eval.c (specpdl_where): Adjust for changes in structure layout. (specpdl_kboard): New function. (do_specbind): Clear let->where.kbd in ordinary SPECPDL_LETs, and set it to the kboard where the binding will be installed if binding keyboard forwards. (specbind, do_one_unbind, specpdl_unrewind): Provide specpdl_kboard in invocation of set_default_internal. * src/keyboard.c (delete_kboard): Clean thread specpdls of references to kboards. * src/keyboard.h (KBOARD_OBJFWDP): Move from data.c. * src/lisp.h (union specbinding) <let.where>: Convert into union of KBOARD and Lisp_Object. * src/thread.c (all_threads): Export. * src/thread.h: Adjust correspondingly.
* Use a dedicated type to represent interpreted-function valuesStefan Monnier2024-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change `function` so that when evaluating #'(lambda ...) we return an object of type `interpreted-function` rather than a list starting with one of `lambda` or `closure`. The new type reuses the existing PVEC_CLOSURE (nee PVEC_COMPILED) tag and tries to align the corresponding elements: - the arglist, the docstring, and the interactive-form go in the same slots as for byte-code functions. - the body of the function goes in the slot used for the bytecode string. - the lexical context goes in the slot used for the constants of bytecoded functions. The first point above means that `help-function-arglist`, `documentation`, and `interactive-form`s don't need to distinguish interpreted and bytecode functions any more. Main benefits of the change: - We can now reliably distinguish a list from a function value. - `cl-defmethod` can dispatch on `interactive-function` and `closure`. Dispatch on `function` also works now for interpreted functions but still won't work for functions represented as lists or as symbols, of course. - Function values are now self-evaluating. That was alrready the case when byte-compiled, but not when interpreted since (eval '(closure ...)) signals a void-function error. That also avoids false-positive warnings about "don't quote your lambdas" when doing things like `(mapcar ',func ...)`. * src/eval.c (Fmake_interpreted_closure): New function. (Ffunction): Use it and change calling convention of `Vinternal_make_interpreted_closure_function`. (FUNCTIONP, Fcommandp, eval_sub, funcall_general, funcall_lambda) (Ffunc_arity, lambda_arity): Simplify. (funcall_lambda): Adjust to new representation. (syms_of_eval): `defsubr` the new function. Remove definition of `Qclosure`. * lisp/emacs-lisp/cconv.el (cconv-make-interpreted-closure): Change calling convention and use `make-interpreted-closure`. * src/data.c (Fcl_type_of): Distinguish `byte-code-function`s from `interpreted-function`s. (Fclosurep, finterpreted_function_p): New functions. (Fbyte_code_function_p): Don't be confused by `interpreted-function`s. (Finteractive_form, Fcommand_modes): Simplify. (syms_of_data): Define new type symbols and `defsubr` the two new functions. * lisp/emacs-lisp/cl-print.el (cl-print-object) <interpreted-function>: New method. * lisp/emacs-lisp/oclosure.el (oclosure): Refine the parent to be `closure`. (oclosure--fix-type, oclosure-type): Simplify. (oclosure--copy, oclosure--get, oclosure--set): Adjust to new representation. * src/callint.c (Fcall_interactively): Adjust to new representation. * src/lread.c (bytecode_from_rev_list): * lisp/simple.el (function-documentation): * lisp/help.el (help-function-arglist): Remove the old `closure` case and adjust the byte-code case so it handles `interpreted-function`s. * lisp/emacs-lisp/cl-preloaded.el (closure): New type. (byte-code-function): Add it as a parent. (interpreted-function): Adjust parent (the type itself was already added earlier by accident). * lisp/emacs-lisp/bytecomp.el (byte-compile--reify-function): Adjust to new representation. (byte-compile): Use `interpreted-function-p`. * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Adjust to new representation. (side-effect-free-fns): Add `interpreted-function-p` and `closurep`. * src/profiler.c (trace_hash, ffunction_equal): Simplify. * lisp/profiler.el (profiler-function-equal): Simplify. * lisp/emacs-lisp/nadvice.el (advice--interactive-form-1): Use `interpreted-function-p`; adjust to new representation; and take advantage of the fact that function values are now self-evaluating. * lisp/emacs-lisp/lisp-mode.el (closure): Remove `lisp-indent-function` property. * lisp/emacs-lisp/disass.el (disassemble-internal): Adjust to new representation. * lisp/emacs-lisp/edebug.el (edebug--strip-instrumentation): Use `interpreted-function-p`. * lisp/emacs-lisp/comp-common.el (comp-known-type-specifiers): Add `closurep` and `interpreted-function-p`. * test/lisp/help-fns-tests.el (help-fns-test-lisp-defun): Adjust to more precise type info in `describe-function`. * test/lisp/erc/resources/erc-d/erc-d-tests.el (erc-d--render-entries): Use `interpreted-function-p`. * test/lisp/emacs-lisp/macroexp-resources/vk.el (vk-f4, vk-f5): Don't hardcode function values. * doc/lispref/functions.texi (Anonymous Functions): Don't suggest that function values are lists. Reword "self-quoting" to reflect the fact that #' doesn't return the exact same object. Update examples with the new shape of the return value. * doc/lispref/variables.texi (Lexical Binding): * doc/lispref/lists.texi (Rearrangement): * doc/lispref/control.texi (Handling Errors): Update examples to reflect new representation of function values.
* Improve `handler-bind` docStefan Monnier2024-01-041-1/+3
| | | | | * doc/lispref/control.texi (Handling Errors) <handler-bind>: Expand. * doc/lispref/variables.texi (Variable Scoping): Mention static scoping.
* Merge from savannah/emacs-29Po Lu2024-01-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc4e6b13296 ; Update copyright years in more files 64b37776318 ; Run set-copyright from admin.el 8e1c56ae467 ; Add 2024 to copyright years # Conflicts: # doc/misc/modus-themes.org # doc/misc/texinfo.tex # etc/NEWS # etc/refcards/ru-refcard.tex # etc/themes/modus-operandi-theme.el # etc/themes/modus-themes.el # etc/themes/modus-vivendi-theme.el # lib/alloca.in.h # lib/binary-io.h # lib/c-ctype.h # lib/c-strcasecmp.c # lib/c-strncasecmp.c # lib/careadlinkat.c # lib/cloexec.c # lib/close-stream.c # lib/diffseq.h # lib/dup2.c # lib/filemode.h # lib/fpending.c # lib/fpending.h # lib/fsusage.c # lib/getgroups.c # lib/getloadavg.c # lib/gettext.h # lib/gettime.c # lib/gettimeofday.c # lib/group-member.c # lib/malloc.c # lib/md5-stream.c # lib/md5.c # lib/md5.h # lib/memmem.c # lib/memrchr.c # lib/nanosleep.c # lib/save-cwd.h # lib/sha1.c # lib/sig2str.c # lib/stdlib.in.h # lib/strtoimax.c # lib/strtol.c # lib/strtoll.c # lib/time_r.c # lib/xalloc-oversized.h # lisp/auth-source-pass.el # lisp/emacs-lisp/lisp-mnt.el # lisp/emacs-lisp/timer.el # lisp/info-look.el # lisp/jit-lock.el # lisp/loadhist.el # lisp/mail/rmail.el # lisp/net/ntlm.el # lisp/net/webjump.el # lisp/progmodes/asm-mode.el # lisp/progmodes/project.el # lisp/progmodes/sh-script.el # lisp/textmodes/flyspell.el # lisp/textmodes/reftex-toc.el # lisp/textmodes/reftex.el # lisp/textmodes/tex-mode.el # lisp/url/url-gw.el # m4/alloca.m4 # m4/clock_time.m4 # m4/d-type.m4 # m4/dirent_h.m4 # m4/dup2.m4 # m4/euidaccess.m4 # m4/fchmodat.m4 # m4/filemode.m4 # m4/fsusage.m4 # m4/getgroups.m4 # m4/getloadavg.m4 # m4/getrandom.m4 # m4/gettime.m4 # m4/gettimeofday.m4 # m4/gnulib-common.m4 # m4/group-member.m4 # m4/inttypes.m4 # m4/malloc.m4 # m4/manywarnings.m4 # m4/mempcpy.m4 # m4/memrchr.m4 # m4/mkostemp.m4 # m4/mktime.m4 # m4/nproc.m4 # m4/nstrftime.m4 # m4/pathmax.m4 # m4/pipe2.m4 # m4/pselect.m4 # m4/pthread_sigmask.m4 # m4/readlink.m4 # m4/realloc.m4 # m4/sig2str.m4 # m4/ssize_t.m4 # m4/stat-time.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/stdio_h.m4 # m4/stdlib_h.m4 # m4/stpcpy.m4 # m4/strnlen.m4 # m4/strtoimax.m4 # m4/strtoll.m4 # m4/time_h.m4 # m4/timegm.m4 # m4/timer_time.m4 # m4/timespec.m4 # m4/unistd_h.m4 # m4/warnings.m4 # nt/configure.bat # nt/preprep.c # test/lisp/register-tests.el
| * ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
| |
* | Merge from origin/emacs-29Eli Zaretskii2023-12-161-4/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bf4ccb0be07 ; * lisp/term.el (term--xterm-paste): Fix last change. 0d9e2e448d9 ; * doc/lispref/functions.texi (Function Documentation): ... 791cc5065da Fix shaping of Sinhala text efcbf0b5abf Add use cases of (fn) documentation facility. c3331cb3659 Fix pasting into terminal-mode on term.el 5be94e2bce5 Fix opening directory trees from Filesets menu 6b6e770a1f5 Eglot: Add ruff-lsp as an alternative Python server ed8a8a5ba16 Fix symbol name in Multisession Variables examples 400ef15bdc3 js-ts-mode: Fix font-lock rules conflict c165247c300 Add indentation rules for bracketless statements in js-ts... 7f1bd69cd19 Fix c-ts-mode bracketless indentation for BSD style (bug#... e23068cb9a1 Add missing indent rules in c-ts-mode (bug#66152) d2c4b926ac2 Fix treesit-default-defun-skipper (bug#66711) 9874561f39e Fix treesit-node-field-name and friends (bug#66674) eace9e11226 python-ts-mode: Highlight default parameters 23c06c7c308 Update to Org 9.6.13
| * Fix symbol name in Multisession Variables examplesAdam Porter2023-12-151-4/+4
| | | | | | | | | | * doc/lispref/variables.texi (Multisession Variables): Fix symbol name. (Bug#67823)
* | New macro connection-local-pMichael Albinus2023-12-121-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/variables.texi (Applying Connection Local Variables): Add macro 'connection-local-p'. * etc/NEWS: Add macro `connection-local-p'. * lisp/files-x.el (connection-local-p): New macro. (connection-local-value): Add debug declaration. * lisp/net/tramp-compat.el (tramp-compat-connection-local-p): New macro. * lisp/net/tramp-crypt.el (tramp-crypt-cleanup-connection): Bind `tramp-crypt-enabled'. * test/lisp/files-x-tests.el (files-x-test-connection-local-value): * test/lisp/net/tramp-tests.el (tramp-test18-file-attributes) (tramp-test35-remote-path): Adapt tests.
* | dired-listing-switches handles connection-local values if existMichael Albinus2023-12-101-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/dired.texi (Dired Enter): * doc/misc/tramp.texi (Frequently Asked Questions): * etc/NEWS: 'dired-listing-switches' handles connection-local values if exist. * doc/lispref/variables.texi (Applying Connection Local Variables): Fix decription of connection-local-default-application. * lisp/dired.el (dired-listing-switches): Adapt docstring. (dired-internal-noselect, dired-mode): * lisp/dired-x.el (dired-virtual): * lisp/files.el (recover-file, recover-session): * lisp/net/ange-ftp.el (ange-ftp-get-files): Use connection-local value of `dired-listing-switches'. * lisp/files-x.el (connection-local-value): Adapt docstring. * lisp/man.el (Man-shell-file-name): Use `connection-local-value'.
* | New macro connection-local-valueMichael Albinus2023-12-091-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/variables.texi (Applying Connection Local Variables): Add macro 'connection-local-value'. * etc/NEWS: Add macro 'connection-local-value'. * lisp/files-x.el (connection-local-value): New macro. (path-separator, null-device): Use it. * test/lisp/files-x-tests.el (files-x-test-connection-local-value): New test.
* | Modernise text about using dynamic variablesMattias Engdegård2023-10-231-10/+10
| | | | | | | | | | * doc/lispref/variables.texi (Dynamic Binding Tips): Give more useful advice.
* | Elaborate Elisp dialect selection in manualMattias Engdegård2023-10-231-64/+83
| | | | | | | | | | | | | | | | * doc/lispref/variables.texi (Using Lexical Binding): Rename to... (Selecting Lisp Dialect): ...this. All references updated. Add concrete examples of -*- lines. Move text about special variables from here... (Dynamic Binding): ...to here.
* | Describe lexical binding before dynamicMattias Engdegård2023-10-231-129/+125
| | | | | | | | | | | | | | | | | | | | * doc/lispref/variables.texi (Variable Scoping) (Lexical Binding, Dynamic Binding): Alter the presentation order from the point of view that lexical binding is the standard discipline (if not always the default) and dynamic binding an alternative, which corresponds better to Elisp today. Modernise parts of the text. * doc/lispref/elisp.texi (Top): Update menu.
* | Move and edit text about lexical environment representationMattias Engdegård2023-10-211-11/+0
| | | | | | | | | | | | | | | | | | | | | | It's only relevant for the second argument to `eval`; the actual internal representation is an implementation matter and usually different from what was described here. * doc/lispref/variables.texi (Lexical Binding): Move the relevant part of the description of the internal representation of lexical environments from here... * doc/lispref/eval.texi (Eval): ...to here, where it belongs.
* | ; Grammar fixes ("allow to" et al)Stefan Kangas2023-09-171-1/+1
| | | | | | | | | | | | Ref: https://lists.gnu.org/r/emacs-devel/2016-01/msg01598.html https://lists.gnu.org/r/emacs-devel/2016-01/msg01465.html
* | Merge from origin/emacs-29Eli Zaretskii2023-09-161-8/+8
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 755ae813a6a ; Declare some treesit.c functions in typescript-ts-mode.el. 89fa204b706 Fix loss of encrypted data in plstore.el d9a1175a611 Close SQL database when corresponding 'sqlite-mode' buffe... cbd8fac283a Fix Unicode normalization of characters 825be05b379 Support one-time passwords in Tramp f880b94e649 Fix the 'C' and 'c' categories of characters 58fd212d8a2 Fix Emoji zooming commands 8970cdd009a ; Fix last change. ba924be4522 ; * etc/DEBUG: Improve the redisplay section. e110312ad95 ; * doc/lispref/minibuf.texi (Text from Minibuffer): Ment... 65f4810003b tsx-ts-mode--font-lock-compatibility-bb1f97b: Improve 6fe11b88ed0 Avoid using --display in emacsclient to reuse frames on PGTK 2fc7463c0e5 ; * INSTALL: Don't advertise -O3. (Bug#65988) 29055412f2d ; Fix doc string of 'lsh' 738d8543337 Support emacsclient on Windows with server on GNU or Unix... f0a89fa1d0e ; * lisp/saveplace.el (save-place-ignore-files-regexp): F... c9cb8ee0fc0 Fix defcustom in saveplace.el (Bug#65977) 5ec8be1d589 ; * lisp/subr.el (string-suffix-p, string-prefix-p): Doc ... 809305e6d8f Fix 'window-text-pixel-size' when there are several image... ea14b0dcc20 : Doc fix. 01e8a0c6cbf Doc fix for prettify-symbols-unprettify-at-point 0065621d0d3 (report_overlay_modification): Fix bug#65929 6cc6455e931 Fix SVG colors (bug#56182) 9396d73942e * doc/emacs/text.texi (Outline Minor Mode): Add a note ab... a65d1a5a167 Improve documentation of 'list-abbrevs' 5dcc4b7eab1 Tweak s-p-f for js-ts-mode 1fb2fb501f3 typescript-ts-mode, tsx-ts-mode: Fix syntax properties fo... 946b395e7e1 * lisp/progmodes/c-ts-mode.el (c++-ts-mode): Provide (bug... 33ee3e588fd Fix regression of treesit_cursor_helper_1 d11d81dfcc6 ; Fix doc typos (Bug#65868) 6554ec22465 Update docs for passing of Thien-Thi Nguyen 5ab2792d5c1 Update defvar usage tips example in manual 35d88c657e1 Document using Flymake together with Eglot 3f04efe9e7d ; * src/font.h (struct font): Comment about use of averag... 459b5f6b6d1 ; * admin/authors.el (authors-aliases): Update. 0c029ae8bcb ; tweak etc/TODO item # Conflicts: # admin/authors.el # lisp/subr.el
| * Update defvar usage tips example in manualStefan Kangas2023-09-111-8/+8
| | | | | | | | | | | | * doc/lispref/variables.texi (Tips for Defining): Change example to be about syntax tables instead of old way of defining keymaps using 'defvar' and 'make-sparse-keymap'. (Bug#59224)
* | Explicitly disallow named-let in code using dynamic bindingMattias Engdegård2023-08-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | There is no point in permitting named-let to be used in dynbound code; our code transforms are simply not valid in that context, and it's not worth the trouble to make it work (to the extent that it is at all possible). (Bug#59576) * lisp/emacs-lisp/subr-x.el (named-let): Error if used with dynamic binding. * doc/lispref/variables.texi (Local Variables): Amend manual.
* | Merge from origin/emacs-29Eli Zaretskii2023-07-011-1/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | ef16339918e Make js-beginning-of-defun return non-nil on success 2c90ade09a4 Tree-sitter use with-silent-modifications like jit-lock (... 11cead0d73c Fix todo-mode.el Commentary and a doc string (bug#64298) 6ae83322d4c Prevent truncation of todo-mode categories sexp ee41f07be52 Avoid making todo-mode buffers manually editable 53332bdf625 ; * doc/lispref/variables.texi: Fix define-obsolete-varia... 162c9c058eb ; Document that 'named-let' needs lexical-binding 68028f0fa31 ; * etc/PROBLEMS: Fix typo.