1. 13 Apr, 2019 12 commits
  2. 12 Apr, 2019 12 commits
    • 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
    • Alan Mackenzie's avatar
      Analyze C++ method with & or && ref-qualifier as defun, not brace list · cc80eeb4
      Alan Mackenzie authored
      Also firm up detection of beginning of brace list in
      c-looking-at-or-maybe-in-bracelist.
      
      * lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): On
      detection of such a ref-qualifier, set braceassignp to nil.  When this
      variable has a nil value, return nil as the value of the function.  On
      encountering a } when scanning backwards, recognise this as the end of a
      previous construct and stop the scan.
      cc80eeb4
    • Stefan Monnier's avatar
      * lisp/help-fns.el (help-fns-describe-variable-functions): New hook · 896e5802
      Stefan Monnier authored
      (help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete)
      (help-fns--interactive-only): Indent output by 2 spaces.
      (help-fns--side-effects): New function extracted from
      describe-function-1.
      (help-fns-describe-function-functions): Use it.
      (help-fns--first-release, help-fns--mention-first-release): New functions.
      (help-fns-function-description-header): Keymaps and macros can't
      be interactive.
      (help-fns--ensure-empty-line): New function.
      (describe-function-1): Use it.
      (help-fns--var-safe-local, help-fns--var-risky)
      (help-fns--var-ignored-local, help-fns--var-file-local)
      (help-fns--var-watchpoints, help-fns--var-obsolete)
      (help-fns--var-alias, help-fns--var-bufferlocal): New functions,
      extacted from describe-variable.
      (describe-variable): Run help-fns-describe-variable-functions instead.
      896e5802
    • Glenn Morris's avatar
      ; Merge from origin/emacs-26 · 2bc2a3ec
      Glenn Morris authored
      The following commit was skipped:
      
      fd1b34bf (origin/emacs-26) Bump Emacs version to 26.2
      2bc2a3ec
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · a25f4d6e
      Glenn Morris authored
      818a68b1 * etc/HISTORY: Update for Emacs 26.2 release.
      e04aa5af ; ChangeLog.3 update
      8297e97f * etc/AUTHORS: Update.
      85829363 Improve documentation of 'read-command'
      dc81c051 ; * CONTRIBUTE: Mention where to ask for the copyright assign...
      b77723a5 Fix an outdated URL in a comment
      a25f4d6e
    • Glenn Morris's avatar
      ; Merge from origin/emacs-26 · d4b90e59
      Glenn Morris authored
      The following commits were skipped:
      
      71be83ef Backport: Fix comment-empty-lines docstring (bug#35152)
      559f64a0 Backport: Update documentation for indent-relative functions
      d4b90e59
    • Glenn Morris's avatar
      Merge from origin/emacs-26 · fe6e5af4
      Glenn Morris authored
      cb5a3408 Update nxml-mode.texi: completion now gives xmlns="-!-"
      fe6e5af4
    • Basil L. Contovounesios's avatar
      Move proper-list-p tests to fns-tests.el · 0c4c96d7
      Basil L. Contovounesios authored
      This follows the move of proper-list-p from lisp/subr.el to
      src/fns.c in 2018-07-24T15:58:46-07:00!eggert@cs.ucla.edu.
      * test/lisp/subr-tests.el (subr-tests--proper-list-p): Move from
      here...
      * test/src/fns-tests.el (test-proper-list-p): ...to here.
      0c4c96d7
    • Basil L. Contovounesios's avatar
      Optimize byte-compilation of proper-list-p · 9a54e70c
      Basil L. Contovounesios authored
      For discussion, see thread starting at:
      https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00316.html
      * lisp/emacs-lisp/byte-opt.el: Optimize proper-list-p as a
      predicate.
      * lisp/subr.el: Mark proper-list-p as pure, and side-effect and
      error free.
      9a54e70c
    • Alex Murray's avatar
      Pop to originating erc buffer when clicking desktop notification · 6dc4c722
      Alex Murray authored
      * lisp/erc/erc-desktop-notifications.el: Switch to lexical-binding.
      (erc-notifications-notify): Add a default action to the desktop
      notification which pops to the buffer from which the notification
      originated.  (Bug#35141)
      
      Copyright-paperwork-exempt: yes
      6dc4c722
    • Basil L. Contovounesios's avatar
      Always set gnus-group property to a group name · 2b82c829
      Basil L. Contovounesios authored
      * lisp/gnus/gnus-group.el (gnus-group-prepare-flat-list-dead): Set
      gnus-group property to a group name, not active info. (bug#33653)
      Simplify surrounding logic.
      (gnus-group-prepare-flat, gnus-group-goto-group): Use accessor
      macros.
      (gnus-group-insert-group-line, gnus-group-new-mail)
      (gnus-group-mark-group): Write ?\s instead of ? .
      (gnus-group-group-name, gnus-group-list-active): Simplify.
      2b82c829
    • Stefan Monnier's avatar
      * lisp/vc/diff-mode.el: Avoid re-initializing buffer in diff-syntax · bd6a19cc
      Stefan Monnier authored
      (diff--syntax-file-attributes): New var.
      (diff-syntax-fontify-hunk): Detect when we're reusing the same buffer as
      last time, to avoid re-initializing it.  Skip the
      diff-syntax-fontify-revisions hash-table, since buffer-alist plays the
      same role.
      (diff-syntax-fontify-revisions): Delete var.
      bd6a19cc
  3. 11 Apr, 2019 15 commits
    • Stephen Leake's avatar
      Merge commit 'de238b39' · 7ba7def5
      Stephen Leake authored
      7ba7def5
    • Stephen Leake's avatar
      Make `next-error' output fewer messages about locus · 77685811
      Stephen Leake authored
      * lisp/simple.el (next-error-verbosity): New user variable.
      (next-error, next-error-internal): Use it to control only outputting
      locus message if locus changed.
      77685811
    • Christopher Thorne's avatar
      Fix rgrep in dired using directory for search file pattern · de238b39
      Christopher Thorne authored
      * lisp/progmodes/grep.el (grep-read-files): Allow major modes to
      define file name to use for default search pattern.
      Add non-directory file at point as default search pattern candidate.
      
      * lisp/dired.el (dired-grep-read-files): Use non-directory file at
      point for grep file name pattern.  (Bug#34621)
      
      Copyright-paperwork-exempt: yes
      de238b39
    • NicolasPetton's avatar
      Bump Emacs version to 26.2 · fd1b34bf
      NicolasPetton authored
      * README:
      * configure.ac:
      * msdos/sed2v2.inp:
      * nt/README.W32: Bump Emacs version to 26.2.
      fd1b34bf
    • NicolasPetton's avatar
      818a68b1
    • NicolasPetton's avatar
      ; ChangeLog.3 update · e04aa5af
      NicolasPetton authored
      e04aa5af
    • NicolasPetton's avatar
      * etc/AUTHORS: Update. · 8297e97f
      NicolasPetton authored
      8297e97f
    • Eli Zaretskii's avatar
      Improve documentation of 'read-command' · 85829363
      Eli Zaretskii authored
      * src/minibuf.c (Fread_command): Document the return value
      when DEFAULT-VALUE is nil and the user enters nothing.
      * doc/lispref/minibuf.texi (High-Level Completion): Document
      the printed representation of a symbol whose name is empty.
      (Bug#3522)
      85829363
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix an outdated URL in a comment · b77723a5
      Eli Zaretskii authored
      * src/emacs.c: Fix reference to Cocoa CoreFoundation Release
      Notes.  (Bug#35225)
      b77723a5
    • Basil L. Contovounesios's avatar
      Backport: Fix comment-empty-lines docstring (bug#35152) · 71be83ef
      Basil L. Contovounesios authored
      * lisp/newcomment.el (comment-empty-lines): Consistently use US
      commas in docstring.  Fix indentation of and typo in custom :type.
      
      (cherry picked from commit 690c678f)
      71be83ef
    • 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
    • Jackson Ray Hamilton's avatar
      Add extra text property to fix issue with js2-mode integration · 382a508e
      Jackson Ray Hamilton authored
      * lisp/progmodes/js.el (js-jsx--put-syntax-table): New function for
      consistently ensuring smooth js2-mode integration.  js2-mode sets
      syntax-table temporarily while parsing buffers—seemingly to recover
      from parsing interruptions—and then it later clears syntax-table
      blindly.  When integrating with js-mode, this means that unterminated
      string quotes are re-broken in JSX (i.e., they become strings again,
      often stringifying large regions of the buffer which should not be
      strings).  We try to treat quotes in JSXText as non-strings by setting
      syntax-table to a non-“string quote” syntax class, but that stops
      working if we lose the property.  On the js2-mode end, by scanning for
      this second js-jsx-syntax-table property, we can recover the
      syntax-table property there.
      (js-jsx--text-range, js-jsx--syntax-propertize-tag): Use
      js-jsx--put-syntax-table for above reason.
      (js-jsx--text-properties): Clear the js-jsx-syntax-table property too.
      382a508e
    • Paul Eggert's avatar
      Bring back dmpstruct.h · 9994bf17
      Paul Eggert authored
      Bring back the dmpstruct.h checking, and use it when
      --enable-checking=structs is specified.  The checking can be helpful
      to some developers, although it gets in the way of others and is
      not needed for ordinary tarball builds.
      * src/dmpstruct.awk: Restore this file, with mode 644 not 755.
      * configure.ac: New option-arg --enable-checking=structs,
      implied by --enable-checking.
      (CHECK_STRUCTS): New macro and var.
      * src/Makefile.in (CHECK_STRUCTS): New macro.
      (dmpstruct_headers, dmpstruct.h, dmpstruct.h):
      Restore these macros and rules.
      (pdumper.o): Restore this dependency if $(CHECK_STRUCTS) is true.
      (mostlyclean): Remove dmpstruct.h.
      * src/pdumper.c [CHECK_STRUCTS]: Include dmpstruct.h,
      and restore checks against hashes.
      9994bf17
    • Katsumi Yamaoka's avatar
      Enable message saving to work when first use of Gnus (bug#35208) · 0627a8d7
      Katsumi Yamaoka authored
      * lisp/gnus/gnus-group.el (gnus-group-goto-group);
      Use gnus-active-hashtb in addition to gnus-newsrc-hashtb to check if
      a group exists since some kinds of groups are registered in only one
      of them (bug#35208).
      0627a8d7
  4. 10 Apr, 2019 1 commit
    • Noam Postavsky's avatar
      Update nxml-mode.texi: completion now gives xmlns="-!-" · cb5a3408
      Noam Postavsky authored
      * doc/misc/nxml-mode.texi (Completion): As of 2016-01-16 "* lisp/nxml:
      Use standard completion; it also works for company-mode", completing
      an attribute when there is only one candidate inserts both quotes.
      Update the example accordingly.
      cb5a3408