1. 26 Feb, 2019 2 commits
  2. 25 Feb, 2019 8 commits
    • Juri Linkov's avatar
      * lisp/vc/diff-mode.el (diff-font-lock-keywords): Add more Git headers. · e0668e68
      Juri Linkov authored
      * lisp/gnus/mm-view.el (mm-display-inline-fontify): Set mode to
      the selected major-mode, so diff-mode could be detected afterwards.
      e0668e68
    • Juri Linkov's avatar
      * lisp/frame.el (make-frame-on-monitor): New command. (Bug#34516) · 57d2f240
      Juri Linkov authored
      (make-frame-on-display): Add completion on available display names.
      57d2f240
    • Tassilo Horn's avatar
      e73adad8
    • Tassilo Horn's avatar
      ; Delete unused variable replace-buffer-contents-max-secs · 3ec62eec
      Tassilo Horn authored
      This variable is a leftover of my now deleted
      scratch/replace-region-contents branch and has never been used in
      master.
      3ec62eec
    • Paul Eggert's avatar
      format-time-string: document new '+' flag · e3bb6f90
      Paul Eggert authored
      * doc/lispref/os.texi (Time Parsing), etc/NEWS:
      * src/timefns.c (Fformat_time_string): Document the new
      behavior, added for compatibility with POSIX.1-2017.
      e3bb6f90
    • Paul Eggert's avatar
      Update from Gnulib · 0d49078a
      Paul Eggert authored
      This incorporates:
      2019-02-24 nstrftime: support the ‘+’ flag
      2019-02-24 stat, lstat: fix conflict with relocatable-prog-wrapper
      2019-02-23 nstrftime: tweak arg order
      2019-02-21 nstrftime: merge glibc strftime changes
      2019-02-02 vla: add commentary about VLA_ELEMS
      * build-aux/config.guess, doc/misc/texinfo.tex, lib/fstatat.c:
      * lib/lstat.c, lib/nstrftime.c, lib/vla.h:
      Copy from Gnulib.
      0d49078a
    • Michael Albinus's avatar
      Adapt hooks in Tramp · cedc3410
      Michael Albinus authored
      * lisp/net/tramp-archive.el (tramp-archive-cleanup-hash):
      Remove autoload cookie.
      (tramp-cleanup-all-connections-hook): Add `tramp-archive-cleanup-hash'.
      
      * lisp/net/tramp-cmds.el (tramp-cleanup-connection-hook)
      (tramp-cleanup-all-connections-hook): New hook variables.
      (tramp-cleanup-connection): Set `tramp-current-connection' always
      to nil.
      (tramp-cleanup-connection): Do not call `tramp-recentf-cleanup'.
      Run ´tramp-cleanup-connection-hook`.
      (tramp-cleanup-all-connections): Do not call
      `tramp-archive-cleanup-hash' and ´tramp-recentf-cleanup'.  Run
      `tramp-cleanup-all-connections-hook'.
      
      * lisp/net/tramp-ftp.el (top): Simply call `tramp-disable-ange-ftp'.
      
      * lisp/net/tramp-integration.el (tramp-recentf-cleanup-all): New defun.
      (top): Adapt `tramp-integration-unload-hook',
      `tramp-cleanup-connection-hook' and
      `tramp-cleanup-all-connections-hook'.
      cedc3410
    • Alex Branham's avatar
      6a3b1aaa
  3. 24 Feb, 2019 8 commits
    • Philipp Stephani's avatar
      Ignore pending_signals when checking for quits. · 72ec233f
      Philipp Stephani authored
      pending_signals is often set if no quit is pending.  This results in
      bugs in module code if the module returns but no quit is actually
      pending.
      
      As a better alternative, add a new process_input environment function
      for Emacs 27.  That function processes signals (like maybe_quit).
      
      * configure.ac: Add module snippet for Emacs 27.
      
      * src/module-env-27.h: New file.
      
      * src/emacs-module.h.in: Add process_input function to environment
      interface.
      
      * src/emacs-module.c (module_should_quit): Use QUITP macro to check
      whether the caller should quit.
      (module_process_input): New function.
      (initialize_environment): Use it.
      
      * src/eval.c: Remove obsolete comment.
      
      * test/data/emacs-module/mod-test.c (signal_wrong_type_argument)
      (signal_errno): New helper functions.
      (Fmod_test_sleep_until): New test module function.
      
      * test/src/emacs-module-tests.el (mod-test-sleep-until): New unit
      test.
      
      * doc/lispref/internals.texi (Module Misc): Document process_input.
      72ec233f
    • 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`.
      5653b76d
    • 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.
      467e6ccb
    • 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
        `pinyin-character-map'.
      * .gitignore: Ignore the generated pinyin.el file.
      28f7e981
    • 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.
      13e6275e
    • 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.
      5a513470
    • 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-rfn-eshadow-setup-minibuffer)
      (tramp-rfn-eshadow-update-overlay-regexp)
      (tramp-rfn-eshadow-update-overlay):
      (tramp-eshell-directory-change): Move to tramp-integration.el
      cbcb5718
  4. 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.
      975893b2
    • 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
        replace-buffer-contents.
        (json-pretty-print): Use it.
      * doc/lispref/text.texi (Replacing): Add documentation for
        replace-buffer-contents two new optional arguments.  Document
        replace-region-contents.
      e96923c1
    • 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.
      5f640bfd
    • 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)
      c7e4bc97
    • 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)
      (ert--results-update-stats-display-maybe):
      * lisp/emacs-lisp/timer-list.el (list-timers):
      * lisp/emacs-lisp/timer.el (timer-until)
      (timer-event-handler):
      * lisp/erc/erc-backend.el (erc-server-send-ping)
      (erc-server-send-queue, erc-handle-parsed-server-response)
      (erc-handle-unknown-server-response):
      * lisp/erc/erc-track.el (erc-buffer-visible):
      * lisp/erc/erc.el (erc-lurker-cleanup, erc-lurker-p)
      (erc-cmd-PING, erc-send-current-line):
      * lisp/eshell/em-pred.el (eshell-pred-file-time):
      * lisp/eshell/em-unix.el (eshell-show-elapsed-time):
      * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event:org-timestamp):
      * lisp/gnus/gnus-int.el (gnus-backend-trace):
      * lisp/gnus/gnus-sum.el (gnus-user-date):
      * lisp/gnus/mail-source.el (mail-source-delete-crash-box):
      * lisp/gnus/nnmaildir.el (nnmaildir--scan):
      * lisp/ibuf-ext.el (ibuffer-mark-old-buffers):
      * lisp/gnus/nnmaildir.el (nnmaildir--scan):
      * lisp/mouse.el (mouse--down-1-maybe-follows-link)
      (mouse--click-1-maybe-follows-link):
      * lisp/mpc.el (mpc--faster-toggle):
      * lisp/net/rcirc.el (rcirc-handler-ctcp-KEEPALIVE)
      (rcirc-sentinel):
      * lisp/net/tramp-cache.el (tramp-get-file-property):
      * lisp/net/tramp-sh.el (tramp-sh-handle-file-newer-than-file-p)
      (tramp-maybe-open-connection):
      * lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
      * lisp/org/org-clock.el (org-clock-resolve):
      (org-resolve-clocks, org-clock-in, org-clock-out, org-clock-sum):
      * lisp/org/org-timer.el (org-timer-start)
      (org-timer-pause-or-continue, org-timer-seconds):
      * lisp/org/org.el (org-evaluate-time-range):
      * lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
      * lisp/pixel-scroll.el (pixel-scroll-in-rush-p):
      * lisp/play/hanoi.el (hanoi-move-ring):
      * lisp/proced.el (proced-format-time):
      * lisp/progmodes/cpp.el (cpp-progress-message):
      * lisp/progmodes/flymake.el (flymake--handle-report):
      * lisp/progmodes/js.el (js--wait-for-matching-output):
      * lisp/subr.el (progress-reporter-do-update):
      * lisp/term/xterm.el (xterm--read-event-for-query):
      * lisp/time.el (display-time-update, emacs-uptime):
      * lisp/tooltip.el (tooltip-delay):
      * lisp/url/url-cookie.el (url-cookie-parse-file-netscape):
      * lisp/url/url-queue.el (url-queue-prune-old-entries):
      * lisp/url/url.el (url-retrieve-synchronously):
      * lisp/xt-mouse.el (xterm-mouse-event):
      Avoid double-rounding of time-related values.  Simplify.
      * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
      When hoping for the best (unlikely), use a better decoded time.
      (icalendar--convert-sexp-to-ical): Avoid unnecessary encode-time.
      * lisp/calendar/timeclock.el (timeclock-when-to-leave):
      * lisp/cedet/ede/detect.el (ede-detect-qtest):
      * lisp/desktop.el (desktop-create-buffer):
      * lisp/emacs-lisp/benchmark.el (benchmark-elapse):
      * lisp/gnus/gnus-art.el (article-lapsed-string):
      * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta):
      * lisp/gnus/nnmail.el (nnmail-expired-article-p):
      * lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles):
      * lisp/nxml/rng-maint.el (rng-time-function):
      * lisp/org/org-clock.el (org-clock-get-clocked-time)
      (org-clock-resolve, org-resolve-clocks, org-resolve-clocks-if-idle):
      * lisp/org/org-habit.el (org-habit-insert-consistency-graphs):
      * lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info)
      (vhdl-fix-case-region-1):
      Use time-since instead of open-coding most of it.
      * lisp/erc/erc-dcc.el (erc-dcc-get-sentinel):
      * lisp/erc/erc.el (erc-string-to-emacs-time, erc-time-gt):
      Now obsolete.  All uses changed.
      (erc-time-diff): Accept all Lisp time values.
      All uses changed.
      * lisp/gnus/gnus-demon.el (gnus-demon-idle-since):
      * lisp/gnus/gnus-score.el (gnus-score-headers):
      * lisp/gnus/nneething.el (nneething-make-head):
      * lisp/gnus/nnheader.el (nnheader-message-maybe):
      * lisp/gnus/nnimap.el (nnimap-keepalive):
      * lisp/image.el (image-animate-timeout):
      * lisp/mail/feedmail.el (feedmail-rfc822-date):
      * lisp/net/imap.el (imap-wait-for-tag):
      * lisp/net/newst-backend.el (newsticker--image-get):
      * lisp/net/rcirc.el (rcirc-handler-317, rcirc-handler-333):
      * lisp/obsolete/xesam.el (xesam-refresh-entry):
      * lisp/org/org-agenda.el (org-agenda-show-clocking-issues)
      (org-agenda-check-clock-gap, org-agenda-to-appt):
      * lisp/org/org-capture.el (org-capture-set-target-location):
      * lisp/org/org-clock.el (org-clock-resolve-clock)
      (org-clocktable-steps):
      * lisp/org/org-colview.el (org-columns-edit-value)
      (org-columns, org-agenda-columns):
      * lisp/org/org-duration.el (org-duration-from-minutes):
      * lisp/org/org-element.el (org-element-cache-sync-duration)
      (org-element-cache-sync-break)
      (org-element--cache-interrupt-p, org-element--cache-sync):
      * lisp/org/org-habit.el (org-habit-get-faces)
      * lisp/org/org-indent.el (org-indent-add-properties):
      * lisp/org/org-table.el (org-table-sum):
      * lisp/org/org-timer.el (org-timer-show-remaining-time)
      (org-timer-set-timer):
      * lisp/org/org.el (org-babel-load-file, org-today)
      (org-auto-repeat-maybe, org-2ft, org-time-stamp)
      (org-read-date-analyze, org-time-stamp-to-now)
      (org-small-year-to-year, org-goto-calendar):
      * lisp/org/ox.el (org-export-insert-default-template):
      * lisp/ses.el (ses--time-check):
      * lisp/type-break.el (type-break-time-warning)
      (type-break-statistics, type-break-demo-boring):
      * lisp/url/url-cache.el (url-cache-expired)
      (url-cache-prune-cache):
      * lisp/vc/vc-git.el (vc-git-stash-snapshot):
      * lisp/erc/erc-match.el (erc-log-matches-come-back):
      Simplify.
      476066e8
  5. 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)
      (article-lapsed-string):
      * 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.
      eba66c1e
    • 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
      0613e7a3
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix last change. · af047384
      Eli Zaretskii authored
      af047384
    • 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.
      8282c34f
  6. 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.
      3432f554
    • 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.
      fc78519b
    • 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-existing-feature)
      (sql-test-set-existing-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-feature)
      (sql-test-get-missing-indirect-feature): New ERT tests
      c124d532
  7. 20 Feb, 2019 10 commits