summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression in derived-mode-init-mode-variablesLars Ingebrigtsen2022-03-041-1/+1
| | | | | * lisp/emacs-lisp/derived.el (derived-mode-init-mode-variables): Fix regression caused by lexical-binding derived.el (bug#54240).
* ; Don't reference obsolete variables in edebug.elRaffael Stocker2022-02-201-4/+4
| | | | | | * lisp/emacs-lisp/edebug.el (edebug-mode, edebug-eval-mode): Don't reference obsolete variables in the doc strings. (Bug#54070)
* Fix integer arithmetic miss-compilation (bug#53451)Andrea Corallo2022-02-091-12/+14
| | | | | | | | * lisp/emacs-lisp/comp-cstr.el (comp-cstr-set-range-for-arithm): When one of the two sources is negated revert to set dst as number. * test/src/comp-tests.el (comp-tests-type-spec-tests): Add test to verify this is effective.
* Fix copyright-find-copyright when searching from the endLars Ingebrigtsen2022-01-261-1/+3
| | | | | | | * lisp/emacs-lisp/copyright.el (copyright-find-copyright): Make the double check also work when searching from the end (bug#7179). Do not merge to master.
* Fix copyright.el comment and add a testLars Ingebrigtsen2022-01-261-1/+1
| | | | | | | * lisp/emacs-lisp/copyright.el (copyright-find-copyright): Fix comment (bug#7179). Do not merge to master.
* Fix memory-report-object-size to initialize memory-report--type-sizeSergey Vinokurov2022-01-211-1/+1
| | | | | | | * lisp/emacs-lisp/memory-report.el (memory-report-object-size): Allow using function directly (bug#53310). Do not merge to master.
* * Fix native comp for non trivial function names (bug#52833)Andrea Corallo2022-01-171-1/+3
| | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-c-func-name): Fix native compilation for functions with function names containing non trivial characters (bug#52833). This commit is the backport of e7699bf290. Do not merge to master
* Fix Edebug specification for inline functions (Bug#53068).Philipp Stephani2022-01-131-1/+1
| | | | | | | * lisp/emacs-lisp/inline.el (inline-quote): Fix Edebug specification. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-inline): New unit test.
* Revert "Fix closure-conversion of shadowed captured lambda-lifted vars"Mattias Engdegård2022-01-121-25/+6
| | | | | | | This reverts commit 3ec8c8b3ae2359ceb8135b672e86526969c16b7e. It was committed to a stable branch without prior discussion; see bug#53071.
* Fix closure-conversion of shadowed captured lambda-lifted varsMattias Engdegård2022-01-121-6/+25
| | | | | | | | | | | | | | | | | Lambda-lifted variables (ones passed explicitly to lambda-lifted functions) that are also captured in an outer closure and shadowed were renamed incorrectly (bug#51982). Reported by Paul Pogonyshev. * lisp/emacs-lisp/cconv.el (cconv--lifted-arg): New. (cconv-convert): Provide correct definiens for the closed-over variable. * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases): * test/lisp/emacs-lisp/cconv-tests.el (cconv-tests--intern-all) (cconv-closure-convert-remap-var): Add tests. (cherry picked from commit 45252ad8f932c98a373ef0ab7f3363a3e27ccbe4)
* Revert "Remove the filename argument from the command line after an ELC+ELN ↵Eli Zaretskii2022-01-101-2/+1
| | | | | | | | | build" This reverts commit ffc047c896413b6e00032518fc934f08768671fa. Please don't install anything non-trivial on the release branch without asking first.
* Remove the filename argument from the command line after an ELC+ELN buildAlan Mackenzie2022-01-101-1/+2
| | | | | This fixes bug #53164. Without this fix, bootstrap-emacs loads the source file uselessly into a buffer after completing the compilation.
* Revert "Fix alignment on font size change in tabulated-list-mode"Eli Zaretskii2022-01-091-2/+1
| | | | | | | This reverts commit 2767c89db729a6106146d0aeff76678c64d4fc53. That change caused a regression in a much more important use case, see bug#53133.
* ; * lisp/emacs-lisp/package.el (package-native-compile): Fix doc wording.Eli Zaretskii2022-01-091-4/+4
|
* Clarify docstring of package-native-compileStefan Kangas2022-01-091-1/+7
| | | | | * lisp/emacs-lisp/package.el (package-native-compile): Clarify docstring.
* * lisp/emacs-lisp/checkdoc.el (bytecomp): Add missing requirePhilipp Stephani2022-01-051-0/+1
|
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-0193-93/+93
|
* * lisp/emacs-lisp/edebug.el (edebug-eval-defun): Minor doc fix.Stefan Kangas2021-12-041-1/+1
|
* Fix problem with temp buffer killing in package-install-fileLars Ingebrigtsen2021-11-121-0/+1
| | | | | * lisp/emacs-lisp/package.el (package-install-file): Allow killing the temporary buffer without querying (bug#51769).
* Improve documentation of string truncation APIsEli Zaretskii2021-10-301-6/+6
| | | | | | | | | | | * doc/lispref/display.texi (Size of Displayed Text): * lisp/international/mule-util.el (truncate-string-to-width): Document caveats of using 'truncate-string-to-width' when character composition is involved. * lisp/emacs-lisp/subr-x.el (string-limit): * doc/lispref/strings.texi (Creating Strings): Improve the documentation of 'string-limit'.
* Move lisp/shorthands.el to lisp/emacs-lisp/shorthands.elLars Ingebrigtsen2021-10-291-0/+80
|
* Fix 'calculate-lisp-indent' when "[" starts containing sexp (Bug#51312)Martin Rudalics2021-10-221-4/+5
| | | | | | * lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent): Handle arbitrary paren syntax after skipping whitespace backwards within containing sexp (Bug#51312).
* * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix target dir.Andrea Corallo2021-10-161-1/+2
|
* * Fix `native-compile-target-directory' effectiveness on trampolinesAndrea Corallo2021-10-151-1/+3
| | | | | | * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix `native-compile-target-directory' effectiveness on trampoline compilation.
* ; * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix comment.Andrea Corallo2021-10-151-2/+2
|
* Improve shortdoc for vectorStefan Kangas2021-10-131-5/+10
| | | | | | * lisp/emacs-lisp/shortdoc.el (vector): Improve shortdoc with titles. Add mapc. Fix typo where 'seq-reduce' is incorrectly written as 'reduce'.
* Fix ert errors when there's a test that binds `debug-on-error'Lars Ingebrigtsen2021-10-111-0/+4
| | | | | * lisp/emacs-lisp/ert.el (ert--run-test-internal): Don't infloop on errors when signalling errors (bug#51131).
* New function num-processorsPaul Eggert2021-10-101-14/+1
| | | | | | | | | | | | | | | | | | | This addresses a FIXME comment in lisp/emacs-lisp/comp.el, relating to the number of subsidiary processes used by comp-run-async-workers in native compilation. * admin/merge-gnulib (GNULIB_MODULES): Add nproc. * doc/lispref/processes.texi (Process Information), etc/NEWS: Document num-processors. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib/nproc.c, lib/nproc.h, m4/nproc.m4: New files, copied from Gnulib by admin/merge-gnulib. * lisp/emacs-lisp/comp.el (w32-get-nproc): Remove decl. (comp-effective-async-max-jobs): Use num-processors. * src/process.c: Include nproc.h. (Fnum_processors): New function. (syms_of_process): Define ‘all’, ‘current’, ‘num-processors’. * src/w32proc.c (Fw32_get_nproc): Add FIXME comment. * test/src/process-tests.el (process-num-processors): New test.
* ; * lisp/emacs-lisp/shortdoc.el: Fix typo.Stefan Kangas2021-10-101-2/+2
|
* native-comp-available-p is the definitive testStephen Gildea2021-10-051-2/+1
| | | | | | | | | | * doc/lispref/compile.texi (Native Compilation): Document native-comp-available-p as the way to test for native compilation. * lisp/emacs-lisp/package.el (package--native-compile-async): * test/lisp/mh-e/mh-utils-tests.el (mh-ensure-native-trampolines): Test for native compilation with native-comp-available-p. Thank you to Andrea Corallo for reviewing this patch.
* Disable 'nobreak-char-display' in Eldoc buffersAugusto Stoffel2021-10-051-0/+1
| | | | | * lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Set 'nobreak-char-display' to nil in Eldoc buffers (bug#50989).
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-10-0511-25/+32
|
* * Fix `batch-native-compile' not to spawn a subprocessAndrea Corallo2021-10-041-4/+8
| | | | | | * lisp/emacs-lisp/comp.el (comp-running-batch-compilation): New var. (comp-final): Use it. (batch-native-compile): Bind `comp-running-batch-compilation' it.
* Fix substitution of pretty quotes in code in easy-mmodeLars Ingebrigtsen2021-10-031-2/+4
| | | | | | * lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Adjust. (easy-mmode--mode-docstring): Avoid making quotes into pretty quotes in code (bug#50968).
* Clarify the purpose of internal--format-docstring-lineStefan Kangas2021-10-031-0/+8
| | | | | | | | | * test/lisp/subr-tests.el (subr-test-internal--format-docstring-line): * lisp/subr.el (internal--format-docstring-line): Make it more clear that this function is not intended for the first line of a docstring. * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Add comment explaining why we use 'internal--format-docstring-line'. Problem pointed out by Stefan Monnier <monnier@iro.umontreal.ca>.
* Make checkdoc's docstring substitution consistent with other docsNikolay Kudryavtsev2021-09-301-3/+3
| | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): In error text, say "mapvar" instead of "keymap", and "command" instead of "function", to be consistent with the ELisp manual. (Bug#50903)
* Revert "Indent bodies of local function definitions properly in elisp-mode"Mattias Engdegård2021-09-301-35/+10
| | | | This reverts commit 38037e04cb05cb1f2b604f0b1602d36b0bcf6985.
* Revert "Fix regressions in cl-flet indentation"Mattias Engdegård2021-09-301-43/+10
| | | | This reverts commit c42af5aee74f310bdcd63aac96b1c02ec07a1c50.
* Fix regressions in cl-flet indentationakater2021-09-301-10/+43
| | | | | | | * lisp/emacs-lisp/lisp-mode.el (lisp--local-defform-body-p): Rename (from -p-less form) and fix indentation regression introduced by 38037e04cb05cb1f2b604f0b1602d36b0bcf6985 (bug#9622). Also add cl-macrolet cl-flet* cl-symbol-macrolet.
* Revert "Obsolete local set difference functions in favor of seq-difference"Lars Ingebrigtsen2021-09-291-1/+0
| | | | | | | | This reverts commit 20f7fa691b7c2859b96550d9ccb326bf394e160d. gnus-set-difference is orders of magnitude faster than seq-difference (on these sets), and using seq-difference makes nnimap too slow.
* Tweak the whitespace before "This is a generic function"Lars Ingebrigtsen2021-09-291-1/+4
| | | | | | * lisp/emacs-lisp/cl-generic.el (cl--generic-describe): Make the number of blank lines before this section consistent (whether there's an indented section before it or not).
* Add shortdoc for text propertiesStefan Kangas2021-09-281-0/+43
| | | | | | * lisp/emacs-lisp/shortdoc.el (text-properties): New shortdoc. e for your changes. Lines starting
* Mention describe-symbol in cl-defstruct docstringStefan Kangas2021-09-281-1/+1
| | | | | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Mention 'describe-symbol' in docstring.
* Mention cl-describe-type in cl-defstruct docstringStefan Kangas2021-09-281-0/+3
| | | | | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Mention 'cl-describe-type' in docstring.
* * lisp/emacs-lisp/map.el: Restore compatibility with Emacs-26Stefan Monnier2021-09-281-5/+5
| | | | Don't use the new `eql` syntax.
* Improve docstrings of ert-resource-{directory,file}Stefan Kangas2021-09-281-7/+8
| | | | | * lisp/emacs-lisp/ert-x.el (ert-resource-directory) (ert-resource-file): Improve docstrings.
* Signal error on newline in internal--format-docstring-lineStefan Kangas2021-09-281-3/+5
| | | | | | | | | | * lisp/subr.el (internal--format-docstring-line): Signal error when trying to fill a line containing a newline. * lisp/cedet/semantic/decorate/mode.el (define-semantic-decoration-style): * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Don't pass newlines to 'internal--format-docstring-line'.
* ; * lisp/emacs-lisp/comp.el (batch-native-compile): Don't use non-ASCII.Eli Zaretskii2021-09-281-1/+1
|
* Make the build of source tarball produce *.eln filesEli Zaretskii2021-09-281-9/+16
| | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (batch-native-compile): Accept an optional argument; if non-nil, place the .eln file as appropriate for building a source tarball. * doc/lispref/compile.texi (Native-Compilation Functions): Document the new optional argument of 'batch-native-compile'. * lisp/Makefile.in (.PHONY, $(THEFILE)n) [HAVE_NATIVE_COMP]: New targets. * src/Makefile.in (%.eln) [HAVE_NATIVE_COMP]: New recipe. (all) [HAVE_NATIVE_COMP]: Add ../native-lisp to prerequisites. (elnlisp) [HAVE_NATIVE_COMP]: New list of *.eln files. (../native-lisp) [HAVE_NATIVE_COMP]: New recipe. * src/verbose.mk.in (AM_V_ELN): New macro.
* ; * lisp/emacs-lisp/comp.el (batch-native-compile): Doc fix.Eli Zaretskii2021-09-281-4/+5
|