1. 13 Sep, 2019 12 commits
  2. 12 Sep, 2019 8 commits
    • Stefan Monnier's avatar
    • Stefan Monnier's avatar
      * lisp/progmodes/sh-script.el (sh-mode-map): Don't bind `=` · 7fbabaf9
      Stefan Monnier authored
      (sh-shell-initialize-variables): Use sh--assignment-collect on
      post-self-insert-hook instead.
      (sh--assignment-collect): New function, extracted from sh-assignment.
      (sh-assignment): Use it and mark as obsolete.
      7fbabaf9
    • Karl Fogel's avatar
      Add `isearch-yank-until-char' · bbadc6e0
      Karl Fogel authored
      * lisp/isearch.el (isearch-yank-until-char): New function.
        (isearch-mode-map, isearch-menu-bar-yank-map): Add it.
        (isearch-forward): Document the new binding.
      
      * doc/emacs/search.texi (Isearch Yanking): Document the feature.
      
      * etc/NEWS: Mention the above.
      bbadc6e0
    • Michael Albinus's avatar
      Optimize host name completion in Tramp · 5e8d477d
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
      * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
      * lisp/net/tramp-sh.el (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
      Throw `non-essential' at the beginning of the function.
      
      * lisp/net/tramp.el (tramp-handle-file-exists-p):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-exists-p):
      * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-exists-p):
      Run only when host is connectable.  This is due to host name
      completion, which shall be optimized.
      
      * lisp/net/tramp-smb.el (tramp-smb-do-file-attributes-with-stat)
      (tramp-smb-get-file-entries): Access connection buffer only after
      sending the command.
      
      * lisp/net/tramp.el (tramp-get-buffer, tramp-get-connection-buffer):
      New argument DONT-CREATE.
      (tramp-message): Use it.
      (tramp-get-mutex): Check, whether host is connectable.
      (tramp-file-name-handler): Set thread only when host is connectable.
      (tramp-connectable-p): Allow also VEC as argument.
      (tramp-completion-handle-file-name-completion): Do not expand directory.
      5e8d477d
    • Stefan Monnier's avatar
      * src/profiler.c: Leave `key` hashslots as Qunbound (bug#37382) · 99741550
      Stefan Monnier authored
      Now that "key == Qunbound" is used to determine if a hash table entry
      is available, we can't stash pre-allocated vectors into the `key` slot
      anymore, so use the `value` slot instead.
      
      (make_log): Pre-fill the `value` slots i.s.o `key`.
      (evict_lower_half): Stash key back into `value`, i.s.o `key`.
      (record_backtrace): Get pre-allocated vector for `value` i.s.o `key`.
      99741550
    • Paul Eggert's avatar
      Fix file name encoding when open_directory signals · c19f5dcd
      Paul Eggert authored
      * src/dired.c (open_directory): New arg ENCODED_DIRNAME.
      All callers changed.  Signal error with original name,
      not encoded name.
      c19f5dcd
    • Paul Eggert's avatar
      Improve error reporting for DOC file problems · ffa870fc
      Paul Eggert authored
      * src/doc.c (get_doc_string): Report all serious errors
      when DOC cannot be opened, not just fd-exhaustion errors.
      ffa870fc
    • Paul Eggert's avatar
      Fix directory-files-and-attributes race · f7228a64
      Paul Eggert authored
      * src/dired.c (directory_files_internal): Fix race condition:
      when some other process removed a file between the readdir and
      the ensuing lstat, directory-files-and-attributes would return
      a list containing nil.
      f7228a64
  3. 11 Sep, 2019 6 commits
    • Paul Eggert's avatar
      Omit duplicate test of current directory · ef926ce3
      Paul Eggert authored
      * src/callproc.c (encode_current_directory): Remove redundant
      call to Ffile_accessible_directory_p.  The code checks the
      encoded name with file_accessible_directory_p anyway.
      ef926ce3
    • Paul Eggert's avatar
      Improve checking of pdump load failures · 5fafa40d
      Paul Eggert authored
      * src/alloc.c (memory_full): Just report "memory exhausted" if
      failure occurs during initialization, since fancier recovery
      schemes are not likely to work when not initialized.
      * src/emacs.c (dump_error_to_string): Accept int, not enum
      pdumper_load_result, since the result might not fit in the
      enum.  Use strerror if it was derived from errno.  This is for
      better diagnostics of pdump load failures.
      (load_pdump_find_executable): Return char *, not enum.  2nd
      arg is now pointer to buffer size, rather than pointer to
      pointer to buffer.  All callers changed.  Use Emacs allocator
      since they should now be OK even during early startup.
      Use check_executable instead access, to use effective rather
      than real permissions.
      (load_pdump): Return void since callers ignore result.
      Use int where enum could be too narrow.  Use heap rather
      than stack for possibly-long string.  Prefer ptrdiff_t to
      size_t.
      * src/fileio.c (check_executable): Now extern.
      * src/pdumper.c (pdumper_load): Return int that may have
      errno added to it, for better diagnostics when loads fail.
      5fafa40d
    • Paul Eggert's avatar
      Reset dbus registered buses on dump load · a6daae7b
      Paul Eggert authored
      Problem reported by Leonard Lausen (Bug#37331).
      * src/dbusbind.c: Include pdumper.h.
      (syms_of_dbusbind_for_pdumper):
      New function, to reset the registered buses.
      (syms_of_dbusbind): Use it, fixing a TODO.
      a6daae7b
    • Paul Eggert's avatar
      Fix auto-save with user-emacs-directory · 636856fa
      Paul Eggert authored
      * lisp/startup.el (auto-save-list-file-prefix): Delay initialization,
      since the value depends on user-emacs-directory (Bug#37354).
      636856fa
    • Mattias Engdegård's avatar
    • Katsumi Yamaoka's avatar
      Create a new overlay used to mark Attachment header (bug#37370) · 4b9f9324
      Katsumi Yamaoka authored
      * lisp/gnus/gnus-art.el (gnus-mime-inline-part)
      (gnus-mm-display-part, gnus-mime-buttonize-attachments-in-header):
      Create a new overlay used to mark Attachment header instead of
      using existing overlays.
      4b9f9324
  4. 10 Sep, 2019 2 commits
  5. 09 Sep, 2019 2 commits
  6. 08 Sep, 2019 9 commits
    • Stefan Kangas's avatar
      ; * lisp/ps-print.el: Doc fix. · a1e93c16
      Stefan Kangas authored
      a1e93c16
    • Stefan Kangas's avatar
      Remove final XEmacs compat code from dframe.el · c86f91ca
      Stefan Kangas authored
      * lisp/dframe.el (top-level): Doc fix.
      (dframe-frame-parameter): Redefine as an obsolete function alias for
      'frame-parameter'.
      c86f91ca
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Define setter functions. · 69db930c
      Stefan Monnier authored
      When :noinline is specified one can't rely on setf expanding the
      inlinable function to construct the setter.
      Fixes bug#37283.
      69db930c
    • Stefan Kangas's avatar
      Remove support for upgrading from old bookmark file format · e94d01f1
      Stefan Kangas authored
      * lisp/bookmark.el (bookmark-alist-from-buffer): Remove support for
      old bookmark file format.  (Bug#37122)
      (bookmark-upgrade-version-0-alist)
      (bookmark-upgrade-file-format-from-0)
      (bookmark-grok-file-format-version)
      (bookmark-maybe-upgrade-file-format): Declare obsolete.
      (bookmark-load): Don't call 'bookmark-maybe-upgrade-file-format'.
      * etc/NEWS: Announce it.
      e94d01f1
    • Juri Linkov's avatar
      * lisp/tmm.el: Fix broken tmm-prompt (bug#34517) · 7f85a556
      Juri Linkov authored
      * lisp/tmm.el (tmm-prompt): Don't duplicate items of tmm--history.
      Don't reverse tmm-km-list for completion.  Don't set the initial
      position of 'tmm--history.  Use reverse tmm--history as the list
      of default values for M-n.
      (tmm-add-prompt): Don't insert initial value to the minibuffer.
      7f85a556
    • Alan Mackenzie's avatar
      Fix untidinesses in compile.el. · 034f9363
      Alan Mackenzie authored
      * lisp/progmodes/compile.el (compilation--margin-string): Renamed from
      compilation-margin-string.  Use defconst rather than defvar.  Use propertize
      rather than a separate put-text-property.  Trim the doc string.
      034f9363
    • Michael Albinus's avatar
      Fix Bug#36090 · d42d46d1
      Michael Albinus authored
      * lisp/vc/vc-hg.el (vc-hg--pushpull, vc-hg-merge-branch)
      (vc-hg-command): Disable pager.  (Bug#36090)
      d42d46d1
    • Michael Albinus's avatar
      Fix Bug#37202 · f8143323
      Michael Albinus authored
      * test/lisp/shadowfile-tests.el (shadow-test08-shadow-todo)
      (shadow-test09-shadow-copy-files): Use truename of
      `shadow-test-remote-temporary-file-directory'.  (Bug#37202)
      f8143323
    • Paul Eggert's avatar
      Fix bug when gc-cons-percentage is bumped to 0.8 · b6b7c7fc
      Paul Eggert authored
      Problem reported by Michael Heerdegen (Bug#37321).
      * src/alloc.c (gc_threshold): New static var.
      (bump_consing_until_gc): Change args from DIFF to THRESHOLD and
      PERCENTAGE.  All uses changed.  When accounting for a changed
      gc-cons-percentage, do not assume that total_bytes_of_live_objects
      returns the same value now that it did the last time we were
      called.
      b6b7c7fc
  7. 07 Sep, 2019 1 commit