1. 13 Jan, 2017 1 commit
    • Dmitry Lazurkin's avatar
      Fix extracting async def type and name in python mode imenu · d4a97088
      Dmitry Lazurkin authored
      * lisp/progmodes/python.el (python-imenu--get-defun-type-name):
      New function.
      (python-imenu--build-tree): Use python-imenu--get-defun-type-name for
      extract async or simple def type and name at current
      position (Bug#24820).
      * test/lisp/progmodes/python-tests.el (python-imenu-create-index-1):
      (python-imenu-create-flat-index-1): Add async def's.
  2. 12 Jan, 2017 3 commits
    • Katsumi Yamaoka's avatar
      Remove garbage from Content-Transfer-Encoding value (bug#25420) · 55b52658
      Katsumi Yamaoka authored
      * lisp/mail/ietf-drums.el (ietf-drums-strip-cte): New function.
      (ietf-drums-remove-garbage): New function.
      (ietf-drums-remove-whitespace): Remove CR as well.
      * lisp/mail/mail-parse.el (mail-header-strip-cte):
      Alias to ietf-drums-strip-cte.
      * lisp/gnus/gnus-art.el (article-decode-charset):
      * lisp/gnus/gnus-sum.el (gnus-summary-enter-digest-group):
      * lisp/gnus/mm-decode.el (mm-dissect-buffer):
      * lisp/gnus/nndoc.el (nndoc-decode-content-transfer-encoding)
      * lisp/mh-e/mh-mime.el (mh-decode-message-body):
      Replace mail-header-strip with mail-header-strip-cte.
    • Paul Eggert's avatar
      Restore behavior of ‘./autogen.sh autoconf git’ · 70d6f2d1
      Paul Eggert authored
      * autogen.sh: Do both autoconf and git setup when invoked
      as ‘./autogen.sh autoconf git’.  Avoid unnecessary newline in chatter.
      Mention new --no-check option in usage message.  (Bug#25359)
    • Glenn Morris's avatar
      * autogen.sh: Simplify argument parsing. · 3713c7a0
      Glenn Morris authored
  3. 11 Jan, 2017 5 commits
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Convert some network test failures to skipping · 255f675d
      Glenn Morris authored
      These tests intermittently fail on hydra.nixos.org for unclear
      reasons related to starting the external process.
      This isn't an Emacs issue, and the failures cause noise on
      the emacs-buildstatus list.  (Bug#24503)
      * test/lisp/net/network-stream-tests.el (echo-server-nowait)
      (connect-to-tls-ipv4-nowait): Skip rather than fail if the
      external process fails to start properly.
    • Alexander Kuleshov's avatar
      Add DNS keywords and remove duplications · d569dd21
      Alexander Kuleshov authored
      * lisp/textmodes/dns-mode.el (dns-mode-types): Add two TLSA and
      NSEC" DNS related keywords and remove duplication of "NSAP".
    • Alan Mackenzie's avatar
      Handle syntactic WS cache properties more accurately at buffer changes. · 6463b85a
      Alan Mackenzie authored
      This fixes bug #25362.
      * lisp/progmodes/cc-engine.el (c-sws-lit-type, c-sws-lit-limits)
      (c-invalidate-sws-region-before, c-invalidate-sws-region-after-del)
      (c-invalidate-sws-region-after-ins): New variables and functions.
      (c-invalidate-sws-region-after): Change from a defsubst to a defun.
      Also pass
      it the standard OLD-LEN argument.  Call both
      c-invalidate-sws-region-after-{ins,del} to check for "dangerous" WS
      * lisp/progmodes/cc-langs.el (c-block-comment-ender-regexp): New language
      * lisp/progmodes/cc-mode.el (c-before-change): Call
      (c-after-change): Pass old-len to c-invalidate-sws-region-after.
    • Michael Albinus's avatar
      Support stat 8.26 in Tramp · 3a6df2d6
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-get-remote-stat): Use QUOTING_STYLE
      environment variable of newer coreutils.  (Bug#23422)
  4. 10 Jan, 2017 2 commits
    • Paul Eggert's avatar
      Merge from gnulib · fa0a2b4e
      Paul Eggert authored
      This incorporates:
      2017-01-09 maint: time stamp -> timestamp
      2017-01-07 stdioext: Port to Minix 3.2 and newer
      2017-01-06 glob, intprops, xalloc: work around Clang bug
      2017-01-02 revert copyright-year change to synced files
      * doc/misc/texinfo.tex, lib/fpending.c, lib/intprops.h, lib/mktime.c:
      * lib/stat-time.h, lib/stdio-impl.h, lib/time.in.h, lib/timespec.h:
      * lib/utimens.c, lib/xalloc-oversized.h:
      Copy from gnulib.
    • Eli Zaretskii's avatar
      Don't use unsafe encoding for the bookmark file · 560a3840
      Eli Zaretskii authored
      * lisp/bookmark.el (bookmark-write-file): Handle the case when the
      explicitly specified encoding of the bookmark file cannot encode the
      additional bookmarks just added.  (Bug#25365)
  5. 09 Jan, 2017 1 commit
  6. 08 Jan, 2017 8 commits
    • Noam Postavsky's avatar
      Use expanded stack during regex matches · 13c6f1d1
      Noam Postavsky authored
      While the stack is increased in main(), to allow the regex stack
      allocation to use alloca we also need to modify regex.c to actually take
      advantage of the increased stack, and not limit stack allocations to
      SAFE_ALLOCA bytes.
      * src/regex.c (MATCH_MAY_ALLOCATE): Remove obsolete comment about
      allocations in signal handlers which no longer happens and correct
      description about when and why MATCH_MAY_ALLOCATE should be defined.
      (emacs_re_safe_alloca): New variable.
      (REGEX_USE_SAFE_ALLOCA): Use it as the limit of stack allocation instead
      of MAX_ALLOCA.
      (emacs_re_max_failures): Rename from `re_max_failures' to avoid
      confusion with glibc's `re_max_failures'.
      * src/emacs.c (main): Increase the amount of fixed 'extra' bytes we add
      to the stack.  Instead of changing emacs_re_max_failures based on the
      new stack size, just change emacs_re_safe_alloca; emacs_re_max_failures
      remains constant regardless, since if we run out stack space SAFE_ALLOCA
      will fall back to heap allocation.
      Co-authored-by: default avatarEli Zaretskii <eliz@gnu.org>
    • Noam Postavsky's avatar
      Fix computation of regex stack limit · 9a19f26c
      Noam Postavsky authored
      The regex stack limit was being computed as the number of stack entries,
      whereas it was being compared with the current size as measured in
      bytes.  This could cause indefinite looping when nearing the stack limit
      if re_max_failures happened not to be a multiple of sizeof
      fail_stack_elt_t (Bug #24751).
      * src/regex.c (GROW_FAIL_STACK): Compute both current stack size and
      limit as numbers of stack entries.
    • Alan Third's avatar
      Remove apploopnr · 88a501b3
      Alan Third authored
      * src/nsterm.m (ns_select, ns_read_socket): Remove apploopnr and only
      allow app loop to run in main thread.
    • Glenn Morris's avatar
      Remove unused configure output variable · fc20bd94
      Glenn Morris authored
      * configure.ac (GNULIB_MK):
      * Makefile.in (gnulib_mk): Remove, no longer used.
    • Glenn Morris's avatar
      Fix automake dependencies · 25d3297b
      Glenn Morris authored
      * Makefile.in (AUTOMAKE_INPUTS): Add nt/gnulib.mk.  (Bug#25372)
      All platforms need this file to exist.
    • Paul Eggert's avatar
      Remove unnecessary blankp code · 8d7bdd75
      Paul Eggert authored
      * src/character.c (blankp): Remove redundant code that slows Emacs
      down a bit.  The caller already does the test.
    • Stefan Merten's avatar
      * lisp/textmodes/rst.el: Fix rst-forward-indented-block. · 3d418bd4
      Stefan Merten authored
      	* rst.el (rst-cvs-header, rst-svn-rev, rst-svn-timestamp)
      	(rst-official-version, rst-official-cvs-rev)
      	(rst-package-emacs-version-alist): Maintain version numbers.
      	(rst-forward-indented-block): Fix. Start searching at next
      	line again. Fixes fontification of comments continuing on the
      	same line they started.
    • Paul Eggert's avatar
      Remove @SET_MAKE@ from manually-maintained files · 952d0f2c
      Paul Eggert authored
      Emacs now assumes GNU Make, so @SET_MAKE@ is no longer needed.
      * Makefile.in, lwlib/Makefile.in, nextstep/Makefile.in:
      * src/Makefile.in: Remove @SET_MAKE@.
  7. 07 Jan, 2017 4 commits
    • Michael Albinus's avatar
      Fix a problem with `start-file-process' in Tramp · 77f35363
      Michael Albinus authored
      * lisp/net/tramp-sh.el (tramp-maybe-open-connection):
      `start-file-process' shall work when `non-essential' is
      non-nil, but there is already an established connection.
    • Rolf Ade's avatar
      Fix selecting SQLite database files with sql-mode (Bug#23566) · 75cdf429
      Rolf Ade authored
      * lisp/progmodes/sql.el (sql-sqlite-login-params): Allow any name as
      SQLite database file name, by default.
      (sql-get-login-ext): Fixed read-file-name arguments to provide
      path completion even if a database name pattern is customized and to
      allow creation of new SQLite database files.
      Copyright-paperwork-exempt: yes
    • Eli Zaretskii's avatar
      Specify encoding of the bookmark file · e2720327
      Eli Zaretskii authored
      * lisp/bookmark.el (bookmark-insert-file-format-version-stamp):
      Accept an argument CODING and include a 'coding:' cookie in the
      bookmark file preamble.
      (bookmark-upgrade-file-format-from-0): Call
      'bookmark-insert-file-format-version-stamp' with the file buffer's
      encoding, as detected when it was read.
      (bookmark-file-coding-system): New variable.
      (bookmark-load): Set bookmark-file-coding-system to the encoding
      of the loaded file.
      (bookmark-write-file): Bind coding-system-for-write to either the
      user setting via "C-x RET c" or to the existing file encoding,
      defaulting to 'utf-8-emacs'.  Update the value of
      bookmark-file-coding-system.  (Bug#25365)
    • Eli Zaretskii's avatar
      Avoid infloop in 'ispell-region' · 50fd04cd
      Eli Zaretskii authored
      * lisp/textmodes/ispell.el (ispell-begin-skip-region-regexp):
      Protect against 'ispell-skip-region-alist' being nil.  Reported by
      Ernest Adrogué <nfdisco@gmail.com>, see
  8. 06 Jan, 2017 3 commits
    • Philipp Stephani's avatar
      Add support for Unicode whitespace in [:blank:] · 512e9886
      Philipp Stephani authored
      See Bug#25366.
      * src/character.c (blankp): New function for checking Unicode
      horizontal whitespace.
      * src/regex.c (ISBLANK): Use 'blankp' for non-ASCII horizontal
      (BIT_BLANK): New bit for range table.
      (re_wctype_to_bit, execute_charset): Use it.
      * test/lisp/subr-tests.el (subr-tests--string-match-p--blank): Add
      unit test for [:blank:] character class.
      * test/src/regex-tests.el (test): Adapt unit test.
      * doc/lispref/searching.texi (Char Classes): Document new Unicode
      behavior for [:blank:].
    • Stefan Monnier's avatar
      (feedmail-deduce-address-list): Avoid add-to-list on local variables. · 8f037630
      Stefan Monnier authored
      * lisp/mail/feedmail.el (feedmail-deduce-address-list):
      Avoid add-to-list on local variables.
    • Noam Postavsky's avatar
      Fix isearch handling of C-u C-u... · 69b9224a
      Noam Postavsky authored
      * lisp/isearch.el: Add `isearch-scroll' property to
      universal-argument-more so that `isearch-allow-scroll' will apply to it
      as well.
      (isearch-pre-command-hook): Let `isearch-allow-prefix' apply to
      `universal-argument-more' as well (Bug#25302).
  9. 05 Jan, 2017 7 commits
  10. 04 Jan, 2017 3 commits
    • Alan Third's avatar
      Revert "Rework NS event handling (bug#25265)" · 308d5962
      Alan Third authored
      This reverts commit e0e5b0f4.
    • Paul Eggert's avatar
      Port recent autogen.sh changes to Darwin · 44c588a2
      Paul Eggert authored
      Problem reported by Sam Steingold (Bug#25347).
      * autogen.sh: Don't assume 'sed -f-' reads a script from stdin, as
      POSIX does not require it and it does not work on Darwin.
    • Stefan Monnier's avatar
      Avoid add-to-list on local variables · 2ec41c41
      Stefan Monnier authored
      * lisp/gnus/nnir.el: Use lexical-binding and cl-lib.
      (nnir-retrieve-headers): Use pcase.
      (nnir-search-thread): Avoid add-to-list on local variables.
      * lisp/gnus/smime.el: Use lexical-binding and cl-lib.
      (smime-verify-region): Avoid add-to-list on local variables.
      * lisp/mail/undigest.el: Use lexical-binding and cl-lib.
      (rmail-digest-parse-mime, rmail-digest-rfc1153)
      (rmail-digest-parse-rfc934): Avoid add-to-list on local variable.
      * lisp/net/ldap.el (ldap-search): Move init into declaration.
      * lisp/net/newst-backend.el (newsticker--cache-add):
      Avoid add-to-list on local variables; Simplify code with `assq'.
      * lisp/net/zeroconf.el: Use lexical-binding and cl-lib.
      (dbus-debug): Remove declaration, unused.
      (zeroconf-service-add-hook, zeroconf-service-remove-hook)
      (zeroconf-service-browser-handler, zeroconf-publish-service):
      Avoid add-to-list and *-hook on local variables.
      * lisp/org/org-archive.el (org-all-archive-files):
      * lisp/org/org-agenda.el (org-agenda-get-restriction-and-command):
      Avoid add-to-list on local variables.
      * lisp/org/ox-publish.el (org-publish--run-functions): New function.
      (org-publish-projects): Use it to avoid run-hooks on a local variable.
      (org-publish-cache-file-needs-publishing): Avoid add-to-list on
      local variables.
      * lisp/progmodes/ada-prj.el: Use setq instead of (set '...).
      (ada-prj-load-from-file): Avoid add-to-list on local variables.
      * lisp/progmodes/ada-xref.el (ada-initialize-runtime-library): Simplify.
      (ada-gnat-parse-gpr, ada-parse-prj-file-1)
      (ada-xref-find-in-modified-ali): Avoid add-to-list on local variables.
      * lisp/progmodes/idlw-shell.el (idlwave-shell-update-bp-overlays):
      Avoid add-to-list on local variables.
  11. 03 Jan, 2017 3 commits
    • Mark Oteiza's avatar
      Turn on lexical-binding in md4.el · f49f8c14
      Mark Oteiza authored
      * lisp/md4.el: Turn on lexical-binding.
      * test/lisp/md4-tests.el: New file.
    • Stefan Merten's avatar
      Lots of refactorings and a few minor improvements. · 9ed3685a
      Stefan Merten authored
      User visible improvements and changes:
      * Improve and debug `rst-forward-section` and `rst-backward-section`.
      * Auto-enumeration may be used with all styles for list insertion.
      * Improve and debug `rst-toc-insert`.
      * Adapt change in Emacs to use customization group `text` instead of `wp`.
      * Bind `n` and `p` in `rst-toc-mode`.
      * `z` in `toc-mode` returns to the previous window configuration.
      * Require Emacs version >= 24.1.
      Lots of refactorings including:
      * Silence byte compiler.
      * Use lexical binding.
      * Use `cl-lib`.
      * Add tests and raise test coverage.
    • Stefan Monnier's avatar
      (cl-defstruct): Improve error message for slots w/o value (bug#25312) · e28c9908
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Don't signal an error but
      emit a warning for those coders who forgot to put a default value in
      their slot.