summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* 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 `{'.
* | Preserve header lines from derived modes in tabulated listsVaidheeswaran C2019-06-251-2/+7
| | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header): Preserve header line set by derived modes (bug#21025).
* | Add imenu support to package-menu-modeDamien Cassou2019-06-251-1/+23
| | | | | | | | | | | | | | * lisp/emacs-list/package.el (package--imenu-prev-index-position-function package--imenu-extract-index-name-function): Add Imenu functions to package-menu-mode (bug#27134).
* | Fix up key bindings in previous tabulated-list patchLars Ingebrigtsen2019-06-241-2/+2
| | | | | | | | | | * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Actually use `w'/`c' as described in previous patch.
* | Add new commands to widen/narrow tabulated list columnsLars Ingebrigtsen2019-06-241-0/+35
| | | | | | | | | | | | | | | | | | | | | | * doc/emacs/buffers.texi: Document widen/contracting commands in tabulated list mode. * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Add keystrokes. (tabulated-list-widen-current-column): New command. (tabulated-list-narrow-current-column): Ditto. The code was written by Boruch Baum and then tweaked by Drew Adams (bug#32106) before some white-space changes before the commit.
* | Document syntax-ppss-contextLars Ingebrigtsen2019-06-241-0/+4
| | | | | | | | | | | | | | * doc/lispref/syntax.texi (Parser State): Document it. * lisp/emacs-lisp/syntax.el (syntax-ppss-context): Add a doc string (bug#32504).
* | (if-let): Improve docstring by mentioning let*Alex Branham2019-06-231-2/+3
| | | | | | | | | | * lisp/emacs-lisp/subr-x.el (if-let): Clarify that if-let is like let*, not like let (bug#33550).
* | Check validity of rx submatch-n numberMattias Engdegård2019-06-231-0/+2
| | | | | | | | * lisp/emacs-lisp/rx.el (rx-submatch): Type and range check (Bug#34373).
* | (with-suppressed-warnings): Also suppress warnings when not byte-compilingStefan Monnier2019-06-221-5/+17
| | | | | | | | | | * lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Bind byte-compile--suppressed-warnings when possible.
* | * lisp/emacs-lisp/bytecomp.el (byte-compile-dynamic): Mark obsoleteStefan Monnier2019-06-215-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | See bug#11649 for an example problem, and emacs-devel discussion «Prickliness of the "invalid byte code" stuff». * lisp/wid-edit.el, lisp/wdired.el, lisp/vc/pcvs-util.el: * lisp/progmodes/executable.el, lisp/mail/sendmail.el: * lisp/emacs-lisp/cl-seq.el, lisp/emacs-lisp/cl-macs.el: * lisp/emacs-lisp/cl-lib.el, lisp/emacs-lisp/cl-extra.el: * lisp/dired-x.el, lisp/dired-aux.el, lisp/calendar/calendar.el: Don't use byte-compile-dynamic any more.
* | Clean up eieio-custom slightlyLars Ingebrigtsen2019-06-201-5/+0
| | | | | | | | * lisp/emacs-lisp/eieio-custom.el: Remove commented out code.
* | Remove XEmacs compat code from checkdoc.elLars Ingebrigtsen2019-06-201-7/+3
| | | | | | | | | | * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode-map): Remove XEmacs compat code.
* | Move around defgeneric/defmethods in eieioLars Ingebrigtsen2019-06-192-17/+19
| | | | | | | | | | | | | | * lisp/emacs-lisp/eieio.el (object-print): * lisp/emacs-lisp/eieio-base.el (eieio-object-set-name-string): Move the defgeneric before the defmethod, because that makes more sense.