aboutsummaryrefslogtreecommitdiffstats
path: root/lisp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Protect non-selected face spec components in custimize-face. Fixes bug #40866Alan Mackenzie2020-05-011-1/+11
| | | | | | | | | | | | * lisp/cus-edit.el (custom-face-save): If the current face widget is only displaying part of the face spec, temporarily set it to "display" the whole spec around the call to custom-face-mark-to-save.
* | Add lisp-data-mode for editing non-code Lisp dataJoão Távora2020-05-018-25/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: bug#40573 The new mode can be used stand-alone or inherited from by modes intended to edit programs. The existing emacs-lisp-mode and lisp-mode are examples. Thanks to Juri Linkov and Basil L. Contovounesios for researching some data files in Emacs that can be automatically set to use the new mode. * lisp/files.el (auto-mode-alist): Add entry for ".dir-locals" and ".dir-locals-2" * lisp/emacs-lisp/lisp-mode.el: (lisp-data-mode): New major mode. (lisp-mode): Inherit from lisp-data-mode. Set special lisp-mode stuff here. * lisp/progmodes/elisp-mode.el (emacs-lisp-mode): Inherit from lisp-data-mode. * lisp/bookmark.el (bookmark-insert-file-format-version-stamp): Use lisp-data-mode. * lisp/saveplace.el (save-place-alist-to-file): Use lisp-data-mode. * lisp/net/eww.el (eww-write-bookmarks): Use lisp-data-mode. * lisp/net/nsm.el (nsm-write-settings): Use lisp-data-mode. * lisp/net/tramp-cache.el (tramp-dump-connection-properties): Use lisp-data-mode. * etc/NEWS: Mention lisp-data-mode. * doc/lispref/modes.texi (Example Major Modes): Update example.
* | Make `make-local-variable' declare the var locally dynamicMichael Heerdegen2020-04-301-0/+8
| | | | | | | | | | | | | | | | The only effect of this change is to get rid of some unnecessary "assignment to free variable" warnings. * lisp/emacs-lisp/bytecomp.el (byte-compile-make-local-variable): New function.
* | Fix calculator division truncation (bug#40892)Mattias Engdegård2020-04-301-1/+1
| | | | | | | | | | | | * lisp/calculator.el (calculator-string-to-number): Convert decimal numbers input to float, fixing a regression introduced in f248292ede. Reported by Aitor Soroa.
* | ; Silence byte-compiler warning in version.elBasil L. Contovounesios2020-04-301-1/+1
| | | | | | | | | | * lisp/version.el (emacs-repository-get-version): Prefix unused argument with underscore.
* | Use lexical-binding in qp.el and add testsStefan Kangas2020-04-301-1/+1
| | | | | | | | | | * test/lisp/mail/qp-tests.el: New file. * lisp/mail/qp.el: Use lexical-binding.
* | Add new function dom-remove-attributeLars Ingebrigtsen2020-04-301-0/+6
| | | | | | | | | | | | * doc/lispref/text.texi (Document Object Model): Document it. * lisp/dom.el (dom-remove-attribute): Add new function.
* | Merge from origin/emacs-27Glenn Morris2020-04-296-28/+54
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2f9bfaef21 (origin/emacs-27) ; Fix last change 520fd3e728 * lisp/env.el (substitute-env-vars): Doc fix. (Bug#40948) 85544f8ef5 * lisp/isearch.el: Fix lazy-highlighting and lazy-counting... d83cc05a73 Fix error in ERC when 'erc-server-coding-system' is custom... 16fed05ba8 Avoid crashes on TTY frames with over-long compositions 0278741676 Fix typo in custom.texi 9f5ae717fb * test/lisp/simple-tests.el (with-shell-command-dont-erase... 1f76a16ed3 * lisp/image-mode.el (image-mode-map): Update menu items. f0e1bf56f0 Fix bugs in tab-bar and tab-line and mention remaining fea... f0b9f18457 Make shell-command tests fit for tcsh. 68f4a740a1 Remove doc duplication ac31cd384c * etc/NEWS: Fix inconsistencies. # Conflicts: # etc/NEWS
| * ; Fix last changeEli Zaretskii2020-04-291-4/+4
| |
| * * lisp/env.el (substitute-env-vars): Doc fix. (Bug#40948)Eli Zaretskii2020-04-291-1/+1
| |
| * * lisp/isearch.el: Fix lazy-highlighting and lazy-counting of hidden matchesJuri Linkov2020-04-291-2/+5
| | | | | | | | | | | | * lisp/isearch.el (isearch-lazy-highlight-search): Let-bind search-invisible to t when search-invisible is 'open' or when both isearch-lazy-count and search-invisible are non-nil. (Bug#40808)
| * Fix error in ERC when 'erc-server-coding-system' is customizedEli Zaretskii2020-04-281-1/+2
| | | | | | | | | | | | * lisp/erc/erc-backend.el (erc-split-line): Handle the case where 'erc-coding-system-for-target' returns a coding-system's symbol. (Bug#40914)
| * * lisp/image-mode.el (image-mode-map): Update menu items.Juri Linkov2020-04-271-7/+13
| | | | | | | | | | | | | | | | * lisp/image-mode.el (image-mode-map): Move "Fit Image to Window (Best Fit)" higher. Add "Zoom In" (image-increase-size), "Zoom Out" (image-decrease-size) and "Rotate Clockwise" (image-rotate). Use name "Set Rotation..." for image-transform-set-rotation. Swap "Next Image" and "Previous Image". Swap "Next Frame" and "Previous Frame".
| * Fix bugs in tab-bar and tab-line and mention remaining features in manual.Juri Linkov2020-04-272-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/frames.texi (Tab Bars): Mention tab-bar-new-tab-to, tab-bar-close-last-tab-choice, tab-bar-close-tab-select, tab-undo, tab-select, tab-bar-history-mode. * doc/emacs/windows.texi (Tab Line): Mention tab-line-tabs-function. * lisp/tab-bar.el (tab-bar-select-tab-modifiers): Mention tab-bar-tab-hints in docstring. (tab-bar-tab-hints): Mention tab-bar-select-tab-modifiers in docstring. (tab-bar-select-tab): Mention tab-bar-select-tab-modifiers in docstring. (tab-bar-switch-to-tab): Expand the docstring. (tab-bar-new-tab-to): Fix bug in handling 'left' value. (tab-bar-close-tab): Fix bug in handling 'left' value. (tab-bar-undo-close-tab): Use funcall tab-bar-tabs-function instead of direct call to tab-bar-tabs. (tab-bar-history-back, tab-bar-history-forward): Add docstrings. (tab-bar-history-mode): Expand docstring. * lisp/tab-line.el (tab-line-format): Fix bug for handling window switching that should set face 'tab-line-tab-current'.
* | Add new tests to bindat-tests.elStefan Kangas2020-04-291-1/+1
| | | | | | | | | | | | | | * test/lisp/emacs-lisp/bindat-tests.el (bindat-test-format-vector) (bindat-test-vector-to-dec, bindat-test-vector-to-hex) (bindat-test-ip-to-string): New tests. * lisp/emacs-lisp/bindat.el (bindat-vector-to-hex): Fix typo.
* | Use lexical-binding in float-sup.el and add testsStefan Kangas2020-04-291-1/+1
| | | | | | | | | | * lisp/emacs-lisp/float-sup.el: Use lexical-binding. * test/lisp/emacs-lisp/float-sup-tests.el: New file.
* | Use lexical-binding in rfc2368.el and add testsStefan Kangas2020-04-281-1/+1
| | | | | | | | | | * lisp/mail/rfc2368.el: Use lexical-binding. * test/lisp/mail/rfc2368-tests.el: New file.
* | Use lexical-binding in version.el and add testsStefan Kangas2020-04-281-1/+1
| | | | | | | | | | * lisp/version.el: Use lexical-binding. * test/lisp/version-tests.el: New file.
* | Use lexical-binding in puny.el and add more testsStefan Kangas2020-04-281-1/+1
| | | | | | | | | | | | | | * lisp/net/puny.el: Use lexical-binding. * test/lisp/net/puny-tests.el (puny-test-encode-domain) (puny-test-decode-domain, puny-highly-restrictive-domain-p): New tests.
* | Use lexical-binding in hmac-md5.el and add testsStefan Kangas2020-04-281-37/+3
| | | | | | | | | | * lisp/net/hmac-md5.el: Use lexical-binding. * test/lisp/net/hmac-md5-tests.el: New file.
* | * lisp/jit-lock.el: Don't use `make-variable-buffer-local` on hooks.Stefan Monnier2020-04-271-4/+6
| | | | | | | | | | (jit-lock-functions): Clarify that it's a hook. (jit-lock-unregister): Adjust accordingly.
* | Use lexical-binding in dos-vars.elStefan Kangas2020-04-261-4/+2
| | | | | | | | | | | | * lisp/dos-vars.el: Use lexical-binding. (msdos-shells, dos-codepage-setup-hook): Remove redundant :group args.
* | Use lexical-binding in spook.elStefan Kangas2020-04-261-5/+3
| | | | | | | | | | | | * lisp/play/spook.el: Use lexical-binding. (spook-phrases-file, spook-phrase-default-count): Remove redundant :group args.
* | Use lexical-binding for rfc2045.el and add testsStefan Kangas2020-04-261-1/+1
| | | | | | | | | | * lisp/mail/rfc2045.el: Use-lexical-binding. * test/lisp/mail/rfc2045-tests.el: New file.
* | Use lexical-binding in dig.el and add testsStefan Kangas2020-04-261-7/+4
| | | | | | | | | | | | | | * lisp/net/dig.el: Use lexical-binding. (dig-program, dig-dns-server, dig-font-lock-keywords): Remove redundant :group args. * test/lisp/net/dig-tests.el: New file.
* | Use lexical-binding in misc.el and add testsStefan Kangas2020-04-261-1/+1
| | | | | | | | | | * lisp/misc.el: Use lexical-binding. * test/lisp/misc-tests.el: New file.
* | Improve list-dynamic-libraries when alist emptyStefan Kangas2020-04-251-2/+4
| | | | | | | | | | * lisp/misc.el (list-dynamic-libraries--refresh): Improve list format and show message when 'dynamic-library-alist' is empty.
* | Merge from origin/emacs-27Glenn Morris2020-04-257-31/+78
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45a64c97c7 (origin/emacs-27) Clarify semantics of trace-function CONT... 821760fdc4 Don't let a code literal get modified in mml parsing (Bug#... 74a92be16d * lisp/simple.el (kill-ring-save): Doc fix. (Bug#40797) 3d0e859692 Minor doc clarification regarding fringe bitmaps 4d86c7f822 Fix documentation of fringe bitmaps a76af88dd8 Tweak mutability doc a bit more f7e488d206 Calc: fix autoload errors (bug#40800) 369761b36d ; * src/xdisp.c: Improve the introductory commentary. a92ca1f177 Improve indexing of ELisp manual 5a25d17760 * lisp/image-mode.el (image-transform-resize): Remove FIXM... 37ebec3a95 Improve the default value of 'doc-view-ghostscript-program'. ba6104d1e8 Change doc-view-mode-map prefix key 's' to 'c'. 400ff5cd19 Improve wording about constants d2836fe71b Improve the default value of 'doc-view-ghostscript-program'. fc55f65305 Minor improvements in documentation of the last change a64da75961 Add image-auto-resize defcustoms to image-mode.el 692ad40539 Improve the documentation of tab-bar and tab-line # Conflicts: # etc/NEWS
| * Clarify semantics of trace-function CONTEXT argumentNoam Postavsky2020-04-251-1/+3
| | | | | | | | | | * lisp/emacs-lisp/trace.el (trace-function-foreground): Explain that CONTEXT should be a function, when called from Lisp.
| * Don't let a code literal get modified in mml parsing (Bug#39884)Noam Postavsky2020-04-251-1/+1
| | | | | | | | | | * lisp/gnus/mml.el (mml-parse-1): Make a fresh cons for the tag type, because 'mml-generate-mime' destructively modifies it.
| * * lisp/simple.el (kill-ring-save): Doc fix. (Bug#40797)Eli Zaretskii2020-04-251-1/+1
| |
| * Calc: fix autoload errors (bug#40800)Mattias Engdegård2020-04-242-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | Reported by Hugo Daschbach. * lisp/calc/calc-ext.el (calc-init-extensions): Remove calc-kbd-report key binding and autoload; it was removed in 2005. calc-keypad-x-{left,right,middle}-click were renamed to calc-keypad-{left,right,middle}-click in 2001; fix the autoloads. calc-twos-complement-mode is a variable, not a function; remove the autoload. * lisp/calc/calc-prog.el: Remove commented-out calc-kbd-report.
| * * lisp/image-mode.el (image-transform-resize): Remove FIXME comment.Juri Linkov2020-04-241-1/+0
| | | | | | | | | | The user customizable variable 'image-auto-resize' is documented now in the manual.
| * Improve the default value of 'doc-view-ghostscript-program'.Tassilo Horn2020-04-231-9/+7
| | | | | | | | | | | | * lisp/doc-view.el (doc-view-ghostscript-program): Use plain command name instead of qualified name returned by executable-find (as suggested by Stefan Monnier). (Bug#36357)
| * Change doc-view-mode-map prefix key 's' to 'c'.Juri Linkov2020-04-232-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/misc.texi (DocView Slicing): Change prefix key 's' to 'c'. * lisp/doc-view.el (doc-view-mode-map): Change prefix key 's' to 'c'. * lisp/image-mode.el (image-mode-map): Add image-transform-set-scale to menu. * doc/emacs/files.texi (Image Mode): Describe commands image-transform-fit-both, image-transform-set-scale, image-transform-reset. * etc/NEWS: Rearrange image sections. https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg01315.html
| * Improve the default value of 'doc-view-ghostscript-program'.Tassilo Horn2020-04-221-3/+15
| | | | | | | | | | * lisp/doc-view.el (doc-view-ghostscript-program): On Windows, try gswin64c, gswin32c, rungs, and mgs. (Bug#36357)
| * Add image-auto-resize defcustoms to image-mode.elJuri Linkov2020-04-211-5/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image-mode.el (image-auto-resize) (image-auto-resize-on-window-resize): New defcustoms. (image-mode-map): Bind "sb" to image-transform-fit-both. (image-mode): Set image-transform-resize to image-auto-resize initially. (image-mode--setup-mode): Add hook on image-auto-resize-on-window-resize. (image-toggle-display-image): Check if image-transform-resize is t. (image-transform-properties): Check image-transform-resize for nil and t. (image-transform-fit-both): New command. (image-transform-reset): Reset image-transform-resize to image-auto-resize. * doc/emacs/files.texi (Image Mode): Mention image-auto-resize and image-auto-resize-on-window-resize. https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg01160.html
* | Use lexical-binding in po.el and add testsSimen Heggestøyl2020-04-251-1/+1
| | | | | | | | | | | | * lisp/textmodes/po.el: Use lexical-binding. * test/lisp/textmodes/po-tests.el: New file with tests for po.el.
* | Fix bug #40766, an error in edebug spec handlingAlan Mackenzie2020-04-241-4/+1
| | | | | | | | | | | | | | | | | | | | Also remove some debris. * lisp/emacs-lisp/edebug.el (edebug-spec): Move the entry for edebug-spec-list to before that for vector in the &or form. This assures that in a dotted list of vectors, that list gets handled correctly by edebug-spec-list rather than wrongly by (vector ...). (def-edebug-spec &key): Remove, since it is ill formed and superfluous.
* | * lisp/kermit.el: Use lexical-binding.Stefan Kangas2020-04-241-1/+1
| |
* | Support old SMB1 protocol in TrampMichael Albinus2020-04-221-5/+36
| | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): Describe `tramp-smb-options'. * lisp/net/tramp-smb.el (tramp-smb-conf): Fix docstring. (tramp-smb-options): New defcustom. (tramp-smb-handle-copy-directory, tramp-smb-handle-file-acl) (tramp-smb-handle-set-file-acl, tramp-smb-maybe-open-connection): Use it.
* | Fix recently introduced error in `tramp-sh-handle-vc-registered'Michael Albinus2020-04-211-16/+13
| | | | | | | | | | * lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered): Improve test for `vc-handled-backends'. (Bug#40670)
* | * lisp/hi-lock.el (hi-lock--regexps-at-point): Use proper-list-p, not consp.Juri Linkov2020-04-211-2/+3
| |
* | Remove unnecessary lambda quotingEric Abrahamsen2020-04-201-2/+2
| | | | | | | | | | * lisp/gnus/nntp.el (nntp-open-connection): Buffer has lexical-binding turned on.
* | Merge from origin/emacs-27Glenn Morris2020-04-2017-85/+82
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 05089a4d65 (origin/emacs-27) Tweak wording re constant variables a1040861f1 Tweak setcar-related wording 751510f865 * lisp/image-mode.el: Add prefix key 's' and reduce depend... 9261a219ec * doc/emacs/windows.texi (Window Convenience): Decribe mor... e1d42da0d6 Fix mutability glitches reported by Drew Adams 5805df74f5 Improve mutability doc dca35b31d0 Improve mutability documentation 81e7d7f111 Document that quoting yields constants 5734339f40 * doc/lispref/keymaps.texi (Extended Menu Items, Easy Menu... 14a570afae Remove #' and function quoting from lambda forms in manual d5ec18c66b * src/regex-emacs.c (re_match_2_internal): Rework comment ... 4df8a61117 Add new node "Image Mode" to Emacs Manual. d7d5ee6c57 ; Fix a typo in cmdargs.texi (bug#40701) 5e9db48fbe * doc/lispref/display.texi (Customizing Bitmaps): Fix typo. eebfb72c90 Document constant vs mutable objects better 6c187ed6b0 Improve documentation of 'sort-lines' 52288f4b66 Mention 'spam-stat-process-directory-age' in the documenta... 067b070598 ; Fix some typos and doc issues (bug#40695) # Conflicts: # etc/NEWS
| * * lisp/image-mode.el: Add prefix key 's' and reduce dependency on ImageMagick.Juri Linkov2020-04-201-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/image-mode.el (image-mode-map): Regroup existing keybindings and add new ones with the prefix key 's'. Remove condition ":visible (eq image-type 'imagemagick)" from menu. (image-toggle-display-image): Don't rotate again after user rotated manually. (image-transform-check-size): Remove check for imagemagick. (image-transform-properties, image-transform-set-scale) (image-transform-fit-to-height, image-transform-fit-to-width) (image-transform-set-rotation, image-transform-reset): Remove mentions of ImageMagick from docstrings since these commands now work without ImageMagick.
| * Improve documentation of 'sort-lines'Eli Zaretskii2020-04-181-1/+2
| | | | | | | | | | * lisp/sort.el (sort-lines): Clarify the interactive invocation. (Bug#40697)
| * ; Fix some typos and doc issues (bug#40695)Štěpán Němec2020-04-1815-46/+42
| |
* | * lisp/cdl.el: Use lexical binding.Stefan Kangas2020-04-201-1/+1
| |
* | Silence byte-compiler after my previous commitStefan Kangas2020-04-201-3/+2
| | | | | | | | * lisp/autoarg.el (autoarg-kp-digits): Silence byte-compiler.