1. 07 Oct, 2019 1 commit
  2. 26 Sep, 2019 1 commit
  3. 23 Sep, 2019 1 commit
    • Paul Eggert's avatar
      Update some URLs · 946a56a1
      Paul Eggert authored
      This mostly changes http: to https: in URLs.  It also updates
      some URLs that have moved, removes some URLs that no longer
      work, recommends against using procmail (procmail.org no
      longer works), and removes some mentions of the
      no-longer-existing Gmane, LPF and VTW.
      It doesn't update all URLs, just the ones I had time for.
      * GNUmakefile (help):
      * admin/admin.el (manual-doctype-string):
      * admin/charsets/Makefile.in (${charsetdir}/ALTERNATIVNYJ.map):
      * admin/charsets/mapconv:
      * lisp/net/soap-client.el (soap-create-envelope):
      * lisp/org/org.el (org-doi-server-url):
      * lisp/textmodes/bibtex.el (bibtex-generate-url-list):
      Prefer https: to http: un URLs.
      946a56a1
  4. 20 Sep, 2019 1 commit
    • Stefan Kangas's avatar
      Recommend against SHA-1 and MD5 for security · 6d50010b
      Stefan Kangas authored
      * doc/lispref/text.texi (Checksum/Hash):
      * src/fns.c (Fmd5, Fsecure_hash):
      * lisp/subr.el (sha1): Doc fix to recommend against SHA-1 and MD5 for
      security-related applications, since they are not collision
      resistant.  (Bug#37420)
      6d50010b
  5. 20 Jul, 2019 1 commit
    • Basil L. Contovounesios's avatar
      Fix last change to format-spec · a1b49f3b
      Basil L. Contovounesios authored
      * doc/lispref/text.texi (Interpolated Strings): Use @result and fix
      typos.
      * lisp/format-spec.el: Avoid loading subr-x at runtime.
      (format-spec--parse-modifiers): Optimize slightly.
      a1b49f3b
  6. 14 Jul, 2019 1 commit
  7. 13 Jul, 2019 1 commit
  8. 09 Jul, 2019 1 commit
  9. 06 Jul, 2019 1 commit
    • Pip Cet's avatar
      Update current buffer when changing text properties · c16a8fc1
      Pip Cet authored
      * src/textprop.c (add_text_properties_1, set_text_properties)
      (set_text_properties_1, Fremove_text_properties): Switch buffer if
      necessary.  (Bug#36190)
      
      * doc/lispref/text.texi (Examining Properties): Document performance
      FIXME.
      c16a8fc1
  10. 25 Jun, 2019 1 commit
    • Alan Mackenzie's avatar
      Fix documentation of inhibit-modification-hooks in overlays + text properties · 8c17995f
      Alan Mackenzie authored
      This fixes bug #25111.
      
      * doc/lispref/display.text (Overlay Properties): For the hook property
      modification-hooks, state that inhibit-modification-hooks is bound to non-nil
      when calling its functions.  This also applies to insert-in-front-hooks and
      insert-behind-hooks, which refer to modification-hooks.
      
      * doc/lispref/text.texi (Special Properties): For the hook property
      modification-hooks, state that inhibit-modification-hooks is NOT bound to
      non-nil when calling its functions.  For the hooks insert-in-fron-hooks and
      insert-behind-hooks, state that that variable does get bound to non-nil.
      8c17995f
  11. 12 Jun, 2019 1 commit
  12. 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.
      1cc90d21
    • 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-region,
      fns-test-base64url-encode-string): Tests for url variant.
      (fns-tests-base64-decode-string): Tests for decoding part.
      7541b068
  13. 09 May, 2019 1 commit
  14. 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
      indexing.
      d82d4fb9
    • 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.
      (Bug#34763)
      2475687d
  15. 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.
      b41c1ca1
  16. 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.
      
      Bug#34858
      
      (cherry picked from commit 10cd6587)
      559f64a0
  17. 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.
      
      Bug#34858
      10cd6587
  18. 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.
      b36913d8
  19. 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-no-region)
      (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-blank-line)
      (simple-delete-indentation-boundaries)
      (simple-delete-indentation-region)
      (simple-delete-indentation-prefix): New tests.
      0cd250e9
  20. 25 Feb, 2019 1 commit
  21. 24 Feb, 2019 1 commit
  22. 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
        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
  23. 01 Jan, 2019 1 commit
  24. 16 Dec, 2018 1 commit
  25. 09 Dec, 2018 2 commits
  26. 07 Dec, 2018 1 commit
  27. 17 Nov, 2018 1 commit
  28. 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:
      https://lists.gnu.org/r/emacs-devel/2018-08/msg00991.html
      (Bug#32902).
      * 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)
      (calendar-time-from-absolute)
      (calendar-next-time-zone-transition):
      * 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.
      (WARN_OBSOLETE_TIMESTAMPS, CURRENT_TIME_LIST)
      (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)
      (Fencode_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.
      93fe4209
  29. 01 Jul, 2018 1 commit
  30. 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.
      8af26410
  31. 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
      'face-filters-always-match'.
      
      * 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
      literally.
      * lisp/files.el (files--ask-user-about-large-file): Use
      "literally" instead of "raw", for consistency with
      find-file-literally.
      
      * doc/lispref/frames.texi (Input Focus): Tell explicitly that
      focus-change events are sometimes supported on TTY frames.
      0a6a2fb1
  32. 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
      json-serialize.
      51adab5d
    • 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
      json-parse-buffer.
      
      * 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
      json_to_lisp.
      (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.
      9348039e
  33. 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.
      3509aaae
  34. 02 Jun, 2018 1 commit
  35. 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.
      343d70b1