1. 06 Oct, 2013 1 commit
  2. 05 Oct, 2013 4 commits
    • Stefan Monnier's avatar
      Get Ruby's SMIE code to pass the test suite. · 34d1a133
      Stefan Monnier authored
      * lisp/progmodes/ruby-mode.el (ruby-use-smie): Change default.
      (ruby-comment-column): Follow the global default, by default.
      (ruby-smie-grammar): Add assignment syntax.
      (ruby-smie--implicit-semi-p): No implicit semi-colon after an
      open-paren, a comma, or a \.
      (ruby-smie--forward-token, ruby-smie--backward-token): Handle heredocs,
      and line continuations.
      (ruby-smie-rules): Adjust handling of open-paren, now that it's never
      followed by implicit semi-colons.  Add rule for string concatenation
      and for indentation at BOB.
      (ruby-forward-sexp, ruby-backward-sexp): Adjust for when smie is in use.
      
      * lisp/emacs-lisp/smie.el (smie-next-sexp): Don't go back to pos before
      calling next-sexp, since next-token may have skipped chars which
      next-sexp doesn't know should be skipped!
      
      * test/indent/ruby.rb: Port a few cases from automated/ruby-mode-tests.el.
      Adjust indentation of continued line to the new SMIE behavior.
      34d1a133
    • Dmitry Gutov's avatar
      Revert 2013-10-05T02:26:39Z!dgutov@yandex.ru · aa0214da
      Dmitry Gutov authored
      `last-coding-system-used' is unreliable: it can be modified by other functions
      in `after-save-hook'.
      aa0214da
    • Leo Liu's avatar
      * progmodes/octave.el (octave-send-region): Call · 6f6ab820
      Leo Liu authored
      compilation-forget-errors.
      6f6ab820
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding' · 0106e5b3
      Dmitry Gutov authored
      to `after-save-hook' instead of `before-save-hook', because then
      we know exactly what encoding was used to write the file.
      (ruby-mode-set-encoding): Use `last-coding-system-used' instead of
      guessing.  Call `basic-save-buffer-1' after modifying the buffer.
      0106e5b3
  3. 04 Oct, 2013 2 commits
  4. 02 Oct, 2013 1 commit
  5. 30 Sep, 2013 1 commit
  6. 28 Sep, 2013 4 commits
  7. 21 Sep, 2013 1 commit
  8. 18 Sep, 2013 3 commits
  9. 15 Sep, 2013 1 commit
  10. 13 Sep, 2013 1 commit
  11. 12 Sep, 2013 4 commits
  12. 11 Sep, 2013 2 commits
    • Glenn Morris's avatar
      Improve previous interpreter-mode-alist change · 2a08047a
      Glenn Morris authored
      * lisp/files.el (interpreter-mode-alist): Remove \\` \\' parts.
      (set-auto-mode): Don't regexp-quote elements.
      
      * lisp/progmodes/python.el (interpreter-mode-alist): Remove \\` \\'.
      
      * lisp/progmodes/cc-mode.el (interpreter-mode-alist):
      * lisp/progmodes/ruby-mode.el (interpreter-mode-alist):
      Revert previous change.
      
      * etc/NEWS: Update.
      2a08047a
    • Glenn Morris's avatar
      Comment formatting · cb559258
      Glenn Morris authored
      cb559258
  13. 10 Sep, 2013 3 commits
  14. 09 Sep, 2013 1 commit
  15. 07 Sep, 2013 1 commit
    • Alan Mackenzie's avatar
      Correctly fontify Java class constructors. · e8dd0787
      Alan Mackenzie authored
      * progmodes/cc-langs.el (c-type-decl-suffix-key): Now matches ")"
      in Java Mode.
      (c-recognize-typeless-decls): Set the Java value to t.
      * progmodes/cc-engine.el (c-forward-decl-or-cast-1): While
      handling a "(", add a check for, effectively, Java, and handle a
      "typeless" declaration there.
      e8dd0787
  16. 05 Sep, 2013 3 commits
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Move "Perl-ish · 1f896cb7
      Dmitry Gutov authored
      keywords" below "here-doc beginnings".
      
      Fixes: debbugs:15270
      1f896cb7
    • Stefan Monnier's avatar
      * lisp/subr.el (pop): Use `car-safe'. · c0458e0b
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Remove hack
      to detect unused `pop' return value.
      
      * lisp/emacs-lisp/advice.el (defadvice): Add indent rule.
      
      * lisp/international/mule-cmds.el: Require CL.
      (find-coding-systems-for-charsets): Avoid add-to-list.
      (sanitize-coding-system-list): New function, extracted from
      select-safe-coding-system-interactively.
      (select-safe-coding-system-interactively): Use it.
      (read-input-method-name): Accept symbols for `default'.
      
      * lisp/progmodes/python.el (python-nav-beginning-of-block): Remove unused
      var `block-regexp'.
      (python-nav--forward-sexp): Remove unused var `re-search-fn'.
      (python-fill-string): Remove unused var `marker'.
      (python-skeleton-add-menu-items): Remove unused var `items'.
      c0458e0b
    • Glenn Morris's avatar
      bd15c390
  17. 03 Sep, 2013 1 commit
  18. 02 Sep, 2013 3 commits
  19. 29 Aug, 2013 3 commits
    • Stefan Monnier's avatar
      Misc changes to reduce use of `(lambda...); and other cleanups. · 40f7e0e8
      Stefan Monnier authored
      * lisp/cus-edit.el: Use lexical-binding.
      (customize-push-and-save, customize-apropos)
      (custom-buffer-create-internal): Use closures.
      * lisp/progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings.
      * lisp/progmodes/ada-xref.el: Use setq.
      * lisp/net/tramp.el (with-tramp-progress-reporter): Avoid setq.
      * lisp/dframe.el: Use lexical-binding.
      (dframe-frame-mode): Fix calling convention for hooks.  Use a closure.
      * lisp/speedbar.el (speedbar-frame-mode): Adjust call accordingly.
      * lisp/descr-text.el: Use lexical-binding.
      (describe-text-widget, describe-text-sexp, describe-property-list):
      Use closures.
      * lisp/comint.el (comint-history-isearch-push-state): Use a closure.
      * lisp/calculator.el: Use lexical-binding.
      (calculator-number-to-string): Make it work with lexical-binding.
      (calculator-funcall): Same and use cl-letf.
      40f7e0e8
    • Stefan Monnier's avatar
      * lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal · f069bba8
      Stefan Monnier authored
      params of lambda expressions.
      (ruby-smie--implicit-semi-p): Refine rule.
      (ruby-smie--opening-pipe-p): New function.
      (ruby-smie--forward-token, ruby-smie--backward-token): Handle Ruby
      symbols and matched |...| for formal params.
      (ruby-smie-rules): Don't let the formal params of a "do" prevent it
      from being treated as hanging.  Handle "rescue".
      
      Fixes: debbugs:15208
      f069bba8
    • Glenn Morris's avatar