1. 01 Feb, 2017 5 commits
    • Paul Eggert's avatar
      Remove immediate_quit. · 33be5003
      Paul Eggert authored
      The old code that sets and clears immediate_quit was
      ineffective except when Emacs is running in terminal mode, and
      has problematic race conditions anyway, so remove it.  This
      will introduce some hangs when Emacs runs in terminal mode,
      and these hangs should be fixed in followup patches.
      * src/keyboard.c (immediate_quit): Remove.  All uses removed.
    • Alan Mackenzie's avatar
      Allow C++ nested brace-list-entries to be better indented. · 94ad13b9
      Alan Mackenzie authored
      This fixes bug #24431.  The key change of this bug fix is correctly analyzing
      nested brace lists when the opening element stands on the same line as both
      its introductory brace and an enclosing parameter list parenthesis.
      * list/progmodes/cc-align.el (c-lineup-under-anchor): New line-up function.
      * list/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): Accept the
      presence of exactly an identifier between an open parenthesis and an open
      brace as evidence of the brace starting a brace list.
      (c-looking-at-statement-block): New function, extracted from
      c-looking-at-inexpr-block.  Enhance it to analyze inner blocks recursively
      when needed.
      (c-looking-at-inexpr-block): Extract new function (see above) and call it.
      (c-add-stmt-syntax): Enhance, with new &optional parameter, to supply the
      prime syntactic symbol with a fixed anchor point.  When this is used, restrict
      all added syntactic symbols to those having an anchor point on the same line.
      Add, in addition to the current additional symbols, c-brace-list-entry when
      needed; use c-looking-at-statement-block to determine the latter.
      (c-guess-basic-syntax, CASE 9D): Use c-add-stmt-syntax rather than just
      c-add-syntax, to assemble the syntactic context of a 'brace-list-entry, thus
      getting, possibly, several accompanying syntactic entries.
      * lisp/progmodes/cc-styles.el (c-style-alist, "gnu" style): New entry for
      'brace-list-intro, namely c-lineup-arglist-intro-after-paren.
      * lisp/progmodes/cc-vars.el (c-offsets-alist): Change the factory default
      offset for 'brace-list-entry from 0 to c-lineup-under-anchor.
      * doc/misc/cc-mode.texi (Syntactic Symbols): Amend the definition of
      (Brace List Symbols): Amend the example to show the new analysis of brace
      lists when the first element comes on the same line as the opening brace.
      (Misc Line-Up): Document the new line-up function c-lineup-under-anchor.
    • Lars Ingebrigtsen's avatar
      Revert "DOn't use string-as-unibyte in Gnus" · 5d61ef0d
      Lars Ingebrigtsen authored
      This reverts commit d1c93100.
      Not all the cases where we had string-as-unibyte were characters,
      so this needs to be considered more thoroughly before being redone.
    • Michael Albinus's avatar
      Fix a subtle problem in Tramp with timers · d8057576
      Michael Albinus authored
      * lisp/net/tramp.el (tramp-accept-process-output): Change argument
      list.  Make it work when called inside a timer.  See
    • Mark Oteiza's avatar
      ; Bump let-alist · 12da2a5b
      Mark Oteiza authored
      * lisp/emacs-lisp/let-alist.el: Bump micro version (bug#24641).
  2. 31 Jan, 2017 12 commits
  3. 30 Jan, 2017 9 commits
    • Tom Tromey's avatar
      css-mode documentation lookup feature · 68e8f4bb
      Tom Tromey authored
      * etc/NEWS: Mention new feature.
      * lisp/textmodes/css-mode.el (css-mode-map): New defvar.
      (css--mdn-lookup-history): New defvar.
      (css-lookup-url-format): New defcustom.
      (css--mdn-property-regexp, css--mdn-completion-list): New defconsts.
      (css--mdn-after-render, css--mdn-find-symbol, css-lookup-symbol): New
      * test/lisp/textmodes/css-mode-tests.el (css-mdn-symbol-guessing): New
    • Glenn Morris's avatar
      edt-mapper: just loading a library should not run code · 77888c88
      Glenn Morris authored
      * lisp/emulation/edt-mapper.el (edt-mapper): New function,
      containing code previously at top-level.
      * lisp/emulation/edt.el (edt-load-keys): After loading edt-mapper,
      run edt-mapper function.
    • Glenn Morris's avatar
      mh-compat.el: remove duplicate definition · 5cebfc44
      Glenn Morris authored
      * lisp/mh-e/mh-compat.el (mh-make-obsolete-variable):
      Remove duplicate definition.
    • Paul Eggert's avatar
      Add delq list arg check · 1056be0b
      Paul Eggert authored
      * src/fns.c (Fdelq): Check that list is a proper list.
      This is more compatible with what ‘delete’ does.
    • Stefan Monnier's avatar
      * lisp/indent.el (indent-region-line-by-line): New function. · 499780da
      Stefan Monnier authored
      Extracted from indent-region.
      (indent-region, indent-region-function): Use it.
    • Stefan Monnier's avatar
    • Eli Zaretskii's avatar
      More fixes to prevent crashes on C-g · 998e1976
      Eli Zaretskii authored
      * src/fns.c (Fassq, Frassq, Fplist_put): Reset immediate_quit
      before returning, to avoid crashes in quit.  (Bug#25566)
    • Eli Zaretskii's avatar
      Avoid crashes on C-g in TTY sessions · ab96c850
      Eli Zaretskii authored
      * src/keyboard.c (handle_interrupt): Don't quit if
      waiting_for_input is set, as doing that is "unsafe": it will
      abort.  (Bug#25566)
    • Vibhav Pant's avatar
      Fix hash tables not being purified correctly. · 9c4dfdd1
      Vibhav Pant authored
      * src/alloc.c
      (purecopy_hash_table) New function, makes a copy of the given hash
      table in pure storage.
      Add new struct `pinned_object' and `pinned_objects' linked list for
      pinning objects.
      (Fpurecopy) Allow purifying hash tables
      (purecopy) Pin hash tables that are either weak or not declared with
      `:purecopy t`, use purecopy_hash_table otherwise.
      (marked_pinned_objects) New function, marks all objects in pinned_objects.
      (garbage_collect_1) Use it. Mark all pinned objects before sweeping.
      * src/lisp.h Add new field `pure' to struct `Lisp_Hash_Table'.
      * src/fns.c: Add `purecopy' parameter to hash tables.
      (Fmake_hash_table): Check for a `:purecopy PURECOPY' argument, pass it
      to make_hash_table.
      (make_hash_table): Add `pure' parameter, set h->pure to it.
      (Fclrhash, Fremhash, Fputhash): Enforce that the table is impure with
      * src/lread.c: (read1) Parse for `purecopy' parameter while reading
        hash tables.
      * src/print.c: (print_object) add the `purecopy' parameter while
        printing hash tables.
      * src/category.c, src/emacs-module.c, src/image.c, src/profiler.c,
        src/xterm.c: Use new (make_hash_table).
  4. 29 Jan, 2017 5 commits
    • Dmitry Gutov's avatar
      Escape dash in xref rgrep regexp · 8ba236e7
      Dmitry Gutov authored
      * lisp/progmodes/xref.el (xref-collect-matches): Escape dash
      in REGEXP if it's the first character.
    • Dmitry Gutov's avatar
      Say JavaScript, not Javascript · 52feecd3
      Dmitry Gutov authored
      * lisp/progmodes/js.el (js-mode-map, js-syntax-propertize)
      (js-js-error, js-eval, js-set-js-context)
      Refer to the language consistently as JavaScript.
    • Juanma Barranquero's avatar
      lisp/*.el: Fix some warnings · 2f90bbb5
      Juanma Barranquero authored
      * lisp/battery.el (dbus-get-property):
      * lisp/dired-aux.el (format-spec): Declare function.
      * lisp/net/zeroconf.el (zeroconf-list-service-names)
      (zeroconf-list-service-types, zeroconf-list-services):
      Mark unused lexical arg.
      * lisp/progmodes/hideshow.el (hs-hide-block-at-point):
      * lisp/progmodes/sql.el (sql-end-of-statement):
      Pass LIMIT to 'looking-back'.
    • Noam Postavsky's avatar
      Don't warn about obsolete defgenerics when defining them · 9bf94639
      Noam Postavsky authored
      * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): The declaration code
      should run after the definition code (Bug#25556).
    • Tino Calancha's avatar
      Fix Bug#25524 · 0073223c
      Tino Calancha authored
      * lisp/vc/diff-mode.el (diff-beginning-of-hunk):
      Return position at the beginning off the hunk.
      (diff-file-junk-re): Add SVN keywords.
  5. 28 Jan, 2017 4 commits
    • Stephen Berman's avatar
      hl-line.el: Don't try to operate on a killed buffer · d12e1ddf
      Stephen Berman authored
      * lisp/hl-line.el (hl-line-maybe-unhighlight): Examine only
      live buffers (bug#25522).
    • Mark Oteiza's avatar
      Use access-file in EWW to check before downloading a file · c7bbddf0
      Mark Oteiza authored
      * lisp/net/eww.el (eww-download): Check accessibility of
      eww-download-directory to prevent starting a download that will fail
      to write.
      * src/fileio.c (Faccess_file): Clarify the use of string argument in
      the docstring.
    • Yuri D'Elia's avatar
      Subject: Check Bcc after the Messag hook has run · f83363d3
      Yuri D'Elia authored
      * lisp/gnus/message.el (message-send): If the hook modifies
      the message (mml tags or headers), we should check bcc on the
      final message, not on the original.
    • Juanma Barranquero's avatar
      test/*.el: Avoid byte-compiler warnings · 375c70fd
      Juanma Barranquero authored
      * test/lisp/abbrev-tests.el (abbrev-table-p-test): Remove unused 'let*'.
      * test/lisp/faces-tests.el (faces--test): New customization group.
      (faces--test1, faces--test2): Use it.
      * test/lisp/ffap-tests.el (ffap-tests-25243):
      Call 'mark-whole-buffer' interactively.
      * test/lisp/ibuffer-tests.el (ibuffer-filter-groups, ibuffer-filtering-alist)
      (ibuffer-filtering-qualifiers, ibuffer-save-with-custom)
      (ibuffer-saved-filter-groups, ibuffer-saved-filters): Defvar.
      (ibuffer-format-qualifier, ibuffer-unary-operand): Declare.
      * test/lisp/minibuffer-tests.el (completion-test1):
      Mark unused lexical arguments.
      * test/lisp/simple-tests.el (simple-test--dummy-buffer): Wrap result in
      'with-no-warnings' to avoid them when the macro is invoked for effect.
      * test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-count-test):
      Mark unused lexical arguments.
      * test/lisp/emacs-lisp/let-alist-tests.el (let-alist-surface-test):
      Mark unused lexical arguments.
      (let-alist-cons): Remove unused let binding.
      * test/lisp/net/dbus-tests.el (dbus-debug): Defvar.
      (dbus-get-unique-name): Declare.
      * test/lisp/progmodes/python-tests.el (python-bob-infloop-avoid):
      Call 'font-lock-fontify-buffer' interactively.
      * test/lisp/textmodes/tildify-tests.el (tildify-space-undo-test--test):
      Mark unused lexical argument.
  6. 27 Jan, 2017 5 commits