Граф коммитов

201 Коммитов

Автор SHA1 Сообщение Дата
knu 0687ed1e59 * misc/ruby-electric.el (ruby-electric-delete-backward-char): Use
delete-char instead of delete-backward-char, which is an
  interactive function.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-19 01:41:47 +00:00
knu 041224017c * misc/ruby-electric.el (ruby-electric-setup-keymap): Make
backquotes electric as well.  It was listed in
  ruby-electric-expand-delimiters-list but not activated.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-18 17:38:08 +00:00
knu 616084fd97 * misc/ruby-electric.el (ruby-electric-delete-backward-char):
Introduce electric DEL that deletes what the previous electric
  command has input.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-18 17:38:04 +00:00
knu 30034b5536 * misc/ruby-electric.el (ruby-electric-matching-char): Make
electric quotes work again at the end of buffer.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-18 17:38:02 +00:00
knu 53fa01d060 * misc/ruby-electric.el (ruby-electric-matching-char): Do not put
a closing quote when the quote typed does not start a string, as
  in $', ?\' or ?\".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-05-17 10:27:32 +00:00
hsbt 595825dc57 Replace use of obsolete variable `last-command-char` by @maser [fix GH-290]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-21 10:04:54 +00:00
knu 7190cc5df9 misc/ruby-electric.el: Decrease the excess voltage of automatic matching.
* misc/ruby-electric.el (ruby-electric-closing-char): New
  interactive function bound to closing characters.  Typing one of
  those closing characters right after the matching counterpart
  cancels the effect of automatic closing.  For example, typing
  "{" followed by "}" simply makes "{}" instead of "{ } }".

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-15 13:15:20 +00:00
knu ed3b657d7d misc/ruby-electric.el: Minor refactoring.
* misc/ruby-electric.el (ruby-electric-insert): Check
  ruby-electric-is-last-command-char-expandable-punct-p here.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-15 13:15:17 +00:00
nobu fa93be2f05 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-08 20:27:01 +00:00
knu 59eacb45e5 Improve ruby-electric-mode.
* misc/ruby-electric.el (ruby-electric-hash): New electric
  function that expands a hash sign inside a string or regexp to
  "#{}".

* misc/ruby-electric.el (ruby-electric-curlies): Do not insert
  spaces inside when the curly brace is a delimiter of %r, %w,
  etc.

* misc/ruby-electric.el (ruby-electric-curlies): Insert another
  space before a closing curly brace when
  ruby-electric-newline-before-closing-bracket is nil.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-06 16:43:32 +00:00
knu 5b7d2440ca misc/ruby-electric.el: Avoid electric insertion in some cases.
* misc/ruby-electric.el (ruby-electric-curlies)
  (ruby-electric-matching-char, ruby-electric-bar): Avoid electric
  insertion when there is a prefix argument.

* misc/ruby-electric.el (ruby-electric-insert)
  (ruby-electric-cua-replace-region-p)
  (ruby-electric-cua-replace-region): Avoid electric insertion and
  fall back when cua-mode is enabled and a region is active.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-23 03:55:39 +00:00
knu 9545483ad3 Fix ruby-electric-curlies.
* misc/ruby-electric.el (ruby-electric-curlies): Fix the bug where
  an open curly is always replaced with a hash sign.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-22 14:05:40 +00:00
knu 7bc4cfe479 ruby-electric.el (ruby-electric-curlies): Automatically indent "}".
* misc/ruby-electric.el (ruby-electric-curlies): Automatically
  indent closing curly brackets when
  ruby-electric-newline-before-closing-bracket is true.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-28 08:10:01 +00:00
knu ca4a5bd9d7 Fix a typo in misc/ruby-additional.el.
* misc/ruby-additional.el (ruby-mode-set-encoding): Unbreak by
  fixing a typo, s/set/setq/.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 06:52:47 +00:00
nobu 983c2e874f ruby-mode.el: fix argument indent
* misc/ruby-mode.el (ruby-block-end-re, ruby-delimiter)
  (ruby-mode-syntax-table, ruby-parse-partial, ruby-beginning-of-indent):
  merge from Emacs.
