1. 12 Jun, 2019 1 commit
  2. 08 Jun, 2019 2 commits
    • Eli Zaretskii's avatar
      Minor fixes for the last commits · 1cc90d21
      Eli Zaretskii authored
      * src/fns.c (Fbase64url_encode_region)
      (Fbase64url_encode_string, Fbase64_decode_region)
      (Fbase64_decode_string): Fix doc strings.
      (base64_decode_1): Minor stylistic code changes.
      * doc/lispref/text.texi (Base 64): Fix typos and improve
      wording of the last committed text.
    • Pierre Téchoueyres's avatar
      Add support for base64url variant of base-64 encoding/decoding · 7541b068
      Pierre Téchoueyres authored
      Implement the RFC4648 variant of base64 encoding used by URLs.
      * doc/lispref/text.texi (base64url-encode-region,
      base64url-encode-string): Document new functions.
      (base64-decode-region, base64-decode-string): Document new optional
      parameter 'base64url' used to use url variant when decoding data.
      * src/fns.c (base64url-encode-region, base64url-encode-region): New
      functions to manage url variant.
      (base64-decode-region, base64-decode-string): Add optional
      parameter to indicate use of url-variant.
      (base64_encode_region_1, base64_encode_string_1): Internal functions
      with extracted code from 'base64_encode_region' and
      'base64_encode_string' and optional parameters to manage padding and
      url variant.
      (base64-encode-region, base64-encode-string) : Use
      base64_encode_region_1 and base64_encode_string_1.
      (base64-encode-1): Add parameters to manage padding and url variant.
      (base64-decode-1): Add parameter to manage url variant.
      * test/src/fns-tests.el (fns-tests--with-region): New helper macro to
      test region variant of base64 encode / decode functions.
      (fns-tests--string-repeat): Helper function used in base64 tests.
      (fns-tests-base64-encode-region, fns-tests-base64-encode-string):
      Tests for standard base64 function.
      fns-test-base64url-encode-string): Tests for url variant.
      (fns-tests-base64-decode-string): Tests for decoding part.
  3. 09 May, 2019 1 commit
  4. 13 Apr, 2019 2 commits
    • Eli Zaretskii's avatar
      Improve documentation of JSONRPC · d82d4fb9
      Eli Zaretskii authored
      * doc/lispref/text.texi (JSONRPC Overview)
      (Process-based JSONRPC connections)
      (JSONRPC JSON object format): Fix wording and markup.  Add
    • Eli Zaretskii's avatar
      Improve documentation changes of a recent commit · 2475687d
      Eli Zaretskii authored
      * doc/lispref/text.texi (Parsing JSON): Improve wording of the
      documentation of 'json-parse-string' and 'json-parse-buffer'.
      * src/json.c (Fjson_parse_string, Fjson_parse_buffer): Doc fix.
  5. 12 Apr, 2019 1 commit
    • Dmitry Gutov's avatar
      Add :array-type option to json-parse-string · b41c1ca1
      Dmitry Gutov authored
      * src/json.c (enum json_array_type): New type.
      (struct json_configuration): New field array_type.
      (json_parse_args): Rename the last argument.  Handle the
      :array-type keyword argument (bug#32793).
      (Fjson_parse_string): Update the docstring accordingly.
      (json_to_lisp): Handle the case of :array-type being `list'.  Add
      a call to 'rarely_quit' inside the loop.
      (syms_of_json): Define new symbols.
      (Fjson_serialize, Fjson_insert, Fjson_parse_string)
      (Fjson_parse_buffer): Update the config struct initializers.
  6. 11 Apr, 2019 1 commit
    • Alex Branham's avatar
      Backport: Update documentation for indent-relative functions · 559f64a0
      Alex Branham authored
      * lisp/indent.el (indent-relative): Document what happens when there
        is no previous nonblank line.
      * doc/lispref/text.texi (Relative Indent): Document
        indent-relative-first-indent-point instead of obsolete
        indent-relative-maybe. Fix documentation of which argument from
        'indent-relative' is used.
      (cherry picked from commit 10cd6587)
  7. 06 Apr, 2019 1 commit
    • Alex Branham's avatar
      Update documentation for indent-relative functions · 10cd6587
      Alex Branham authored
      * lisp/indent.el (indent-relative): Document what happens when there
        is no previous nonblank line.
      * doc/lispref/text.texi (Relative Indent): Document
        indent-relative-first-indent-point instead of obsolete
        indent-relative-maybe. Fix documentation of which argument from
        'indent-relative' is used.
  8. 03 Apr, 2019 1 commit
    • Noam Postavsky's avatar
      Allow partial decompression (Bug#33133) · b36913d8
      Noam Postavsky authored
      * src/decompress.c (Fzlib_decompress_region): Add optional
      ALLOW-PARTIAL parameter.
      * lisp/url/url-http.el (url-handle-content-transfer-encoding): Use it.
      * doc/lispref/text.texi (Decompression): Document it.
      * etc/NEWS: Announce it.
  9. 31 Mar, 2019 1 commit
    • Basil L. Contovounesios's avatar
      Fix recently extended delete-indentation behavior · 0cd250e9
      Basil L. Contovounesios authored
      * doc/lispref/text.texi (User-Level Deletion): Document new optional
      arguments of delete-indentation.
      * lisp/simple.el (delete-indentation): Do not barf if called
      interactively when region is inactive. (bug#35021)
      Do not skip blank lines. (bug#35036)
      Consistently deactivate mark even when no text was changed.
      Handle active region spanning a single line.
      * test/lisp/simple-tests.el (simple-test--buffer-substrings):
      New convenience function.
      (simple-test--dummy-buffer, simple-test--transpositions): Use it.
      (simple-delete-indentation-inactive-region): Update commentary.
      Call delete-indentation interactively when testing for behavior with
      inactive region and region is not explicitly defined.
      (simple-delete-indentation-prefix): New tests.
  10. 25 Feb, 2019 1 commit
  11. 24 Feb, 2019 1 commit
  12. 23 Feb, 2019 1 commit
    • 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
  13. 01 Jan, 2019 1 commit
  14. 16 Dec, 2018 1 commit
  15. 09 Dec, 2018 2 commits
  16. 07 Dec, 2018 1 commit
  17. 17 Nov, 2018 1 commit
  18. 07 Oct, 2018 1 commit
    • Paul Eggert's avatar
      New (TICKS . HZ) timestamp format · 93fe4209
      Paul Eggert authored
      This follows on a suggestion by Stefan Monnier in:
      * doc/lispref/buffers.texi (Modification Time):
      * doc/lispref/os.texi (Processor Run Time, Time Calculations)
      * doc/lispref/processes.texi (System Processes):
      * doc/lispref/text.texi (Undo):
      Let the "Time of Day" section cover timestamp format details.
      * doc/lispref/os.texi (Time of Day):
      Say that timestamp internal format should not be assumed.
      Document new (ticks . hz) format.  Omit mention of seconds-to-time
      since it is now just an alias for encode-time.
      (Time Conversion): Document encode-time extension.
      * etc/NEWS: Mention changes.
      * lisp/calendar/cal-dst.el (calendar-system-time-basis): Now const.
      * lisp/calendar/cal-dst.el (calendar-absolute-from-time)
      * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
      Simplify by using bignums, (TICKS . HZ), and new encode-time.
      * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
      Simplify by using bignums and new encode-time.
      * lisp/calendar/parse-time.el (parse-iso8601-time-string):
      Handle DST more accurately, by using new encode-time.
      * lisp/calendar/time-date.el (seconds-to-time):
      * lisp/calendar/timeclock.el (timeclock-seconds-to-time):
      Now just an alias for encode-time.
      * lisp/calendar/time-date.el (days-to-time):
      * lisp/emacs-lisp/timer.el (timer--time-setter):
      * lisp/net/ntlm.el (ntlm-compute-timestamp):
      * lisp/obsolete/vc-arch.el (vc-arch-add-tagline):
      * lisp/org/org-id.el (org-id-uuid, org-id-time-to-b36):
      * lisp/tar-mode (tar-octal-time):
      Don't assume timestamps default to list form.
      * lisp/tar-mode.el (tar-parse-octal-long-integer):
      Now an obsolete alias for tar-parse-octal-integer.
      * src/keyboard.c (decode_timer): Adjust to changes to
      time decoding functions elsewhere.
      * src/timefns.c: Include bignum.h, limits.h.
      (FASTER_TIMEFNS): New macro.
      (timespec_hz, trillion, ztrillion):
      New constants.
      (make_timeval): Use TIME_T_MAX instead of its definiens.
      (check_time_validity, time_add, time_subtract):
      Remove.  All uses removed.
      (disassemble_lisp_time): Remove; old code now folded into
      decode_lisp_time.  All callers changed.
      (invalid_hz, s_ns_to_double, ticks_hz_list4, mpz_set_time)
      (timespec_mpz, timespec_ticks, time_hz_ticks)
      (lisp_time_hz_ticks, lisp_time_seconds)
      (time_form_stamp, lisp_time_form_stamp, decode_ticks_hz)
      (decode_lisp_time, mpz_time, list4_to_timespec):
      New functions.
      (decode_float_time, decode_time_components, lisp_to_timespec):
      Adjust to new struct lisp_time, which does not lose
      information like the old one did.
      (enum timeform): New enum.
      (decode_time_components): New arg FORM.  All callers changed.
      RESULT and DRESULT are now mutually exclusive; no callers need
      to change because of this.
      (decode_time_components, lisp_time_struct)
      (lisp_seconds_argument, time_arith, make_lisp_time, Ffloat_time)
      Add support for (TICKS . HZ) form.
      (DECODE_SECS_ONLY): New constant.
      (lisp_time_struct): 2nd arg is now enum timeform, not int.
      All callers changed.
      (check_tm_member): Support bignums.m
      (Fencode_time): Add new two-arg functionality.
      * src/systime.h (struct lisp_time): Now ticks+hz rather than
      hi+lo+us+ps, since ticks+hz does not lose info.
      * test/src/systime-tests.el (time-equal-p-nil-nil):
      New test.
  19. 01 Jul, 2018 1 commit
  20. 30 Jun, 2018 1 commit
    • João Távora's avatar
      Add lisp/jsonrpc.el · 8af26410
      João Távora authored
      * doc/lispref/text.texi (Text): Add JSONRPC.
      (JSONRPC): New node.
      * etc/NEWS (New Modes and Packages in Emacs 27.1): Mention jsonrpc.el
      * lisp/jsonrpc.el: New file.
      * test/lisp/jsonrpc-tests.el: New file.
  21. 16 Jun, 2018 2 commits
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Improve documentation of several recent changes · 0a6a2fb1
      Eli Zaretskii authored
      * src/xfaces.c (merge_face_ref): Fix a typo in the commentary.
      (evaluate_face_filter, filter_face_ref): Minor copyedits in
      the commentary.
      * doc/lispref/display.texi (Face Remapping):
      * doc/lispref/text.texi (Special Properties): Document the
      ':filter' face specs and their effects.  Document
      * doc/emacs/files.texi (Visiting): Document the new
      possibility to visit large files literally in response to
      question asked by Emacs.
      * etc/NEWS: Mention the new possibility to visit large files
      * lisp/files.el (files--ask-user-about-large-file): Use
      "literally" instead of "raw", for consistency with
      * doc/lispref/frames.texi (Input Focus): Tell explicitly that
      focus-change events are sometimes supported on TTY frames.
  22. 14 Jun, 2018 2 commits
    • João Távora's avatar
      Also allow custom false and null when serializing to JSON · 51adab5d
      João Távora authored
      * doc/lispref/text.texi (Parsing JSON): Describe new arguments of
      json-serialize and json-insert.
      * src/json.c (enum json_object_type, struct json_configuration):
      Move up in file before first usage.
      (lisp_to_json_toplevel, lisp_to_json_toplevel_1, lisp_to_json):
      Accept a struct json_configuration*.
      (Fjson_serialize, Fjson_insert): Accept multiple args.
      (json_parse_args): Accept new boolean configure_object_type.
      * test/src/json-tests.el
      (json-serialize, json-insert): Update forward decls.
      (json-parse-with-custom-null-and-false-objects): Add assertions for
    • João Távora's avatar
      Support custom null and false objects when parsing JSON · 9348039e
      João Távora authored
      * doc/lispref/text.texi (Parsing JSON): Describe new :null-object
      and :false-object kwargs to json-parse-string and
      * src/json.c
      (struct json_configuration): New type.
      (json_to_lisp): Accept a struct json_configuration* param.
      (json_parse_args): Rename from json_parse_object_type.
      (Fjson_parse_string): Rework docstring.
      (Fjson_parse_string, Fjson_parse_buffer): Update call to
      (syms_of_json): Two new syms, QCnull_object and QCfalse_object.
      * test/src/json-tests.el
      (json-parse-with-custom-null-and-false-objects): New test.
  23. 07 Jun, 2018 1 commit
    • João Távora's avatar
      Accept plists when serializing and parsing JSON · 3509aaae
      João Távora authored
      * doc/lispref/text.texi (Parsing JSON): Mention plist support.
      * src/json.c (lisp_to_json_toplevel_1): Serialize plists to json.
      (Fjson_serialize): Mention plists in docstring.
      (enum json_object_type): Add json_object_plist.
      (json_to_lisp): Parse JSON into plists.
      (json_parse_object_type): Consider plists.
      (Fjson_parse_string): Mention plists in docstring.
      (syms_of_json): New Qplist sym_of_json.
      (lisp_to_json): Update comment.
      * test/src/json-tests.el (json-serialize/object)
      (json-parse-string/object): New plist tests.
  24. 02 Jun, 2018 1 commit
  25. 25 Apr, 2018 1 commit
    • Basil L. Contovounesios's avatar
      Improve kill-related documentation (bug#31209) · 343d70b1
      Basil L. Contovounesios authored
      * doc/lispref/text.texi (Low-Level Kill Ring): Fix typo under
      current-kill.  Mention interprogram-paste-function under kill-new
      and kill-append.
      * lisp/simple.el (save-interprogram-paste-before-kill, kill-new)
      (kill-append-merge-undo, kill-append): Touch-up docstrings.
  26. 17 Apr, 2018 1 commit
  27. 14 Apr, 2018 1 commit
    • Lars Ingebrigtsen's avatar
      Make DISCARD-COMMENTS in `libxml-parse-{html,xml}-region' obsolete · e20d7381
      Lars Ingebrigtsen authored
      * doc/lispref/text.texi (Parsing HTML/XML): Mention that
      discard-comments is obsolete.
      * lisp/xml.el (xml-remove-comments): New function (bug#27178).
      * src/xml.c (Flibxml_parse_html_region): Clarify what
      DISCARD-COMMENTS actually does, and say that the parameter is
      (Flibxml_parse_xml_region): Ditto.
  28. 13 Apr, 2018 1 commit
    • Eli Zaretskii's avatar
      Fix typos and minor wording issues in ELisp manual · 6bdcaec8
      Eli Zaretskii authored
      * doc/lispref/internals.texi (Writing Emacs Primitives):
      * doc/lispref/display.texi (Temporary Displays): Fix typos.
      * doc/lispref/text.texi (Filling, Changing Properties)
      (Transposition): Clarify and fix typos.
      * doc/lispref/positions.texi (Screen Lines): Improve wording.
      * doc/lispref/modes.texi (Minor Mode Conventions)
      (Font Lock Multiline): Fix typos.
      * doc/lispref/variables.texi (Dynamic Binding Tips): Fix a
      cross-reference.  Fix a typo.
      * doc/lispref/sequences.texi (Sequence Functions): Fix typos.
  29. 03 Apr, 2018 1 commit
    • Alan Mackenzie's avatar
      Introduce new macro combine-change-calls · 424103a6
      Alan Mackenzie authored
      This macro is a bit like combine-after-change-calls, but also works with a
      non-null before-change-functions.  It suppresses the operation of the change
      hooks on a possibly large sequence of buffer modifications, replacing them
      with a single invocation of before-change-functions at the start, and a single
      invocation of after-change-functions at the end.
      * lisp/subr.el (undo--combining-change-calls): New variable.
      (combine-change-calls-1, undo--wrap-and-run-primitive-undo): New functions.
      (combine-change-calls): New macro.
      * doc/lispref/text.texi (Change Hooks): Document combine-change-calls.
      * etc/NEWS: Add an entry under "Lisp Changes" for combine-change-calls.
  30. 24 Feb, 2018 1 commit
    • Michael Albinus's avatar
      Fix @cindex entries in manuals · 62189335
      Michael Albinus authored
      * doc/emacs/custom.texi:
      * doc/emacs/dired.texi:
      * doc/emacs/display.texi:
      * doc/emacs/files.texi:
      * doc/emacs/frames.texi:
      * doc/emacs/killing.texi:
      * doc/emacs/maintaining.texi:
      * doc/emacs/misc.texi:
      * doc/emacs/msdos-xtra.texi:
      * doc/emacs/msdos.texi:
      * doc/emacs/search.texi:
      * doc/emacs/text.texi:
      * doc/emacs/trouble.texi:
      * doc/lispintro/emacs-lisp-intro.texi:
      * doc/lispref/strings.texi:
      * doc/lispref/text.texi:
      * doc/misc/cc-mode.texi:
      * doc/misc/efaq.texi:
      * doc/misc/eieio.texi:
      * doc/misc/emacs-mime.texi:
      * doc/misc/gnus.texi:
      * doc/misc/htmlfontify.texi:
      * doc/misc/idlwave.texi:
      * doc/misc/message.texi:
      * doc/misc/mh-e.texi:
      * doc/misc/sem-user.texi:
      * doc/misc/ses.texi:
      * doc/misc/tramp.texi:
      * doc/misc/vhdl-mode.texi: Fix @cindex entries.
  31. 20 Feb, 2018 1 commit
    • Robert Pluim's avatar
      Correct variable markup in manuals · 05214c65
      Robert Pluim authored
      * doc/lispref/minibuf.texi (Completion in Buffers): Fix markup.
      * doc/lispref/text.texi (Filling): Likewise.
      * doc/misc/dired-x.texi (Advanced Mark Commands): Likewise.
      * doc/misc/epa.texi (Encrypting/decrypting gpg files): Likewise.
      (Encrypting/decrypting gpg files): Likewise.
      * doc/misc/tramp.texi (External methods): Likewise.
      (Default Method): Likewise.
      * doc/misc/viper.texi (Editing in Insert State): Likewise.
      (File and Buffer Handling): Likewise.
      * doc/misc/gnus.texi (Mail Source Customization): Likewise.
      * doc/misc/url.texi (Customization): Likewise.  Note obsolete
      status of url-temporary-directory.
  32. 16 Feb, 2018 1 commit
  33. 06 Jan, 2018 2 commits
  34. 01 Jan, 2018 1 commit