1. 24 Feb, 2019 7 commits
    • Stefan Monnier's avatar
      * lisp/term.el: Fix minor compilation issues with cl-lib and lexbind · 5653b76d
      Stefan Monnier authored
      Remove left-over comment from the bulk comint->term query/replace.
      (term-command-function): Rename from term-command-hook.
      Give it a global default value.
      (term-suppress-hard-newline): Mark it as generally obsolete.
      (term-mode): Don't manually make hooks buffer-local.
      (term--remove-fake-newlines): Fix assert -> cl-assert.
      (term-char-mode): Use add-function.
      (term-send-input): Use run-hook-with-args.
      (term-dynamic-complete): Use run-hook-with-args-until-success.
      (term-dynamic-simple-complete): Completion tables can be plain lists.
      (serial-read-name): Simplify and fix misuse of `set`.
    • John Shahid's avatar
      Adjust line wrapping on window resize and killing text · 467e6ccb
      John Shahid authored
      * lisp/term.el (term-mode): Advice filter-buffer-substring-function to
      remove line unwrapping from killed text.
      (term-reset-size): Add or remove line unwrapping depending on the new
      terminal width.
      (term-suppress-hard-newline): Mark obsolete.
      (term-unwrap-line): Use text properties to be able to find the
      newlines later.
    • Eric Abrahamsen's avatar
      Make pinyin to Chinese character mapping available to elisp · 28f7e981
      Eric Abrahamsen authored
      * leim/Makefile.in: Build the file pinyin.el from pinyin.map.
      * lisp/international/titdic-cnv.el (pinyin-convert): New function that
        writes the library pinyin.el, containing a new constant
      * .gitignore: Ignore the generated pinyin.el file.
    • Richard Stallman's avatar
      fix rmail armor decryption problems · 13e6275e
      Richard Stallman authored
      * lisp/mail/rmail.el (rmail-epa-decrypt): Don't decrypt an armor
      that was copied into the message from a message it is a reply to.
      (rmail-epa-decrypt-1): Catch and ignore errors in
      epa-decrypt-region.  Make armor-start and armor-end markers.
    • Richard Stallman's avatar
      Don't clobber epa-mail-aliases · 5a513470
      Richard Stallman authored
      * lisp/epa-mail.el (epa-mail-default-recipients):
      Copy elements of epa-mail-aliases; don't clobber them.
    • Eli Zaretskii's avatar
    • Michael Albinus's avatar
      Cleanup also recentf files in Tramp · cbcb5718
      Michael Albinus authored
      * doc/misc/tramp.texi (Cleanup remote connections): Mention also
      recentf cache.
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection)
      (tramp-cleanup-all-connections): Call `tramp-recentf-cleanup'.
      * lisp/net/tramp-integration.el: New package.
      * lisp/net/tramp.el (tramp-rfn-eshadow-overlay)
      (tramp-eshell-directory-change): Move to tramp-integration.el
  2. 23 Feb, 2019 5 commits
    • Paul Eggert's avatar
      Don’t assume timersub and gettimeofday · 975893b2
      Paul Eggert authored
      POSIX does not specify timersub, and marks gettimeofday as
      obsolescent.  Avoid porting problems by using timespec.h
      functions instead.
      * src/editfns.c: Include systime.h instead of sys/time.h.
      (EXTRA_CONTEXT_FIELDS): Replace start and max_secs with
      time_limit.  All uses changed.  This removes the need to call
      gettimeofday or timersub.
      * src/term.c (timeval_to_Time): Remove.  Replace all uses with ...
      (current_Time): ... this new function, removing the need to
      call gettimeofday.
    • Tassilo Horn's avatar
      Improve replace-buffer-contents/replace-region-contents · e96923c1
      Tassilo Horn authored
      * src/editfns.c (Freplace_buffer_contents): Add two optional arguments
        for mitigating performance issues.
      * lisp/emacs-lisp/subr-x.el (replace-region-contents): Move from
        subr.el.  Add the same two arguments as for replace-buffer-contents.
      * lisp/json.el (json-pretty-print-max-secs): New variable holding the
        default MAX-SECS value json-pretty-print passes to
        (json-pretty-print): Use it.
      * doc/lispref/text.texi (Replacing): Add documentation for
        replace-buffer-contents two new optional arguments.  Document
    • Michael Albinus's avatar
      Make last Tramp change backward compatible to Emacs 24 · 5f640bfd
      Michael Albinus authored
      * lisp/net/tramp-cache.el (tramp-get-file-property):
      * lisp/net/tramp-sh.el (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      Make them backward compatible to Emacs 24.
    • Felicián Németh's avatar
      Jump to the current error in xref with zero prefix arg · c7e4bc97
      Felicián Németh authored
      * xref.el (xref--next-error-function): Handle the corner case of
      n == 0.  (Bug#34462)
    • Paul Eggert's avatar
      Avoid some double-rounding of Lisp timestamps · 476066e8
      Paul Eggert authored
      Also, simplify some time-related Lisp timestamp code
      while we’re in the neighborhood.
      * lisp/battery.el (battery-linux-proc-acpi)
      (battery-linux-sysfs, battery-upower, battery-bsd-apm):
      * lisp/calendar/timeclock.el (timeclock-seconds-to-string)
      (timeclock-log, timeclock-last-period)
      (timeclock-entry-length, timeclock-entry-list-span)
      (timeclock-find-discrep, timeclock-generate-report):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/completion.el (cmpl-hours-since-origin):
      * lisp/ecomplete.el (ecomplete-decay-1):
      * lisp/emacs-lisp/ert.el (ert--results-update-stats-display)
      * lisp/emacs-lisp/timer-list.el (list-timers):
      * lisp/emacs-lisp/timer.el (timer-until)
      * lisp/erc/erc-backend.el (erc-server-send-ping)
      (erc-server-send-queue, erc-handle-parsed-server-response)
      * lisp/erc/erc-track.el (erc-buffer-visible):
      * lisp/erc/erc.el (erc-lurker-cleanup, e...
  3. 22 Feb, 2019 4 commits
    • Paul Eggert's avatar
      Remove some timestamp format assumptions · eba66c1e
      Paul Eggert authored
      Don’t assume that current-time and plain encode-time return
      timestamps in (HI LO US PS) format.
      * lisp/gnus/gnus-art.el (article-make-date-line)
      * lisp/gnus/gnus-demon.el (gnus-demon-time-to-step):
      * lisp/gnus/gnus-diary.el (gnus-user-format-function-d):
      * lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles):
      * lisp/net/pop3.el (pop3-uidl-dele):
      * lisp/org/ox-publish.el (org-publish-sitemap):
      * lisp/vc/vc-hg.el (vc-hg-state-fast):
      Simplify and remove assumptions about timestamp format.
      * lisp/gnus/gnus-art.el (article-lapsed-string):
      * lisp/gnus/gnus-diary.el (gnus-user-format-function-d):
      Do not worry about time-subtract returning nil; that's not possible.
      * lisp/gnus/gnus-diary.el (gnus-user-format-function-d):
      Avoid race due to duplicate current-time calls.
      * lisp/vc/vc-hg.el (vc-hg--time-to-integer): Remove; no longer used.
    • Alex Branham's avatar
      which-function: Do not display outdated imenu information · 0613e7a3
      Alex Branham authored
      * lisp/progmodes/which-func.el (which-function): Check
        `add-log-current-defun' before imenu. Update `imenu--index-alist' if
        needed. Bug#33695
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix last change. · af047384
      Eli Zaretskii authored
    • Nicholas Drozd's avatar
      Handle HTML 'ol' start attribute in shr.el · 8282c34f
      Nicholas Drozd authored
      * lisp/net/shr.el (shr-tag-ol): Don't automatically assume
      1-indexing for all ordered lists, use <ol> if given.
      * etc/NEWS: Announce change in shr behavior.
      * test/data/shr/ol.html:
      * test/data/shr/ol.txt: New test data files.
  4. 21 Feb, 2019 3 commits
    • Stefan Monnier's avatar
      * lisp/vc/diff-mode.el: Reduce redundancy in diff-syntax-fontify code · 3432f554
      Stefan Monnier authored
      (diff--iterate-hunks): New function extracted from diff--font-lock-refined.
      (diff--font-lock-refined, diff--font-lock-syntax): Use it.
      (diff--overlay-auto-delete): Rename from diff--font-lock-refine--refresh.
      (diff--font-lock-syntax--refresh): Delete.
      (diff-syntax-fontify-hunk): Don't completely silence errors.
      (diff-syntax-fontify-props): Remove `no-init` arg, testing if `file` is
      nil instead.  Adjust all callers.
      (diff-syntax-fontify-props): Remove redundant code since we don't
      modify the buffer.
    • Mattias Engdegård's avatar
      Replace 8-bit-specific case-manipulation · fc78519b
      Mattias Engdegård authored
      * lisp/completion.el (cmpl-coerce-string-case):
      Rewrite case-changing code written for ASCII or latin-1 but not valid
      in generally today.
    • Michael R. Mauger's avatar
      Correct implementation of `sql-set-product-feature' (Bug#30494). · c124d532
      Michael R. Mauger authored
      * lisp.progmodes/sql.el (sql-add-product): Correct argument spec.
      (sql-set-product-feature): Handle all cases as intended.
      (sql-get-product-feature): Fetch varaiable value by `eval'.
      * test/lisp/progmodes/sql-tests.el (sql-test-feature-value-[a-d]):
      New test variables.
      (sql-test-product-feature-harness): New test macro.
      (sql-test-add-product, sql-test-add-existing-product)
      (sql-test-set-feature, sql-test-set-indirect-feature)
      (sql-test-set-missing-product, sql-test-get-feature)
      (sql-test-get-indirect-feature, sql-test-get-missing-product)
      (sql-test-get-missing-indirect-feature): New ERT tests
  5. 20 Feb, 2019 11 commits
  6. 19 Feb, 2019 10 commits
    • Glenn Morris's avatar
    • Eli Zaretskii's avatar
      Fix input after setting x-wait-for-event-timeout nil · 6985caa8
      Eli Zaretskii authored
      * src/w32term.c (x_make_frame_visible): Call unblock_input
      before returning early.  (Bug#34575)
    • Charles A. Roelli's avatar
      Simplify easy-mmode-define-navigation · 9f7212ad
      Charles A. Roelli authored
      * lisp/emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      Simplify a one-argument call to "or" and use buffer-narrowed-p instead
      of checking that condition by hand.
    • Michael Albinus's avatar
      Implement access-file in Tramp · 0a6c4479
      Michael Albinus authored
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * lisp/net/tramp-archive.el (tramp-archive-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-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
      Add `access-file'.
      * lisp/net/tramp-archive.el (tramp-archive-handle-access-file):
      * lisp/net/tramp.el (tramp-handle-access-file): New defun.
      (tramp-condition-case-unless-debug): Add declaration.
      * lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
      * lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
      Check, whether directory is accessible.
      * test/lisp/net/tramp-archive-tests.el
      * test/lisp/net/tramp-tests.el (tramp-test17-insert-directory)
      (tramp-test18-file-attributes): Test error cases.
    • João Távora's avatar
      cycle-sort-function prevails in completion-all-sorted-completions · e8b6cc9a
      João Távora authored
      * lisp/minibuffer.el (completion-all-sorted-completions): If
      completion table has cycle-sort-function, that prevails over other
      sorting strategies.
    • João Távora's avatar
      switch-to-buffer's completion table uses its own sorting · 55478e4a
      João Távora authored
      * src/minibuf.c (Finternal_complete_buffer): Add
      Qcycle_sort_function to completion table's metadata.
      (syms_of_minibuf): New symbol Qcycle_sort_function.
    • Martin Rudalics's avatar
      Fix two warnings in eshell.texi · 715388ac
      Martin Rudalics authored
      * doc/misc/eshell.texi (Built-ins, Globbing): Fix `.' or `,'
      must follow @xref, not `f' warnings.
    • Michael R. Mauger's avatar
      Merge branch 'wallet' · 37003753
      Michael R. Mauger authored
    • Michael R. Mauger's avatar
      * lisp/progmodes/sql.el: Added password wallet using · 1a6bcc91
      Michael R. Mauger authored
      `auth-source' package.
      (sql-auth-source-search-wallet): New function.
      (sql-password-wallet): New variable.
      (sql-password-search-wallet-function): New variable.
      (sql-get-login): Handle password wallet search.
      (sql-product-interactive): Handle password function.
      * test/lisp/progmodes/sql-test.el: Test wallet changes.
      (sql-test-login-params): New test variable.
      (with-sql-test-connect-harness): New macro to wrap test
      configuration around calls to `sql-connect'.
      (sql-test-connect, sql-test-connect-password-func)
      (sql-test-connect-wallet-server): New ERT tests.
      * etc/NEWS: Updated SQL Mode descriptions.
    • Stefan Monnier's avatar