* misc/ruby-mode.el (ruby-calculate-indent): fix indentation of
  argument lines in parentheses.  [Bug #5140]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-03 03:43:40 +00:00
nobu f9aef18497 ruby-electric.el: use kill-region
* misc/ruby-electric.el (ruby-electric-curlies): use kill-region
  instead of interactive command delete-backward-char.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-01 08:17:05 +00:00
nobu 5852d901b5 inf-ruby.el: fix compilation-shell-minor-mode
* misc/inf-ruby.el (inferior-ruby-mode): fix the
  compilation-shell-minor-mode configuration.  a patch by
  j2petkov (Jean-Christophe Petkovich) in [ruby-core:46518].
  [Bug #6742]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-01 08:13:04 +00:00
nobu 1c5104ac9c ruby-additional.el: set encoding
* misc/ruby-additional.el (ruby-mode-set-encoding): now encoding needs
  to be set always explicitly actually.  [Feature #6679]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-07 02:48:19 +00:00
nobu ec007f72cf ruby-electric.el: fix #198
* misc/ruby-electric.el using variable `last-command-event' instead of
  obsolete `last-command-char', so that work with Emacs trunk.
  a patch by Victor Deryagin <vderyagin AT gmail.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-23 05:20:45 +00:00
nobu 98fded61f8 ruby-additional.el
* misc/ruby-additional.el: missing functions in Emacs 24.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-09-03 09:31:37 +00:00
knu e21d7c1284 * misc/rdoc-mode.el (rdoc-imenu-create-index): Add imenu support
to rdoc-mode.

* misc/rdoc-mode.el (rdoc-mode): Fix regexp patterns containing
  "\s " where CR/LF is not supposed to match.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-22 15:56:03 +00:00
knu 10e85b7f84 * misc/rdoc-mode.el (rdoc-mode): Add provide so that requiring
this library succeeds.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-18 09:12:54 +00:00
mrkn be5e17704c * misc/ruby-mode.el (ruby-indent-beg-re): Fix broken regular
expression.  Fixes #4546

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-30 14:54:11 +00:00
nobu d9e6b7d6a5 * misc/ruby-mode.el (ruby-parse-partial): use position of open paren.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-19 15:02:16 +00:00
nobu 2cda63027d * misc/ruby-mode.el (ruby-brace-to-do-end, ruby-do-end-to-brace):
adjust space between block beginning and block arguments

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-31 14:15:48 +00:00
nobu 633cf770f0 * misc/ruby-mode.el (ruby-toggle-block): toggle do/end and {}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-30 13:55:50 +00:00
nobu 764c486b84 * misc/ruby-mode.el (ruby-move-to-block): move to opening of
block.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-30 13:54:26 +00:00
nobu 1f1c31e355 * misc/ruby-mode.el (ruby-mode-map): remove unnecessary
binding. fixes
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468952

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-27 07:55:43 +00:00
nobu 69a6b860ef * misc/ruby-mode.el: suppress warnings at byte compile. fixes
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502926

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-27 06:45:56 +00:00
nobu 862048e28d * misc/ruby-mode.el (ruby-parse-partial): fix indent after aref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-09 14:06:15 +00:00
nobu 9652eae6e7 * misc/ruby-electric.el: remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-08 14:12:48 +00:00
nobu 6b0dc7fd81 * misc/ruby-mode.el (ruby-parse-partial): fix for array in block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-08 14:10:19 +00:00
nobu 85df40e9ab * misc/ruby-mode.el (ruby-deep-indent-paren-p, ruby-calculate-indent):
do not apply deep-indent inside parens at the beginning of
  expressions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-08 03:30:23 +00:00
nobu 787686ffa7 * misc/ruby-mode.el (ruby-expr-beg): fix for invalid nest errors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-08 10:38:01 +00:00
nobu 5f3e191f95 * misc/ruby-mode.el (ruby-expr-beg, ruby-in-here-doc-p): tell
singleton class definitions from here documents.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 15:56:34 +00:00
nobu 360e0b93fd * misc/ruby-mode.el (ruby-expr-beg, ruby-parse-partial): keyword
followed by colon is label.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-07 15:53:15 +00:00
nobu c5b45d252a * misc/ruby-mode.el (ruby-mode-map): remove deprecated binding.
use M-; instead.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-27 14:14:24 +00:00
nobu 594793f588 * misc/rdoc-mode.el (rdoc-mode): show trailing whitespace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-10 04:51:20 +00:00
kazu 1ca8760902 * misc/README: mention rdoc-mode.el and ruby-style.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-09 22:44:19 +00:00
nobu 29ed2f308c * misc/ruby-mode.el (ruby-mode-variables), misc/ruby-style.el:
show trailing whitespace.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-07 12:57:34 +00:00
nobu a262f71f37 * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): highlight
regexp after open bracket.  [ruby-core:34183]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-07 12:54:10 +00:00
nobu 281bdd3125 * NEWS (optparse): shell completion support.
* misc/README (rb_optparse.{bash,zzh}): for shell completion.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-01 02:03:59 +00:00
kazu d298593f56 * misc/rb_optparse.zsh: add compdef for generator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-26 23:30:38 +00:00
kazu 90e1ed91c4 update how to install again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-12 12:06:36 +00:00
kazu 89c7efed6f * misc/rb_optparse.zsh: update how to install.
* misc/rb_optparse.zsh: avoid error when setopt noclobber.

* lib/optparse.rb: fix typo. pointed out at
  <http://d.hatena.ne.jp/nagachika/20101207>.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-12 11:40:29 +00:00
nobu 11ef87461a * lib/optparse.rb (OptionParser::Officious): separate completion
options from --help.  [ruby-dev:42690]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-07 13:31:11 +00:00
kazu 6c715d1de8 * misc/rb_optparse.zsh: fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-12-06 10:01:53 +00:00
nobu f4c909b965 * misc/ruby-mode.el (ruby-forward-sexp): stop after literal hash
key labels.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-29 12:12:54 +00:00
nobu 05a0c30adc * misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
hash key labels as symbols.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-29 12:11:19 +00:00
nobu 91c0ff4f7d * lib/optparse.rb: shell completion support for zsh. based on
<http://d.hatena.ne.jp/rubikitch/20071002/zshcomplete>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-19 12:07:09 +00:00