1. 27 Mar, 2014 2 commits
  2. 24 Mar, 2014 1 commit
    • Dmitry Gutov's avatar
      Match special globals in Ruby better · c2d6c639
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-expression-expansion-re):
      Match special global variables without curlies, too.
      (ruby-font-lock-keywords): Simplify the matcher for special global
      variables.  Don't require a non-word character after the variable.
      
      Fixes: debbugs:17057
      c2d6c639
  3. 21 Mar, 2014 1 commit
    • Dmitry Gutov's avatar
      Fix bug#17050 · 1fc8f655
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-smie-rules):
      Add indentation rule for ` @ '.
      1fc8f655
  4. 13 Mar, 2014 1 commit
  5. 01 Mar, 2014 1 commit
  6. 23 Feb, 2014 2 commits
  7. 21 Feb, 2014 1 commit
  8. 03 Feb, 2014 1 commit
  9. 01 Feb, 2014 2 commits
    • Dmitry Gutov's avatar
      Fix bug#16610 · 68e004e0
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): For built-ins
      that require arguments, check that they're followed by something that
      looks like argument.
      68e004e0
    • Dmitry Gutov's avatar
      Fix bug#16609 · a09beb3d
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Check for
      `:' before binary operators.  Don't check for `:'
      before `[' and `(', or their syntax status.  A percent literal
      can't end with either.
      a09beb3d
  10. 31 Jan, 2014 2 commits
    • Dmitry Gutov's avatar
      Fixup the documentation for the previous change · 2f313daf
      Dmitry Gutov authored
      * etc/NEWS: Mention `ruby-align-chained-calls'.
      
      * lisp/progmodes/ruby-mode.el (ruby-align-chained-calls): Update the
        docstring and add :version tag.
      
      Fixes: debbugs:16593
      2f313daf
    • Dmitry Gutov's avatar
      Implement user option ruby-align-chained-calls · e2a67bd0
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-align-chained-calls): New option.
      (ruby-smie-grammar): Make "." right-associative.  Make its priority
      lower than the ternary and all binary operators.
      (ruby-smie-rules): Indent "(" relative to the first non-"."
      parent, or the first "." parent at indentation.  Use
      `ruby-align-chained-calls' for indentation of "." tokens.
      
      * test/automated/ruby-mode-tests.el (ruby-align-chained-calls):
      New test.
      
      Fixes: debbugs:16593
      e2a67bd0
  11. 17 Jan, 2014 1 commit
  12. 10 Jan, 2014 1 commit
  13. 01 Jan, 2014 1 commit
  14. 28 Dec, 2013 1 commit
    • Glenn Morris's avatar
      Every defcustom should specify its type · 9c5a5c77
      Glenn Morris authored
      * apropos.el (apropos-match-face):
      * calculator.el (calculator-displayer):
      * dabbrev.el (dabbrev-search-these-buffers-only):
      * face-remap.el (buffer-face-mode-face):
      * simple.el (yank-handled-properties):
      * emacs-lisp/testcover.el (testcover-potentially-1value-functions):
      * mail/footnote.el (footnote-mode-line-string, footnote-prefix):
      * mail/hashcash.el (hashcash-accept-resources, hashcash-program)
      (hashcash-double-spend-database):
      * progmodes/ruby-mode.el (ruby-deep-indent-paren)
      (ruby-deep-indent-paren-style):
      * textmodes/flyspell.el (flyspell-auto-correct-binding):
      * textmodes/rst.el (rst-toc-indent, rst-toc-insert-style)
      (rst-toc-insert-number-separator, rst-toc-insert-max-level):
      * vc/pcvs-defs.el (cvs-minor-mode-prefix):
      * erc/erc-log.el (erc-log-file-coding-system):
      * gnus/gnus-sieve.el (gnus-sieve-select-method):
      * gnus/gravatar.el (gravatar-automatic-caching, gravatar-cache-ttl)
      (gravatar-rating, gravatar-size):
      * gnus/message.el (message-minibuffer-local-map):
      * gnus/sieve-manage.el (sieve-manage-authenticators)
      (sieve-manage-authenticator-alist):
      Specify custom types.
      
      * mail/hashcash.el (hashcash-program): Rename from hashcash-path.
      Update callers.
      9c5a5c77
  15. 22 Dec, 2013 4 commits
  16. 20 Dec, 2013 1 commit
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New · b520f210
      Dmitry Gutov authored
      option. 
      (ruby-smie--indent-to-stmt-p): Use it.
      (ruby-smie-rules): Revert the logic in the handling of `when'.
      Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
      (ruby-deep-arglist, ruby-deep-indent-paren)
      (ruby-deep-indent-paren-style): Update docstrings to note that the
      vars don't have any effect with SMIE.
      
      * test/automated/ruby-mode-tests.el: Add tests for
      `ruby-align-to-stmt-keywords'.
      
      * test/indent/ruby.rb: Update examples to reflect the lack of change in
      default indentation of `begin' blocks.
      
      Fixes: debbugs:16182
      b520f210
  17. 19 Dec, 2013 2 commits
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent middle-of-block · ce41edb4
      Dmitry Gutov authored
      keywords to their parent.
      ce41edb4
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Allow the · 7e1549c9
      Dmitry Gutov authored
      first arg to be a string (fixed dead code), or an operator symbol.
      (ruby-smie--forward-token): Tokenize ` @ ' before strings and
      operator symbols.
      (ruby-smie-rules): Remove parent token check in the `.' clause, it
      did nothing.  Don't respond to `(:after ".")', it will be called
      with :before anyway.  Remove the ` @ ' rule, it didn't seem to
      change anything.  Only return indentation for binary operators
      when they are hanging.  De-dent opening paren when its parent is
      `.', otherwise it looks bad when the dot is not at bol or eol.
      
      Fixes: debbugs:16182
      7e1549c9
  18. 17 Dec, 2013 1 commit
  19. 14 Dec, 2013 2 commits
    • Dmitry Gutov's avatar
      660efa1a
    • Dmitry Gutov's avatar
      Fix bug#16118 · 276bc333
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Return nil before
      open-paren tokens when preceded by a open-paren, too.
      (ruby-smie-rules): Handle virtual indentation after open-paren
      tokens specially.  If there is code between it and eol, return the
      column where is starts.
      
      * test/indent/ruby.rb: New examples.
      276bc333
  20. 09 Dec, 2013 3 commits
  21. 06 Dec, 2013 2 commits
  22. 22 Nov, 2013 2 commits
  23. 20 Nov, 2013 1 commit
  24. 17 Nov, 2013 1 commit
  25. 15 Nov, 2013 1 commit
  26. 14 Nov, 2013 2 commits