summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Add `advice-flet' macroAndrea Corallo2020-10-021-0/+26
| | | | | | | | The testsuite does large use of primitive redefinition, to avoid that we define `advice-flet' to use instead as an easy `cl-letf' replacement. * lisp/emacs-lisp/nadvice.el (advice-flet): New macro.
* * When advising search in `comp-eln-load-path' the first writable dirAndrea Corallo2020-10-021-11/+19
| | | | | | * lisp/emacs-lisp/comp.el (comp-tampoline-compile): Do not crash if we can't write in the first entry in `comp-eln-load-path' but search for another one.
* * lisp/emacs-lisp/comp.el (comp-c-func-name): Add autoload cookie.Andrea Corallo2020-10-011-0/+2
|
* Merge remote-tracking branch 'savannah/master' into clean-upAndrea Corallo2020-09-304-13/+22
|\
| * * lisp/emacs-lisp/cl-macs.el (hash-table): Define the type's typep testStefan Monnier2020-09-291-0/+1
| |
| * define-generic-mode doc string fixLars Ingebrigtsen2020-09-301-0/+4
| | | | | | | | | | * lisp/emacs-lisp/generic.el (define-generic-mode): Say what a generic mode is (bug#43713).
| * Give better error feedback on wrong password in .gpg filesLars Ingebrigtsen2020-09-301-0/+1
| | | | | | | | | | | | | | | | | | | | * lisp/epa-file.el (epa-file--find-file-not-found-function): Do a user-error when there's a wrong password (bug#43704). (epa--wrong-password-p): New function. (epa-file-insert-file-contents): Use it, and stash the error away for later signalling. * lisp/emacs-lisp/subr-x.el (if-let): Autoload.
| * Handle single-argument `apply' consistently (bug#40968)Pip Cet2020-09-271-13/+16
| | | | | | | | | | | | | | | | | | * src/eval.c (Fapply): Handle (apply nil) without crashing. Document single-argument form. * lisp/emacs-lisp/byte-opt.el (byte-optimize-apply): Don't attempt to optimize single-argument apply. * doc/lispref/functions.texi (Calling Functions): Document single-argument apply. Provide example (bug#40968).
* | * Some clean-up in comp.elAndrea Corallo2020-09-291-32/+41
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-emit-cond-jump, comp-emit-switch) (comp-limplify-block, comp-compute-edges) (comp-ssa-rename, comp-fwprop*, comp-effective-async-max-jobs) (comp-run-async-workers): Respect max 80 columns. (batch-byte-native-compile-for-bootstrap): Improve doc + remove some now unnecessary error handling.
* | Rename in docstrings "non nil" into "non-nil"Andrea Corallo2020-09-281-9/+9
| | | | | | | | | | | | * lisp/emacs-lisp/comp.el: Rename non nil -> non-nil in doc. * src/comp.c: Likewise.
* | Clean-up some now unnecessary diff against masterAndrea Corallo2020-09-293-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/autoload.el (update-directory-autoloads): .eln files have been moved so remove the '.eln' match. * lisp/emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Likewise. * lisp/emacs-lisp/find-func.el (find-library-suffixes): Clean-up as '.eln' is no more in `load-suffixes'. * lisp/help-fns.el (find-lisp-object-file-name): Clean-up as `symbol-file' will return the '.elc' file. * src/lread.c (Fget_load_suffixes): Remove logic as '.eln' is not anymore in load-suffixes. (openp): Two spaces.
* | * lisp/emacs-lisp/cl-macs.el (cl--optimize): Add a FIXME.Andrea Corallo2020-09-261-0/+2
| |
* | Merge remote-tracking branch 'savannah/master' into HEADAndrea Corallo2020-09-263-52/+133
|\|
| * string-search robustness and documentation improvement (bug#43598)Mattias Engdegård2020-09-251-0/+1
| | | | | | | | | | | | | | | | * src/fns.c (Fstring_search): Check START-POS argument range. Simplify logic. Improve doc string. * test/src/fns-tests.el (string-search): Add test cases. * doc/lispref/strings.texi (Text Comparison): Elaborate. * lisp/emacs-lisp/byte-opt.el (pure-fns): Mark string-search as pure.
| * Mark string-search as being side effect freeLars Ingebrigtsen2020-09-251-1/+2
| | | | | | | | | | * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add string-search.
| * ; * lisp/emacs-lisp/lisp.el: rename parameter in last changeMattias Engdegård2020-09-231-28/+28
| |
| * Don't signal scan-error when moving by sexp interactivelyMattias Engdegård2020-09-231-45/+95
| | | | | | | | | | | | | | * lisp/emacs-lisp/lisp.el (forward-sexp, backward-sexp, forward-list) (backward-list, down-list, up-list, mark-sexp, kill-sexp) (backward-kill-sexp): Remove unsightly scan-error when running interactively and no further movement by sexp can be made (bug#43489).
| * Make delete-pair only delete pairs that are part of insert-pair-alistmartin rudalics2020-09-221-6/+31
| | | | | | | | | | * lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that are part of `insert-pair-alist' (bug#4136).
| * Fix off-by-one error in eldoc--handle-docsLars Ingebrigtsen2020-09-221-0/+4
| | | | | | | | | | * lisp/emacs-lisp/eldoc.el (eldoc--handle-docs): We have one extra line to use if we don't show the truncation message (bug#43543).
* | Rename comp--subr-safe-advice -> comp-subr-safe-adviceAndrea Corallo2020-09-243-3/+3
| | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-subr-safe-advice): Rename comp--subr-safe-advice -> comp-subr-safe-advice. * lisp/emacs-lisp/nadvice.el (advice--add-function): Likewise. * lisp/emacs-lisp/advice.el (ad-add-advice): Likewise.
* | * lisp/emacs-lisp/comp.el (comp-body-eff): Improve style.Andrea Corallo2020-09-241-6/+2
| |
* | Do not install a subr trampoline twiceAndrea Corallo2020-09-241-1/+2
| | | | | | | | | | | | | | | | | | * src/comp.c (syms_of_comp): Define and initialize 'Vcomp_installed_trampolines_h'. (Fcomp__install_trampoline): Fill 'Vcomp_installed_trampolines_h' * lisp/emacs-lisp/comp.el (comp--subr-safe-advice): Make use of `comp-installed-trampolines-h' to guard against installing a trampoline twice.
* | * lisp/emacs-lisp/comp.el (comp-never-optimize-functions): Clean-up.Andrea Corallo2020-09-241-11/+5
| |
* | Call `comp--subr-safe-advice' from the advice machineryAndrea Corallo2020-09-242-0/+18
| | | | | | | | | | | | | | * lisp/emacs-lisp/nadvice.el (advice--add-function): Call `comp--subr-safe-advice' when necessary. * lisp/emacs-lisp/advice.el (ad-add-advice): Likewhise.
* | * Add `comp--subr-safe-advice' entry pointAndrea Corallo2020-09-241-0/+75
| | | | | | | | | | | | | | | | | | | | Add a Lisp side entry-point to be called to make primitive adivicing effective. * lisp/emacs-lisp/comp.el (comp-trampoline-sym) (comp-trampoline-filename): New substs. (comp-make-lambda-list-from-subr, comp-search-trampoline) (comp-tampoline-compile): New functions
* | * lisp/emacs-lisp/comp.el (comp-final): Log when interactively invoked.Andrea Corallo2020-09-231-6/+8
| |
* | * lisp/emacs-lisp/comp.el (native-compile): Add OUTPUT parameter.Andrea Corallo2020-09-231-8/+13
| |
* | * Make use of use of `subr-primitive-p' in `find-function-library'Andrea Corallo2020-09-211-1/+1
| | | | | | | | | | * lisp/emacs-lisp/find-func.el (find-function-library): Use `subr-primitive-p'.
* | * Sandbox syncronous libgccjit invocation on interactive sessionsAndrea Corallo2020-09-211-2/+40
| | | | | | | | | | | | | | | | Avoid unnecessary memory fragmentation/leakeage * lisp/emacs-lisp/comp.el (comp-final1): New function. (comp-final): Invoke `comp-final1' in a child process if in an interactive session or directly otherwhise.
* | Merge remote-tracking branch 'savannah/master' into HEADAndrea Corallo2020-09-2110-45/+73
|\|
| * ; Fix typosStefan Kangas2020-09-214-6/+6
| |
| * Allow disabling the verbose eldoc truncation messageLars Ingebrigtsen2020-09-211-2/+11
| | | | | | | | | | | | | | | | * doc/emacs/programs.texi (Lisp Doc): Document it. * lisp/emacs-lisp/eldoc.el (eldoc-display-truncation-message): New variable (bug#43543). (eldoc--handle-docs): Use it.
| * ; * lisp/emacs-lisp/syntax.el (syntax-propertize-function): Doc fix.Glenn Morris2020-09-201-1/+1
| |
| * Merge from origin/emacs-27Glenn Morris2020-09-201-1/+6
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | df04f3e755 Fix a rare segfault in syntax.c fd1fe1e1ec Add doc to syntax-propertize-function saying it must do a ... fcd599bbea Minor copyedits of doc of 'with-silent-modifications' 759399cdb1 Improve documentation of 'max-mini-window-height' 3223302aa2 Use modern constant names for the NS pasteboard 985703d380 Fix doc string of 'toggle-menu-bar-mode-from-frame' 184a4977c7 Make vc-bzr tests work with brz 3.1 (bug#43314) # Conflicts: # lisp/emacs-lisp/syntax.el # src/syntax.c
| | * Add doc to syntax-propertize-function saying it must do a 100% jobAlan Mackenzie2020-09-191-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and cannot be combined with other ways of applying syntax-table text properties. * lisp/emacs-lisp/syntax.el (syntax-propertize-function): Amend doc string. * doc/lispref/syntax.texi (Syntax Properties): Amend the description of the variable.
| * | Document and extend menu-bar-make-toggle someDrew Adams2020-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2020-09-19 Lars Ingebrigtsen <larsi@gnus.org> * lisp/menu-bar.el (menu-bar-showhide-fringe-menu): Adjust caller. (menu-bar-search-options-menu): Ditto. (menu-bar-options-menu): Ditto. (menu-bar-options-menu): Ditto. * lisp/progmodes/gdb-mi.el (menu): Ditto. * lisp/emacs-lisp/find-func.el (find-function-regexp): Add menu-bar-make-toggle-command. * lisp/menu-bar.el (menu-bar-make-toggle): Compatibility wrapper. 2020-09-19 Drew Adams <drew.adams@oracle.com> * lisp/menu-bar.el (menu-bar-make-toggle-command): Add doc string and allow setting all keywords (bug#17954).
| * | Allow customizing hooks defined via define-minor-modeLars Ingebrigtsen2020-09-191-0/+3
| | | | | | | | | | | | | | | * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Allow using Customize on the hooks (bug#10773).
| * | Save and restore point in ewoc-invalidateAndrii Kolomoiets2020-09-181-20/+28
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ewoc.el (ewoc--refresh-node): Save and restore point line and column offset. (eowc-map) (ewoc--invalidate) (ewoc-set-hf): Don't use save-excursion * lisp/vc/vc-dir.el (vc-dir-update): Don't save/restore point on calling 'ewoc-invalidate'.
| * | Revert "Make delete-pair only delete pairs that are part of insert-pair-alist"Lars Ingebrigtsen2020-09-181-31/+6
| | | | | | | | | | | | | | | | | | This reverts commit 82de8ecc080d91dd05f2432d2d07feb2955aeec4. This patch breaks doing `M-x delete-pair' on "foo" in text-mode.
| * | Fix up previous autoload-find-generated-file changeLars Ingebrigtsen2020-09-171-1/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Use the correct name for find-file-hook.
| * | Make package install not bug out on weird stuff in find-file-hooksLars Ingebrigtsen2020-09-171-0/+1
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/autoload.el (autoload-find-generated-file): Users may have read-only-mode in find-file-hooks (bug#43460) so just disable all the hooks here.
| * | Make delete-pair only delete pairs that are part of insert-pair-alistmartin rudalics2020-09-171-6/+31
| | | | | | | | | | | | | | | * lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that are part of `insert-pair-alist' (bug#4136).
| * | * test/lisp/emacs-lisp/find-func-tests.el: New file (for bug#43393)Stefan Monnier2020-09-141-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/ert-x.el (ert-simulate-keys): New macro. * test/lisp/international/mule-tests.el (mule-cmds--test-universal-coding-system-argument): Use it and enable the test also in batch mode.
| * | Revert "Fix completion in `read-library-name'"Lars Ingebrigtsen2020-09-141-14/+4
| | | | | | | | | | | | | | | | | | | | | This reverts commit ed44217d3245ddc8f2cf75c9499d5bb37848cfd7. This commit broke the use case of `M-x load-library RET o/or TAB' to expand to org/org.
* | | * Fix free function compilation load process.Andrea Corallo2020-09-141-11/+12
| | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Do not crash if the eln filename is not canonical (tmp file or manual load).
* | | * Add gv-setters for compiler hintsAndrea Corallo2020-09-141-0/+2
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-hint-fixnum, comp-hint-cons): Add gv-setters so type hinted expressions can be used as places. Read we can now have like: '(cl-incf (cl-the fixnum x))'.
* | | * lisp/emacs-lisp/comp.el (comp-sp): Better style gv-setter declaration.Andrea Corallo2020-09-141-2/+2
| | |
* | | * Remove type check emission from type hints low level primitivesAndrea Corallo2020-09-141-7/+5
| | | | | | | | | | | | | | | | | | | | | These have to be emitted by higher level primitves as `cl-the'. * lisp/emacs-lisp/comp.el (comp-hint-fixnum, comp-hint-cons): Do not emit type checks.
* | | * lisp/emacs-lisp/cl-macs.el: Define fixnum and bignum.Andrea Corallo2020-09-141-0/+4
| | | | | | | | | | | | | | | Define fixnum so `cl-typep' recognize it and the type check emitted by `cl-the' is effective.
* | | * Add 'cl-optimize' as function declarationAndrea Corallo2020-09-141-0/+20
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el: Register cl-optimize into `defun-declarations-alist' and `macro-declarations-alist'. (cl--optimize): New function to serve 'cl-optimize' declaration.