1. 12 Feb, 2019 3 commits
    • João Távora's avatar
      Score flex-style completions according to match tightness · 0daf79c6
      João Távora authored
      The new completion style needs to score completion matches so that we
      can use it later on when sorting the completions.  This is because, in
      the flex style, "foo" can now match "foobar", "frodo" and
      "barfromsober" but we probably want "foobar" to appear at the top of
      the completion list.
      
      This change makes the new flex completion style add sort-order hints
      under the completion string's `completion-style-sort-order' property.
      
      * lisp/minibuffer.el (completion-pcm--hilit-commonality): Propertize
      completion with 'completion-pcm-commonality-score.
      (completion-flx-all-completions): Propertize completion with
      completion-style-sort-order and completion-style-annotation.
      0daf79c6
    • João Távora's avatar
      Add a new 'flex' completion style · 8b44a4bf
      João Távora authored
      * lisp/minibuffer.el (completion-styles-alist): Add flex.
      (completion-substring--all-completions): Accept
      transform-pattern-fn arg.
      (completion-flex-all-completions, completion-flex-try-completion)
      (completion-flex--make-flex-pattern): New functions.
      8b44a4bf
    • Glenn Morris's avatar
      * admin/notes/hydra: Small updates. · 5abaf16a
      Glenn Morris authored
      5abaf16a
  2. 11 Feb, 2019 6 commits
    • Mattias Engdegård's avatar
      Add missing categories L, R, . and SPC to rx · d41f9123
      Mattias Engdegård authored
      * lisp/emacs-lisp/rx.el (rx-categories):
      Add missing categories L, R, . and SPC.  (Bug#34436)
      d41f9123
    • Paul Eggert's avatar
      Simplify url-digest-auth-make-cnonce · 2860f6ce
      Paul Eggert authored
      * lisp/url/url-auth.el (url-digest-auth-make-cnonce):
      Simplify by using encode-time instead of round-tripping
      through a format-time-string and ‘read’.
      2860f6ce
    • Paul Eggert's avatar
      Don’t assume CURRENT_TIME_LIST · 93241242
      Paul Eggert authored
      Use timestamp accessors instead of delving into a timestamp
      format that is planned to change in a future version.
      * lisp/find-lisp.el (find-lisp-format-time):
      * lisp/gnus/gnus-group.el (gnus-group-set-timestamp):
      * lisp/gnus/gnus-icalendar.el (gnus-icalendar-show-org-agenda):
      Use encode-time instead of delving into timestamp format.
      * lisp/gnus/gnus-group.el (gnus-group-timestamp-delta):
      Use float-time instead of delving into timestamp format.
      * lisp/gnus/nnmaildir.el (nnmaildir-request-accept-article):
      Use format-time-string instead of delving into timestamp format.
      * lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles):
      Use time-less-p instead of delving into timestamp format.
      * lisp/ido.el (ido-wash-history, ido-file-name-all-completions):
      Use time-equal-p instead of delving into timestamp format.
      * lisp/net/tramp-adb.el (tramp-adb-handle-set-file-times):
      Use format-time-string to generate POSIX ‘test -t’ format instead
      of timestamp-format-dependent code along with shell arithmetic
      that can’t possibly do the right thing on a POSIX platform.
      93241242
    • Paul Eggert's avatar
      Simplify use of encode-time · 988e37fa
      Paul Eggert authored
      Most uses of (apply #'encode-time foo) can now be replaced
      with (encode-time foo).  Make similar simplifications.
      * lisp/calendar/time-date.el (date-to-time):
      * lisp/calendar/timeclock.el (timeclock-when-to-leave)
      (timeclock-day-base, timeclock-generate-report):
      * lisp/emacs-lisp/timer.el (timer-set-idle-time):
      * lisp/eshell/esh-util.el (eshell-parse-ange-ls):
      * lisp/gnus/gnus-art.el (article-make-date-line):
      * lisp/gnus/gnus-delay.el (gnus-delay-article)
      (gnus-delay-send-queue):
      * lisp/gnus/gnus-icalendar.el (gnus-icalendar-event--decode-datefield):
      * lisp/gnus/gnus-logic.el (gnus-advanced-date):
      * lisp/gnus/message.el (message-make-expires-date):
      * lisp/gnus/nndiary.el (nndiary-compute-reminders):
      * lisp/mail/ietf-drums.el (ietf-drums-parse-date):
      * lisp/net/tramp-adb.el (tramp-adb-ls-output-time-less-p):
      * lisp/org/org-agenda.el (org-agenda-get-timestamps)
      (org-agenda-get-progress, org-agenda-show-clocking-issues):
      * lisp/org/org-capture.el (org-capture-set-target-location):
      * lisp/org/org-clock.el (org-clock-get-sum-start, org-clock-sum)
      (org-clocktable-steps):
      * lisp/org/org-colview.el (org-colview-construct-allowed-dates)
      * lisp/org/org-macro.el (org-macro--vc-modified-time):
      * lisp/org/org-table.el (org-table-eval-formula):
      * lisp/org/org.el (org-current-time, org-store-link)
      (org-time-today, org-read-date, org-read-date-display)
      (org-display-custom-time, org-time-string-to-time)
      (org-timestamp-change, org-timestamp--to-internal-time):
      * lisp/url/url-dav.el (url-dav-process-date-property):
      * lisp/vc/vc-cvs.el (vc-cvs-annotate-current-time)
      (vc-cvs-parse-entry):
      Simplify use of encode-time.
      * lisp/org/org-clock.el (org-clock-get-clocked-time):
      (org-clock-resolve, org-resolve-clocks, org_clock_out)
      (org-clock-update-time-maybe):
      Avoid some rounding problems with encode-time and float-time.
      * lisp/org/org-clock.el (org-clock-in, org-clock-update-time-maybe):
      * lisp/org/org-colview.el (org-columns--age-to-minutes):
      * lisp/org/org.el (org-get-scheduled-time, org-get-deadline-time)
      (org-add-planning-info, org-2ft, org-time-string-to-absolute)
      (org-closest-date):
      Use org-time-string-to-time instead of doing it by hand with
      encode-time.
      * lisp/org/org.el (org-current-time): Simplify rounding.
      (org-read-date): Avoid extra trip through encode-time.
      988e37fa
    • Paul Eggert's avatar
      Fix doc string treatment of integer overflow · 3eb63da1
      Paul Eggert authored
      * lisp/calendar/cal-dst.el (calendar-dst-find-startend):
      Fix doc string.
      3eb63da1
    • Paul Eggert's avatar
      Prefer encode-time to its alias · 57c74793
      Paul Eggert authored
      * lisp/calendar/icalendar.el, lisp/calendar/timeclock.el:
      * lisp/emacs-lisp/timer.el, lisp/gnus/gnus-delay.el:
      * lisp/gnus/gnus-sum.el, lisp/gnus/nndiary.el:
      * lisp/gnus/nnrss.el, lisp/net/newst-backend.el:
      * lisp/net/rcirc.el, lisp/obsolete/xesam.el:
      * lisp/org/org-agenda.el, lisp/org/org-clock.el:
      * lisp/org/org-element.el, lisp/org/org-timer.el:
      * lisp/org/org.el, lisp/progmodes/flymake.el:
      * lisp/url/url-cache.el, lisp/url/url-cookie.el:
      Use encode-time instead of its alias seconds-to-time.
      57c74793
  3. 10 Feb, 2019 7 commits
  4. 08 Feb, 2019 16 commits
    • Alex Branham's avatar
      Fix byte compile warnings in checkdoc.el · 1e155dcc
      Alex Branham authored
      * lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): Fix
        byte compile warnings by requiring lisp-mnt top-level, remove XEmacs
        compatibility code.
      
      Bug#34290
      1e155dcc
    • Tassilo Horn's avatar
      Impl. json-pretty-print with replace-region-contents + minimization · b3092b28
      Tassilo Horn authored
      * lisp/json.el (json-pretty-print): Use the new
        replace-region-contents.  Add prefix arg for minimzation.
      (json-pretty-print-buffer): Add prefix arg for minimzation.
      (json-pretty-print-buffer-ordered): Add prefix arg for minimzation.
      (json-pretty-print-ordered): Add prefix arg for minimzation.
      b3092b28
    • Tassilo Horn's avatar
      Add new function replace-buffer-contents · 61748cd7
      Tassilo Horn authored
      * src/editfns.c (Freplace_buffer_contents): Use lower value of
        too_expensive and enable heuristic.
      * lisp/subr.el (replace-region-contents): New convenient wrapper
        function around replace-buffer-contents.
      61748cd7
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/package.el: Improve generated foo-pkg.el · ac1e5a5e
      Stefan Monnier authored
      (package-generate-description-file): Make first line more informative.
      (package-buffer-info): Include keywords, to more closely match
      elpa.git's archive--metadata.
      ac1e5a5e
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 0f994050
      Glenn Morris authored
      0cd7b526 (origin/emacs-26) Minor improvements to do strings in callproc.c
      b8c70172 Improve documentation of 'date-to-time' and 'parse-time-string'
      46095a7d Fix downloading of URLs that end in a slash
      3b60a0ad * doc/misc/eww.texi (Basics): Fix eww keybindings.  (Bug#34291)
      8e22025f Fix process-thread docstring
      459b669b Fix failures of vc-find-revision with non-ASCII file names
      e9ff1905 * doc/lispref/tips.texi (Documentation Tips): Fix quotes.  (B...
      3e49a080 ; * src/coding.h (struct coding_system): Fix a typo in a comm...
      b657286a Add documentation for tabulated-list functions in the elisp m...
      6e0f67b2 Fix URL in ucs-normalize.el
      ce3ae1f8 * etc/PROBLEMS: Amend entry for profiler bug #34235 to mentio...
      
      # Conflicts:
      #	doc/lispref/os.texi
      0f994050
    • Glenn Morris's avatar
      ; Merge from origin/emacs-26 · 4f138318
      Glenn Morris authored
      The following commit was skipped:
      
      b51ac456 * make-dist: Remove references to src/stamp-h.in.
      4f138318
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · 31ae9dc8
      Glenn Morris authored
      9d87ba1e * etc/PROBLEMS: Mention profiler-report bug (Bug#34235).
      31ae9dc8
    • Eli Zaretskii's avatar
      Minor improvements to do strings in callproc.c · 0cd7b526
      Eli Zaretskii authored
      * src/callproc.c (Fcall_process, Fcall_process_region): Minor
      fixes to doc strings.  Suggested by Nicholas Drozd
      <nicholasdrozd@gmail.com>.  (Bug#34274)
      0cd7b526
    • Eli Zaretskii's avatar
      Improve documentation of 'date-to-time' and 'parse-time-string' · b8c70172
      Eli Zaretskii authored
      * doc/lispref/os.texi (Time Parsing): Document
      'parse-time-string', and refer to it for the description of
      the argument of 'date-to-time'.
      
      * lisp/calendar/time-date.el (date-to-time): Refer in the doc
      string to 'parse-time-string' for more information about the
      format of the DATE argument.  (Bug#34303)
      b8c70172
    • Robert Pluim's avatar
      Unify three font info structures · 9e0d69b5
      Robert Pluim authored
      * src/ftfont.h (struct font_info): New type, unifies similar types
      from ftcrfont.c, ftfont.c and xftfont.c
      * src/xftfont.c (struct xftfont_info): Remove, replace with struct
      font_info.  Adjust all uses.
      * src/ftcrfont.c (struct ftcrfont_info): Likewise.
      * src/ftfont.c (struct ftfont_info): Likewise.
      9e0d69b5
    • Eli Zaretskii's avatar
      Minor fixes for last change · 24905e92
      Eli Zaretskii authored
      * etc/NEWS: Announce the change in EWW download behavior.
      
      * lisp/net/eww.el (eww-download): Doc fix.  (Bug#34291)
      24905e92
    • Nick Drozd's avatar
      Download of URL in EWW falls back on current URL · 51e6e069
      Nick Drozd authored
      * lisp/net/eww.el (eww-download): If there's no URL at point,
      download the current URL instead.  Previous behavior was to
      signal an error if there was no URL at point.  (Bug#34291)
      * doc/misc/eww.texi (Basics): Update documentation.
      51e6e069
    • Nick Drozd's avatar
      Fix downloading of URLs that end in a slash · 46095a7d
      Nick Drozd authored
      * lisp/net/eww.el (eww-download-callback): Fix download URL
      file name.  Previously this wasn't handling download URLs
      correctly, resulting in all downloaded pages being named
      "!", "!(1)", etc.  (Bug#34291)
      46095a7d
    • Nick Drozd's avatar
    • Robert Pluim's avatar
      Fix process-thread docstring · 8e22025f
      Robert Pluim authored
      * src/process.c (Fprocess_thread): Correct docstring.
      8e22025f
    • Eli Zaretskii's avatar
      Fix failures of vc-find-revision with non-ASCII file names · 459b669b
      Eli Zaretskii authored
      * lisp/vc/vc.el (vc-find-revision): Instead of binding
      coding-system-for-write, make the buffer-file-coding-system of
      the temporary buffer be no-conversion.  This avoids the
      unwanted side effect of not encoding the command-line
      arguments of the VCS commands invoked by the backend.
      (Bug#34350)
      459b669b
  5. 07 Feb, 2019 8 commits