1. 19 Feb, 2020 2 commits
    • Paul Eggert's avatar
      Fix some file-modes races · 734eb7e4
      Paul Eggert authored
      * lisp/gnus/gnus-start.el (gnus-save-newsrc-file)
      (gnus-slave-save-newsrc):
      * lisp/gnus/gnus-uu.el (gnus-uu-initialize):
      * lisp/gnus/mm-archive.el (mm-dissect-archive):
      * lisp/gnus/mm-decode.el (mm-temp-files-delete)
      (mm-display-external):
      * lisp/image-dired.el (image-dired-create-thumb-1):
      Use with-file-modes rather than setting the file modes later.
      This fixes some race conditions where the file temporarily
      has the wrong permissions.
      734eb7e4
    • Jeremy Compostella's avatar
      Fix conversion of text/html->multipart/related · e1e1bd8f
      Jeremy Compostella authored
      * lisp/gnus/mml.el (mml-expand-all-html-into-multipart-related):
      New function (bug#39230).
      (mml-generate-mime): Use it to expand all HTML parts, no matter
      where in the MIME tree.
      e1e1bd8f
  2. 18 Feb, 2020 2 commits
  3. 16 Feb, 2020 1 commit
    • Alan Mackenzie's avatar
      Reformulate c-end-of-macro, handling multiline block comments better · 7ceb45f6
      Alan Mackenzie authored
      * lisp/progmodes/cc-langs.el (c-last-open-c-comment-start-on-line-re): Comment
      out.
      (c-open-c-comment-on-logical-line-re): Remove.
      
      * lisp/progmodes/cc-engine.el (c-end-of-macro): Handle multiline block
      comments lacking escaped newlines using parse-partial-sexp rather than the
      former variables removed from cc-langs.el.
      7ceb45f6
  4. 15 Feb, 2020 3 commits
  5. 14 Feb, 2020 5 commits
  6. 13 Feb, 2020 3 commits
    • Mattias Engdegård's avatar
      Remove the optional KEEP-ORDER argument to regexp-opt · 9f6a4bbc
      Mattias Engdegård authored
      This argument was added for the 'or' clause in rx, but it turned out
      to be a bad idea (bug#37659), and there seems to be little other use
      for it.
      
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt): Remove KEEP-ORDER.
      * doc/lispref/searching.texi (Regexp Functions):
      * etc/NEWS: Remove it from the documentation.
      * test/lisp/emacs-lisp/regexp-opt-tests.el (regexp-opt-test--match-all)
      (regexp-opt-test--check-perm, regexp-opt-test--explain-perm)
      (regexp-opt-keep-order, regexp-opt-longest-match): Simplify test.
      9f6a4bbc
    • Michael Albinus's avatar
      Simplify Tramp caching · 5b160b39
      Michael Albinus authored
      * lisp/net/tramp-cache.el (tramp-flush-file-upper-properties)
      (tramp-flush-directory-properties)
      (tramp-flush-connection-properties, tramp-list-connections)
      (tramp-parse-connection-properties):
      * lisp/net/tramp-gvfs.el (tramp-parse-goa-accounts)
      (tramp-parse-media-names): Simplify cache handling.
      5b160b39
    • Michael Albinus's avatar
      Fix `tramp-interrupt-process' · 7fda3941
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-interrupt-process): Improve command.
      
      * test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name)
      (tramp-test26-file-name-completion): Simplify.
      (tramp-test31-interrupt-process): Remove :unstable tag.
      7fda3941
  7. 12 Feb, 2020 2 commits
    • Eli Zaretskii's avatar
      Fix display of minibuffer prompt in ido.el · 027da652
      Eli Zaretskii authored
      * lisp/minibuffer.el (minibuffer--message-overlay-pos): New
      function.
      (set-minibuffer-message): Use it to determine where to show the
      overlay with the temporary message.
      * lisp/ido.el (ido-exhibit): Revert "Render Ido suggestions using
      an overlay"; this restores the original code which inserted the
      match-status information into the minibuffer, instead of
      displaying it in an overlay with an after-string.  Put the special
      'minibuffer-message' text property at the beginning of the
      inserted text.  (Bug#39379)
      
      * etc/NEWS:
      * doc/lispref/display.texi (Displaying Messages):
      * doc/lispref/text.texi (Special Properties): Document the
      'minibuffer-message' text property and its effect.
      027da652
    • Mattias Engdegård's avatar
      rx: Use longest match for all-string 'or' forms (bug#37659) · 5a21aaff
      Mattias Engdegård authored
      Revert to the Emacs 26 semantics that always gave the longest match
      for rx 'or' forms with only string arguments.  This guarantee was
      never well documented, but it is useful and people likely have come to
      rely on it.  For example, prior to this change,
      
       (rx (or ">" ">="))
      
      matched ">" even if the text contained ">=".
      
      * lisp/emacs-lisp/rx.el (rx--translate-or): Don't tell regexp-opt to
      preserve the matching order.
      * doc/lispref/searching.texi (Rx Constructs): Document the
      longest-match guarantee for all-string 'or' forms.
      * test/lisp/emacs-lisp/rx-tests.el (rx-or): Update test.
      5a21aaff
  8. 11 Feb, 2020 5 commits
  9. 10 Feb, 2020 3 commits
    • Alan Mackenzie's avatar
      c-end-of-macro: Handle block coment lines with unescaped NLs correctly · ad5e350a
      Alan Mackenzie authored
      * lisp/progmodes/cc-langs.el (c-last-open-c-comment-start-on-line-re): Make
      obsolete, and supersede by ...
      (c-open-c-comment-on-logical-line-re): New language variable.
      
      * lisp/progmodes/cc-engine.el (c-end-of-macro): Inside macros, handle
      multiline block comments whose line ends are not escaped correctly.
      ad5e350a
    • Michael Albinus's avatar
      Fix window position in Tramp's shell-command · 2e2f5390
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-handle-shell-command): Fix `window-start'
      in output buffer.  (Bug#39171)
      2e2f5390
    • Juri Linkov's avatar
      Use quit-restore-window to close tab (bug#39446) · ac9acc18
      Juri Linkov authored
      * lisp/tab-bar.el (display-buffer-in-new-tab): New function with code
      from display-buffer-in-tab.
      (display-buffer-in-tab): Call display-buffer-in-new-tab.
      (switch-to-buffer-other-tab): Instead of 'display-buffer-same-window'
      use '(reusable-frames . t)'.
      
      * lisp/windmove.el (windmove-display-in-direction): Set arg 'type'
      to 'tab' for window--display-buffer when creating a new tab.
      
      * lisp/window.el (quit-restore-window): Call tab-bar-close-tab
      when quit-restore type is 'tab'.
      (display-buffer-record-window): Set window-parameter 'quit-restore'
      to 'tab' for type 'tab'.
      (window--display-buffer): Set window-prev-buffers to nil for tab too.
      ac9acc18
  10. 09 Feb, 2020 2 commits
    • Alan Mackenzie's avatar
      Correct "different than" to "different from" where appropriate · 53006746
      Alan Mackenzie authored
      (doc/emacs/screen.texi)
      (doc/lispintro/emacs-lisp-intro.texi)
      (doc/misc/calc.texi)
      (doc/misc/gnus.texi)
      (doc/misc/sc.texi)
      (lisp/align.el)
      (lisp/allout-widgets.el)
      (lisp/allout.el)
      (lisp/emacs-lisp/gv.el)
      (lisp/font-lock.el)
      (lisp/gnus/mm-util.el)
      (lisp/mail/feedmail.el)
      (lisp/mail/sendmail.el)
      (lisp/mail/supercite.el)
      (lisp/org/org-attach.el)
      (lisp/progmodes/cc-langs.el)
      (lisp/progmodes/idlw-shell.el)
      (lisp/ps-print.el)
      (lisp/simple.el)
      (src/cmds.c)
      (src/editfns.c)
      (src/frame.h)
      (src/regex-emacs.c)
      (src/xfaces.c): Replace "different than" by "different from".
      53006746
    • Stefan Monnier's avatar
      * lisp/simple.el (undo-redo): New command · 2645ae12
      Stefan Monnier authored
      (undo--last-change-was-undo-p): New function.
      
      * test/lisp/simple-tests.el (simple-tests--exec): New function.
      (simple-tests--undo): New test.
      2645ae12
  11. 08 Feb, 2020 3 commits
    • Kyle Hubert's avatar
      Improve prefix arg support in 'ediff-scroll-horizontally' · 953e7abf
      Kyle Hubert authored
      * lisp/vc/ediff-util.el (ediff-scroll-horizontally): Use
      'current-prefix-arg' to pass the value of prefix argument to
      scrolling commands.  (Bug#39353)
      
      Copyright-paperwork-exempt: yes
      953e7abf
    • Yuan Fu's avatar
      Enhance memory address evaluation in gdb-mi · 07e1852c
      Yuan Fu authored
      Before, the memory buffer evaluated the expression as address and used
      the fixed result in each stop.  This change store the expression
      itself and reevaluates it in each stop to yield an address.
      We also add a warning (a red bold exclamation mark) on the header line
      when the content of the page doesn't represent the memory location
      user requested for.  That happends when some error occurs in
      evaluating the address, and we display the last successfully displayed
      memory page.
      * lisp/progmodes/gdb-mi.el (gdb-memory-address-expression)
      (gdb--memory-display-warning): New variables.
      (gdb-memory-address): Change default value to nil; add docstring.
      (def-gdb-trigger-and-handler, gdb-invalidate-memory)
      (gdb-memory-set-address): Replace 'gdb-memory-address' with
      'gdb-memory-address-expression'.
      (gdb-memory-header): Add code to display
      'gdb-memory-address-expression' on header line.  Move the mouse event
      from address to expression.  Add code to display the warning.
      (gdb-memory-header): Fix the error from
      'propertize' when 'gdb-memory-address-expression' or
      'gdb-memory-address' is nil.
      (gdb-read-memory-custom): Change 'error' to 'user-error'.  Add code to
      display the warning.  (Bug#39180)
      07e1852c
    • Eli Zaretskii's avatar
      More accurate documentation of 'package-menu-hide-package' · 56b8768b
      Eli Zaretskii authored
      * doc/emacs/package.texi (Package Menu): Improve the description
      of the 'H' command.
      
      * lisp/emacs-lisp/package.el (package-menu-mode-menu): More
      accurate wording of the help-echo string.
      (package-menu-hide-package): Make the doc string more accurate.
      (Bug#39436)
      56b8768b
  12. 07 Feb, 2020 1 commit
    • Michael Albinus's avatar
      Some Tramp fixes · 30abcda5
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-connectable-p):
      * lisp/net/tramp-cache.el (tramp-list-connections):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-enabled):
      Bind `tramp-verbose' to 0.
      
      * lisp/net/tramp-sh.el (tramp-remote-path, tramp-find-executable):
      Fix docstring.
      (tramp-open-shell): Read prompt when moving "~/.editrc".
      30abcda5
  13. 06 Feb, 2020 3 commits
    • Stefan Monnier's avatar
    • Zajcev Evgeny's avatar
      Make 'M-x battery RET' work out-of-box for UPower users. · d8f4317f
      Zajcev Evgeny authored
      * battery.el (battery-upower-prop): Removed in favor for
        'battery-upower-device-property'.
        (battery-upower-device): Can be nil, meaning autodetect the battery
        device.
        (battery-upower-line-power-device): New.  line-power device.  Can be
        nil, meaning autodetect line-power device.
        (battery-status-function): Check UPower service is available to use
        'battery-upower' as status function.
        (battery-upower): Speedup.  Request D-Bus only once, fetching all
        the properties at once.  Provide string for "%b" format spec.
        (battery-upower-device-list, battery-upower-device-all-properties,
        battery-upower-device-property): New functions to work with UPower
        devices.
        (battery-upower-dbus-service, battery-upower-dbus-interface,
        battery-upower-dbus-path, battery-upower-dbus-device-interface,
        battery-upower-dbus-device-path): New constants describing UPower
        D-Bus service.
      d8f4317f
    • Stefan Kangas's avatar
      Revert "Signal user-error on duplicate package refresh" · b2e27d86
      Stefan Kangas authored
      That commit caused errors when the connection was dropped in the
      middle of a package refresh.  To avoid any further issues this close
      to the pretest, we simply remove this feature.  (Bug#39187)
      
      Don't merge to master, where we will instead try to fix the bug.
      b2e27d86
  14. 05 Feb, 2020 5 commits