summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Declare nested backquotes unsupported in Pcase patterns (bug#72328)Stefan Monnier2024-09-242-3/+6
| | | | | | | | | | The current behavior is inconsistent with that of the normal backquote macro, so to avoid surprises, warn about the use of nested backquotes. * lisp/emacs-lisp/pcase.el (pcase--expand-\`): Warn about nested backquotes. * lisp/emacs-lisp/testcover.el (testcover-analyze-coverage) (testcover-analyze-coverage-wrapped-form): Avoid nested backquotes
* ; * lisp/emacs-lisp/lisp.el (delete-pair-push-mark): Add :version.Eli Zaretskii2024-09-211-1/+3
|
* Add option for delete-pair to mark end of regionPaul Nelson2024-09-211-2/+10
| | | | | | | * lisp/emacs-lisp/lisp.el (delete-pair-push-mark): New user option. (delete-pair): Use it. (Bug#73284) * etc/NEWS: Announce the new user option.
* Support numeric indexing in let-alistSpencer Baugh2024-09-191-10/+15
| | | | | | | | | | | | | | | | | | | | | let-alist is very useful. But sometimes an alist contains a list in the middle, which contains yet more alists. Previously, this was somewhat painful to deal with, and required something like: (let-alist alist (let-alist (nth 0 .a) (let-alist (nth 3 .b) .c))) Now, the following works: (let-alist alist .a.0.b.3.c) * lisp/emacs-lisp/let-alist.el (let-alist--access-sexp): Properly parse numbers to handle lists. (Bug#66509) (let-alist--list-to-sexp): Use nth to handle numbers. (let-alist): Update docs.
* Merge from origin/emacs-30Eli Zaretskii2024-09-141-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d509a356997 Fix regression in widget-move (bug#72995) ef0276de82b ; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098) b115c2d5eba ; * lisp/minibuffer.el (completion-pcm--merge-completions... 3cda1fdc3b7 Correctly include fixed strings before a prefix wildcard ... 57d93d0259a ; * lisp/treesit.el (treesit-major-mode-setup): Doc fix. ad289f364e5 ; Improve documentation of 'easy-menu-define' 3cad7cc8dc8 Set treesit-primary-parser for c and elixir ts mode 2f243fb91d6 ; Minor doc fix in treesit.el 6a6d7925c9d Fix range handling so it works for multibyte buffer (bug#... 76faf7e6091 Revert "Read more on each call to treesit's buffer reader" c70bd0e3fe9 Fix tree-sitter indent preset prev-adaptive-prefix 272df33fb8b ; * CONTRIBUTE: Minor copyedits. 8e1187e336f Improve NEWS entries ca3932121a8 Don't fail uniquify-tests in non-version-controlled sourc... 79f68597aba ; * etc/ORG-NEWS: Fix typo. d66b70f3607 * doc/misc/auth.texi: Minor copy edits. 2c6b7b2da9f ; * admin/MAINTAINERS: Remove some entries for Artur Mala... 11e7ae3964e Fix bug#72254 # Conflicts: # etc/NEWS
| * ; Improve documentation of 'easy-menu-define'Eli Zaretskii2024-09-141-1/+2
| | | | | | | | | | | | * doc/lispref/keymaps.texi (Easy Menu): * lisp/emacs-lisp/easymenu.el (easy-menu-define): Document that SYMBOL is also defined as a variable. (Bug#73108)
* | Merge from savannah/emacs-30Po Lu2024-09-111-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ee3e3a63111 ; Update version number of exec/configure.ac c5925b6ba5f Fix heex-ts-mode indentation following previews elixir-mo... c3383be5f04 ; * admin/make-tarball.txt: Improve last change. 8ddb54117f1 ; * admin/make-tarball.txt: Remove now unnecessary config... 7e194d33f90 * lisp/ldefs-boot.el: Update. 9019536ea66 Fix use of Uniscribe font driver in MinGW build 5c55c860db7 Avoid crashes in redisplay in batch-mode testing ba2190e1ae7 ; * etc/NEWS: Fix indentation. 818c0cc9a51 eglot-test-rust-completion-exit-function: Fix failure in ... f47297782bd ; * doc/lispref/searching.texi (Rx Notation): Simplify rx... 03e56981675 Clarify the semantics of 'string-pixel-width' 9f0603207b1 ; * src/treesit.c: Minor cleanups of recent changes. e0d3f743957 * src/treesit.c (treesit_debug_print_parser_list): Fix fo... bed38ded730 ; * src/treesit.c (treesit_debug_print_parser_list): Fix ... 18c6487dbd0 ; * src/treesit.c: Add a prototype so there's no warning ... bf23382f1f2 Read more on each call to treesit's buffer reader 3435464452b Fix the range handling in treesit.c 3fcec09f754 Add debugging function for treesit.c 0fd259d166c Fix elixir-ts-mode's range query 2329b36b1fb ; project-files-relative-names: Update docstring (bug#72701) e55e2e1c6ba Make json-serialize always return a unibyte string (bug#7... 89c99891b2b ; * doc/lispref/os.texi (Suspending Emacs): Fix last change. 4f044d0d3df ; Improve documentation of 'suspend-emacs'
| * Clarify the semantics of 'string-pixel-width'Eli Zaretskii2024-09-091-1/+5
| | | | | | | | | | | | | | * doc/lispref/display.texi (Size of Displayed Text): * lisp/emacs-lisp/subr-x.el (string-pixel-width): * src/xdisp.c (Fwindow_text_pixel_size, Fbuffer_text_pixel_size): Doc fixes. (Bug#73129)
* | ; * lisp/emacs-lisp/chart.el (chart--directory-size): Simpler regexpMattias Engdegård2024-09-091-1/+1
| | | | | | | | The empty regexp matches any string.
* | Merge from origin/emacs-30Eli Zaretskii2024-09-072-29/+70
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b420e149b1e Fix a typo in ediff-init.el e1304e9b1bb Fix 'chart-space-usage' on MS-Windows 04c44405bf6 Fix alignment and documentation of vtable.el 4d6fadb8d21 ; * lisp/which-key.el: Fix ':package-version' (bug#73072). 54071b9cef2 ; Improve doc strings of 'tab-bar-mode' and 'tab-line-mode' 87a8b12a0c4 Fix test failure in erc-networks-tests dad0935cfcb ; * doc/emacs/building.texi (Lisp Libraries): Update (bug... e4dc6711b02 Fix :hook in 'use-package' c1cd036d27a ; * doc/lispref/modes.texi (Mode Line Data): Fox wording. ae2463796f2 ; Caveats about using :eval in 'mode-line-format' 4047072c7d8 Update FSF's address 24f12bdd77e Support the new option in ruby-ts-mode too 6c15b7710d4 Add new option ruby-bracketed-args-indent 7799ef43354 Fix Rmail base64 and qp decoding of MIME payloads 0def396fa8f Update to Org 9.7.11 8c044bd9726 ; Fix recent changes in documentation e0d8879bcd5 * test/lisp/emacs-lisp/tabulated-list-tests.el: Add missi... 4ff4b78f922 ; Small doc fixes da980ad838e ; Reword some "allows Xing" 2ca7d5649c6 ; More accurate text about how `equal` compares various o... # Conflicts: # etc/NEWS
| * Fix 'chart-space-usage' on MS-WindowsEli Zaretskii2024-09-071-15/+56
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/chart.el (chart--file-size) (chart--directory-size): New functions. (chart-space-usage): Invoke 'du' correctly on MS-Windows. Provide alternative implementation in Lisp when 'du' is not installed, using 'chart--directory-size' and 'chart--file-size'. (Bug#72919)
| * Fix alignment and documentation of vtable.elEli Zaretskii2024-09-071-14/+14
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Ensure proper alignment between the columns in header-line and in the body of the table. (Bug#73032) * doc/misc/vtable.texi (Making A Table): Document the defaults of the various keyword parameters.
* | Fix multisession.el when SQLite becomes unavailableEli Zaretskii2024-09-071-55/+63
| | | | | | | | | | | | | | | | | | | | | | This is for the case when the user customizes multisession to use SQLite, but then built-in SQLite support becomes unavailable for some reason (e.g., upgrade the OS). * lisp/emacs-lisp/multisession.el (multisession-backend-value) (multisession--backend-set-value, multisession--backend-values) (multisession--backend-delete): Call next method if built-in SQLite support is not available. Suggested by Stefan Monnier <monnier@iro.umontreal.ca>. (Bug#72788)
* | ; Fix last change in subr-x.elEli Zaretskii2024-08-311-1/+0
| | | | | | | | | | * lisp/emacs-lisp/subr-x.el (string-pixel-width): Remove unnecessary call to 'erase-buffer'. (Bug#72689)
* | Use 'with-work-macro' in 'string-pixel-width'David Ponce2024-08-311-9/+13
| | | | | | | | | | | | | | | | | | Tweak the implementation of 'string-pixel-width' to run faster and use less memory. Also cater for the case where this function is called in parallel (bug#72689). * lisp/emacs-lisp/subr-x.el (string-pixel-width): Use `with-work-macro'. Prefer `remove-text-properties' to `propertize' to avoid creating a new string on each call.
* | New macro `with-work-buffer'.David Ponce2024-08-311-0/+47
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/subr-x.el (work-buffer--list) (work-buffer-limit): New variables. (work-buffer--get, work-buffer--release): New function. (with-work-buffer): New macro. (Bug#72689) * etc/NEWS: Announce 'with-work-buffer'.
* | (pp): Indent lines right when starting in col > 0Stefan Monnier2024-08-262-17/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This refines the fix for bug#72561: commit 0a500193087e fixes the bug by changing `ert--pp-with-indentation-and-newline`, but it turns out that `pp` was inconsistent (it sometimes indented the subsequent lines correctly and sometimes not, depending on the current-buffer's major mode). So the fix really should be in `pp`, which is what this patch does. * lisp/emacs-lisp/pp.el (pp): Appropriately indent subsequent lines if the first line is not inserted in column 0 (tho only when printing into a buffer since otherwise it's somewhere between ill-defined and impossible to implement). * lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline): Remove the indentation code after `pp` which was just working around the bug in `pp`. Also remove the redundant addition of `\n` since `pp` always does it nowadays. * test/lisp/help-mode-tests.el (help-mode-tests-xref-on-pp): Fix thinko.
* | Merge from origin/emacs-30Eli Zaretskii2024-08-251-3/+2
|\| | | | | | | | | | | | | | | | | | | | | | | 9b299dd79c1 Revert a recent change that caused redisplay slowdown 4eaab54896f ; * doc/lispref/display.texi (Low-Level Font): Fix wordin... 0a500193087 Indent ERT failure explanations rigidly 713069dd7a8 [Eglot] Stricter "expand common" behavior 096730510cd eglot-tests.el: New tests for existing completion behavior 969498c25d0 Remove dangerous HTML edit from admin.el # Conflicts: # etc/EGLOT-NEWS
| * Indent ERT failure explanations rigidlyF. Jason Park2024-08-251-3/+2
| | | | | | | | | | | | | | | | | | | | | | This also affects the listing of `should' forms produced by hitting the L key on a test button in an ERT buffer. * lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline): Indent the pretty-printed result to match the caller's current column as a reference indentation. * test/lisp/emacs-lisp/ert-tests.el (ert--pp-with-indentation-and-newline): New test. (Bug#72561)
* | Merge from origin/emacs-30Eli Zaretskii2024-08-241-1/+1
|\| | | | | | | | | | | 4211d85eec0 Fix rare segfaults due to freed fontsets 44c26140b6e ; Fix infloop in checkdoc-next-docstring 25f53721668 Avoid putting a dead buffer in the minibuffer window (Bug...
| * ; Fix infloop in checkdoc-next-docstringEshel Yaron2024-08-231-1/+1
| | | | | | | | | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-next-docstring): Use 'beginning-of-defun-raw' instead of 'beginning-of-defun', as the latter always moves back to beginning of line and thus is not guaranteed to advance point when 'open-paren-in-column-0-is-defun-start' is non-nil. (Bug#72759)
* | Merge from savannah/emacs-30Po Lu2024-08-201-7/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3419e7ea522 Correct Android failure to open an old CJK font 45ae4de0e7c * lisp/help-fns.el (help-definition-prefixes): Don't dele... fc7581ae2ee ; Fix documentation of secure-hash functions 21be5cadaf1 ; * lisp/subr.el (sha1): Fix typo in docstring. 8715619d485 ; * etc/NEWS: Fix wording of last change. 023d387a7bd Update to Org 9.7.10 b54e8b3741b ; * etc/NEWS: Announce 'shr-fill-text'. acfd91bc0c7 ; * lisp/emacs-lisp/compat.el: Fix header style. 55337dc36a2 * test/infra/gitlab-ci.yml (.tree-sitter-template): Adapt... d8e9eb73c2b Bump use-package version for Emacs 30.1 4d9d3fec1b9 * Makefile.in (CHANGELOG_HISTORY_INDEX_MAX): Bump. 502285e84aa ; * admin/make-tarball.txt: Some clarifications.
| * ; * lisp/emacs-lisp/compat.el: Fix header style.Andrea Corallo2024-08-181-7/+5
| |
* | Merge from origin/emacs-30Eli Zaretskii2024-08-172-12/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5c9de704cc8 ; * admin/make-tarball.txt: Minor copyedits. 3fc16357832 ; * doc/lispref/strings.texi (Text Comparison): Improve i... 45a78ec6c57 * lisp/files.el (require-with-check): Improve error messa... 9a04b99b3d3 ; * src/data.c (Fsubrp): Improve docstring. 4f3e8c3b4ed Improve documentation of ERT ed8904937ec Disambiguate minor-mode variable in its function docstring 505139e0bad Fix project-dired keybinding in manual 9bedb957beb Improve documentation of time-parsing functions # Conflicts: # doc/lispref/os.texi # lisp/calendar/iso8601.el # lisp/calendar/parse-time.el
| * Improve documentation of ERTEli Zaretskii2024-08-151-9/+11
| | | | | | | | | | | | | | | | * doc/misc/ert.texi (Running Tests Interactively) (Test Selectors): * lisp/emacs-lisp/ert.el (ert-select-tests) (ert-run-tests-interactively, ert-run-tests-batch): Improve and clarify the documentation of the main ERT functions.
| * Disambiguate minor-mode variable in its function docstringVisuwesh2024-08-151-3/+6
| | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring) (easy-mmode--mode-docstring): Add "the variable" before the GETTER if it is a symbol to properly link to minor-mode variable in the *Help* buffer in the common case. (bug#72405)
* | ; * lisp/emacs-lisp/cond-star.el: Fix whitespace.Pip Cet2024-08-111-4/+1
| |
* | ; * lisp/emacs-lisp/cond-star.el: Fix typos and whitespace.Eli Zaretskii2024-08-111-33/+39
| |
* | ; Fix a typo in the doc-strings of cond*Gautier Ponsinet2024-08-111-1/+1
| | | | | | | | | | * lisp/emacs-lisp/cond-star.el (cond*): Fix a typo in the doc-string. (Bug#72576)
* | Fix buglet.Richard Stallman2024-08-101-3/+3
| | | | | | | | * lisp/emacs-lisp/cond-star.el (cond*-match): Move a backquote.
* | Merge from savannah/emacs-30Po Lu2024-08-091-0/+5
|\| | | | | | | | | | | | | | | a1b8c2610a4 * lisp/help-macro.el: Add 'help-for-help-use-variable-pit... a577eccdbbc ; * doc/lispref/strings.texi (String Conversion): Fix las... d22e52375a6 Remove manual entry for string-to-int 341e5795d5d Support minibuffer-visible-completions in completing-read... 3e30c779a70 * lisp/imenu.el (imenu-flatten): Fix doc about annotation...
| * Support minibuffer-visible-completions in completing-read-multipleSpencer Baugh2024-08-071-0/+5
| | | | | | | | | | | | | | | | | | All that's required is to add minibuffer-visible-completions-map on top of the completing-read-multiple map; this is the same thing that minibuffer-visible-completions does in completing-read-default. * lisp/emacs-lisp/crm.el (completing-read-multiple): Add minibuffer-visible-completions-map (bug#69189)
* | Add support for variable-pitch fonts in 'visual-wrap-prefix-mode'Jim Porter2024-08-041-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/subr-x.el (string-pixel-width): Allow passing BUFFER to use the face remappings from that buffer when calculating the width. * lisp/visual-wrap.el (visual-wrap--prefix): Rename to... (visual-wrap--adjust-prefix): ... this, and support PREFIX as a number. (visual-wrap-fill-context-prefix): Make obsolete in favor of... (visual-wrap--content-prefix): ... this. (visual-wrap-prefix-function): Extract inside of loop into... (visual-wrap--apply-to-line): ... this. * doc/lispref/display.texi (Size of Displayed Text): Update documentation for 'string-pixel-width'. * etc/NEWS: Announce this change.
* | Clarify that 'pcase-lambda' only destructsPhilip Kaludercic2024-08-041-3/+8
| | | | | | | | | | | | | | * lisp/emacs-lisp/pcase.el (pcase-lambda): Copy notice from 'pcase-let', indicating that pcase-lambda won't pattern match like 'pcase', but just try to destruct with uncertain side effects if this fails. (Bug#71503)
* | Install cond*Richard Stallman2024-08-021-0/+707
| | | | | | | | * oond-star.el: New file.
* | Remove misspelled rx category `chinse-two-byte`Mattias Engdegård2024-08-011-2/+0
| | | | | | | | | | | | * lisp/emacs-lisp/rx.el (rx--categories): Remove misspelled variant present in Emacs 21-1-24.3, correct name since 24.4. * etc/NEWS: Announce.
* | Merge from origin/emacs-30Jim Porter2024-07-281-0/+1
|\| | | | | | | 367c0490a82 ; * admin/MAINTAINERS: Note what I maintain
| * ; * admin/MAINTAINERS: Note what I maintainPhilip Kaludercic2024-07-271-0/+1
| |
* | Merge from origin/emacs-30Eli Zaretskii2024-07-272-4/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 88e1ec22f27 Update to Org 9.7.9 1ae2f004473 Fix edge-case with 'which-key-dont-use-unicode' setter 68a5f1f7d18 NS: prevent makeKeyWindow warnings (bug#69525) 59a895ec499 ; * .gitignore: Add lisp/eshell/esh-groups.el. 5c08cd4e7c3 ; * doc/emacs/cmdargs.texi (Initial Options): Fix last ch... 309d0a71864 Add PROBLEMS entry for bug#72303 87389f9ff90 ; Improve documentation of 'line-prefix' and 'wrap-prefix'. 268a2d10fc9 Improve documentation of '--init-directory' command-line ... c27055a938a ; cperl-mode.el: Fix fontification of flip-flop (Bug#72296) fcd4e4c895d ; * admin/MAINTAINERS: Add myself for maintaining some ar... fdc133e97f6 Fix bug in server.el introduced by 0d7d835902df af527051cd3 ; * admin/MAINTAINERS: Remove Nicolas Petton. 7170282a59a lisp/minibuffer.el (completion--sifn-requote): Fix bug#72176 68906f184cb * admin/notes/spelling: Update note. 9eea6be5abf Don't produce invalid XML with multi-line commenting style b97786d9f6e ; * etc/NEWS: Entry for 'gnus-summary-limit-to-age' (bug#... a7996615663 Standardize possessive apostrophe usage in manuals, docs,... 67faaead754 Don't refer to obsolete finder group "wp" # Conflicts: # etc/NEWS
| * ; * admin/MAINTAINERS: Remove Nicolas Petton.Stefan Kangas2024-07-252-4/+2
| | | | | | | | Change agreed with Nicolas Petton <nico@petton.fr>.
* | Use timer accessors instead of aref/asetMattias Engdegård2024-07-251-7/+5
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/timer-list.el (list-timers): * lisp/gnus/mail-source.el (mail-source-start-idle-timer): * lisp/play/gamegrid.el (gamegrid-set-timer): * lisp/progmodes/vhdl-mode.el (vhdl-run-when-idle): * lisp/simple.el (analyze-text-conversion): * lisp/time.el (display-time-event-handler): Use timer accessors.
* | Add some basic checking for function type declarationsAndrea Corallo2024-07-241-1/+16
| | | | | | | | | | | | * lisp/emacs-lisp/byte-run.el (byte-run--anonymize-arg-list): New function. (byte-run--set-function-type): Add some basic checking for the function type being declared.
* | Merge from origin/emacs-30Stefan Monnier2024-07-191-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a478423d19f * lisp/progmodes/peg.el (peg-syntax-classes): Typo (bug#7... 951fb93956d * lisp/transient.el (static-if): Remove duplicated defini... 0218fb21437 Adapt file-remote-p doc 34c1094e607 ; Fix typo in etc/ORG-NEWS (Bug#72186) 5916b172bdc * etc/TODO: Delete item about merging Magit. a6cab228d4d ; Fix typos 41dc28244f2 * doc/man/emacs.1.in: Add "No warranty" notice. b2ac3435867 ; * doc/man/emacs.1.in: Improve wording. 110b3d08d73 Improve emacs man page description of --user flag 4911f08912a Checkdoc fixes in allout-widgets.el 109b592d77b Checkdoc fixes in subr.el 46436720787 Checkdoc fixes in touch-screen.el 9889774c62e Checkdoc fixes in treesit.el # Conflicts: # etc/NEWS
| * ; Fix typosStefan Kangas2024-07-181-1/+1
| |
* | ; fix previous find-function changeRobert Pluim2024-07-181-2/+2
| |
* | Add history variables for find-func entry pointsRobert Pluim2024-07-171-3/+13
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/find-func.el (find-function--read-history-library): New defvar. (read-library-name): Use it in 'completing-read' calls. (find-function--read-history-function, find-function--read-history-variable, find-function--read-history-face): New defvars. (find-function-read): Use them in 'completing-read' calls.
* | Fix 'comp--type-check-optim-block' it using 'comp-cstr-type-p'Andrea Corallo2024-07-111-4/+1
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--type-check-optim-block): Better condition.
* | Generalize 'comp-cstr-symbol-p'Andrea Corallo2024-07-111-9/+4
| | | | | | | | | | * lisp/emacs-lisp/comp-cstr.el (comp-cstr-symbol-p): Make use of 'comp-cstr-type-p'.
* | Add 'comp-type-check-optim' passAndrea Corallo2024-07-111-0/+66
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-passes): Add 'comp--type-check-optim'. (comp--type-check-optim-block, comp--type-check-optim): New functions.
* | Split 'comp--ssa' codeAndrea Corallo2024-07-111-19/+22
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--ssa-function): New function. (comp--ssa): Update.