summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | * lisp/emacs-lisp/bytecomp.el (byte-compile-out-toplevel): Fix bug#34757Stefan Monnier2019-07-271-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix was provided by Pip Cet <pipcet@gmail.com>. It tightens the code that tries to recognize a bytecode sequence as being a simple function call (to then decompile it), which occasionally misfired. I added some minor changes found while investigating this issue. (byte-compile): Handle corner case where byte-compile-top-level returns a non-self-evaluating expression. (byte-compile-out-toplevel): Remove support for `progn` and `t` values of output-type which aren't used anywhere.
| * | Doc fix for package-menu-filterLars Ingebrigtsen2019-07-271-0/+6
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-filter): Document the use of arc:ARCHIVE and status:STATUS (bug#24883).
| * | edebug.el comment fixLars Ingebrigtsen2019-07-271-1/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/edebug.el: Fix comment referring to non-existent variable (bug#25188).
| * | Rename coverage symbols in edebug to avoid collisionsLars Ingebrigtsen2019-07-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/edebug.el (edebug-clear-coverage): Use edebug-unknown and edebug-ok-coverage instead of unknown and ok-coverage to avoid naming collisions with packages that use those two symbols (bug#25471). (edebug--update-coverage, edebug-display-freq-count): Ditto.
| * | define-derived-mode doc string clarificationLars Ingebrigtsen2019-07-271-3/+5
| | | | | | | | | | | | | | | * lisp/emacs-lisp/derived.el (define-derived-mode): Doc string clarification about the keywords (bug#26301).
| * | Fix ‘make check’ failurePaul Eggert2019-07-261-3/+4
| | | | | | | | | | | | | | | | | | Problem introduced in 2019-07-26T07:08:40!larsi@gnus.org. * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): Don’t count "0 unexpected" as unexpected.
| * | Minor rewording of a couple of sentences in define-derived-mode docLars Ingebrigtsen2019-07-261-3/+4
| | | | | | | | | | | | | | | * lisp/emacs-lisp/derived.el (define-derived-mode): Reword documentation to be less whimsical (bug#26301).
| * | Add an autoload cookie to package-upload-fileLars Ingebrigtsen2019-07-261-0/+1
| | | | | | | | | | | | | | | * lisp/emacs-lisp/package-x.el (package-upload-file): Add an autoload cookie (bug#26724).
| * | Always include the number of unexpected results here tooLars Ingebrigtsen2019-07-261-4/+2
| | | | | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-run-tests-batch): Always include the number of unexpected results here as well.
| * | Don't run gpg when loading package.elLars Ingebrigtsen2019-07-261-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-check-signature): Don't run gpg on startup, but just default to `allow-unsigned'. (package-check-signature): New function to check whether a OpenPGP configuration is found when `allow-unsigned'. (package--check-signature-content, package--check-signature) (package--download-one-archive, package-refresh-contents) (package-install-from-archive): Use function instead of variable throughout. * doc/emacs/package.texi (Package Installation): Document this.
| * | Make cl-destructuring-bind errors a bit more understandableLars Ingebrigtsen2019-07-251-2/+5
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-destructuring-bind): Make errors when giving the wrong number of arguments to the bindings form more informational (bug#29345).
* | | Improve doc strings for some -search-path variablesStephen Leake2019-07-301-3/+4
|/ / | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-search-path): Improve doc string. * lisp/progmodes/compile.el (compilation-search-path): Improve doc string. * lisp/progmodes/grep.el (grep-search-path): Improve doc string.
* | Fix inline-quote Edebug specGemini Lasswell2019-07-211-1/+1
| | | | | | | | | | * lisp/emacs-lisp/inline.el (inline-quote): Fix the edebug spec (bug#31051).
* | Merge from emacs-26Noam Postavsky2019-07-201-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | 150bdfe43a Handle completely undecoded input in term (Bug#29918) 021f32cca1 * doc/misc/forms.texi (Control File Format): Fix a doc error. 76538d09b7 Fix typo in package-alist docstring b2fde4b5e8 * doc/lispref/text.texi (Mode-Specific Indent): Fix a typo... 7e62778548 ; Another minor change in 'bidi-display-reordering's doc s... 4455ddbe56 Improve doc string of 'bidi-display-reordering' 34ee26dd93 Add warning to bidi-display-reordering doc string # Conflicts: # lisp/term.el # test/lisp/term-tests.el
| * Fix typo in package-alist docstringBasil L. Contovounesios2019-07-171-2/+2
| | | | | | | | | | | | Pointed out by Michael Heerdegen <michael_heerdegen@web.de>. * lisp/emacs-lisp/package.el (package-alist): Fix docstring grammar (bug#17403).
| * Disable byte-compile-cond-use-jump-table (Bug#35770)Noam Postavsky2019-06-011-2/+2
| | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table): Set to nil by default. Don't merge to master, the bug is already fixed there.
* | Set revert-buffer-function in ert-results-modeMattias Engdegård2019-07-161-1/+3
| | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-results-mode): Set revert-buffer-function to re-run the same test selection. It is a good fit and permits use of the standard "g" key binding.
* | Revert "Add edebug specs for inline.el"Lars Ingebrigtsen2019-07-151-2/+0
| | | | | | | | | | | | This reverts commit ed29d9fe5286ab6ecfb2bfa5a015b9945a84512b. The edebug specs were already in the declare form, and in addition, it didn't fix the problem.
* | Tweak gv-define-setter debug settingLars Ingebrigtsen2019-07-151-1/+1
| | | | | | | | | | * lisp/emacs-lisp/gv.el (gv-define-setter): Change edebug spec from body to def-body (bug#28729).
* | package-archive-priorities doc additionLars Ingebrigtsen2019-07-151-1/+3
| | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-archive-priorities): Document that negative priorities will lead to packages not being updated (bug#28897).
* | Make elint understand condition-case-unless-debugLars Ingebrigtsen2019-07-141-0/+1
| | | | | | | | | | * lisp/emacs-lisp/elint.el (elint-special-forms): Teach elint about `condition-case-unless-debug' (bug#29585).
* | Remove incorrect commentary about #$ in autoloadsNoam Postavsky2019-07-131-5/+0
| | | | | | | | | | | | * lisp/emacs-lisp/autoload.el (autoload-rubric): `package-quickstart-refresh' does in fact support load-file-name as well.
* | Add edebug specs for inline.elLars Ingebrigtsen2019-07-131-0/+2
| | | | | | | | | | * lisp/emacs-lisp/inline.el (inline-quote) (inline-letevals): Add edebug specs (bug#31051).
* | Tweak output of doc in advice--make-docstringLars Ingebrigtsen2019-07-131-4/+6
| | | | | | | | | | | | * lisp/emacs-lisp/nadvice.el (advice--make-docstring): Make the bit about the function/macro having an advice into a complete sentence (bug#31063) and make it less dramatic.
* | Make check-declare understand cl-defunLars Ingebrigtsen2019-07-131-1/+1
| | | | | | | | | | * lisp/emacs-lisp/check-declare.el (check-declare-verify): Add cl-defun to the defun-ish regexp (bug#31396).
* | Fix cl-defstruct doc string fixLars Ingebrigtsen2019-07-131-2/+0
| | | | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Remove sentence from doc string that was left in by mistake when fixing the arglist documentation.
* | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a docstring typoPhil Sainty2019-07-131-1/+1
| |
* | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Adapt docstring.Michael Albinus2019-07-131-3/+5
| |
* | Document fix for cl-defstructLars Ingebrigtsen2019-07-131-1/+3
| | | | | | | | | | * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Document that we can have a doc string (bug#32340).
* | Always include the number of unexpected ert testsLars Ingebrigtsen2019-07-131-8/+2
| | | | | | | | | | | | * lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): Always include the number of failed tests, because absence of the text is not reassuring (bug#36616).
* | Revert "Turn off bytecode jumptables to avoid Bug#36447"Stefan Monnier2019-07-091-2/+1
| | | | | | | | | | This reverts commit 122198d2f1aaf0b74c102874cc9b04ae4789f54f. Should not be needed any more thanks to Pip Cet's patch to hash_table_rehash.
* | Checkdoc would bug out on empty filesLars Ingebrigtsen2019-07-091-2/+8
| | | | | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring): Don't bug out on malformed Emacs Lisp (bug#34760). (checkdoc-file-comments-engine): Don't bug out on empty buffers.
* | Fix for lisp tagbody indentationRyan Brown2019-07-091-1/+1
| | | | | | | | | | * lisp/emacs-lisp/cl-indent.el (lisp-indent-259): Indent PROG better (bug#36552).
* | Tweak messaging in re-builderLars Ingebrigtsen2019-07-091-1/+1
| | | | | | | | | | * lisp/emacs-lisp/re-builder.el (reb-copy): Say what we copied to the kill ring.
* | Turn off bytecode jumptables to avoid Bug#36447Noam Postavsky2019-07-081-1/+2
| | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-use-jump-table): Set to nil. We can turn this back on again when Bug#36447 is solved and we handle dumped hash tables correctly.
* | Shorter `rx' doc string (bug#36496)Mattias Engdegård2019-07-071-321/+96
| | | | | | | | | | * lisp/emacs-lisp/rx.el (rx): Replace long description with a condensed summary of the rx syntax, with reference to the manual section.
* | * lisp/emacs-lisp/nadvice.el: Make it a package separate from `emacs`.Stefan Monnier2019-07-061-1/+0
| | | | | | | | | | * lisp/finder.el (finder-compile-keywords): Grab version from package--builtin-versions when available.
* | Add commentary about #$ in autoload filesNoam Postavsky2019-07-061-2/+6
| | | | | | | | | | * lisp/emacs-lisp/autoload.el (autoload-rubric): Add commentary about `#$' trick.
* | Optimise more inputs to `regexp-opt' (bug#36444)Mattias Engdegård2019-07-041-24/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a more precise test to determine whether the input to `regexp-opt' is safe to optimise when KEEP-ORDER is non-nil, permitting more inputs to be optimised than before. For example, ("good" "goal" "go") is now accepted. * lisp/emacs-lisp/regexp-opt.el (regexp-opt): More precise test for whether the list is safe w.r.t. KEEP-ORDER. (regexp-opt--contains-prefix): Remove. * test/lisp/emacs-lisp/regexp-opt-tests.el: Use lexical-binding. (regexp-opt-test--permutation, regexp-opt-test--factorial) (regexp-opt-test--permutations, regexp-opt-test--match-all) (regexp-opt-test--check-perm, regexp-opt-test--explain-perm) (regexp-opt-keep-order): Test KEEP-ORDER.
* | Better error message for C-h P RETMattias Engdegård2019-07-021-1/+1
| | | | | | | | | | | | | | | | | | Previously: package--incompatible-p: Wrong type argument: package-desc, nil Now: No package specified * lisp/emacs-lisp/package.el (describe-package): Don't use ## as input.
* | Allow empty argument to `regexp-opt-charset'Mattias Engdegård2019-06-291-8/+12
| | | | | | | | | | | | * test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-charset): Handle nil argument, and use regexp-quote for singletons. * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Expand tests.
* | Strength-reduce `equal', `eql', `member' and `memql'Mattias Engdegård2019-06-281-1/+34
| | | | | | | | | | | | | | | | | | When comparing against symbols, turn `equal' and `eql' into `eq', and `member' and `memql' into `memq'. * lisp/emacs-lisp/byte-opt.el (byte-optimize--constant-symbol-p) (byte-optimize-equal, byte-optimize-member): New. (member, memql, equal, eql): Use new byte-optimizers.
* | Add more fontification to regexp builder modeLennart Borgman2019-06-271-4/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/re-builder.el (reb-copy): Work in the presence of newlines in the regexps. (reb-change-syntax): Use a dedicated history variable. (reb-fontify-string-re): Fontify sub-matches. (reb-regexp-grouping-backslash, reb-regexp-grouping-construct): New faces. (reb-string-font-lock-keywords): New variable. (reb-mark-non-matching-parenthesis): Match parenthesis. (reb-restart-font-lock): New function. * lisp/emacs-lisp/re-builder.el (reb-mode-map): Add divider some dividers (bug#6347).
* | Revert "* lisp/calc/calc-ext.el (math-scalarp): Fix typo"Stefan Monnier2019-06-267-44/+102
| | | | | | | | This reverts commit 698ff554ac2699ec48fefc85a1307cbc4a183b0d.
* | * lisp/calc/calc-ext.el (math-scalarp): Fix typoStefan Monnier2019-06-267-102/+44
| |
* | Fix (rx-to-string (and (literal STR) (regexp STR)) regressionNoam Postavsky2019-06-261-2/+2
| | | | | | | | | | | | * lisp/emacs-lisp/rx.el (rx-regexp, rx-literal): Check the cadr of the form for stringness, not the form itself. * test/lisp/emacs-lisp/rx-tests.el (rx-to-string-lisp-forms): New test.
* | Merge consecutive constant `concat' args (bug#14769)Mattias Engdegård2019-06-261-0/+29
| | | | | | | | | | | | | | Suggested by Shigeru Fukaya <shigeru.fukaya@gmail.com> * lisp/emacs-lisp/byte-opt.el (byte-optimize-concat): New. (concat): Add byte-optimizer.
* | Support (rx (and (regexp EXPR) (literal EXPR))) (Bug#36237)Noam Postavsky2019-06-251-88/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/rx.el (rx-regexp): Allow non-string forms. (rx-constituents): Add literal constituent, which is like a plain STRING form, but allows arbitrary lisp expressions. (rx-literal): New function. (rx-compile-to-lisp): New variable. (rx--subforms): New helper function for handling subforms, including non-constant case. (rx-group-if, rx-and, rx-or, rx-=, rx->=, rx-repeat, rx-submatch) (rx-submatch-n, rx-kleene, rx-atomic-p): Use it to handle non-constant subforms. (rx): Document new form, wrap non-constant forms with concat call. * test/lisp/emacs-lisp/rx-tests.el (rx-tests--match): New macro. (rx-nonstring-expr, rx-nonstring-expr-non-greedy): New tests. * etc/NEWS: Announce changes.
* | * lisp/emacs-lisp/cl-extra.el (cl-isqrt): Speed up bignum caseStefan Monnier2019-06-251-3/+2
| |
* | Move widen/narrow in tabulated lists to } and {Lars Ingebrigtsen2019-06-251-2/+2
| | | | | | | | | | | | | | * doc/emacs/buffers.texi (Several Buffers): Document it. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Move widen/narrow to `}' and `{'.