1. 15 Sep, 2019 1 commit
  2. 14 Sep, 2019 3 commits
    • Paul Eggert's avatar
      Improve doc of GC thresholds · 1acc0cc9
      Paul Eggert authored
      * doc/lispref/internals.texi (Garbage Collection), etc/NEWS:
      Warn that control over GC is only approximate.
      1acc0cc9
    • Eli Zaretskii's avatar
      ; * etc/NEWS: Fix last change. · 53a1a29b
      Eli Zaretskii authored
      53a1a29b
    • Federico Tedin's avatar
      Allow gamegrid-add-score to treat lower scores as better. · 36bf5534
      Federico Tedin authored
      * lisp/play/gamegrid.el (gamegrid-add-score): Add 'reverse' parameter.
      (gamegrid-add-score-with-update-game-score): Add 'reverse' parameter.
      (gamegrid-add-score-with-update-game-score-1): Add 'reverse'
      parameter.  Pass on "-r" argument to update-game-score.
      (gamegrid-add-score-insecure): Add 'reverse' parameter, reverse scores
      when it's non-nil.  (Bug#36867)
      
      * etc/NEWS: Announce the change.
      36bf5534
  3. 12 Sep, 2019 1 commit
    • 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
  4. 08 Sep, 2019 1 commit
    • 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
  5. 07 Sep, 2019 1 commit
  6. 02 Sep, 2019 2 commits
  7. 29 Aug, 2019 3 commits
  8. 28 Aug, 2019 1 commit
  9. 27 Aug, 2019 2 commits
    • Paul Eggert's avatar
      Use XDG conventions more consistently · 4118297a
      Paul Eggert authored
      Fit in better with the XDG conventions.
      Something like this was suggested in 2008 (Bug#583)
      and the XDG conventions seem to have settled down by now.
      * doc/emacs/custom.texi (Init File, Init Syntax, Find Init):
      * doc/lispref/files.texi (Standard File Names):
      * doc/lispref/os.texi (Init File):
      * doc/misc/url.texi (Customization):
      * etc/NEWS:
      Adjust accordingly.
      * lisp/startup.el (startup--load-user-init-file):
      If init-file-name is nil, do not load from it; instead
      just use the alt-file.
      (find-init-path): Remove; no longer used.
      (command-line): Don't check twice for XDG.
      Look at XDG_CONFIG_HOME instead of assuming it's ~/.config.
      Prefer XDG configuration if it exists; the user can disable
      this by setting XDG_CONFIG_HOME to some other place.
      * lisp/subr.el (user-emacs-directory):
      Prefer XDG configuration if it exists.
      4118297a
    • Juri Linkov's avatar
      Browser-like Info-history button menu (bug#37184) · ba5d9795
      Juri Linkov authored
      * doc/misc/info.texi (Help-Int): Using tool-bar to navigate history.
      
      * lisp/info.el (Info-history-menu): New function.
      (Info-history-back-menu, Info-history-forward-menu): New commands.
      (Info-mode-map): Bind Info-history-back-menu and
      Info-history-forward-menu to tool-bar on C-key.
      ba5d9795
  10. 25 Aug, 2019 3 commits
    • Alan Mackenzie's avatar
      Introduce new value t for compilation-context-lines to eliminate scrolling · 29d1c72d
      Alan Mackenzie authored
      In particular, to prevent scrolling in a window lacking a left fringe.
      Instead, a visible arrow "=>" is inserted before column zero.  This fixes
      bug #36832.
      
      * lisp/progmodes/compile.el (compilation-context-lines): Add the new value t.
      (compilation-set-window): Amend to handle compilation-context-lines being t.
      (overlay-arrow-overlay): New variable holding an overlay with before-string
      property "=>".
      (compilation-set-overlay-arrow): New function which manipulates
      overlay-arrow-overlay.
      (compilation-goto-locus, compilation-find-file): In addition to calling
      compilation-set-window, also call compilation-set-overlay-arrow.
      
      * doc/emacs/building.texi (Compilation Mode): Document the new value t which
      compilation-context-lines can take.
      
      * etc/NEWS: Add an entry for this change.
      29d1c72d
    • Lars Ingebrigtsen's avatar
      Use ' instead of ` in NEWS · 9b10ec06
      Lars Ingebrigtsen authored
      9b10ec06
    • Lars Ingebrigtsen's avatar
      Use `autoconf-mode' for Autoconf .m4 files · 9459c4c1
      Lars Ingebrigtsen authored
      * lisp/files.el (auto-mode-alist): Use `autoconf-mode' (instead of
      `m4-mode') for acinclude.m4/aclocal.m4/acsite.m4 files (bug#37133).
      9459c4c1
  11. 23 Aug, 2019 4 commits
  12. 21 Aug, 2019 3 commits
    • NicolasPetton's avatar
      * etc/NEWS: Delete temporary markup. · e8f176b6
      NicolasPetton authored
      e8f176b6
    • Paul Eggert's avatar
      Avoid some excess precision in time arithmetic · 396ed88a
      Paul Eggert authored
      * doc/misc/emacs-mime.texi (time-date):
      Adjust example to match new behavior.
      * etc/NEWS: Mention this.
      * lisp/calendar/time-date.el (decoded-time-add)
      (decoded-time--alter-second):
      Don’t lose underestimate precision of seconds component.
      * src/bignum.c (mpz): Grow by 1.
      * src/timefns.c (trillion_factor): New function.
      (timeform_sub_ps_p): Remove.
      (time_arith): Avoid unnecessarily-large hz, by reducing the hz
      to a value no worse than the worse hz of the two arguments.
      The result is always exact unless an error is signaled.
      * test/src/timefns-tests.el (timefns-tests--decode-time):
      New function.
      (format-time-string-with-zone): Test (decode-time LOOK ZONE t)
      resolution as well as its numeric value.
      396ed88a
    • Noam Postavsky's avatar
      Respect global-eldoc-mode in minibuffers (Bug#36886) · 7e2090ee
      Noam Postavsky authored
      * lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Accept
      a BODY parameter.
      * doc/lispref/modes.texi (Defining Minor Modes): Document new
      parameter.
      * etc/NEWS: Announce it.
      
      * lisp/simple.el (read--expression): Move eldoc-mode setup to...
      * lisp/emacs-lisp/eldoc.el (eldoc--eval-expression-setup): ... here,
      new function.
      (global-eldoc-mode): Add or remove it to
      eval-expression-minibuffer-setup-hook when enabling or disabling
      global-eldoc-mode.  This enables eldoc in the minibuffer (solving
      Bug#27202), only when global-eldoc-mode is enabled.
      7e2090ee
  13. 20 Aug, 2019 3 commits
  14. 18 Aug, 2019 2 commits
    • Lars Ingebrigtsen's avatar
      Allow set-frame-height/set-frame-width to be used interactively · 1b96e022
      Lars Ingebrigtsen authored
      * doc/lispref/frames.texi (Frame Size): Document it.
      
      * src/frame.c (Fset_frame_height):
      (Fset_frame_width): Make into commands that use the numeric prefix
      to set height/width (bug#9970).
      1b96e022
    • Eli Zaretskii's avatar
      Support the new Japanese era name · 190565b2
      Eli Zaretskii authored
      * admin/unidata/NormalizationTest.txt:
      * admin/unidata/UnicodeData.txt: Add U+32FF SQUARE ERA NAME REIWA.
      Do not merge to master.
      
      * test/lisp/international/ucs-normalize-tests.el
      (ucs-normalize-tests--failing-lines-part1)
      (ucs-normalize-tests--failing-lines-part2): Update.  Do not
      merge to master.
      
      * etc/NEWS: Mention the change.
      190565b2
  15. 17 Aug, 2019 2 commits
    • Lars Ingebrigtsen's avatar
      Make newline-and-indent take a numeric prefix · 3efe59a8
      Lars Ingebrigtsen authored
      * lisp/simple.el (newline-and-indent): Take a prefix argument to
      say how many times to perform its action (bug#10927).
      3efe59a8
    • Paul Eggert's avatar
      More-compatible subsecond calendrical timestamps · 37257d6a
      Paul Eggert authored
      Instead of appending a subseconds member to the result of
      ‘decode-time’, this keeps the format unchanged unless you give
      a new optional argument to ‘decode-time’.  Also, the augmented
      format now puts the subsecond info in the SECONDS element, so
      the total number of elements is unchanged; this is more
      compatible with code that expects the traditional 9 elements,
      such as ‘(pcase decoded-time (`(,SEC ,MIN ,HOUR ,DAY ,MON
      ,YEAR ,DOW ,DST ,ZONE) ...) ...)’.
      * doc/lispref/os.texi, doc/misc/emacs-mime.texi, etc/NEWS:
      * lisp/net/soap-client.el (soap-decode-date-time):
      * lisp/simple.el (decoded-time):
      Document the new behavior.
      * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
      * lisp/calendar/iso8601.el (iso8601-parse)
      (iso8601-parse-time, iso8601-parse-duration)
      (iso8601--decoded-time):
      * lisp/calendar/parse-time.el (parse-time-string):
      * lisp/calendar/time-date.el (decoded-time-add)
      (decoded-time--alter-second):
      * lisp/org/org.el (org-parse-time-string):
      * lisp/simple.el (decoded-time):
      * src/timefns.c (Fdecode_time, Fencode_time):
      * test/lisp/calendar/icalendar-tests.el:
      (icalendar--decode-isodatetime):
      * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years)
      (test-iso8601-date-dates, test-iso8601-date-obsolete)
      (test-iso8601-date-weeks, test-iso8601-date-ordinals)
      (test-iso8601-time, test-iso8601-combined)
      (test-iso8601-duration, test-iso8601-intervals)
      (standard-test-dates, standard-test-time-of-day-fractions)
      (standard-test-time-of-day-beginning-of-day)
      (standard-test-time-of-day-utc)
      (standard-test-time-of-day-zone)
      (standard-test-date-and-time-of-day, standard-test-interval):
      * test/lisp/calendar/parse-time-tests.el (parse-time-tests):
      * test/src/timefns-tests.el (format-time-string-with-zone)
      (encode-time-dst-numeric-zone):
      Revert recent changes that added a SUBSECS member to
      calendrical timestamps, since that component is no longer
      present (the info, if any, is now in the SECONDS member).
      * lisp/calendar/time-date.el (decoded-time-add)
      (decoded-time--alter-second):
      Support fractional seconds in the new form.  Simplify.
      * src/timefns.c (Fdecode_time): Support new arg FORM.
      (Fencode_time): Support subsecond resolution.
      * test/src/timefns-tests.el (format-time-string-with-zone)
      (decode-then-encode-time): Test subsecond calendrical timestamps.
      37257d6a
  16. 16 Aug, 2019 1 commit
    • Alex Branham's avatar
      Fix eshell-mode-map initialization · 1ee0192b
      Alex Branham authored
      * lisp/eshell/esh-mode.el (eshell-mode-map, eshell-command-map): Set
      up normal keymaps and prefix commands rather than re-initializing them
      in each eshell buffer
      
      * lisp/eshell/em-cmpl.el (eshell-cmpl-mode-map, eshell-cmpl-mode)
      (eshell-cmpl-initialize):
      * lisp/eshell/em-hist.el (eshell-hist-mode-map, eshell-hist-mode)
      (eshell-hist-initialize):
      * lisp/eshell/em-pred.el (eshell-pred-mode-map, eshell-pred-mode)
      (eshell-pred-initialize):
      * lisp/eshell/em-prompt.el (eshell-prompt-mode-map, eshell-prompt-mode)
      (eshell-prompt-initialize):
      * lisp/eshell/em-rebind.el (eshell-rebind-mode-map, eshell-rebind-mode)
      (eshell-rebind-initialize):
      * lisp/eshell/esh-arg.el (eshell-arg-mode-map, eshell-arg-mode)
      (eshell-arg-initialize):
      * lisp/eshell/esh-proc.el (eshell-proc-mode-map, eshell-proc-mode)
      (eshell-proc-initialize):
      * lisp/eshell/esh-var.el (eshell-var-mode-map, eshell-var-mode)
      (eshell-var-initialize): Create a new minor mode with a keymap and
      call it in the module initialization function.
      
      bug#33808
      bug#22792
      1ee0192b
  17. 15 Aug, 2019 2 commits
  18. 13 Aug, 2019 1 commit
  19. 08 Aug, 2019 1 commit
  20. 06 Aug, 2019 3 commits
    • Mattias Engdegård's avatar
      Add conditional operator xor to subr.el · c676444a
      Mattias Engdegård authored
      Suggested by Oleh Krehel and implemented by Basil Contovounesios in
      the following thread:
      https://lists.gnu.org/archive/html/emacs-devel/2019-07/msg00547.html
      
      * lisp/array.el (xor): Move unused function from here...
      * lisp/subr.el: ...to here, and improve.
      * lisp/gnus/spam.el (spam-xor):
      * lisp/play/5x5.el (5x5-xor):
      * lisp/proced.el (proced-xor):
      * lisp/progmodes/idlwave.el (idlwave-xor):
      * lisp/vc/diff-mode.el (diff-xor): Define as obsolete aliases of,
      and replace all uses with, xor.
      * lisp/jsonrpc.el: Remove unused dependency on array.el.
      * lisp/org/org.el (org-xor): Move from here...
      * lisp/org/org-compat.el (org-xor): ...to here, as a compatibility
      shim for xor.
      * lisp/progmodes/idlw-shell.el (idlwave-shell-enable-all-bp):
      * lisp/simple.el (exchange-point-and-mark):
      * lisp/windmove.el (windmove-display-in-direction): Use xor.
      * lisp/strokes.el (strokes-xor): Remove commented-out xor
      implementation.
      
      * doc/lispref/control.texi (Control Structures): Extend menu entry
      for new combining condition.
      (Combining Conditions):
      * etc/NEWS (Lisp Changes): Document xor.
      
      * test/lisp/subr-tests.el (subr-test-xor): New test.
      c676444a
    • Stefan Monnier's avatar
      Move cl.el to lisp/obsolete · 1d8b5bc8
      Stefan Monnier authored
      * lisp/emacs-lisp/cl.el: Move from here...
      * lisp/obsolete/cl.el: ...to here.
      
      * lisp/subr.el (do-after-load-evaluation): Use "deprecated" in the
      message when loading packages from lisp/obsolete.
      1d8b5bc8
    • Paul Eggert's avatar
      decode-time now returns subsec too · b06917a4
      Paul Eggert authored
      The list that decode-time returns now contains an extra
      trailing component that counts the subseconds part of the
      original timestamp (Bug#36549).
      This builds on a suggestion by Lars Ingebrigtsen in:
      https://lists.gnu.org/r/emacs-devel/2019-07/msg00734.html
      * doc/lispref/os.texi (Time Conversion):
      * doc/misc/emacs-mime.texi (time-date):
      * etc/NEWS: Document this.
      * lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
      * lisp/calendar/iso8601.el (iso8601-parse)
      (iso8601-parse-time, iso8601-parse-duration)
      (iso8601--decoded-time):
      * lisp/calendar/parse-time.el (parse-time-string):
      * lisp/calendar/time-date.el (make-decoded-time)
      (decoded-time-set-defaults):
      * lisp/org/org.el (org-fix-decoded-time)
      (org-parse-time-string):
      * src/timefns.c (Fdecode_time):
      Generate subsec member for decoded time.
      * lisp/calendar/time-date.el (decoded-time-add)
      Add the decoded subsec too.
      * lisp/simple.el (decoded-time): New subsec member.
      * src/data.c (Frem): Simplify zero-check to match that of new Fmod.
      (integer_mod): New function, with most of the guts of the old Fmod.
      Remove redundant zero-check.
      (Fmod): Use it.
      * src/timefns.c (Fencode_time): Handle new subsec member
      or (with the obsolescent calling convention) subsec arg.
      It defaults to 0.
      * test/lisp/calendar/icalendar-tests.el:
      (icalendar--decode-isodatetime):
      * test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years)
      (test-iso8601-date-dates, test-iso8601-date-obsolete)
      (test-iso8601-date-weeks, test-iso8601-date-ordinals)
      (test-iso8601-time, test-iso8601-combined)
      (test-iso8601-duration, test-iso8601-intervals)
      (standard-test-dates, standard-test-time-of-day-fractions)
      (standard-test-time-of-day-beginning-of-day)
      (standard-test-time-of-day-utc)
      (standard-test-time-of-day-zone)
      (standard-test-date-and-time-of-day, standard-test-interval):
      * test/lisp/calendar/parse-time-tests.el (parse-time-tests):
      * test/src/timefns-tests.el (format-time-string-with-zone)
      (encode-time-dst-numeric-zone):
      Adjust to match new behavior.
      b06917a4