1. 24 Jan, 2017 9 commits
  2. 23 Jan, 2017 1 commit
    • Alan Mackenzie's avatar
      Give , and .@ doc strings. Fixes bug #24561. · 0c31ff43
      Alan Mackenzie authored
      Also make *Help* links to ``' possible.  Also make usable as such doc strings
      on the function-documentation property of a symbol.
      
      * lisp/emacs-lisp/backquote.el (top-level): Give , and '@ doc strings on the
      function-documentation property.  Also give these symbols a reader-construct
      property.
      
      * lisp/help-fns.el (describe-function): Allow the function-documentation
      property to work.  Use princ rather than prin1 to print the function's name
      when it has a reader-construct property.
      (help-fns-signature): Don't insert `high-usage' for a reader-construct.
      (describe-function-1): Adapt to process documentation on the
      function-documentation property.  Print "a reader construct" when appropriate.
      
      * lisp/help-mode.el (help-xref-symbol-regexp): Amend this regexp also to match
      ``'.
      0c31ff43
  3. 22 Jan, 2017 2 commits
  4. 21 Jan, 2017 4 commits
    • Juri Linkov's avatar
    • Alan Mackenzie's avatar
      Fix low-level handling of (big) C macros. · de333605
      Alan Mackenzie authored
      In particular, ensure that a comment detected by its syntax is not a CPP
      construct marked with generic comment delimiter syntax-table text
      properties.
      
      * lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-end-of-macro): Set
      c-macro-cache-syntactic to nil when the cached macro changes.
      (c-syntactic-end-of-macro, c-no-comment-end-of-macro)
      (c-state-semi-pp-to-literal, c-state-full-pp-to-literal)
      (c-state-pp-to-literal, c-parse-ps-state-to-cache)
      (c-state-cache-non-literal-place, c-literal-limits, c-literal-start)
      (c-determine-limit): When checking a parse syntax for a comment, check that
      we're not in a CPP construct marked by syntax-table generic comment delimiter
      text property.
      (c-state-pp-to-literal): Change from a defsubst to a defun.
      
      * lisp/progmodes/cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Check a
      parse syntax as described above under cc-engine.el.
      de333605
    • Tino Calancha's avatar
      diff-hunk-kill independent of point inside headers · e5e42cef
      Tino Calancha authored
      Make diff-apply-hunk and diff-hunk-kill independent of the point
      position in a diff header (Bug#17544).
      This change allows to apply hunks in order.  It also makes possible to
      press M-k repeatedly to kill hunks in the order they appear in the buffer.
      See discussion on #Bug25105.
      * lisp/vc/diff-mode.el (diff-file-junk-re):
      Move definition before it's used.
      (diff--at-diff-header-p): New predicate; return non-nil when point
      is inside a hunk header, a file header, or within a line
      matching diff-file-junk-re.
      (diff-beginning-of-hunk): Use it.
      Check if the point is inside a diff header, in the middle of a hunk,
      or before the first hunk.
      (diff-apply-hunk): Call diff-beginning-of-hunk with non-nil arg
      before apply the hunk.
      (diff-hunk-kill, diff-file-kill):
      Call diff-beginning-of-hunk with non-nil arg after kill the hunks.
      (diff-post-command-hook): Call diff-beginning-of-hunk with non-nil argument.
      e5e42cef
    • Tino Calancha's avatar
      ; Revert "Improve diff-mode navigation/manipulation" · 1508b538
      Tino Calancha authored
      This reverts commit 2c8a7e50.
      This change causes regressions:
      https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00738.html
      The following related commits are reverted as well:
      61c6a10e
      a283d655
      6b6abe0d
      e5ef59b8
      73349822
      
      Fixes: debbugs:25105, 25400.
      1508b538
  5. 20 Jan, 2017 1 commit
  6. 19 Jan, 2017 1 commit
  7. 17 Jan, 2017 9 commits
    • Tom Tromey's avatar
      Add info-lookup help for gdb-script-mode · dbb29d7e
      Tom Tromey authored
      Bug#25464:
      * lisp/info-look.el (info-lookup-guess-gdb-script-symbol): New
      function.
      Add help for gdb-script-mode.
      dbb29d7e
    • Tom Tromey's avatar
      Treat ":root" as a css-selector · 8083d258
      Tom Tromey authored
      * lisp/textmodes/css-mode.el (css--font-lock-keywords): Recognize bare
      ":root" as selector.
      8083d258
    • Tom Tromey's avatar
      Fix JS regexp literal syntax propertization in expressions · aa711e0a
      Tom Tromey authored
      Bug#25465:
      * lisp/progmodes/js.el (js-syntax-propertize): Recognize a regexp
      literal after "!", "&", and "|".
      test/lisp/progmodes/js-tests.el (js-mode-regexp-syntax): New test.
      aa711e0a
    • Mark Oteiza's avatar
      Mark unused arguments and remove unused variables · 14c7d3a6
      Mark Oteiza authored
      * lisp/play/dunnet.el (dun-mode, dun-die, dun-inven, dun-try-take):
      (dun-dig, dun-type, dun-n, dun-s, dun-e, dun-w, dun-ne, dun-se):
      (dun-nw, dun-sw, dun-up, dun-down, dun-in, dun-out, dun-long):
      (dun-swim, dun-score, dun-flush, dun-piss, dun-sleep, dun-drive):
      (dun-superb, dun-power, dun-unix-parse, dun-bin, dun-fascii):
      (dun-ftpquit, dun-ftphelp, dun-uexit, dun-pwd, dun-dos-parse):
      (dun-dos-invd, dun-dos-spawn, dun-dos-exit, dun-dos-nil):
      (dungeon-nil): Mark arguments as unused.
      (dun-drop, dun-objnum-from-args, dun-get-path, dun-ftp):
      (dun-restore): Remove unused variable.
      14c7d3a6
    • Michael Albinus's avatar
      Fix auto-save-file-name problem in Tramp on MS Windows · 299b190a
      Michael Albinus authored
      * lisp/files.el (make-auto-save-file-name): Use `file-remote-p'
      rather than an ange-ftp regexp.
      
      * lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
      Fix a problem when running on MS Windows.
      
      * test/lisp/net/tramp-tests.el (tramp-test31-make-auto-save-file-name):
      Adapt test.
      299b190a
    • Paul Eggert's avatar
      ; Spelling fixes · 021d340c
      Paul Eggert authored
      021d340c
    • Mark Oteiza's avatar
      Nix some uses of eval · 5362ef79
      Mark Oteiza authored
      * lisp/play/dunnet.el: Fix triple negative.
      (dun-doverb): Use funcall instead of eval.
      (dun-echo): Just call dun-mprinc.
      (dun-save-val): Just bind value without eval.
      5362ef79
    • Mark Oteiza's avatar
      ; * lisp/play/dunnet.el: Fix file footer. · 922850bc
      Mark Oteiza authored
      922850bc
    • Tom Tromey's avatar
      Fix comment in css-mode.el · e27239ad
      Tom Tromey authored
      * lisp/textmodes/css-mode.el: Remove obsolete comment.
      e27239ad
  8. 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.
      fd6b829d
  9. 14 Jan, 2017 3 commits
  10. 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.
      72c668a9
    • Tom Tromey's avatar
      Add chained indentation to js-mode · 50239082
      Tom Tromey authored
      Bug#20896
      * 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.
      50239082
    • Tom Tromey's avatar
      Fix js-mode indentation bug · b47f9721
      Tom Tromey authored
      Bug#15582:
      * lisp/progmodes/js.el (js--find-newline-backward): New function.
      (js--continued-expression-p): Use it.
      * test/manual/indent/js.js: Add new test.
      b47f9721
    • Tom Tromey's avatar
      Add .jsx to auto-mode-alist · 765920f7
      Tom Tromey authored
      Bug#25389:
      * lisp/files.el (auto-mode-alist): Add entry for .jsx.
      765920f7
    • 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
      c-block-comment-start-regexp.
      * test/lisp/progmodes/js-tests.el: New file.
      05fe74be
    • 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.
      dd80ee69
    • 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.
      d4a97088
  11. 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)
      (nndoc-rfc822-forward-generate-article):
      * lisp/mh-e/mh-mime.el (mh-decode-message-body):
      Replace mail-header-strip with mail-header-strip-cte.
      55b52658