aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge from origin/emacs-27Glenn Morris2020-05-032-1/+9
|\ \ | |/ | | | | | | 1d477a0fec Recommend to avoid unnecessary abbreviations in doc aea1b4db72 Revert "Fix calculator division truncation (bug#40892)"
| * Recommend to avoid unnecessary abbreviations in docStefan Kangas2020-04-301-0/+8
| | | | | | | | | | * doc/lispref/tips.texi (Documentation Tips): Recommend to avoid unnecessary abbreviations. (Bug#40011)
| * Revert "Fix calculator division truncation (bug#40892)"Eli Zaretskii2020-04-301-1/+1
| | | | | | | | | | This reverts commit 82140c510c4d27e639b4bca1e9bf158f0f66c375. (Bug#40892)
* | ; Merge from origin/emacs-27Glenn Morris2020-05-030-0/+0
|\ \ | |/ | | | | | | | | The following commit was skipped: 82140c510c Fix calculator division truncation (bug#40892)
| * 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.
* | Merge from origin/emacs-27Glenn Morris2020-05-032-45/+47
|\ \ | |/ | | | | | | | | 1f17193e00 Expand file name for remote dirs as well 7a12ab5ea2 Fix project.el commands in "transient" projects 274ec97e3c Make sure alist-related functions say so in their doc
| * Expand file name for remote dirs as wellDmitry Gutov2020-04-291-8/+6
| | | | | | | | | | * lisp/progmodes/project.el (project--files-in-directory): Expand file name for remote dirs as well (bug#40940).
| * Fix project.el commands in "transient" projectsEli Zaretskii2020-04-291-17/+21
| | | | | | | | | | | | | | * lisp/progmodes/project.el (project--files-in-directory): Run local DIR directory names through 'expand-file-name', so that "~/" is expanded, in case the shell doesn't or the shell's notion of the home directory is different from that of Emacs. (Bug#40940)
| * Make sure alist-related functions say so in their docEli Zaretskii2020-04-291-28/+28
| | | | | | | | | | * src/fns.c (Fassq, assq_no_quit, Fassoc, assoc_no_quit, Frassq) (Frassoc): Rename argument LIST to ALIST. Doc strings updated.
* | Remove redundant :groups args missed in last commitStefan Kangas2020-05-031-8/+4
| | | | | | | | | | | | | | * lisp/emacs-lisp/cl-indent.el (lisp-lambda-list-keyword-alignment) (lisp-lambda-list-keyword-parameter-indentation) (lisp-lambda-list-keyword-parameter-alignment) (lisp-indent-backquote-substitution-mode): Remove redundant :group args.
* | Improve indentation of 'loop' formsStefan Kangas2020-05-031-14/+10
| | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/cl-indent.el (lisp-loop-keyword-indentation) (lisp-loop-forms-indentation, lisp-simple-loop-indentation): Use a more standard indentation of 'loop' forms. (Bug#2160) (lisp-indent-maximum-backtracking, lisp-tag-indentation) (lisp-tag-body-indentation, lisp-backquote-indentation) (lisp-loop-keyword-indentation, lisp-loop-forms-indentation) (lisp-simple-loop-indentation): Remove redundant :group args.
* | Use lexical-binding in w32-vars.elStefan Kangas2020-05-031-9/+5
| | | | | | | | | | | | | | * lisp/w32-vars.el: Use lexical-binding. (w32-use-w32-font-dialog, w32-allow-system-shell (w32-system-shells, w32-fixed-font-alist): Remove redundant :group args.
* | Improve accuracy of apropos commands that search doc stringsEli Zaretskii2020-05-032-11/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is conceptually wrong for apropos commands that search doc strings to look for matches of several words only on the same line, because division of doc strings between lines is ephemeral. * lisp/apropos.el (apropos-parse-pattern): Accept an optional argument MULTILINE-P, and if that is non-nil, produce regexps that match words in the list even if they are separated by line boundaries. (apropos-value, apropos-local-value, apropos-documentation): Use the new optional argument in apropos commands that search multiline text, such as doc strings. * src/search.c (Fposix_looking_at, Fposix_string_match) (Fposix_search_backward, Fposix_search_forward): Make sure Posix appears in the doc strings near REGEXP, for better matches.
* | Regexps cannot infloop; fix manualMattias Engdegård2020-05-031-6/+4
| | | | | | | | | | * doc/lispref/searching.texi (Regexp Special): Edit erroneous statements about infinite looping in regexps.
* | Do not delete asynchronous Tramp processes due to session timeoutMichael Albinus2020-05-032-5/+9
| | | | | | | | | | | | | | * lisp/net/tramp-cmds.el (tramp-cleanup-connection): New optional argument KEEP-PROCESSES. * lisp/net/tramp-sh.el (tramp-timeout-session): Use it. (Bug#41042)
* | Improve Tramp debug messagesMichael Albinus2020-05-031-19/+29
| | | | | | | | | | | | * lisp/net/tramp-cache.el (tramp-get-file-property) (tramp-get-connection-property): Improve debug messages. Suggested by Marc Herbert <marc.herbert@gmail.com>.
* | Use lexical-binding for some term librariesStefan Kangas2020-05-026-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | This takes care of the most trivial cases, but there are more that could be easily converted. * lisp/term/bobcat.el: * lisp/term/cygwin.el: * lisp/term/konsole.el: * lisp/term/linux.el: * lisp/term/vt100.el: * lisp/term/vt200.el: Use lexical-binding.
* | Improve Info-mode doc and menuStefan Kangas2020-05-021-9/+17
| | | | | | | | | | | | * lisp/info.el (Info-mode-menu): Re-arrange to be more logical, move items into submenus, add 'Info-directory' and separators. (Info-mode): Add 'end-of-buffer' to doc string. (Bug#39042)
* | ;; Revert recent change in tramp-cache.elMichael Albinus2020-05-021-9/+4
| | | | | | | | | | | | * lisp/net/tramp-cache.el (tramp-dump-connection-properties): Remove compatibility code dumping the persistency file. Use `emacs-lisp-mode' for backward compatibility.
* | Fix 'count-screen-lines' when lines are truncatedEli Zaretskii2020-05-021-10/+26
| | | | | | | | | | | | * lisp/window.el (count-screen-lines): Fix the return value when lines are truncated in the window, and the end of the region is invisible due to this truncation. (Bug#40849)
* | Properly fix embarassing missing paren typo in jsonrpc.elJoão Távora2020-05-021-3/+3
| | | | | | | | | | | | | | | | Paul Eggert had fixed it in practice, but the missing paren was meant to close a previous with-current-buffer. * lisp/jsonrpc.el (initialize-instance): Put parenthesis in right spot. (Version): Bump to 1.0.11
* | Inhibit modification hooks when saving eieio-persistent'sMichael Heerdegen2020-05-011-1/+2
| | | | | | | | | | * lisp/emacs-lisp/eieio-base.el (eieio-persistent-save): Bind inhibit-modification-hooks -> t.
* | cc-mode: add support for Doxygen documentation styleMichal Nazarewicz2020-05-013-1/+94
| | | | | | | | | | | | | | | | * lisp/progmodes/cc-fonts.el (doxygen-font-lock-doc-comments, doxygen-font-lock-keywords): New constants defining Doxygen comment style support. * lisp/progmodes/cc-vars.el (c-doc-comment-style): Updated docstring to mention now-supported Doxygen mode.
* | * lisp/jsonrpc.el (initialize-instance): Fix closing-paren typo.Paul Eggert2020-05-011-1/+1
| |
* | Consolidate lisp/jsonrpc.el logging in single events bufferJoão Távora2020-05-011-11/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For inferior processes having useful stderr, it is no longer cumbersome to switch between different buffers to correlate error messages with transport-level JSONRPC messages. The existing stderr and stdout buffers can still be found hidden away from the normal buffer list. An original idea of Tobias Rittweiler <trittweiler@gmail.com>. * lisp/jsonrpc.el (initialize-instance jsonrpc-process-connection): Setup after-change functions stderr buffer. Hide stderr and stdout buffers. (jsonrpc--log-event): Don't output extra newline. Tweak log format. (Version): Bump to 1.0.10
* | ; Fix recent additions with lisp-data-modeBasil L. Contovounesios2020-05-013-5/+5
| | | | | | | | | | | | | | * lisp/bookmark.el (bookmark-insert-file-format-version-stamp) (save-place-alist-to-file): Delimit file-local variables on the -*- line with semicolons. * lisp/files.el (auto-mode-alist): Use shy regexp group.
* | ; Auto-commit of loaddefs files.Glenn Morris2020-05-011-13/+77
| |
* | 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-0110-38/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Use lexical-binding in most remaining testsStefan Kangas2020-05-0116-25/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/comint-tests.el: * test/lisp/custom-resources/custom--test-theme.el: * test/lisp/dabbrev-tests.el: * test/lisp/emulation/viper-tests.el: * test/lisp/erc/erc-track-tests.el: * test/lisp/gnus/gnus-tests.el: * test/lisp/imenu-tests.el: * test/lisp/info-xref-tests.el: * test/lisp/jit-lock-tests.el: * test/lisp/json-tests.el: * test/lisp/man-tests.el: * test/lisp/replace-tests.el: * test/lisp/shadowfile-tests.el: * test/lisp/subr-tests.el: * test/lisp/thingatpt-tests.el: * test/lisp/xml-tests.el: Use lexical-binding. * test/lisp/man-tests.el (man-tests-filter-strings): * test/lisp/shadowfile-tests.el (shadow-test00-clusters) (shadow-test01-sites, shadow-test06-literal-groups) (shadow-test07-regexp-groups, shadow-test09-shadow-copy-files): Silence byte-compiler.
* | 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.
* | Use lexical-binding in most remaining emacs-lisp testsStefan Kangas2020-04-3015-47/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el: * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el: * test/lisp/emacs-lisp/faceup-resources/faceup-test-mode.el: * test/lisp/emacs-lisp/faceup-resources/faceup-test-this-file-directory.el: * test/lisp/emacs-lisp/faceup-tests/faceup-test-basics.el: * test/lisp/emacs-lisp/faceup-tests/faceup-test-files.el: * test/lisp/emacs-lisp/package-resources/newer-versions/new-pkg-1.0.el: * test/lisp/emacs-lisp/package-resources/newer-versions/simple-single-1.4.el: * test/lisp/emacs-lisp/package-resources/simple-depend-1.0.el: * test/lisp/emacs-lisp/package-resources/simple-single-1.3.el: * test/lisp/emacs-lisp/package-resources/simple-two-depend-1.1.el: * test/lisp/emacs-lisp/package-tests.el: * test/lisp/emacs-lisp/shadow-resources/p1/foo.el: * test/lisp/emacs-lisp/shadow-resources/p2/FOO.el: Use lexical-binding. * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el (eitest-F, eitest-H, eitest-I, constructor, make-instance) (initialize-instance, CNM-M): * test/lisp/emacs-lisp/package-tests.el (with-package-test) (package-test-update-archives, package-test-signed): Silence byte-compiler.
* | ; 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.
* | ; Fix last addition to dom-tests.elBasil L. Contovounesios2020-04-301-1/+1
| | | | | | | | | | * test/lisp/dom-tests.el (dom-tests-remove-attribute): Make test idempotent by avoiding destructive modification of constant literal.
* | Use lexical-binding in qp.el and add testsStefan Kangas2020-04-302-1/+75
| | | | | | | | | | * test/lisp/mail/qp-tests.el: New file. * lisp/mail/qp.el: Use lexical-binding.
* | Add new function dom-remove-attributeLars Ingebrigtsen2020-04-304-0/+19
| | | | | | | | | | | | * doc/lispref/text.texi (Document Object Model): Document it. * lisp/dom.el (dom-remove-attribute): Add new function.
* | Test iso8601-parse-zone vs format-time-string %zStephen Gildea2020-04-291-0/+31
| | | | | | | | | | | | | | * test/lisp/calendar/iso8601-tests.el (iso8601-format-time-string-zone-round-trip): New unit test that format-time-string %z and iso8601-parse-zone are inverses. (test-iso8601-format-time-string-zone-round-trip): New helper function.
* | Merge from origin/emacs-27Glenn Morris2020-04-2913-50/+135
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * Avoid crashes on TTY frames with over-long compositionsEli Zaretskii2020-04-281-1/+1
| | | | | | | | | | | | | | | | * src/term.c (encode_terminal_code): Each character from an automatic composition is a multibyte character, so its multibyte representation can take up to MAX_MULTIBYTE_LENGTH bytes. Account for that when allocating storage for characters to be encoded. (Bug#40913)
| * Fix typo in custom.texiStefan Kangas2020-04-271-1/+1
| | | | | | | | | | * doc/emacs/custom.texi (Variables): Fix typo. Pointed out by ej32u@protonmail.com. (Bug#40890)
| * * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer):Michael Albinus2020-04-271-2/+3
| | | | | | | | Use `shell-quote-argument' instead of quoting 'like this'.
| * * 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-274-19/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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'.
| * Make shell-command tests fit for tcsh.Michael Albinus2020-04-261-4/+4
| | | | | | | | | | | | | | * test/lisp/simple-tests.el (with-shell-command-dont-erase-buffer): Fix debug spec. Format command to run also under tcsh. (simple-tests-shell-command-39067) (simple-tests-shell-command-dont-erase-buffer): Quote newline in string.
| * Remove doc duplicationPaul Eggert2020-04-251-2/+1
| | | | | | | | | | * doc/lispref/objects.texi (Constants and Mutability): Remove duplication. From a suggestion by Andreas Schwab (Bug#40671#150).