summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Use lexical binding in fortran.elMattias Engdegård2020-10-221-3/+3
| | | | | | | | | | | | * lisp/progmodes/fortran.el: Use lexical binding. (fortran-make-syntax-propertize-function): Hoist use of lexical variable to outside the 'eval' call.
* | * lisp/progmodes/cpp.el: Use lexical binding.Mattias Engdegård2020-10-221-1/+1
| |
* | unload-feature: Correct doc string to match info manual and realityŠtěpán Němec2020-10-211-5/+4
| | | | | | | | | | | | | | | | | | 'unload-feature' doesn't try to "undo any additions the library has made" to hooks, it tries to remove functions defined by the library from hooks, no matter how they got there. * lisp/loadhist.el (unload-feature): Correct the doc string. * doc/lispref/loading.texi (Unloading): Clarify, fix typo.
* | unload-feature: Handle local hooks (bug#5293)Štěpán Němec2020-10-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | Buffer-local hooks were introduced in 1994-09-30T20:47:13+00:00!rms@gnu.org 0e4d378b32 (add-hook): Initialize default value and local value. but 'unload-feature' has not been updated to handle them. * lisp/loadhist.el (unload-feature): Handle local hooks (bug#5293).
* | unload-feature: Improve logic (don't repeat computation)Štěpán Němec2020-10-211-16/+17
| | | | | | | | * lisp/loadhist.el (unload-feature): Don't do the same computation twice.
* | Convert artist.el to lexical bindingMattias Engdegård2020-10-211-37/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/artist.el (artist-system, (artist-flood-fill): Remove binding of the obsolete variables binary-process-input, binary-process-output and input-queue. (artist-down-mouse-1): Fix mistyped 'echo-keystrokes'; bind it to 0. (artist-fill-rect, artist-fill-square, artist-pen-set-arrow-points) (artist-spray-clear-circle, artist-spray-set-radius) (artist-draw-ellipse-with-0-height, artist-fill-ellipse) (artist-ff-is-topmost-line, artist-ff-is-bottommost-line) (artist-set-arrow-points-for-2points, artist-key-undraw-continously) (artist-key-undraw-poly, artist-key-undraw-1point) (artist-key-undraw-2points, artist-key-do-continously-1point) (artist-key-set-point-1point, artist-shift-has-changed) (artist-mouse-draw-continously, artist-mouse-draw-1point) (artist-submit-bug-report): Suppress warnings about unused parameters which are there for function signature commonality. Remove unused variables.
* | ; * lisp/emacs-lisp/bindat.el (bindat-unpack): Fix typo.Stefan Kangas2020-10-211-1/+1
| |
* | * lisp/time.el: Use lexical-binding.Stefan Kangas2020-10-211-1/+1
| |
* | Add tests for time.elStefan Kangas2020-10-211-51/+57
| | | | | | | | | | | | | | * lisp/time.el (display-time-update--load) (display-time-update--mail): Extract from... (display-time-update): ...here. * test/lisp/time-tests.el: New file.
* | Use lexical-binding in bindat.elStefan Kangas2020-10-211-91/+87
| | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bindat.el: Use lexical-binding. (bindat-raw, bindat-idx, bindat-unpack, bindat-pack): Adjust for lexical-binding. (bindat--unpack-group, bindat--length-group): Fix byte-compiler warning about unused variables last and vlen. (bindat--unpack-group, bindat--length-group, bindat--pack-group) (bindat-format-vector): Quote function symbols as such.
* | Remove some compat code from uudecode.el and binhex.elStefan Kangas2020-10-212-17/+10
| | | | | | | | | | | | | | | | * lisp/mail/uudecode.el (uudecode-char-int): Make obsolete. (uudecode-decode-region-internal): Adjust callers. * lisp/mail/binhex.el (binhex-char-int): Make obsolete. (binhex-string-big-endian, binhex-string-little-endian) (binhex-header): Adjust callers.
* | Declare old compat aliases in tcl.el obsoleteStefan Kangas2020-10-211-12/+12
| | | | | | | | | | | | | | * lisp/progmodes/tcl.el (tcl-uncomment-region) (tcl-indent-for-comment, add-log-tcl-defun, indent-tcl-exp) (calculate-tcl-indent, tcl-beginning-of-defun, tcl-end-of-defun) (tcl-mark-defun, tcl-mark): Make obsolete.
* | Add some top level domainsStefan Kangas2020-10-211-0/+79
| | | | | | | | | | * lisp/mail/mail-extr.el (mail-extr-all-top-level-domains): Add some geographic domains.
* | Use lexical-binding in iso-ascii.elStefan Kangas2020-10-211-3/+2
| | | | | | | | | | * lisp/international/iso-ascii.el: Use lexical-binding. Remove redundant :group args.
* | Use lexical-binding in hfy-cmap.el and add testsStefan Kangas2020-10-211-20/+25
| | | | | | | | | | | | | | | | | | * lisp/hfy-cmap.el: Use lexical-binding. (hfy-cmap--parse-buffer): Extract from... (htmlfontify-load-rgb-file): ...here. * test/lisp/hfy-cmap-resources/rgb.txt: * test/lisp/hfy-cmap-tests.el: New files.
* | * lisp/outline.el: Use lexical-bindingStefan Monnier2020-10-201-72/+49
| | | | | | | | | | | | | | Remove redundant `group` arguments. (outline-level): Move before first use. (outline-mode): Use `setq-local`. (outline-isearch-open-invisible-function): Give it a non-nil default.
* | ; Fix last change to idlw-complete-structtag.elBasil L. Contovounesios2020-10-201-1/+1
| |
* | Use lexical-binding in m4-mode.elStefan Kangas2020-10-201-9/+6
| | | | | | | | | | | | | | * lisp/progmodes/m4-mode.el: Use lexical-binding. Remove redundant :group args. * lisp/progmodes/m4-mode.el (m4-m4-buffer, m4-m4-region): Quote function symbols as such.
* | Make more load-hooks obsolete (Bug#21563)Stefan Kangas2020-10-2012-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/progmodes/dcl-mode.el (dcl-mode): * lisp/progmodes/idlw-complete-structtag.el: Recommend with-eval-after-load instead of load-hooks. * lisp/calc/calc-ext.el (calc-ext-load-hook): * lisp/emacs-lisp/bytecomp.el (bytecomp-load-hook): * lisp/emacs-lisp/cl-extra.el (cl-extra-load-hook): * lisp/emacs-lisp/cl-macs.el (cl-macs-load-hook): * lisp/emacs-lisp/cl-seq.el (cl-seq-load-hook): * lisp/gnus/message.el (message-load-hook): * lisp/gnus/nnheader.el (nnheader-load-hook): * lisp/gnus/nnmail.el (nnmail-load-hook): * lisp/progmodes/dcl-mode.el (dcl-mode-load-hook): * lisp/textmodes/tex-mode.el (tex-mode-load-hook): * lisp/whitespace.el (whitespace-load-hook): Obsolete for with-eval-after-load. Note that these variables are never declared, but the byte-compiler will still warn about them if used.
* | byte-compile-file: Make optional LOAD argument obsoleteStefan Kangas2020-10-204-9/+14
| | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Declare optional LOAD argument obsolete. Adjust callers. (Bug#38072) (byte-recompile-file): Declare optional LOAD argument obsolete. * doc/lispref/compile.texi (Compilation Functions): Update documentation to reflect above obsoletion. * etc/NEWS: Announce above obsoletion.
* | Simplify regexp in last change to woman.elBasil L. Contovounesios2020-10-201-1/+1
| | | | | | | | | | * lisp/woman.el (woman-decode-region): Use simpler character alternative instead of alternation.
* | Simplify syntax of shortdoc face specsBasil L. Contovounesios2020-10-201-7/+4
| | | | | | | | | | | | * lisp/emacs-lisp/shortdoc.el: Remove unused dependency. (shortdoc-section, shortdoc-example): Use newer (DISPLAY . PLIST) face spec syntax.
* | * lisp/textmodes/picture.el: Use lexical binding.Mattias Engdegård2020-10-201-1/+1
| |
* | * lisp/language/utf-8-lang.el: Use lexical-binding.Stefan Kangas2020-10-201-1/+1
| |
* | Tweak the documentation for define-obsolete-variable-aliasLars Ingebrigtsen2020-10-201-4/+10
| | | | | | | | | | | | | | | | * doc/lispref/variables.texi (Variable Aliases): Actually describe the macro parameters (bug#44088). * lisp/emacs-lisp/byte-run.el (define-obsolete-variable-alias): Ditto (bug#44088).
* | Fix some mpc.el updating quirksMasahiro Nakamura2020-10-201-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/mpc.el (mpc-songs-jump-to): Update the status buffer. * lisp/mpc.el (mpc-stop): M-x mpc-stop clears playlist queue. So updating *MPC-Songs* buffer is useful. * lisp/mpc.el (mpc-cmd-delete): I noticed M-x mpc-playlist-delete always messages “Deleted 1 songs” even if playlist queue has more than one songs. This is because mpc-cmd-delete’s sort modifies songs-poss by side effect. Using copy-sequence fixes this (bug#44093). * lisp/mpc.el (mpc-cmd-move): Ditto.
* | Man highlighting: Don't occasionally bold entire sections.Jim Blandy2020-10-201-2/+8
| | | | | | | | | | | | * lisp/ansi-color.el (ansi-color-apply-on-region): Always save a restart position in ansi-color-context-region if the region ends with highlighting active.
* | Preserve all `eval' elements from both .dir-locals filesLars Ingebrigtsen2020-10-202-3/+22
| | | | | | | | | | * lisp/files.el (dir-locals-read-from-dir): Preserve all `eval' elements from both .dir-locals files (bug#44066).
* | * lisp/image-file.el: Use lexical-binding.Stefan Kangas2020-10-201-2/+2
| |
* | Add command package-menu-filter-upgradableStefan Kangas2020-10-191-0/+10
| | | | | | | | | | | | | | * lisp/emacs-lisp/package.el (package-menu-filter-upgradable): New command. (Bug#41436) (package-menu-mode-map): Bind the new command. * doc/emacs/package.texi (Package Menu): Document the new command.
* | * lisp/progmodes/python.el: Bump version to release the f-string supportStefan Monnier2020-10-191-1/+1
| |
* | * lisp/mail/rfc2231.el (rfc2231-decode-encoded-string): Fix match data errorStefan Monnier2020-10-191-17/+19
| | | | | | | | | | | | Get (match-string 3 string) earlier, in case `mm-charset-to-coding-system` clobbers the match data. Also, check that `string-match` succeeded before using its match data.
* | Further clarification of directory-files* docMichael Albinus2020-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | * doc/lispref/files.texi (Contents of Directories): Precise description of MATCH-REGEXP of directory-files. Add directory-files-no-dot-files-regexp. * lisp/files.el (directory-files-no-dot-files-regexp): Revert last fix. * src/dired.c (Fdirectory_files) (Fdirectory_files_and_attributes): Fix wording in docstring.
* | Keep track of matching rules in compilation-modeMattias Engdegård2020-10-191-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When matching messages in compilation-mode, keep track of the rule employed for each match. This facilitates debugging and allows us to verify that each test case really exercises the rule that we expect it to. Naturally this uncovered several test cases that didn't check what the author thought they did; the rules affixed to compile-tests--test-regexps-data are those actually used, so that the tests still pass. * lisp/progmodes/compile.el (compilation--message): Add 'rule' slot. (compilation-directory-properties, compilation-error-properties) (compilation-internal-error-properties, compilation-parse-errors) (compilation--compat-parse-errors): Set the rule slot. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data) (compile-tests--grep-regexp-testcases) (compile-tests--grep-regexp-tricky-testcases): Add rules to test cases. (compile--test-error-line): Check that the rule matches what we expect. (compile-test-grep-regexps): Adapt to test case format. Remove now superfluous ert-info.
* | Hoist some loop-invariant variable bindings in compile.elMattias Engdegård2020-10-191-98/+99
| | | | | | | | | | | | * lisp/progmodes/compile.el (compilation-parse-errors): Hoist the binding of case-fold-search and a memq call out of the loop, eliminating a minor but unnecessary quadratic term.
* | * lisp/info.el: Remove redundant :group args.Stefan Kangas2020-10-191-50/+24
| |
* | Improve Info-streamline-headings defaultsStefan Kangas2020-10-191-2/+3
| | | | | | | | | | | | | | * lisp/info.el (Info-streamline-headings): Improve defaults. These produce somewhat more consistent results on my system, and seems slightly more in line with current GNU practices. For example, gcc uses the "Software development" heading instead of "Programming".
* | `ffap-gopher-at-point' interminable without newlinesdickmao2020-10-191-1/+2
| | | | | | | | | | | | | | * lisp/ffap.el (ffap-gopher-at-point): Stop when we get to the end of the buffer. * test/lisp/ffap-tests.el (ffap-test-no-newlines): Ensure termination for corner case (bug#44048).
* | cperl-mode: Delete a misleading comment, add tests for verificationHarald Jörg2020-10-191-7/+0
| | | | | | | | | | | | | | | | * lisp/progmodes/cperl-mode.el: Delete a comment which explains a bug which has been fixed a long time ago (bug#44073). * test/lisp/progmodes/cperl-mode-tests.el (cperl-mode-fontify-punct-vars): Add regression tests to verify that fontification of punctuation variables doesn't start strings.
* | Handle "Before first headings" error in outline-cycleYuan Fu2020-10-191-21/+19
| | | | | | | | | | | | | | | | * lisp/outline.el (outline-before-first-heading): New error. (outline-back-to-heading): Signal the new error. (outline-cycle): Ignore the error. (outline-cycle-buffer): Simply pass 1 to 'outline-hide-sublevels' (bug#41130).
* | * lisp/files.el (directory-files-no-dot-files-regexp): Adapt docstring.Michael Albinus2020-10-191-1/+1
| |
* | Add new choice 'keep' to next-error-message-highlight (bug#32676)Juri Linkov2020-10-181-3/+8
| | | | | | | | | | * lisp/simple.el (next-error-message-highlight): Add new choice 'keep'. (next-error-message-highlight): Don't delete overlay when option is 'keep'.
* | Add "Old-" prefix to "Version" header in more casesStefan Kangas2020-10-1813-14/+13
|/ | | | | These version numbers are historical accidents and not relevant today. Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html
* Fix up smiley emoji application to make it reversibleLars Ingebrigtsen2020-10-181-1/+5
| | | | | * lisp/gnus/smiley.el (smiley-region): Use text properties for the emojis instead of rewriting the message.
* Add support for emojis i smiley.elAdam Sjøgren2020-10-181-20/+56
| | | | | | | | * lisp/gnus/smiley.el (smiley-style): Add emoji tag. (smiley-emoji-regexp-alist): New defcustom. (smiley-update-cache, smiley-region): Support emoji (non-image) replacement (bug#43889).
* Make nxml-newline-and-indent argument optionalStefan Kangas2020-10-181-1/+1
| | | | | * lisp/nxml/nxml-mode.el (nxml-newline-and-indent): Make argument optional to conform to 'comment-line-break-function'. (Bug#40193)
* * lisp/progmodes/ld-script.el: Use lexical-binding.Stefan Kangas2020-10-181-1/+1
|
* * lisp/progmodes/mixal-mode.el: Fix typos.Stefan Kangas2020-10-181-1/+3
|
* Set jao@gnu.org as maintainer of mixal-mode.elJose A Ortega Ruiz2020-10-181-1/+1
| | | | | * lisp/progmodes/mixal-mode.el: Set jao@gnu.org as maintainer of mixal-mode.el. (Bug#44037)
* Use lexical-binding in mixal-mode.elStefan Kangas2020-10-181-1/+1
| | | | * lisp/progmodes/mixal-mode.el: Use lexical-binding. (Bug#44037)