]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years ago; * lisp/pcomplete.el: Fix typo.
Stefan Kangas [Tue, 3 Nov 2020 01:04:22 +0000 (02:04 +0100)]
; * lisp/pcomplete.el: Fix typo.

4 years agoFix exiting the finder-commentary buffer
Stefan Kangas [Tue, 3 Nov 2020 00:35:01 +0000 (01:35 +0100)]
Fix exiting the finder-commentary buffer

* lisp/finder.el (finder-exit): Fix exiting the finder-commentary
buffer.  (Bug#44384)
(finder-buffer): New defconst.
(finder-list-keywords): Use above new defconst.

4 years agocperl-mode: Skip a test for older Emacsen (preparing for ELPA)
Harald Jörg [Mon, 2 Nov 2020 22:44:58 +0000 (23:44 +0100)]
cperl-mode: Skip a test for older Emacsen (preparing for ELPA)

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug37127):
Skip this test for older Emacsen.  The bug has been fixed
in Emacs, but outside of CPerl mode, and therefore will not
be available for older versions via ELPA.

4 years agoImprove ert-resource-directory docstring
Stefan Kangas [Mon, 2 Nov 2020 18:06:46 +0000 (19:06 +0100)]
Improve ert-resource-directory docstring

* lisp/emacs-lisp/ert-x.el (ert-resource-directory): Improve
docstring.

4 years agoFix previous patch to ispell.el
Reuben Thomas [Mon, 2 Nov 2020 22:10:56 +0000 (22:10 +0000)]
Fix previous patch to ispell.el

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod):
with-current-buffer and with-output-to-string need to be the other
way around.

4 years agoFix previous code change to `ispell--call-enchant-lsmod'
Reuben Thomas [Mon, 2 Nov 2020 21:37:46 +0000 (21:37 +0000)]
Fix previous code change to `ispell--call-enchant-lsmod'

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Restore the
use of with-current-buffer, to avoid enchant-lsmod’s output being
dumped into the current buffer.

