1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

141890 Commits

Author SHA1 Message Date
Basil L. Contovounesios
38ad404ba5 ; Silence recent byte-compiler warning in subr.el
* lisp/subr.el (save-match-data-internal): Declare before first use.
2020-08-05 11:40:27 +01:00
Lars Ingebrigtsen
1b7eb82864 Tweak the Message screenshot insertion
* lisp/gnus/message.el (message-insert-screenshot): Force scaling
to 1, since the screenshot image will already be suitable for
displaying directly (it's the same resolution).
2020-08-05 12:31:44 +02:00
Lars Ingebrigtsen
a06f41ad2c Implement a screenshot command for Message mode
* doc/misc/message.texi (MIME): Document it.

* lisp/gnus/message.el (message-screenshot-command): New variable.
(message-mode-map): New keystroke and menu item.  Also add
mml-attach-file to the menu.
(message-insert-screenshot): New command.

* lisp/gnus/mml.el (mml-parse-1): Allow having
content-transfer-encoding already in the part, so that we can have
inline base64-encoded binaries in the Message buffers.
2020-08-05 12:21:35 +02:00
Lars Ingebrigtsen
c9d550a301 Fontize $(...) slightly better in bash mode
* lisp/progmodes/sh-script.el (sh-font-lock-keywords-var): Fontize
$(...) slightly better (bug#42417).  Instead of just fontizing the
first word in the expression, fontize until the closing
parenthesis.  This doesn't work well if you have nested $(...)
expressions.
2020-08-05 11:34:56 +02:00
Lars Ingebrigtsen
3f358fc172 Mention undo in the doc string of dired-do-kill-lines
* lisp/dired-aux.el (dired-do-kill-lines): Mention that this can
be undone (bug#42707).
2020-08-05 11:27:54 +02:00
Kevin Brubeck Unhammer
c72b734c91 Further fix for erc-generate-new-buffer-name
* lisp/erc/erc.el (erc-generate-new-buffer-name): Fix buffer name
generation when there's two networks on the same
server:port (bug#40121).
2020-08-05 11:13:51 +02:00
Lars Ingebrigtsen
a59296d998 Make the erc /ignore command prompt for a timeout
* lisp/erc/erc.el (erc--unignore-user): Separate into own function
(bug#40137).
(erc-cmd-IGNORE): Ask if the user wants a timeout.
(erc--read-time-period): New function.
2020-08-05 10:27:40 +02:00
Lars Ingebrigtsen
1f3e2ac4b6 Add new function decoded-time-period
* lisp/calendar/time-date.el (decoded-time-period): New function.
2020-08-05 10:07:13 +02:00
Stefan Monnier
398242bb3f * lisp/x-dnd.el: Use lexical-scoping 2020-08-04 20:15:56 -04:00
Juri Linkov
cbb5a67eff * lisp/generic-x.el (ansible-inventory-generic-mode): Fix filename (bug#42703) 2020-08-05 02:51:00 +03:00
Alan Third
519a93e067 Don't smooth images when scaling up (bug#38394)
* src/image.c (image_set_transform [HAVE_XRENDER]): Use different filter
when scaling up vs scaling down.
* src/nsimage.m (ns_image_set_smoothing):
([EmacsImage setSmoothing:]): New functions.
* src/nsterm.h: Add definitions.
* src/nsterm.m (ns_dumpglyphs_image): Disable smoothing if requested.
2020-08-04 20:50:01 +01:00
Lars Ingebrigtsen
6e70b3793b When decrypting non-decrypted files, make epa show the raw files
* lisp/epa-file.el (epa-file-insert-file-contents): When trying to
decrypt a non-decrypted file, just show the bytes from the file
instead (bug#3829).
2020-08-04 21:42:44 +02:00
Arik Mitschang
9c967e7298 Add options for mode modern ciphers in smime-encrypt-cipher
* lisp/gnus/smime.el (smime-encrypt-cipher): Add support for more
modern ciphers (bug#8474).

Copyright-paperwork-exempt: yes
2020-08-04 20:32:13 +02:00
Paul Eggert
fe2649528b Drop support for -fcheck-pointer-bounds
GCC has removed the -fcheck-pointer bounds option, and the Linux
kernel has also removed support for Intel MPX, so there’s no point
to keeping this debugging option within Emacs.
* src/bytecode.c (BYTE_CODE_THREADED):
* src/lisp.h (DEFINE_LISP_SYMBOL, XSYMBOL, make_lisp_symbol):
Assume __CHKP__ is not defined.
* src/ptr-bounds.h: Remove.  All uses of ptr_bounds_clip,
ptr_bounds_copy, ptr_bounds_init, ptr_bounds_set removed.
2020-08-04 11:15:16 -07:00
Lars Ingebrigtsen
1308587c25 Ignore test/data/mml-sec/random_seed
The file is generated when mml-sec-tests is run.
2020-08-04 19:50:37 +02:00
Lars Ingebrigtsen
cc41b36af9 Remove mistakenly checked-in random_seed file 2020-08-04 19:48:12 +02:00
Lars Ingebrigtsen
34229d3915 Tweak mml-sec test that sometimes fails
* test/lisp/gnus/mml-sec-tests.el
(mml-first-secure-en-decrypt-sign-1): mml-secure-en-decrypt-sign-1
fail sometimes, on some machines, unless it's the first test.  I'm
guessing there's a race condition somewhere in the test, but put
it first now to avoid build reports.
2020-08-04 19:47:06 +02:00
Jens Lechtenbörger
0c6d2f0ff5 Add tests for mml-sec.el 2020-08-04 19:28:51 +02:00
Lars Ingebrigtsen
59243e9f18 Fix two mml-sec minor bugs revealed by new test harness
* lisp/gnus/mml-sec.el
(mml-secure-allow-signing-with-unknown-recipient): New variable
(bug#18393) (but this should probably be fixed in a different way).
(mml-secure-epg-sign): Use it.
(mml-secure-check-user-id): Protect against recipients that aren't
email addresses, like "No recipient".
2020-08-04 19:28:51 +02:00
Lars Ingebrigtsen
fbfa70f486 Add test file lost when merged from Gnus in 2016 2020-08-04 19:28:51 +02:00
Lars Ingebrigtsen
9eb04d8740 Mark unused Gnus util function as obsolete
* lisp/gnus/gnus-util.el (gnus-test-list): Mark utility function
as obsolete -- there are no in-tree usage.
2020-08-04 19:28:51 +02:00
Stefan Kangas
b0e828da4f Add new cconv-tests (Bug#28557)
These tests are all written by Gemini Lasswell <gazally@runbox.com>.

* test/lisp/emacs-lisp/cconv-tests.el
(top-level): Add two commented out tests which the byte-compiler
can't handle.
(cconv-tests-lambda-:documentation)
(cconv-tests-pcase-lambda-:documentation)
(cconv-tests-defun-:documentation)
(cconv-tests-cl-defun-:documentation)
(cconv-tests-function-:documentation)
(cconv-tests-cl-defgeneric-literal-:documentation)
(cconv-tests-defsubst-:documentation)
(cconv-tests-cl-defsubst-:documentation): New tests.
(cconv-tests-cl-iter-defun-:documentation)
(cconv-tests-iter-defun-:documentation)
(cconv-tests-iter-lambda-:documentation)
(cconv-tests-cl-function-:documentation)
(cconv-tests-cl-defgeneric-:documentation): New failing tests.
2020-08-04 18:45:10 +02:00
Lars Ingebrigtsen
0a12d43e84 Fix viewing encrypted+signed messages from Outlook
* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Fix
problem with CRLF-encoded encrypted+signed parts (bug#42637).
2020-08-04 18:08:47 +02:00
Lars Ingebrigtsen
89dbd0838b Fix previous network stream test
* test/lisp/net/network-stream-tests.el
(network-test--resolve-system-name): There's only one ipv6
localhost address.
2020-08-04 17:34:21 +02:00
Lars Ingebrigtsen
99e9bdcd41 Make a network-stream test more robust
* test/lisp/net/network-stream-tests.el
(network-test--resolve-system-name): New function.
(echo-server-with-dns): Skip test if (system-name) doesn't look
like it's going to resolve (bug#42535).
2020-08-04 17:25:36 +02:00
Lars Ingebrigtsen
ea9520a7a2 Mark the end of file names correctly on Macos in wdired
* lisp/wdired.el (wdired--restore-dired-filename-prop): Fix
problem with finding the end of the name on Macos.
2020-08-04 15:56:12 +02:00
Lars Ingebrigtsen
1432cfd485 Fix debugging code checked in from wdired-tests 2020-08-04 15:15:45 +02:00
Lars Ingebrigtsen
a3c870d7e2 Fix svn tests on Macos
* test/lisp/vc/vc-tests.el (vc-test--svn-enabled): Macos machines
may have a dummy svn program that helpfully just outputs "There's
no svn program here", so also test for the svnadmin program
(bug#42536).
2020-08-04 14:48:38 +02:00
Lars Ingebrigtsen
934585a649 dired-ls-F-marks-symlinks should be set under Macos
* lisp/dired.el (dired-ls-F-marks-symlinks): Not that this should
be set under Macos (bug#42537).
2020-08-04 14:31:41 +02:00
Lars Ingebrigtsen
e208d67e84 Fix wdired test for Macos
* test/lisp/wdired-tests.el (wdired-test-bug34915): Macos adds "@"
to the end of symlinks (bug#42537).
2020-08-04 14:30:20 +02:00
Michael Albinus
3da0d38529 * etc/NEWS: Add Tramp support of direct asynchronous process invocation. 2020-08-04 14:20:16 +02:00
Michael Albinus
83b1db043b Add Tramp support of direct asynchronous process invocation
* doc/misc/tramp.texi (Predefined connection information):
Add "direct-async-process".
(Remote processes): New subsection "Improving performance of
asynchronous remote processes".

* lisp/net/tramp-adb.el (tramp-methods) <adb>: Add `tramp-login-program'
and `tramp-login-args'.
(tramp-adb-handle-make-process): Use `tramp-handle-make-process'.
(tramp-adb-maybe-open-connection): Add "set +o vi +o emacs" command.

* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
Use `tramp-handle-make-process'.
(tramp-sh-file-name-handler-p, tramp-multi-hop-p): New defuns.
(tramp-compute-multi-hops): Use `tramp-multi-hop-p'.

* lisp/net/tramp.el (tramp-dissect-file-name, tramp-dissect-hop-name):
Use `tramp-multi-hop-p'.
(tramp-handle-insert-file-contents, tramp-local-host-p):
Use `tramp-sh-file-name-handler-p'.
(tramp-handle-make-process): New defun.

* test/README: Add another example how to use SELECTOR.

* test/lisp/net/tramp-tests.el (tramp-test03-file-name-method-rules):
Adapt test.
(tramp--test-sh-p): Use `tramp-sh-file-name-handler-p'.
2020-08-04 14:19:51 +02:00
Theodor Thornhill
b8b25400d5 Add sass @use rule to css-mode
* lisp/textmodes/css-mode.el (scss-at-ids): Add 'use' to scss-at-ids
for autocompletion (bug#42700).
2020-08-04 12:12:46 +02:00
Paul Eggert
19e76f6190 Use void * for pointers in with_echo_area_buffer
* src/xdisp.c (with_echo_area_buffer): Pass void * instead of
ptrdiff_t, since the values are typically pointers and this ports
better to (mostly-theoretical) hosts where ptrdiff_t is narrower
than intptr_t.  All uses changed.
2020-08-03 19:08:59 -07:00
Paul Eggert
fd50b3fc45 Ignore another memory leak
* src/pdumper.c (dump_mmap_contiguous_heap):
Ignore the heap control block when checking for leaks.
2020-08-03 19:08:58 -07:00
Paul Eggert
a1436544ff Simplify use of __lsan_ignore_object
* configure.ac: Use AC_CHECK_FUNCS_ONCE for __lsan_ignore_object.
* src/buffer.c, src/data.c, src/emacs-module.c, src/regex-emacs.c:
* src/search.c: Use __lsan_ignore_object unconditionally, and don’t
include sanitizer/lsan_interface.h.
* src/lisp.h (__lsan_ignore_object): Provide a dummy in the
typical case where leak sanitization is not available.
2020-08-03 19:08:58 -07:00
Paul Eggert
a4ed198e8f Simplify pointer computation in mark_maybe_object
* src/alloc.c (mark_maybe_object):
Use simpler way to avoid -fsanitize=undefined false alarms,
by converting the word tag to intptr_t first.
Omit now-unnecessary runtime overflow check.
(mark_memory): Work even if UINTPTR_MAX <= INT_MAX (!).
2020-08-03 19:08:58 -07:00
Philipp Stephani
ca419812d3 Avoid duplicate Edebug symbols when backtracking (Bug#42701)
When Edebug backtracks, it nevertheless generates definitions for the
non-matching branches, see Bug#41988 and Bug#42701.  This should be
fixed eventually (probably by deferring the definition until a branch
is known to match), but for now add a band-aid to avoid these
duplicate symbols, at least for anonymous forms.

* lisp/emacs-lisp/edebug.el (edebug-make-enter-wrapper): Regenerate
anonymous names.

* test/lisp/emacs-lisp/edebug-tests.el
(edebug-tests-duplicate-symbol-backtrack): New regression test.
2020-08-03 21:07:32 +02:00
Glenn Morris
16b7f413a9 Merge from origin/emacs-27
8576297b2a (origin/emacs-27) ; lisp/so-long.el: Prevent potential err...
986c12b20f ; * lisp/so-long.el: Byte-compilation bug fix
19f8f36f11 ; * lisp/so-long.el (so-long-variable-overrides): Improve doc
83bc4ad369 ; * so-long.el: Documentation and spelling
72c5f71cd4 Avoid segfaults if XIM is set but not xim_styles
f54ddb0198 (emacs-27) ; * test/lisp/emacs-lisp/generator-tests.el: St...

# Conflicts:
#	test/lisp/emacs-lisp/generator-tests.el
2020-08-03 08:32:39 -07:00
Glenn Morris
078d75fb47 ; Merge from origin/emacs-27
The following commits were skipped:

d767418b76 Backport: Make checking for liveness of global values more...
8c94ca94dc Backport: Fix subtle bug when checking liveness of module ...
8ecca2f09f Backport: Fix memory leak for global module objects (Bug#4...
2020-08-03 08:31:15 -07:00
Glenn Morris
78d1092bcc Merge from origin/emacs-27
e12d1fbc15 ; ChangeLog.3 and etc/AUTHORS fixes
748f0d4bc6 * admin/authors.el (authors-aliases): Remove a faulty regexp.

# Conflicts:
#	etc/AUTHORS
2020-08-03 08:31:15 -07:00
Eli Zaretskii
99275822c6 Fix last change in 'try_window'
* src/xdisp.c (try_window): Don't modify the logic when EOB is in
the viewport.  (Bug#42653)
2020-08-03 17:56:40 +03:00
Phil Sainty
8576297b2a ; lisp/so-long.el: Prevent potential error if comment-use-syntax is nil
* lisp/so-long.el (so-long-detected-long-line-p): Ensure that
`comment-start-skip' and `comment-end-skip' are both set if
`comment-use-syntax' is nil, as `comment-forward' requires them
to be bound in this scenario.
2020-08-04 01:44:53 +12:00
Phil Sainty
986c12b20f ; * lisp/so-long.el: Byte-compilation bug fix
As this `require' is not at the top-level (it is only conditionally
evaluated, when loading the library over the top of an earlier
version), we need `eval-and-compile' to ensure that both macros and
functions from advice.el are accounted for.
2020-08-04 01:44:53 +12:00
Phil Sainty
19f8f36f11 ; * lisp/so-long.el (so-long-variable-overrides): Improve doc 2020-08-04 01:44:52 +12:00
Phil Sainty
83bc4ad369 ; * so-long.el: Documentation and spelling
Reverting certain changes from commits b0f20651e3 and d1a791f8ed.

Please refer to the comments on spelling at the end of the library.
M-x ispell-buffer should find no misspellings in the documentation.
See also test/lisp/so-long-tests/spelling-tests.el

(The current spelling will persist while so-long.el is maintained in
its own Savannah repository, to avoid unnecessary conflicts between
the two versions.  If in the future it is maintained solely in the
Emacs repository, changing the spelling would become an option.)

Note that "mitigations" (plural) is intentional -- this library
identifies a collection of different performance mitigations,
multiple of which will typically be in effect together.
2020-08-04 01:35:26 +12:00
Lars Ingebrigtsen
e1f09607e0 Make n'/p' in image-mode also find externally converted images
* lisp/image-file.el (image-file-name-regexp): Use it to make
`n'/`p' in image mode work (bug#39994).

* lisp/image/image-converter.el
(image-converter-file-name-extensions): New variable to keep track
of all suffixes.
(image-convert-p): Update.
(image-converter--find-converter): Set.
2020-08-03 09:14:52 +02:00
Lars Ingebrigtsen
79527cd56e Fix problem with viewing .webp files from .zip buffers
* lisp/image-mode.el (image-toggle-display-image): Make it
possible to view images (via external formatters, like webp) from
zip files (and other archive modes) (bug#39994).
2020-08-03 09:00:53 +02:00
Lars Ingebrigtsen
26b9a1da63 Adjust error message in image-mode
* lisp/image-mode.el (image-mode): Even when
`image-user-external-converter' is on, we may get
`unknown-image-type' (bug#39994).  Adjust the error message in
that case.
2020-08-03 08:18:39 +02:00
Derek Zhou
f921feceb8 Fix problem where TLS connections would sometimes hang
* src/process.c (wait_reading_process_output): Before the select,
check every interesting gnutls stream for available data in the
buffer.  If some of them hit, and either there is no wait_proc or
the wait_proc is one of the gnutls streams with new data, set the
select timeout to 0 after the select, and merge the gnutls buffer
status into the select returns (bug#40665).  This fixes a problem
where TLS connections would sometimes hang.
2020-08-03 07:56:29 +02:00