1. 04 Aug, 2020 28 commits
    • Juri Linkov's avatar
    • Alan Third's avatar
      Don't smooth images when scaling up (bug#38394) · 519a93e0
      Alan Third authored
      * 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.
      519a93e0
    • Lars Ingebrigtsen's avatar
      When decrypting non-decrypted files, make epa show the raw files · 6e70b379
      Lars Ingebrigtsen authored
      * 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).
      6e70b379
    • Arik Mitschang's avatar
      Add options for mode modern ciphers in smime-encrypt-cipher · 9c967e72
      Arik Mitschang authored
      * lisp/gnus/smime.el (smime-encrypt-cipher): Add support for more
      modern ciphers (bug#8474).
      
      Copyright-paperwork-exempt: yes
      9c967e72
    • Paul Eggert's avatar
      Drop support for -fcheck-pointer-bounds · fe264952
      Paul Eggert authored
      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.
      fe264952
    • Lars Ingebrigtsen's avatar
      Ignore test/data/mml-sec/random_seed · 1308587c
      Lars Ingebrigtsen authored
      The file is generated when mml-sec-tests is run.
      1308587c
    • Lars Ingebrigtsen's avatar
      cc41b36a
    • Lars Ingebrigtsen's avatar
      Tweak mml-sec test that sometimes fails · 34229d39
      Lars Ingebrigtsen authored
      * 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.
      34229d39
    • Jens Lechtenbörger's avatar
      Add tests for mml-sec.el · 0c6d2f0f
      Jens Lechtenbörger authored
      0c6d2f0f
    • Lars Ingebrigtsen's avatar
      Fix two mml-sec minor bugs revealed by new test harness · 59243e9f
      Lars Ingebrigtsen authored
      * 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".
      59243e9f
    • Lars Ingebrigtsen's avatar
      fbfa70f4
    • Lars Ingebrigtsen's avatar
      Mark unused Gnus util function as obsolete · 9eb04d87
      Lars Ingebrigtsen authored
      * lisp/gnus/gnus-util.el (gnus-test-list): Mark utility function
      as obsolete -- there are no in-tree usage.
      9eb04d87
    • Stefan Kangas's avatar
      Add new cconv-tests (Bug#28557) · b0e828da
      Stefan Kangas authored
      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.
      b0e828da
    • Lars Ingebrigtsen's avatar
      Fix viewing encrypted+signed messages from Outlook · 0a12d43e
      Lars Ingebrigtsen authored
      * lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Fix
      problem with CRLF-encoded encrypted+signed parts (bug#42637).
      0a12d43e
    • Lars Ingebrigtsen's avatar
      Fix previous network stream test · 89dbd083
      Lars Ingebrigtsen authored
      * test/lisp/net/network-stream-tests.el
      (network-test--resolve-system-name): There's only one ipv6
      localhost address.
      89dbd083
    • Lars Ingebrigtsen's avatar
      Make a network-stream test more robust · 99e9bdcd
      Lars Ingebrigtsen authored
      * 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).
      99e9bdcd
    • Lars Ingebrigtsen's avatar
      Mark the end of file names correctly on Macos in wdired · ea9520a7
      Lars Ingebrigtsen authored
      * lisp/wdired.el (wdired--restore-dired-filename-prop): Fix
      problem with finding the end of the name on Macos.
      ea9520a7
    • Lars Ingebrigtsen's avatar
      1432cfd4
    • Lars Ingebrigtsen's avatar
      Fix svn tests on Macos · a3c870d7
      Lars Ingebrigtsen authored
      * 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).
      a3c870d7
    • Lars Ingebrigtsen's avatar
      dired-ls-F-marks-symlinks should be set under Macos · 934585a6
      Lars Ingebrigtsen authored
      * lisp/dired.el (dired-ls-F-marks-symlinks): Not that this should
      be set under Macos (bug#42537).
      934585a6
    • Lars Ingebrigtsen's avatar
      Fix wdired test for Macos · e208d67e
      Lars Ingebrigtsen authored
      * test/lisp/wdired-tests.el (wdired-test-bug34915): Macos adds "@"
      to the end of symlinks (bug#42537).
      e208d67e
    • Michael Albinus's avatar
    • Michael Albinus's avatar
      Add Tramp support of direct asynchronous process invocation · 83b1db04
      Michael Albinus authored
      * 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'.
      83b1db04
    • Theodor Thornhill's avatar
      Add sass @use rule to css-mode · b8b25400
      Theodor Thornhill authored
      * lisp/textmodes/css-mode.el (scss-at-ids): Add 'use' to scss-at-ids
      for autocompletion (bug#42700).
      b8b25400
    • Paul Eggert's avatar
      Use void * for pointers in with_echo_area_buffer · 19e76f61
      Paul Eggert authored
      * 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.
      19e76f61
    • Paul Eggert's avatar
      Ignore another memory leak · fd50b3fc
      Paul Eggert authored
      * src/pdumper.c (dump_mmap_contiguous_heap):
      Ignore the heap control block when checking for leaks.
      fd50b3fc
    • Paul Eggert's avatar
      Simplify use of __lsan_ignore_object · a1436544
      Paul Eggert authored
      * 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.
      a1436544
    • Paul Eggert's avatar
      Simplify pointer computation in mark_maybe_object · a4ed198e
      Paul Eggert authored
      * 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 (!).
      a4ed198e
  2. 03 Aug, 2020 12 commits
    • Philipp Stephani's avatar
      Avoid duplicate Edebug symbols when backtracking (Bug#42701) · ca419812
      Philipp Stephani authored
      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.
      ca419812
    • Glenn Morris's avatar
      Merge from origin/emacs-27 · 16b7f413
      Glenn Morris authored
      8576297b (origin/emacs-27) ; lisp/so-long.el: Prevent potential err...
      986c12b2 ; * lisp/so-long.el: Byte-compilation bug fix
      19f8f36f ; * lisp/so-long.el (so-long-variable-overrides): Improve doc
      83bc4ad3 ; * so-long.el: Documentation and spelling
      72c5f71c Avoid segfaults if XIM is set but not xim_styles
      f54ddb01 (emacs-27) ; * test/lisp/emacs-lisp/generator-tests.el: St...
      
      # Conflicts:
      #	test/lisp/emacs-lisp/generator-tests.el
      16b7f413
    • Glenn Morris's avatar
      ; Merge from origin/emacs-27 · 078d75fb
      Glenn Morris authored
      The following commits were skipped:
      
      d767418b Backport: Make checking for liveness of global values more...
      8c94ca94 Backport: Fix subtle bug when checking liveness of module ...
      8ecca2f0 Backport: Fix memory leak for global module objects (Bug#4...
      078d75fb
    • Glenn Morris's avatar
      Merge from origin/emacs-27 · 78d1092b
      Glenn Morris authored
      e12d1fbc ; ChangeLog.3 and etc/AUTHORS fixes
      748f0d4b * admin/authors.el (authors-aliases): Remove a faulty regexp.
      
      # Conflicts:
      #	etc/AUTHORS
      78d1092b
    • Eli Zaretskii's avatar
      Fix last change in 'try_window' · 99275822
      Eli Zaretskii authored
      * src/xdisp.c (try_window): Don't modify the logic when EOB is in
      the viewport.  (Bug#42653)
      99275822
    • Phil Sainty's avatar
      ; lisp/so-long.el: Prevent potential error if comment-use-syntax is nil · 8576297b
      Phil Sainty authored
      * 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.
      8576297b
    • Phil Sainty's avatar
      ; * lisp/so-long.el: Byte-compilation bug fix · 986c12b2
      Phil Sainty authored
      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.
      986c12b2
    • Phil Sainty's avatar
    • Phil Sainty's avatar
      ; * so-long.el: Documentation and spelling · 83bc4ad3
      Phil Sainty authored
      Reverting certain changes from commits b0f20651 and d1a791f8.
      
      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.
      83bc4ad3
    • Lars Ingebrigtsen's avatar
      Make `n'/`p' in image-mode also find externally converted images · e1f09607
      Lars Ingebrigtsen authored
      * 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.
      e1f09607
    • Lars Ingebrigtsen's avatar
      Fix problem with viewing .webp files from .zip buffers · 79527cd5
      Lars Ingebrigtsen authored
      * 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).
      79527cd5
    • Lars Ingebrigtsen's avatar
      Adjust error message in image-mode · 26b9a1da
      Lars Ingebrigtsen authored
      * 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.
      26b9a1da