4 years agoExplain last change
Eli Zaretskii [Mon, 2 Nov 2020 19:47:18 +0000 (21:47 +0200)]
Explain last change

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Explain
the workaround with discarding stderr.  (Bug#44318)

4 years agoMake ispell.el ignore warnings from enchant-lsmod (closes #44318)
Reuben Thomas [Mon, 2 Nov 2020 18:06:11 +0000 (18:06 +0000)]
Make ispell.el ignore warnings from enchant-lsmod (closes #44318)

* lisp/textmodes/ispell.el (ispell--call-enchant-lsmod): Don’t capture
  stderr. Also remove unnecessary with-current-buffer wrapper.

4 years agoAdd missing argument to directory_files_internal calls
Mattias Engdegård [Mon, 2 Nov 2020 17:54:14 +0000 (18:54 +0100)]
Add missing argument to directory_files_internal calls

* src/kqueue.c (kqueue_compare_dir_list, Fkqueue_add_watch):
Pass the new seventh argument.

4 years agoFix a recent change in dired.c
Eli Zaretskii [Mon, 2 Nov 2020 17:55:48 +0000 (19:55 +0200)]
Fix a recent change in dired.c

* src/dired.c (directory_files_internal): Fix type of integer
variables to avoid overflow in 32-bit builds --with-wide-int.

4 years agoImprove documentation of a recent commit
Eli Zaretskii [Mon, 2 Nov 2020 17:49:32 +0000 (19:49 +0200)]
Improve documentation of a recent commit

* lisp/international/mule-cmds.el (transient-input-method): Doc
fix.  Add :version tag.
(transient-input-method): Doc fix.

* etc/NEWS:
* doc/emacs/mule.texi (Select Input Method): Fix wording of the
last change.

4 years ago; Merge from origin/emacs-27
Glenn Morris [Mon, 2 Nov 2020 17:27:41 +0000 (09:27 -0800)]
; Merge from origin/emacs-27

The following commit was skipped:

cd69a50648 (origin/emacs-27) Recover the contents of the schemas.xml ...

4 years agoMerge from origin/emacs-27
Glenn Morris [Mon, 2 Nov 2020 17:27:40 +0000 (09:27 -0800)]
Merge from origin/emacs-27

4e6104ea0b ; * src/xdisp.c (display_string): Fix a typo in a comment.
7162228815 Improve indexing of check-declare
d218b28ab5 ; * lisp/autoinsert.el (auto-insert-alist): Fix texinfo URL.

4 years ago; Merge from origin/emacs-27
Glenn Morris [Mon, 2 Nov 2020 17:27:40 +0000 (09:27 -0800)]
; Merge from origin/emacs-27

The following commits were skipped:

4de7daa1b9 (emacs-27) ; Auto-commit of loaddefs files.
0c01381423 * doc/lispref/commands.texi (Key Sequence Input): Fix inde...
487aae38d4 Updating docs with all special window prefix keys.

4 years agoMerge from origin/emacs-27
Glenn Morris [Mon, 2 Nov 2020 17:27:40 +0000 (09:27 -0800)]
Merge from origin/emacs-27

1fc9de4b81 Improve reproducibility of generated -pkg.el files
da6234e2df Make sure pixel sizes are zero when setting window size fo...
2d15296db1 Fix failure of 'emacs --daemon' on Cygwin
8abce5b0c6 CC Mode: Only recognize foo (*bar) as a function pointer w...
85d1d8d768 Fix NEWS entry for fix of Bug#44080
2443b15a91 * src/buffer.c (syms_of_buffer) <fill-column>: Improve doc...

# Conflicts:
# etc/NEWS

4 years agoFix some glitches in recent directory-files-* changes
Michael Albinus [Mon, 2 Nov 2020 16:56:06 +0000 (17:56 +0100)]
Fix some glitches in recent directory-files-* changes

* doc/lispref/files.texi (Contents of Directories):
Fix description of directory-files, directory-empty-p and
directory-files-and-attributes.

* etc/NEWS: Fix entry for directory-files-and-attributes.  Fix typos.

* lisp/dired.el (directory-empty-p): Move function from here ...

* lisp/files.el (directory-empty-p): ... to here.

* lisp/net/ange-ftp.el (ange-ftp-directory-files): Call `nreverse' later.

* lisp/net/tramp.el (tramp-handle-directory-files):
* lisp/net/tramp-adb.el
(tramp-adb-handle-directory-files-and-attributes): Do not call
`nreverse'.

* src/dired.c (Fdirectory_files)
(Fdirectory_files_and_attributes): Fix docstrings.

* test/src/dired-tests.el: Removed.  Tests moved to
test/lisp/dired-tests.el.

* test/lisp/dired-tests.el (dired-test-bug27899): Tag it :unstable.
(dired-test-directory-files)
(dired-test-directory-files-and-attributes): New tests.

4 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs into master
Michael Albinus [Mon, 2 Nov 2020 16:53:00 +0000 (17:53 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into master

4 years agoFix Elisp's elisp--documentation-one-liner (bug#43609)
João Távora [Mon, 2 Nov 2020 16:24:59 +0000 (16:24 +0000)]
Fix Elisp's elisp--documentation-one-liner (bug#43609)

To be backward compatible, this function must return nil when there is
a symbol at point but no documentation for it.  Before this fixed it
returned the string "<symbol-name>: nil".

* lisp/progmodes/elisp-mode.el (elisp--documentation-one-liner):
Check callback actually produced non-nil doc.

4 years agoFix mouse-1 on [Show] buttons in the *Help* buffer
Lars Ingebrigtsen [Mon, 2 Nov 2020 15:53:57 +0000 (16:53 +0100)]
Fix mouse-1 on [Show] buttons in the *Help* buffer

* lisp/descr-text.el (describe-text-sexp): Add a `follow-link' so
that the [Show] buttons work correctly with mouse-1 (bug#44340).

4 years agoRecover the contents of the schemas.xml file
Yasuhiro KIMURA [Sun, 1 Nov 2020 13:01:31 +0000 (14:01 +0100)]
Recover the contents of the schemas.xml file

* etc/schema/schemas.xml: Recover the file, which was apparently
(mostly) removed by mistake by commit 165f738382 (bug#42851).

Copyright-paperwork-exempt: yes

4 years agoAdd directory-empty-p and new argument COUNT for directory-files-*
Arthur Miller [Mon, 2 Nov 2020 11:38:27 +0000 (12:38 +0100)]
Add directory-empty-p and new argument COUNT for directory-files-*

* doc/lispref/files.texi (Contents of Directories): Mention COUNT
argument of directory-files.  Add directory-empty-p.

* etc/NEWS: Mention directory-empty-p and directory-files changes.

* lisp/dired.el (directory-empty-p): New defun.

* lisp/net/ange-ftp.el (ange-ftp-directory-files)
(ange-ftp-directory-files-and-attributes):
* lisp/net/tramp.el (tramp-handle-directory-files)
(tramp-handle-directory-files-and-attributes):
* lisp/net/tramp-adb.el
(tramp-adb-handle-directory-files-and-attributes):
* lisp/net/tramp-rclone.el (tramp-rclone-handle-directory-files):
* lisp/net/tramp-sh.el (tramp-sh-handle-directory-files-and-attributes):
* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Add new COUNT
argument.

* src/dired.c (directory_files_internal): Implement new
RETURN_COUNT argument.
(Fdirectory_files, Fdirectory_files_and_attributes): Add new COUNT
argument.

* src/lisp.h (directory_files_internal): Add RETURN_COUNT to declaration.

* src/sysdep.c (list_system_processes): Add Qnil to
directory_files_internal call.

* test/src/dired-tests.el (directory-files-and-attributes-tests):
New file.

4 years agoPartially revert previous define-minor-mode change
Lars Ingebrigtsen [Mon, 2 Nov 2020 09:17:08 +0000 (10:17 +0100)]
Partially revert previous define-minor-mode change

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring):
Only document the values we want to support, not the ones we
actually support.
(define-minor-mode): Partially revert to previous behaviour.

4 years agoFix mistake in Lisp conversion of describe-map-tree
Stefan Kangas [Sun, 1 Nov 2020 21:49:12 +0000 (22:49 +0100)]
Fix mistake in Lisp conversion of describe-map-tree

* lisp/help.el (describe-map-tree): Fix mistake in conversion to Lisp
from the C function describe_map_tree; make the condition match the
now removed C code.  (Bug#44360)

4 years agoTransient input methods bound to 'C-x \' (bug#44266)
Juri Linkov [Sun, 1 Nov 2020 21:35:41 +0000 (23:35 +0200)]
Transient input methods bound to 'C-x \' (bug#44266)

* lisp/international/mule-cmds.el (ctl-x-map): Bind 'C-x \' to
'transient-input-method'.
(input-method-function): New defcustom.
(transient-input-method): New command.

* doc/emacs/mule.texi (Select Input Method): Document transient-input-method.

4 years ago* lisp/leim/quail/compose.el: New input method (bug#44267).
Juri Linkov [Sun, 1 Nov 2020 21:25:10 +0000 (23:25 +0200)]
* lisp/leim/quail/compose.el: New input method (bug#44267).

4 years agoShow nobreak-space face for more blank characters in describe-char.
Juri Linkov [Sun, 1 Nov 2020 21:20:53 +0000 (23:20 +0200)]
Show nobreak-space face for more blank characters in describe-char.

* lisp/descr-text.el (describe-char): Handle more non-ASCII whitespace
characters added in f018cffca0098ad1b82c51730a6d6cf146e3c488 (bug#44236)

4 years ago; * src/xdisp.c (display_string): Fix a typo in a comment.
Eli Zaretskii [Sun, 1 Nov 2020 19:49:35 +0000 (21:49 +0200)]
; * src/xdisp.c (display_string): Fix a typo in a comment.

4 years agoImprove indexing of check-declare
Stefan Kangas [Sun, 1 Nov 2020 18:29:47 +0000 (19:29 +0100)]
Improve indexing of check-declare

* doc/lispref/functions.texi (Declaring Functions): Improve indexing.

4 years ago; * lisp/autoinsert.el (auto-insert-alist): Fix texinfo URL.
Stefan Kangas [Sun, 1 Nov 2020 18:08:21 +0000 (19:08 +0100)]
; * lisp/autoinsert.el (auto-insert-alist): Fix texinfo URL.

The old texinfo domain seems to no longer be controlled by the GNU
project, starting at least as early as 2012.  See also:
https://web.archive.org/web/20120410044746/http://www.texinfo.org/

4 years agoDon't auto-insert "@c file ends here" in .texi files
Stefan Kangas [Sun, 1 Nov 2020 17:52:23 +0000 (18:52 +0100)]
Don't auto-insert "@c file ends here" in .texi files

* lisp/autoinsert.el (auto-insert-alist): Don't insert "@c file ends
here" at the end of new .texi files.

4 years agoDon't bind standard-output in substitute-command-keys
Stefan Kangas [Sun, 1 Nov 2020 15:31:12 +0000 (16:31 +0100)]
Don't bind standard-output in substitute-command-keys

This fixes a regression with regards to the old C version of
substitute-command-keys.

* lisp/help.el (substitute-command-keys): Don't bind standard-output.
See Bug#39149.
* test/lisp/help-tests.el
(help-tests--was-in-buffer): New variable.
(help-substitute-command-keys/menu-filter-in-correct-buffer): New
test.

4 years ago* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Doc typo.
Glenn Morris [Sun, 1 Nov 2020 17:39:44 +0000 (09:39 -0800)]
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Doc typo.

4 years agoAdd missing side-effect-free and error-free properties
Mattias Engdegård [Sun, 1 Nov 2020 14:57:12 +0000 (15:57 +0100)]
Add missing side-effect-free and error-free properties

Any function that is pure is also side-effect-free and some are also
error-free.  Right now these have to be declared separately.

* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add
bool-vector-count-consecutive, bool-vector-count-population,
bool-vector-subsetp, copysign, isnan, lax-plist-get, ldexp, memql,
regexp-opt and string-to-syntax.
(side-effect-and-error-free-fns): Add type-of.
* lisp/subr.el (kbd, string-replace): Declare side-effect-free.

4 years ago* lisp/emacs-lisp/byte-opt.el (pure-fns): Fix typos.
Mattias Engdegård [Sun, 1 Nov 2020 14:01:31 +0000 (15:01 +0100)]
* lisp/emacs-lisp/byte-opt.el (pure-fns): Fix typos.

4 years agoInsert describe-map-tree header into original buffer
Stefan Kangas [Sun, 1 Nov 2020 14:27:17 +0000 (15:27 +0100)]
Insert describe-map-tree header into original buffer

* 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

4 years ago; * doc/emacs/custom.texi (Keymaps): Fix typo.
Basil L. Contovounesios [Sun, 1 Nov 2020 14:46:22 +0000 (14:46 +0000)]
; * doc/emacs/custom.texi (Keymaps): Fix typo.

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Nov 2020 14:28:38 +0000 (06:28 -0800)]
; Auto-commit of loaddefs files.

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Nov 2020 14:12:09 +0000 (06:12 -0800)]
; Auto-commit of loaddefs files.

4 years agoMake minor mode ARG work as documented
Lars Ingebrigtsen [Sun, 1 Nov 2020 14:00:36 +0000 (15:00 +0100)]
Make minor mode ARG work as documented

* 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.

4 years agoFix saving a face setting with Customize
Mauro Aranda [Sun, 1 Nov 2020 13:10:08 +0000 (10:10 -0300)]
Fix saving a face setting with Customize

* 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)

4 years agoRecover the contents of the schemas.xml file
Yasuhiro KIMURA [Sun, 1 Nov 2020 13:01:31 +0000 (14:01 +0100)]
Recover the contents of the schemas.xml file

* etc/schema/schemas.xml: Recover the file, which was apparently
(mostly) removed by mistake by commit 165f738382 (bug#42851).

Copyright-paperwork-exempt: yes

4 years agoDoc string clarification for cl-some
Lars Ingebrigtsen [Sun, 1 Nov 2020 12:55:29 +0000 (13:55 +0100)]
Doc string clarification for cl-some

* lisp/emacs-lisp/cl-extra.el (cl-some): Clarify the return value
(bug#44330).

4 years agocustom-theme-set-variables more resilient against removed libraries
Lars Ingebrigtsen [Sun, 1 Nov 2020 12:14:41 +0000 (13:14 +0100)]
custom-theme-set-variables more resilient against removed libraries

* lisp/custom.el (custom-theme-set-variables): Don't bug out on
  settings that require a library that has been removed (bug#38843).

4 years agoMention non-ASCII C-c LETTER bindings in the lispref manual
Lars Ingebrigtsen [Sun, 1 Nov 2020 11:51:17 +0000 (12:51 +0100)]
Mention non-ASCII C-c LETTER bindings in the lispref manual

* doc/lispref/tips.texi (Key Binding Conventions): Mention
non-ASCII C-c LETTER (bug#15917).

4 years agoMention the C-c LETTER keybinding convention
Lars Ingebrigtsen [Sun, 1 Nov 2020 11:48:34 +0000 (12:48 +0100)]
Mention the C-c LETTER keybinding convention

* doc/emacs/custom.texi (Keymaps): Reintroduce the text about C-c
LETTER (bug#15917), and clarify.

4 years agoTrash remote files to local trash (Bug#44216)
Michael Albinus [Sun, 1 Nov 2020 11:42:29 +0000 (12:42 +0100)]
Trash remote files to local trash  (Bug#44216)

* 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.

4 years ago* etc/NEWS: Add trashing of remote files. Fix typos.
Michael Albinus [Sun, 1 Nov 2020 11:40:30 +0000 (12:40 +0100)]
* etc/NEWS: Add trashing of remote files.  Fix typos.

4 years agoFix error message in feedmail
Lars Ingebrigtsen [Sun, 1 Nov 2020 11:21:05 +0000 (12:21 +0100)]
Fix error message in feedmail

* lisp/mail/feedmail.el (feedmail-buffer-to-smtpmail): Remove
superfluous %s in insert string

4 years agoFix a segfault in the new svg code
Lars Ingebrigtsen [Sat, 31 Oct 2020 23:10:21 +0000 (00:10 +0100)]
Fix a segfault in the new svg code

* src/image.c (svg_load_image): Don't pass in a NULL for the
logical rect, because that will sometimes segfault.

4 years agoNew variable integer-output-format to print integers as characters (bug#44155)
Juri Linkov [Sat, 31 Oct 2020 20:11:02 +0000 (22:11 +0200)]
New variable integer-output-format to print integers as characters (bug#44155)

* 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.

4 years agoGive the scroll-bar face a non-trivial spec
Mauro Aranda [Fri, 30 Oct 2020 14:13:34 +0000 (11:13 -0300)]
Give the scroll-bar face a non-trivial spec

* 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)

4 years agoImprove goto-line in regard to narrowed buffers (bug#44294)
Juri Linkov [Sat, 31 Oct 2020 19:38:26 +0000 (21:38 +0200)]
Improve goto-line in regard to narrowed buffers (bug#44294)

* 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.

4 years agoReimplement commit 46b3db5579e57b9daf16667914205adc99d3f104 (bug#44294)
Juri Linkov [Sat, 31 Oct 2020 19:33:33 +0000 (21:33 +0200)]
Reimplement commit 46b3db5579e57b9daf16667914205adc99d3f104 (bug#44294)

* 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.

4 years ago* test/README: Document TEST_BACKTRACE_LINE_LENGTH.
Stefan Kangas [Sat, 31 Oct 2020 19:26:54 +0000 (20:26 +0100)]
* test/README: Document TEST_BACKTRACE_LINE_LENGTH.

4 years ago; * etc/NEWS: Tweak the wording for the newly added entry
Amin Bandali [Sat, 31 Oct 2020 18:39:36 +0000 (14:39 -0400)]
; * etc/NEWS: Tweak the wording for the newly added entry

4 years ago; * etc/NEWS: Add entry for my last change
Amin Bandali [Sat, 31 Oct 2020 18:29:13 +0000 (14:29 -0400)]
; * etc/NEWS: Add entry for my last change

4 years agoReplace irc.freenode.net with chat.freenode.net
Amin Bandali [Sat, 31 Oct 2020 18:07:11 +0000 (14:07 -0400)]
Replace irc.freenode.net with chat.freenode.net

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.

4 years agoFix eshell glob modifiers
Mattias Engdegård [Sat, 31 Oct 2020 16:19:44 +0000 (17:19 +0100)]
Fix eshell glob modifiers

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.

4 years agowdired: fix error handling of set-file-modes
Andreas Schwab [Sat, 31 Oct 2020 15:30:04 +0000 (16:30 +0100)]
wdired: fix error handling of set-file-modes

* 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)

4 years ago* etc/HELLO: Enlarge tab-width to account for "tofu".
Eli Zaretskii [Sat, 31 Oct 2020 14:05:03 +0000 (16:05 +0200)]
* etc/HELLO: Enlarge tab-width to account for "tofu".

4 years ago'assoc' is not side-effect-free; constprop its pure subset
Mattias Engdegård [Sat, 31 Oct 2020 13:16:25 +0000 (14:16 +0100)]
'assoc' is not side-effect-free; constprop its pure subset

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.

4 years agoImprove support for displaying Javanese script
Eli Zaretskii [Sat, 31 Oct 2020 13:20:18 +0000 (15:20 +0200)]
Improve support for displaying Javanese script

* 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.

4 years ago* src/xdisp.c (syms_of_xdisp) <"scroll-minibuffer-conservatively">: New var
Stefan Monnier [Sat, 31 Oct 2020 13:07:53 +0000 (09:07 -0400)]
* src/xdisp.c (syms_of_xdisp) <"scroll-minibuffer-conservatively">: New var

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.

4 years agoTrim and explain set of safe forms for 'unsafep' (bug#44018)
Mattias Engdegård [Sat, 31 Oct 2020 10:35:06 +0000 (11:35 +0100)]
Trim and explain set of safe forms for 'unsafep' (bug#44018)

* 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.

4 years agoParse GDB/MI results directly instead of going via JSON (bug#44173)
Mattias Engdegård [Sun, 25 Oct 2020 11:40:36 +0000 (12:40 +0100)]
Parse GDB/MI results directly instead of going via JSON (bug#44173)

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.

4 years ago* etc/HELLO: Add Egyptian Hieroglyphs.
Eli Zaretskii [Sat, 31 Oct 2020 11:02:52 +0000 (13:02 +0200)]
* etc/HELLO: Add Egyptian Hieroglyphs.

4 years agoSupport prettified display of fractional numbers
Eli Zaretskii [Sat, 31 Oct 2020 10:40:25 +0000 (12:40 +0200)]
Support prettified display of fractional numbers

* lisp/composite.el (composition-function-table): Define an entry
for U+2044 FRACTION SLASH, for prettier display of fractional
numbers.

4 years agoCheck also for "DragonFly" remote systems in Tramp
Michael Albinus [Sat, 31 Oct 2020 10:29:06 +0000 (11:29 +0100)]
Check also for "DragonFly" remote systems in Tramp

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Check also for "DragonFly".

4 years agoSpeed up ls-lisp
Eli Zaretskii [Sat, 31 Oct 2020 09:41:53 +0000 (11:41 +0200)]
Speed up ls-lisp

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)

4 years ago* doc/lispref/commands.texi (Key Sequence Input): Fix indexing.
Eli Zaretskii [Sat, 31 Oct 2020 08:01:44 +0000 (10:01 +0200)]
* doc/lispref/commands.texi (Key Sequence Input): Fix indexing.

(cherry picked from commit 41c4f337c8f798d4700dcd13b73ad4ccdb3257eb)

4 years agoUpdating docs with all special window prefix keys.
Jared Finder [Sun, 4 Oct 2020 07:01:23 +0000 (00:01 -0700)]
Updating docs with all special window prefix keys.

* doc/lispref/commands.texi (Key Sequence Input): Add documentation for
missing special window areas.  Explicitly call out window or frame.

(cherry picked from commit a105db13e11fd15cc72804bf33672122d1c3f2e1)

4 years ago* doc/lispref/commands.texi (Key Sequence Input): Fix indexing.
Eli Zaretskii [Sat, 31 Oct 2020 08:01:44 +0000 (10:01 +0200)]
* doc/lispref/commands.texi (Key Sequence Input): Fix indexing.

4 years agoUpdating docs with all special window prefix keys.
Jared Finder [Sun, 4 Oct 2020 07:01:23 +0000 (00:01 -0700)]
Updating docs with all special window prefix keys.

* doc/lispref/commands.texi (Key Sequence Input): Add documentation for
missing special window areas.  Explicitly call out window or frame.

4 years agoFix unit tests broken by changes to xt-mouse.el
Jared Finder [Sat, 24 Oct 2020 15:25:06 +0000 (08:25 -0700)]
Fix unit tests broken by changes to xt-mouse.el

* test/lisp/xt-mouse-tests.el (xt-mouse-tracking-basic)
(xt-mouse-tracking-utf-8): Update expected escape sequence.

4 years agoRevert "Temporarily mark two failing tests"
Eli Zaretskii [Sat, 31 Oct 2020 07:56:14 +0000 (09:56 +0200)]
Revert "Temporarily mark two failing tests"

This reverts commit a8426f46726d94cdf21c0e6b3c85c0afe0064784.
A proper fix for the test is about to be installed shortly.

4 years agoMake hideshow.el work with Mhtml mode
Thien-Thi Nguyen [Sat, 31 Oct 2020 02:40:11 +0000 (22:40 -0400)]
Make hideshow.el work with Mhtml mode

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’.

4 years agoImprove reproducibility of generated -pkg.el files
Glenn Morris [Sat, 31 Oct 2020 02:20:24 +0000 (19:20 -0700)]
Improve reproducibility of generated -pkg.el files

* lisp/emacs-lisp/package.el (package-generate-description-file):
Don't include the full name of the source file in the header,
since that varies non-reproducibly according to the build directory.
https://bugs.debian.org/972861
Note that elpa.gnu.org's admin/archive-contents.el does this by hand
and already only includes the nondirectory part.

4 years agoShoosh byte-compilation warning in lisp/emacs-lisp/eldoc.el
João Távora [Fri, 30 Oct 2020 22:09:36 +0000 (22:09 +0000)]
Shoosh byte-compilation warning in lisp/emacs-lisp/eldoc.el

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.

4 years agoDon't make ElDoc doc buffer visible in buffer list by default
João Távora [Fri, 30 Oct 2020 21:47:44 +0000 (21:47 +0000)]
Don't make ElDoc doc buffer visible in buffer list by default

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.

4 years agoBring back elisp-eldoc-documentation-function, marked obsolete
João Távora [Fri, 30 Oct 2020 18:43:20 +0000 (18:43 +0000)]
Bring back elisp-eldoc-documentation-function, marked obsolete

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.

4 years ago* lisp/simple.el (blink-matching-open): Fix bug#37127
Stefan Monnier [Fri, 30 Oct 2020 22:10:06 +0000 (18:10 -0400)]
* lisp/simple.el (blink-matching-open): Fix bug#37127

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`.

4 years agoFix Bug#44289
Michael Albinus [Fri, 30 Oct 2020 19:40:49 +0000 (20:40 +0100)]
Fix Bug#44289

* lisp/files.el (directory-listing-before-filename-regexp):
Support DD-MMM-YYYY format.  (Bug#44289)

4 years agoTweak previous python-mode region fix
Lars Ingebrigtsen [Fri, 30 Oct 2020 15:15:42 +0000 (16:15 +0100)]
Tweak previous python-mode region fix

* lisp/progmodes/python.el (python-shell-buffer-substring): Tweak
the previous fix for bug#39398 to behave somewhat more like it
used to.

4 years agoRevert "Adjust python tests after fix for bug#39398"
Lars Ingebrigtsen [Fri, 30 Oct 2020 15:10:57 +0000 (16:10 +0100)]
Revert "Adjust python tests after fix for bug#39398"

This reverts commit c6fb23873a594b6a4fc57fa107869a2e82159d07.

The code is tweaked to be more backwards-compatible.

4 years agoFix copying symbolic links in eshell
Lars Ingebrigtsen [Fri, 30 Oct 2020 15:07:21 +0000 (16:07 +0100)]
Fix copying symbolic links in eshell

* lisp/eshell/em-unix.el (eshell-shuffle-files): Don't bug out
when copying symbolic links (bug#38577).

4 years ago; Fix typo in my last commit
Stefan Kangas [Fri, 30 Oct 2020 13:15:45 +0000 (14:15 +0100)]
; Fix typo in my last commit

* test/lisp/emacs-lisp/text-property-search-tests.el
(text-property-search--pos-test): Fix typo.

4 years agoAdd a new command to regenerate a hunk in diff-mode
Dima Kogan [Fri, 30 Oct 2020 13:04:06 +0000 (14:04 +0100)]
Add a new command to regenerate a hunk in diff-mode

* lisp/vc/diff-mode.el (diff-refresh-hunk): New function (bug#44312).
(diff-mode-map): Bind C-c C-l.

4 years agoFix fontifying of ::= in Makefiles
Lars Ingebrigtsen [Fri, 30 Oct 2020 12:50:49 +0000 (13:50 +0100)]
Fix fontifying of ::= in Makefiles

* lisp/progmodes/make-mode.el (makefile-match-dependency): Don't
fontify the POSIX immediate assignment operator ::= as a
dependency (bug#44319).

4 years agoSuppress a misleading message when closing a paren in a regex
Harald Jörg [Fri, 30 Oct 2020 12:23:52 +0000 (13:23 +0100)]
Suppress a misleading message when closing a paren in a regex

* lisp/progmodes/cperl-mode.el (cperl-forward-re): Suppress an
error message about "End of string/RE not found" when we are
at the end of a narrowed buffer where the end of a RE is
temporarily unavailable (Bug#37127).

* test/lisp/progmodes/cperl-mode-tests.el (cperl-bug37127):
Add a test to verify that the message is suppressed when
inappropriate, but appears when the RE *is* incomplete.

4 years agoClarify point position after text-property-search
Stefan Kangas [Fri, 30 Oct 2020 11:48:30 +0000 (12:48 +0100)]
Clarify point position after text-property-search

* lisp/emacs-lisp/text-property-search.el
(text-property-search-forward, text-property-search-backward): Doc fix
to clarify placement of point after search.
* test/lisp/emacs-lisp/text-property-search-tests.el
(text-property-search--pos-test): New defun.
(text-property-search-forward-point-at-beginning)
(text-property-search-backward-point-at-end): New test.

4 years agoTweak the gdb-mi error message
Lars Ingebrigtsen [Fri, 30 Oct 2020 12:18:47 +0000 (13:18 +0100)]
Tweak the gdb-mi error message

* lisp/progmodes/gdb-mi.el (gdb--check-interpreter): Make the
error message less misleading (bug#40279).

4 years agoUse nobreak-space on all non-ASCII whitespace characters
Neil Roberts [Fri, 30 Oct 2020 12:13:31 +0000 (13:13 +0100)]
Use nobreak-space on all non-ASCII whitespace characters

* doc/emacs/display.texi (Text Display): Document it.

* src/xdisp.c (get_next_display_element): Use blankp to test whether
to use the nobreak_space face (bug#44236).

4 years agoMake list-timers do sub-second times
Lars Ingebrigtsen [Fri, 30 Oct 2020 11:10:48 +0000 (12:10 +0100)]
Make list-timers do sub-second times

* lisp/emacs-lisp/timer-list.el (list-timers): Do sub-second times
(bug#39956).

4 years ago`format-time' can now do sub-second times
Lars Ingebrigtsen [Fri, 30 Oct 2020 11:10:17 +0000 (12:10 +0100)]
`format-time' can now do sub-second times

* doc/lispref/os.texi (Time Parsing): Document it.

* lisp/calendar/time-date.el (format-seconds): Allow formatting
sub-second times.

4 years ago; Remove spurious FIXMEs in my last commit
Stefan Kangas [Fri, 30 Oct 2020 10:41:47 +0000 (11:41 +0100)]
; Remove spurious FIXMEs in my last commit

4 years agoAdd shortdoc navigation commands
Stefan Kangas [Wed, 28 Oct 2020 15:43:32 +0000 (16:43 +0100)]
Add shortdoc navigation commands

* lisp/emacs-lisp/shortdoc.el (text-property-search): Require.
(shortdoc-mode): New major mode.
(shortdoc-mode-map): New variable.
(shortdoc--goto-section): New macro.
(shortdoc-next, shortdoc-previous, shortdoc-next-section)
(shortdoc-previous-section): New commands.
(shortdoc-display-group): Use new shortdoc-models.  Propertize
section header.
(shortdoc--display-function): Propertize function header.

4 years ago* test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects): Expand test.
Hugh Daschbach [Fri, 30 Oct 2020 07:59:11 +0000 (08:59 +0100)]
* test/lisp/net/dbus-tests.el (dbus-test09-get-managed-objects): Expand test.

4 years ago* lisp/mail/binhex.el (binhex-char-int): Add missing release
Stefan Monnier [Fri, 30 Oct 2020 02:40:03 +0000 (22:40 -0400)]
* lisp/mail/binhex.el (binhex-char-int): Add missing release

4 years agoRemove Debbugs 'thanks' from submit-emacs-patch
Basil L. Contovounesios [Fri, 30 Oct 2020 00:05:10 +0000 (00:05 +0000)]
Remove Debbugs 'thanks' from submit-emacs-patch

* lisp/mail/emacsbug.el (submit-emacs-patch): Remove unneeded
'thanks' following Debbugs pseudo-header, which leaves other
pseudo-headers entered by the user unprocessed (bug#44322).

4 years agoModify only local send hook in submit-emacs-patch
Basil L. Contovounesios [Thu, 29 Oct 2020 23:33:29 +0000 (23:33 +0000)]
Modify only local send hook in submit-emacs-patch

* lisp/mail/emacsbug.el (submit-emacs-patch): Don't modify global
message-send-hook.