1. 26 Apr, 2017 7 commits
  2. 25 Apr, 2017 12 commits
    • Glenn Morris's avatar
      Generate leim-list via lisp/Makefile, not src/Makefile · ea8605ae
      Glenn Morris authored
      * src/Makefile.in ($(leimdir)/leim-list.el): Remove rule.
      (emacs$(EXEEXT)): Don't depend on leim-list.
      * lisp/Makefile.in ($(lisp)/loaddefs.el): Depend on gen-lisp again.
      ea8605ae
    • Alan Third's avatar
      Fix define for GNUstep builds · f0424b13
      Alan Third authored
      * src/nsterm.m (initFrameFromEmacs): Fix the ifdef so that GNUstep
      doesn't see the code.
      f0424b13
    • Glenn Morris's avatar
      Suppress intermittent test failure on hydra · fe2ba41f
      Glenn Morris authored
      * test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el
      (eieio-test-method-order-list-6): Skip on hydra.
      fe2ba41f
    • Alan Third's avatar
      Fix some NS frame handling issues · 603f634c
      Alan Third authored
      * src/nsterm.m (FRAME_DECORATED_FLAGS, FRAME_UNDECORATED_FLAGS): New
      defines intended to make things tidier.
      (x_set_undecorated): Use the new defines.
      (windowWillResize): Don't use new macOS 12+ only feature.
      (initFrameFromEmacs): Use the new defines, and disable automatic
      window tabbing feature in macOS 12.
      (x_set_undecorated, x_set_parent_frame, x_set_no_accept_focus,
      x_set_z_group): Add NSTRACE notices.
      603f634c
    • Glenn Morris's avatar
      Avoid parallel race condition · e4ddf394
      Glenn Morris authored
      * lisp/Makefile.in ($(lisp)/loaddefs.el): Remove gen-lisp for now.
      e4ddf394
    • Glenn Morris's avatar
      Generate each unicode lisp file independently · 5b0fdefb
      Glenn Morris authored
      This is better for parallel builds, eg it eliminates race
      conditions from having one process write multiple files.
      * admin/unidata/Makefile.in (lparen, unifiles): New variables.
      Parse unidata-gen.el, not charprop.el, to get the list of uni- files.
      (all): Explicitly list the output lisp files.
      (PHONY_EXTRAS): Remove.
      (${unidir}/charprop.el): Change rule to just be for this file.
      (${unifiles}): New rule to write each unicode lisp file.
      (extraclean): Simplify.
      * admin/unidata/unidata-gen.el (unidata-gen-charprop):
      Quieten in batch mode.
      (unidata-gen-files): Remove, no longer used.
      * lisp/loadup.el: Update command-line parser.
      5b0fdefb
    • Glenn Morris's avatar
      Further refactoring in unidata-gen.el · c1e71d38
      Glenn Morris authored
      * admin/unidata/unidata-gen.el (unidata-gen-charprop):
      New function, split from unidata-gen-files.
      (unidata-gen-files): Use unidata-gen-charprop.
      c1e71d38
    • Glenn Morris's avatar
      Allow unidata-gen-file to work independently · 735ae5cd
      Glenn Morris authored
      * admin/unidata/unidata-gen.el (unidata-gen-file):
      Make it work as a stand-alone function in batch mode.
      (unidata-gen-files): Pass extra arguments to unidata-gen-file.
      735ae5cd
    • Glenn Morris's avatar
      Preparatory refactoring in unidata-gen.el · e0150de0
      Glenn Morris authored
      * admin/unidata/unidata-gen.el (unidata-gen-file):
      New function, split from unidata-gen-files.
      (unidata-gen-files): Use unidata-gen-file.
      e0150de0
    • Glenn Morris's avatar
      Write each generated character property lisp file only once · d22ddf59
      Glenn Morris authored
      * admin/unidata/unidata-gen.el (unidata-file-alist):
      Rename from unidata-prop-alist.  All users changed.
      Use file name rather than property name as the key.
      (unidata-prop-prop): New function.
      (unidata-prop-index, unidata-prop-generator, unidata-prop-docstring)
      (unidata-prop-describer, unidata-prop-default, unidata-prop-val-list):
      Change to parse the argument rather than unidata-prop-alist.
      (unidata-gen-table-character, unidata-gen-table)
      (unidata-gen-table-symbol, unidata-gen-table-integer)
      (unidata-gen-table-numeric, unidata-gen-table-word-list)
      (unidata-gen-table-name, unidata-gen-table-decomposition)
      (unidata-gen-table-special-casing): Pass index as an argument.
      (unidata-check): Adapt to unidata-file-alist.
      Pass index to generator functions.
      (unidata-gen-files): Adapt to unidata-file-alist.
      Write each output file once only.  Overwrite rather than delete.
      d22ddf59
    • Andrew G Cohen's avatar
      Fix requesting sparse articles in gnus · 46dafe41
      Andrew G Cohen authored
      * lisp/gnus/gnus-art.el (gnus-request-article-this-buffer): Delete the
      sparse article number from the list, not its id.
      46dafe41
    • Glenn Morris's avatar
      Don't advertise s_client in tls.el docs · 622c24a2
      Glenn Morris authored
      * lisp/net/tls.el (tls-end-of-info, tls-success, tls-untrusted):
      Don't mention s_client in docs.
      ; * doc/misc/gnus.texi (Direct Functions): Comment.
      622c24a2
  3. 24 Apr, 2017 6 commits
  4. 23 Apr, 2017 7 commits
    • Philipp Stephani's avatar
      Add missing remappings for Ido mode · a1f93c1d
      Philipp Stephani authored
      Among others, add a remapping for C-x 4 d, cf. Bug#26360.
      
      * lisp/ido.el (ido-mode): Remap missing commands.
      (ido-file-internal, ido-visit-buffer): Add support for new
      methods.
      (ido-display-buffer-other-frame)
      (ido-find-alternate-file-other-window, ido-dired-other-window)
      (ido-dired-other-frame): New commands.
      
      * test/lisp/ido-tests.el (ido-tests--other-window-frame): Add unit
      test for the bindings.
      a1f93c1d
    • Martin Rudalics's avatar
      Let w32_mouse_position pick a child window only if it has a child frame · a02885a3
      Martin Rudalics authored
      * src/w32term.c (w32_mouse_position): When using a frame found
      by ChildWindowFromPoint make sure it's a child frame (Bug#26615,
      maybe).
      a02885a3
    • Noam Postavsky's avatar
      Don't require bytecomp for running ert tests · b20d05c6
      Noam Postavsky authored
      "Fix ert-tests when running compiled" 2016-12-06 accidentally
      introduced a dependency on `bytecomp' into `ert'.  As mentioned in
      "Avoid ert test failures" 2017-04-18, the accidental dependency of ert
      on bytecomp was masked by loading other libraries until recently.
      
      * lisp/emacs-lisp/ert.el (ert--expand-should-1): Only use
      `byte-compile-macro-environment' if it's bound.
      * test/src/eval-tests.el: Add defvar for dynamic variable
      `byte-compile-debug'.
      b20d05c6
    • Andrew G Cohen's avatar
      Eliminate unneeded warp-to-article in gnus article referral · 5317193f
      Andrew G Cohen authored
      * lisp/gnus/gnus-sum.el (gnus-summary-refer-thread):
      (gnus-summary-refer-article): Remove gnus-warp-to article call.
      5317193f
    • Andrew G Cohen's avatar
      Allow limiting gnus summary buffers to a thread · 03f63888
      Andrew G Cohen authored
      * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Include
      an optional argument to allow limiting the summary buffer to just the
      thread-related articles.
      (gnus-refer-thread-limit-to-thread): Introduce customizable variable
      to control whether thread-referral adds the thread to the summary
      buffer or limits to just the thread.
      (gnus-summary-refer-thread): Use the new variable.
      03f63888
    • Andrew G Cohen's avatar
      Correct gnus-newsgroup-limits in gnus when including thread · ea9acccd
      Andrew G Cohen authored
      * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread): Should
      only add one list of thread-related articles to gnus-newsgroup-limits
      rather than two.
      ea9acccd
    • Andrew G Cohen's avatar
      Improve gnus thread matching of similar subjects · 6df3eea9
      Andrew G Cohen authored
      * lisp/gnus/gnus-sum.el (gnus-summary-limit-include-thread):
      Use the more liberal gnus-general-simplify-subject regexp to
      find thread articles with similar subjects.
      6df3eea9
  5. 22 Apr, 2017 8 commits
    • Noam Postavsky's avatar
    • Noam Postavsky's avatar
      Add new `lisp-indent-region' that doesn't reparse the code. · 4713dd42
      Noam Postavsky authored
      Both `lisp-indent-region' and `lisp-indent-line' now use `syntax-ppss'
      to get initial state, so they will no longer indent string literal
      contents.
      
      * lisp/emacs-lisp/lisp-mode.el (lisp-ppss): New function, like
      `syntax-ppss', but with a more dependable item 2.
      (lisp-indent-region): New function, like `indent-region-line-by-line'
      but additionally keep a running parse state to avoid reparsing the
      code repeatedly.  Use `lisp-ppss' to get initial state.
      (lisp-indent-line): Take optional PARSE-STATE argument, pass it to
      `calculate-lisp-indent', use `lisp-ppss' if not given.
      (lisp-mode-variables): Set `indent-region-function' to
      `lisp-indent-region'.
      4713dd42
    • Noam Postavsky's avatar
      Remove ignored argument from lisp-indent-line · 2f6769f9
      Noam Postavsky authored
      * lisp/emacs-lisp/lisp-mode.el (lisp-indent-line): Remove WHOLE-EXP
      argument, the behavior has long since been handled in
      `indent-for-tab-command'.  Also remove redundant `beg' and `shift-amt'
      variables and use `indent-line-to'.
      2f6769f9
    • Noam Postavsky's avatar
    • Noam Postavsky's avatar
      Don't reparse the sexp in indent-sexp (Bug#25122) · 43c84577
      Noam Postavsky authored
      * lisp/emacs-lisp/lisp-mode.el (calculate-lisp-indent): Let
      PARSE-START be a parse state that can be reused.
      (indent-sexp): Pass the running parse state to calculate-lisp-indent
      instead of the sexp beginning position.  Saving the
      CONTAINING-SEXP-START returned by `calculate-lisp-indent' is no longer
      needed.  Don't bother stopping if we don't descend below init-depth,
      since we now alway scan the whole buffer (via syntax-ppss) anyway.
      * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-sexp): Add blank
      line to test case.
      43c84577
    • Vibhav Pant's avatar
      Add cond test cases for singleton clauses. · 66dc8dd6
      Vibhav Pant authored
      * test/lisp/emacs-lisp/bytecomp-tests.el: Add test cond forms where
        the default clause is a single non-nil expression.
      66dc8dd6
    • Vibhav Pant's avatar
      b-c--cond-jump-table-info: Use correct body for singleton clauses · 1c91bc92
      Vibhav Pant authored
      * lisp/emacs-lisp/bytecomp.el (byte-compile-cond-jump-table-info):
      When a clause's body consists of a single constant expression, use
      that expression as the body to be compiled. This fixes switch bytecode
      evaluating to nil to such clauses.
      1c91bc92
    • Philipp Stephani's avatar
      ffap: Don't switch window unless needed · ace38baf
      Philipp Stephani authored
      When using ffap-other-window, don't change the window configuration
      unless a new buffer has actually been created (Bug#25352).
      
      * lisp/ffap.el (ffap-other-frame): Don't change the window
      configuration if no new buffer has been created.
      * test/lisp/ffap-tests.el (ffap-other-window--bug-25352): Add unit
      test.
      ace38baf