1. 17 Jan, 2017 4 commits
  2. 15 Jan, 2017 1 commit
    • Noam Postavsky's avatar
      Improve ffap-gopher-at-point handling of long lines · fd6b829d
      Noam Postavsky authored
      * lisp/ffap.el (ffap-gopher-regexp): Only match the KEY part.  Note
      setting to nil is now supported.
      (ffap--gopher-var-on-line): New function.
      (ffap-gopher-at-point): Use it instead of the old ffap-gopher-regexp
      which could overflow the regexp stack on long lines (Bug#25391).  Use
      `let-alist' instead of calling `set' on local variables.
      * test/lisp/ffap-tests.el (ffap-gopher-at-point): New test.
  3. 14 Jan, 2017 3 commits
  4. 13 Jan, 2017 8 commits
    • Phillip Lord's avatar
      Record autoloads till emacs dump · 72c668a9
      Phillip Lord authored
      * admin/ldefs-clean.el (ldefs-clean-up): Record autoloads till emacs dump
      * lisp/ldefs-boot-auto.el (batch-byte-compile): Update
      Previously, autoloads were collected till loaddefs.el was generated as
      part of the build. However, bootstrap-emacs does not load
      loaddefs (rather it is dumped), hence we must record autoloads until the
      full emacs binary is dumped.
    • Tom Tromey's avatar
      Add chained indentation to js-mode · 50239082
      Tom Tromey authored
      * lisp/progmodes/js.el (js-chain-indent): New variable.
      (js--skip-term-backward, js--skip-terms-backward)
      (js--chained-expression-p): New functions.
      (js--proper-indentation): Call js--chained-expression-p.
      * test/manual/indent/js-chain.js: New file.
      * test/manual/indent/js.js: Add (non-)chained indentation test.
    • Tom Tromey's avatar
      Fix js-mode indentation bug · b47f9721
      Tom Tromey authored
      * lisp/progmodes/js.el (js--find-newline-backward): New function.
      (js--continued-expression-p): Use it.
      * test/manual/indent/js.js: Add new test.
    • Tom Tromey's avatar
      Add .jsx to auto-mode-alist · 765920f7
      Tom Tromey authored
      * lisp/files.el (auto-mode-alist): Add entry for .jsx.
    • Tom Tromey's avatar
      Fix two js-mode filling bugs · 05fe74be
      Tom Tromey authored
      Bug#19399 and Bug#22431:
      * lisp/progmodes/js.el (js-mode): Set comment-line-break-function and
      * test/lisp/progmodes/js-tests.el: New file.
    • Katsumi Yamaoka's avatar
    • Katsumi Yamaoka's avatar
      mm-uu.el: Don't dissect patch part · dd80ee69
      Katsumi Yamaoka authored
      This fixes a bug that the patch part is broken in the article
      <87inpjzhpb.fsf@users.sourceforge.net> in the bug-gnu-emacs list.
      * lisp/gnus/mm-uu.el (mm-uu-dissect-text-parts):
      Don't dissect patch part.
    • 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.
  5. 12 Jan, 2017 1 commit
    • 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.
  6. 11 Jan, 2017 3 commits
    • 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)
  7. 10 Jan, 2017 1 commit
  8. 09 Jan, 2017 1 commit
  9. 08 Jan, 2017 1 commit
    • 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.
  10. 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
  11. 06 Jan, 2017 2 commits
  12. 05 Jan, 2017 2 commits
    • Johan Claesson's avatar
      Fix term.el handling of ^Z-sequences spanning chunks · d88cdad2
      Johan Claesson authored
      Bash will after each command send ?\032 and the current directory "/tmp"
      to inform term.el.  Bash output is buffered in 4096 bytes chunks.  If a
      command outputs roughly 4096 bytes then the end of the first chunk will
      be "/tm" (Bug#13350).
      * lisp/term.el (term-emulate-terminal): Change the regexp to find the
      end of the ?\032 sequence to use \n instead of $, the latter can match
      end of string as well.
      Copyright-paperwork-exempt: yes
    • Mark Oteiza's avatar
      Turn on lexical-binding in mb-depth.el · 0392f942
      Mark Oteiza authored
      * lisp/mb-depth.el: Turn on lexical-binding.
      (minibuffer-depth-setup): Bind things used multiple times.
  13. 04 Jan, 2017 2 commits
    • Glenn Morris's avatar
    • 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.
  14. 03 Jan, 2017 6 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.
    • Philipp Stephani's avatar
      Small patch for ffap.el · 5c6f1198
      Philipp Stephani authored
      * lisp/ffap.el (ffap-alist): Document that ffap sets the match data
      while walking 'ffap-alist'.
    • Philipp Stephani's avatar
      Document that functions in 'ffap-alist' can use the match data · 8dd624c8
      Philipp Stephani authored
      * lisp/ffap.el (ffap-alist): Document that ffap sets the match data
      while walking 'ffap-alist'.
    • Noam Postavsky's avatar
      Handle multibyte chars spanning chunks in term.el · 134e86b3
      Noam Postavsky authored
      * lisp/term.el (term-terminal-undecoded-bytes): New variable.
      (term-mode): Make it buffer local.  Don't make `term-terminal-parameter'
      buffer-local twice.
      (term-emulate-terminal): Check for bytes of incompletely decoded
      characters, and save them until the next call when they can be fully
      decoded (Bug#25288).
  15. 02 Jan, 2017 1 commit