summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Insert describe-map-tree header into original bufferStefan Kangas2020-11-012-9/+22
| | | | | | | | | * lisp/help.el (describe-map-tree): Insert header into the original buffer, not in standard-output. * test/src/keymap-tests.el (describe-buffer-bindings/header-in-current-buffer) (describe-buffer-bindings/returns-nil): New tests. Ref: https://debbugs.gnu.org/39149#31
* ; * doc/emacs/custom.texi (Keymaps): Fix typo.Basil L. Contovounesios2020-11-011-1/+1
|
* ; Auto-commit of loaddefs files.Glenn Morris2020-11-011-1976/+924
|
* Make minor mode ARG work as documentedLars Ingebrigtsen2020-11-012-9/+40
| | | | | | | | * lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Clarify when minor modes are switched on/off when called from lisp (bug#44341). (define-minor-mode): Make calls from Lisp switch the mode on/off as documented.
* Fix saving a face setting with CustomizeMauro Aranda2020-11-011-0/+5
| | | | | | * lisp/cus-edit.el (custom-face-save): Make sure we back up into the :shown-value property what the user has edited so far, if we are going to recreate the custom-face widget. (Bug#44331)
* Recover the contents of the schemas.xml fileYasuhiro KIMURA2020-11-011-0/+58
| | | | | | | * etc/schema/schemas.xml: Recover the file, which was apparently (mostly) removed by mistake by commit 165f738382 (bug#42851). Copyright-paperwork-exempt: yes
* Doc string clarification for cl-someLars Ingebrigtsen2020-11-011-2/+5
| | | | | * lisp/emacs-lisp/cl-extra.el (cl-some): Clarify the return value (bug#44330).
* custom-theme-set-variables more resilient against removed librariesLars Ingebrigtsen2020-11-011-1/+4
| | | | | * lisp/custom.el (custom-theme-set-variables): Don't bug out on settings that require a library that has been removed (bug#38843).
* Mention non-ASCII C-c LETTER bindings in the lispref manualLars Ingebrigtsen2020-11-011-2/+3
| | | | | * doc/lispref/tips.texi (Key Binding Conventions): Mention non-ASCII C-c LETTER (bug#15917).
* Mention the C-c LETTER keybinding conventionLars Ingebrigtsen2020-11-011-0/+7
| | | | | * doc/emacs/custom.texi (Keymaps): Reintroduce the text about C-c LETTER (bug#15917), and clarify.
* Trash remote files to local trash (Bug#44216)Michael Albinus2020-11-019-97/+181
| | | | | | | | | | | | | | | | | | | | | | | * doc/misc/tramp.texi (Frequently Asked Questions): Add trashing. * lisp/net/tramp-adb.el (tramp-adb-handle-delete-directory) (tramp-adb-handle-delete-file): * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory) (tramp-gvfs-handle-delete-file): * lisp/net/tramp-sh.el (tramp-sh-handle-delete-directory) (tramp-sh-handle-delete-file): * lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory) (tramp-smb-handle-delete-file): * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-delete-directory) (tramp-sudoedit-handle-delete-file): Implement local trash. (Bug#44216) * lisp/net/tramp-crypt.el (tramp-crypt-handle-delete-directory) (tramp-crypt-handle-delete-file): Do not trash. * lisp/net/tramp.el (tramp-skeleton-delete-directory): New defmacro. * test/lisp/net/tramp-tests.el (tramp-test07-file-exists-p) (tramp-test14-delete-directory): Add trashing.
* * etc/NEWS: Add trashing of remote files. Fix typos.Michael Albinus2020-11-011-33/+38
|
* Fix error message in feedmailLars Ingebrigtsen2020-11-011-1/+1
| | | | | * lisp/mail/feedmail.el (feedmail-buffer-to-smtpmail): Remove superfluous %s in insert string
* Fix a segfault in the new svg codeLars Ingebrigtsen2020-11-011-2/+2
| | | | | * src/image.c (svg_load_image): Don't pass in a NULL for the logical rect, because that will sometimes segfault.
* New variable integer-output-format to print integers as characters (bug#44155)Juri Linkov2020-10-314-2/+66
| | | | | | | | | | | * doc/lispref/streams.texi (Output Variables): Add integer-output-format. * src/print.c (print_object): In case of Lisp_Int, print integers as characters when Vinteger_output_format is Qt, and in hex format when Vinteger_output_format is 16. (Vinteger_output_format): New variable. * test/src/print-tests.el (print-integer-output-format): New test.
* Give the scroll-bar face a non-trivial specMauro Aranda2020-10-311-2/+4
| | | | | | * lisp/faces.el (scroll-bar): Give it a non-trivial spec, so when resetting it to its face-defface-spec, we effectively reset it. (Bug#13476)
* Improve goto-line in regard to narrowed buffers (bug#44294)Juri Linkov2020-10-312-12/+16
| | | | | | | | | * lisp/simple.el (goto-line): Rewrite to first find the position of the line where to go, then later don't widen the buffer when the found position is still inside narrowed part of buffer. * lisp/isearch.el (isearch-message-prefix): Warn about narrowed buffer in case of no more matches found.
* Reimplement commit 46b3db5579e57b9daf16667914205adc99d3f104 (bug#44294)Juri Linkov2020-10-311-9/+6
| | | | | | | | * lisp/progmodes/etags.el (etags-goto-tag-location): Revert change from commit 46b3db5579e57b9daf16667914205adc99d3f104. (xref-location-marker): Use the same change as was made in elisp-mode.el in commit 46b3db5579e57b9daf16667914205adc99d3f104 to widen before going to the found position.
* * test/README: Document TEST_BACKTRACE_LINE_LENGTH.Stefan Kangas2020-10-311-0/+5
|
* ; * etc/NEWS: Tweak the wording for the newly added entryAmin Bandali2020-10-311-1/+1
|
* ; * etc/NEWS: Add entry for my last changeAmin Bandali2020-10-311-0/+6
|
* Replace irc.freenode.net with chat.freenode.netAmin Bandali2020-10-317-20/+22
| | | | | | chat.freenode.net has been the preferred address for connecting to the freenode IRC network for years now. Replace the occurrences of irc.freenode.net with chat.freenode.net.
* Fix eshell glob modifiersMattias Engdegård2020-10-311-13/+13
| | | | | | | | | Modified globbing such as *.txt(W) for all world-writable files ending in .txt apparently never worked correctly. * lisp/eshell/em-pred.el (eshell-predicate-alist): Use correct elisp syntax for octal constants. (eshell-pred-file-mode): Return a boolean, not a number.
* wdired: fix error handling of set-file-modesAndreas Schwab2020-10-311-23/+21
| | | | | | | * lisp/wdired.el (wdired-perms-to-number): Return decimal number. (wdired-do-perm-changes): Handle error from set-file-modes. (wdired-finish-edit): Remove `rename' from error message. (Bug#44343)
* * etc/HELLO: Enlarge tab-width to account for "tofu".Eli Zaretskii2020-10-311-1/+1
|
* 'assoc' is not side-effect-free; constprop its pure subsetMattias Engdegård2020-10-312-7/+14
| | | | | | | | | | | Since a supplied test function can do anything, assoc is not side-effect-free (bug#44018). However, with only two arguments it is pure and should be optimised accordingly. * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Remove 'assoc'. (byte-optimize-assoc): Constant-propagate through 2-arg assoc calls. * test/lisp/emacs-lisp/bytecomp-tests.el (byte-opt-testsuite-arith-data): Add test cases.
* Improve support for displaying Javanese scriptEli Zaretskii2020-10-312-1/+3
| | | | | | | | | * lisp/international/fontset.el (setup-default-fontset) (script-representative-chars): Add Javanese entries. * etc/HELLO: Fix the Javanese text. See https://omniglot.com/language/phrases/javanese.php for the source.
* * src/xdisp.c (syms_of_xdisp) <"scroll-minibuffer-conservatively">: New varStefan Monnier2020-10-315-29/+72
| | | | | | | | | | | | Fix bug#44070, which causes the minibuffer display to jump upon minor edit (redisplay_window): Obey it. * lisp/simple.el (end-of-buffer): Obey it. * test/src/xdisp-tests.el (xdisp-tests--in-minibuffer): New macro, extracted from `xdisp-tests--minibuffer-resizing`. (xdisp-tests--minibuffer-resizing): Use it. (xdisp-tests--minibuffer-scroll): New test.
* Trim and explain set of safe forms for 'unsafep' (bug#44018)Mattias Engdegård2020-10-313-4/+45
| | | | | | | | | | | | | | | * lisp/emacs-lisp/unsafep.el: Add comment explaining the policy for which forms can be considered 'safe' in the sense of unsafep. Remove ones that didn't make the cut: play-sound-file (large attack surface) catch, throw (alter program flow, inject data) replace-regexp-in-string (execute arbitary code) error, signal (deceptive messages) * test/lisp/emacs-lisp/unsafep-tests.el (unsafep-tests--unsafe): Add test cases. * etc/NEWS: Announce the change.
* Parse GDB/MI results directly instead of going via JSON (bug#44173)Mattias Engdegård2020-10-312-142/+220
| | | | | | | | | | | | | | | | | | | | | | | Translating GDB/MI into JSON is an unnecessary and fragile detour that made it hard to deal with octal escapes in strings correctly. Parse GDB/MI directly instead. * lisp/progmodes/gdb-mi.el (gdb-mi-decode-strings): Adjust doc string. (gdb-mi-decode, gud-gdbmi-marker-filter): Remove gdb-mi-decode. (gdb-jsonify-buffer): Remove. (gdb-mi--parse-tuple-or-list, gdb-mi--parse-c-string) (gdb-mi--parse-value, gdb-mi--parse-result-or-value) (gdb-mi--parse-results, gdb-mi--fix-key, gdb-mi--extend-fullname) (gdb-mi--c-string-from-string): New functions. (gdb-json-read-buffer, gdb-json-string, gdb-json-partial-output): Rename to gdb-mi--read-buffer, gdb-mi--from-string and gdb-mi--partial-output respectively. Remove useless FIX-LIST argument. FIX-KEY is now a symbol, not a string. All callers updated. (gdb-tooltip-print, gdbmi-bnf-log-stream-output, gdb-internals) (gdb-console, gdb-done-or-error, gdb-get-source-file-list) (gdb-get-prompt, gdb-get-source-file): Use gdb-mi--c-string-from-string instead of 'read'. * test/lisp/progmodes/gdb-mi-tests.el: New file.
* * etc/HELLO: Add Egyptian Hieroglyphs.Eli Zaretskii2020-10-311-1/+3
|
* Support prettified display of fractional numbersEli Zaretskii2020-10-311-1/+12
| | | | | | * lisp/composite.el (composition-function-table): Define an entry for U+2044 FRACTION SLASH, for prettier display of fractional numbers.
* Check also for "DragonFly" remote systems in TrampMichael Albinus2020-10-311-3/+3
| | | | | * lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell): Check also for "DragonFly".
* Speed up ls-lispEli Zaretskii2020-10-311-2/+7
| | | | | | | | This speeds up Dired by 25% in large directories. * lisp/ls-lisp.el (ls-lisp--time-locale): New defvar. (ls-lisp-format-time): calculate the locale for formatting times only once and cache the value in 'ls-lisp--time-locale'. (Bug#44273)
* * doc/lispref/commands.texi (Key Sequence Input): Fix indexing.Eli Zaretskii2020-10-311-14/+14
|
* Updating docs with all special window prefix keys.Jared Finder2020-10-311-5/+13
| | | | | * doc/lispref/commands.texi (Key Sequence Input): Add documentation for missing special window areas. Explicitly call out window or frame.
* Fix unit tests broken by changes to xt-mouse.elJared Finder2020-10-311-4/+4
| | | | | * test/lisp/xt-mouse-tests.el (xt-mouse-tracking-basic) (xt-mouse-tracking-utf-8): Update expected escape sequence.
* Revert "Temporarily mark two failing tests"Eli Zaretskii2020-10-311-2/+0
| | | | | This reverts commit a8426f46726d94cdf21c0e6b3c85c0afe0064784. A proper fix for the test is about to be installed shortly.
* Make hideshow.el work with Mhtml modeThien-Thi Nguyen2020-10-302-1/+16
| | | | | | | | | Suggested by Ian Williams <norbekian9@gmail.com>. * lisp/textmodes/mhtml-mode.el: Require ‘pcase’ when compiling. (mhtml-forward): New func. * lisp/progmodes/hideshow.el (hs-special-modes-alist): Add entry for ‘mhtml-mode’.
* Shoosh byte-compilation warning in lisp/emacs-lisp/eldoc.elJoão Távora2020-10-301-2/+3
| | | | | | | | | | Per bug#43609, elisp-eldoc-documentation-function is again in master, but since it's now officially obsoleted, this backward compatibility shim in eldoc--eval-expression-setup shouldn't unnecessarily trigger warnings in master's code. * lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): Shoosh by-compilation warning.
* Don't make ElDoc doc buffer visible in buffer list by defaultJoão Távora2020-10-301-18/+30
| | | | | | | | | | Fixes: bug#44334 * lisp/emacs-lisp/eldoc.el (eldoc-doc-buffer): No longer take INTERACTIVE arg. Show buffer if invisible. (eldoc--format-doc-buffer): Don't change buffer visibility. (eldoc-display-in-buffer): Show buffer if invisible if by calling eldoc-doc-buffer.
* Bring back elisp-eldoc-documentation-function, marked obsoleteJoão Távora2020-10-301-0/+24
| | | | | | | | | | | | | Fixes: bug#43609 It's not useful for ElDoc's eldoc-mode mechanism in Elisp, and nothing in Emacs uses it, but it wasn't strictly marked internal, so it's best to bring it back. * lisp/progmodes/elisp-mode.el (elisp--documentation-one-liner): New helper. (elisp-eldoc-documentation-function): New function, with obsoletion warning.
* * lisp/simple.el (blink-matching-open): Fix bug#37127Stefan Monnier2020-10-303-24/+24
| | | | | | | | | | | Don't call `syntax-propertize` from within narrowing * lisp/progmodes/cperl-mode.el (cperl-forward-re): Revert last patch, since it is now redundant. * test/lisp/progmodes/cperl-mode-tests.el (cperl-bug37127): Remove unused var; fix test so it really catches the previous bug; tweak the code to use mode-agnostic commands so it also works in `perl-mode`.
* Fix Bug#44289Michael Albinus2020-10-301-1/+5
| | | | | * lisp/files.el (directory-listing-before-filename-regexp): Support DD-MMM-YYYY format. (Bug#44289)
* Tweak previous python-mode region fixLars Ingebrigtsen2020-10-301-1/+12
| | | | | | * lisp/progmodes/python.el (python-shell-buffer-substring): Tweak the previous fix for bug#39398 to behave somewhat more like it used to.
* Revert "Adjust python tests after fix for bug#39398"Lars Ingebrigtsen2020-10-301-3/+3
| | | | | | This reverts commit c6fb23873a594b6a4fc57fa107869a2e82159d07. The code is tweaked to be more backwards-compatible.
* Fix copying symbolic links in eshellLars Ingebrigtsen2020-10-301-1/+4
| | | | | * lisp/eshell/em-unix.el (eshell-shuffle-files): Don't bug out when copying symbolic links (bug#38577).
* ; Fix typo in my last commitStefan Kangas2020-10-301-1/+1
| | | | | * test/lisp/emacs-lisp/text-property-search-tests.el (text-property-search--pos-test): Fix typo.
* Add a new command to regenerate a hunk in diff-modeDima Kogan2020-10-303-8/+36
| | | | | * lisp/vc/diff-mode.el (diff-refresh-hunk): New function (bug#44312). (diff-mode-map): Bind C-c C-l.
* Fix fontifying of ::= in MakefilesLars Ingebrigtsen2020-10-301-1/+3
| | | | | | * lisp/progmodes/make-mode.el (makefile-match-dependency): Don't fontify the POSIX immediate assignment operator ::= as a dependency (bug#44319).