1. 15 Jul, 2021 7 commits
  2. 14 Jul, 2021 10 commits
  3. 13 Jul, 2021 17 commits
    • Juri Linkov's avatar
      Revert e0619995 that added save-match-data. · dd34bef7
      Juri Linkov authored
      * lisp/isearch.el (isearch-filter-predicate): Mention precautions against
      clobbering the match data in docstring (bug#49534).
    • Juri Linkov's avatar
      * lisp/isearch.el: Add save-match-data for funcall isearch-filter-predicate. · e0619995
      Juri Linkov authored
      * lisp/isearch.el (isearch-search): Add save-match-data before
      funcall isearch-filter-predicate.
      (isearch-lazy-highlight-search): Add save-match-data before
      funcall isearch-filter-predicate.
    • Lars Ingebrigtsen's avatar
      Add a better interactive spec to `facemenu-add-face' · f339cc3b
      Lars Ingebrigtsen authored
      * lisp/facemenu.el (facemenu-add-face): Use `read-face-name'
      (bug#18369) by copying over the interactive spec from
    • Lars Ingebrigtsen's avatar
      Make jka-compr-insert-file-contents slightly more efficient · a5d1bd6a
      Lars Ingebrigtsen authored
      * lisp/jka-compr.el (jka-compr-insert-file-contents): Make more
      efficient by using `insert-into-buffer'.
    • Lars Ingebrigtsen's avatar
      Add new function 'insert-into-buffer' · 210b10f3
      Lars Ingebrigtsen authored
      * doc/lispref/text.texi (Insertion): Document it.
      * lisp/subr.el (insert-into-buffer): New function.
    • Lars Ingebrigtsen's avatar
      Fall back on zlib-decompress-region if gzip doesn't exist · 3ce37f5a
      Lars Ingebrigtsen authored
      * lisp/jka-cmpr-hook.el (jka-compr-info-uncompress-function): New
      function (bug#18823).
      (jka-compr-compression-info-list): Expand info with decompression
      * lisp/jka-compr.el (jka-compr-insert-file-contents): Fall back on
      internal decompression function if external doesn't exist.
    • Daniel Martín's avatar
      Fix dired-number-of-marked-files when there are no marked files · e368f560
      Daniel Martín authored
      * lisp/dired.el (dired-number-of-marked-files): Fix if expression so
      that the else part is evaluated correctly.
    • Stefan Monnier's avatar
    • Lars Ingebrigtsen's avatar
      Allow not updating Customize settings in set-frame-font · eae23d60
      Lars Ingebrigtsen authored
      * lisp/frame.el (set-frame-font): Allow not updating the
      Customization settings (bug#19298).
    • Lars Ingebrigtsen's avatar
      Document the syntax-multilne text property · 7ec5a959
      Lars Ingebrigtsen authored
      * doc/lispref/modes.texi (Multiline Font Lock): Document the
      syntax-multiline text property (bug#20436).
    • Juri Linkov's avatar
      Support Isearch filter predicates with empty search hits (bug#49534) · 35a88616
      Juri Linkov authored
      * lisp/isearch.el (isearch-search): Move (= (match-beginning 0) (match-end 0))
      and (bobp)/(eobp) outside the call to isearch-filter-predicate.
      Use forward-char 1/-1 on empty matches only when going to retry search.
      (isearch-lazy-highlight-search):  Remove (= (point) bound),
      but leave (= (match-beginning 0) (match-end 0)) since empty matches
      make no sense in lazy-highlighting.
    • Lars Ingebrigtsen's avatar
      Make 'tex-validate-buffer' work again · b68e7a64
      Lars Ingebrigtsen authored
      * lisp/textmodes/tex-mode.el (tex-validate-buffer): The *Occur*
      buffer is read-only, so inhibit that before inserting things into
      it (bug#19326).
    • Michael Albinus's avatar
    • Michael Albinus's avatar
      Add remote-file-name-inhibit-locks · cce84822
      Michael Albinus authored
      * doc/emacs/files.texi (Interlocking):
      * doc/lispref/files.texi (File Locks):
      * doc/misc/tramp.texi (Auto-save File Lock and Backup):
      Add remote-file-name-inhibit-locks.
      * etc/NEWS: New user option 'remote-file-name-inhibit-locks'.
      * lisp/files.el (remote-file-name-inhibit-locks): New defcustom.
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
      * lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      * lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      * lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
      Use `tramp-handle-make-lock-file-name'.
      * lisp/net/tramp.el (tramp-allow-unsafe-temporary-files): Fix docstring.
      (tramp-handle-make-lock-file-name): New defun.
      * test/lisp/net/tramp-tests.el (tramp-test39-lock-file): Extend test.
    • Lars Ingebrigtsen's avatar
      Add new user option to avoid piling on Dired buffers · 5afe2762
      Lars Ingebrigtsen authored
      * doc/emacs/dired.texi (Dired Visiting): Document it.
      * lisp/dired.el (dired-kill-when-opening-new-dired-buffer): New
      user option (bug#20598).
      (dired-up-directory, dired-find-file): Use it.
      (dired--find-possibly-alternative-file): New convenience command
      to respect the user option.
    • Mattias Engdegård's avatar
      Block TLS handshake until TCP connection established · 7a803ecd
      Mattias Engdegård authored
      If a TLS handshake is attempted before the completion of an
      asynchronous TCP connection has been ascertained, our local state will
      not be set up correctly for further progress and the sentinel "open"
      event will never be sent.  This can occur if sufficient time passes
      after the initiation of an async TCP connection so that by the time
      `wait_reading_process_output` is called, the connection has already
      been established on the TCP level.
      This somewhat timing-sensitive bug has plagued HTTPS connections on
      some platforms, notably macOS, for a long time (bug#49449).
      * src/process.c (wait_reading_process_output): Gate the TLS handshake
      by the NON_BLOCKING_CONNECT_FD flag.  The flag will be cleared as soon
      as the TCP socket is found to be writable.
      * test/src/process-tests.el (process-async-https-with-delay):
      New test.
    • Ken Brown's avatar
      Fix portability issue with make-serial-process · a41f585b
      Ken Brown authored
      * src/sysdep.c (struct speed_struct): New struct.
      (speeds): New static array of struct speed_struct.
      (convert_speed): New static function to convert a numerical baud
      rate (e.g., 9600) to a Bnnn constant defined in termios.h (e.g.,
      (serial_configure): Use convert_speed to make the call to cfsetspeed
      compliant with its advertised API.  (Bug#49524)
  4. 12 Jul, 2021 6 commits
    • Basil L. Contovounesios's avatar
    • Michael Albinus's avatar
      Fix a problem with tramp-*-process-file · bfd15953
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
      * lisp/net/tramp-sh.el (tramp-sh-handle-process-file):
      * lisp/net/tramp-smb.el (tramp-smb-handle-process-file):
      * lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file):
      Use `(expand-file-name default-directory)'.
    • Paul Eggert's avatar
      Port test module to glibc 2.33 · a79c578f
      Paul Eggert authored
      * test/Makefile.in (REPLACE_FREE, FREE_SOURCE_0, FREE_SOURCE_1):
      New macros.
      ($(test_module)): Improve accuracy of test as to whether free.c
      should be compiled; glibc 2.33 does not need it compiled and the
      compilation breaks if you try, if you build with
    • Paul Eggert's avatar
      Pacify gcc 11.1.1 -Wclobbered · c22cf4d0
      Paul Eggert authored
      * src/eval.c (Fprogn, internal_lisp_condition_case):
      Add CACHEABLE to work around more instances of -Wclobbered bug.
    • Paul Eggert's avatar
      Pacify gcc 11.1.1 -Wanalyzer-possible-null-dereference · 1a0fe2a5
      Paul Eggert authored
      * oldXMenu/Create.c (XMenuCreate):
      * oldXMenu/Internal.c (_XMRecomputePane, _XMRecomputeSelection):
      * oldXMenu/XMakeAssoc.c (XMakeAssoc):
      * test/src/emacs-module-resources/mod-test.c (Fmod_test_userptr_make):
      Don’t assume that malloc and calloc succeed.
    • Paul Eggert's avatar
      Pacify gcc 11.1.1 -Wanalyzer-null-argument · 2337869f
      Paul Eggert authored
      * lib-src/etags.c (regexp): Omit member force_explicit_name,
      since it’s always true.  All uses removed.  This lets us
      remove calls to strlen (name) where GCC isn’t smart enough
      to deduce that name must be nonnull.
      * lib-src/movemail.c (main): Fix bug that could cause
      link (tempname, NULL) to be called.
      * src/emacs.c (argmatch): Break check into two ‘if’s,
      since GCC doesn’t seem to be smart enough to check the single ‘if’.
      * src/gtkutil.c (xg_update_menu_item): Fix bug where strcmp
      could be given a NULL arg.
      * src/xfont.c (xfont_list_family): Use nonnull value for dummy
      initial value.