nobu
4acf013ffd
* misc/ruby-mode.el (ruby-mode-set-encoding): commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 09:27:06 +00:00
nobu
97a1d656f8
* misc/ruby-mode.el (ruby-mode-set-encoding): skip shebang line
...
always regardless of ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 09:22:25 +00:00
nobu
42c16a3b07
* misc/ruby-style.el (ruby-style-version): take revision if
...
keyword is expanded. [ruby-dev:41408]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-25 07:37:41 +00:00
kosaki
ceb62c31a1
* misc/ruby-mode.el (ruby-mode-map): binded C-c C-c and C-c C-c C-u
...
to comment-region and uncomment-region. Thanks Michael Klishin!
[Feature #872 ] [ruby-core:20552]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-07 14:39:28 +00:00
nobu
33ede4d01c
* misc/ruby-mode.el (ruby-here-doc-beg-match): fix for here-doc
...
which ends with an underscore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 03:49:42 +00:00
nobu
96ac194811
* misc/rdoc-mode.el: added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-18 01:11:30 +00:00
knu
4d0e9c4515
* misc/ruby-style.el: It is too late to set c-file-style in
...
c-mode-hook (at least on Emacs 23). Call c-set-style instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-24 02:41:57 +00:00
knu
ae846f9fb8
* lib/irb/completion.rb (IRB::InputCompletor::Operators): Add
...
overloadable negative operators.
* lib/irb/ruby-lex.rb (RubyLex#lex_init): Support overloadable
negative operators.
* lib/irb/ruby-lex.rb (RubyLex#identify_identifier): Minus signs
need to be escaped in regexp character class.
* misc/ruby-mode.el (ruby-font-lock-keywords, ruby-parse-partial):
Support overloadable negative operators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-04-03 05:04:02 +00:00
matz
568b743442
* misc/ruby-mode.el: added comment to mention newer version
...
bundled with Emacs 23 or later. a patch from Phil Hagelberg
<phil at hagelb.org> in [ruby-core:20838].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-23 18:23:15 +00:00
nobu
fd8ca75663
* misc/ruby-style.el (ruby-style-c-mode): buffer may not have file
...
name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-09 14:53:26 +00:00
nobu
00ae128346
* misc/ruby-mode.el: safe custimizable variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-26 09:24:31 +00:00
matz
fb01457265
* misc/ruby-mode.el (ruby-keyword-end-re): emacs21 support. a
...
patch from Hiroshi Moriyama <hiroshi at kvd.biglobe.ne.jp> in
[ruby-dev:36471].
* misc/ruby-mode.el (ruby-in-ppss-context-p): ditto.
* misc/ruby-mode.el (ruby-here-doc-end-syntax):
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-22 23:09:21 +00:00
matz
120772041e
* misc/emacs-mode.el: don't set case-fold-search globally to nil;
...
instead just set it when we need it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-06 22:38:08 +00:00
matz
e39aa51dfa
* misc/ruby-mode.el: fix a variable-name error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-06 22:37:17 +00:00
matz
4cbbf3bdfc
* misc/*.el: untabify, for interal consistency and consistency
...
with standard Emacs elisp files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-06 22:36:10 +00:00
matz
d250d79e5b
* misc/ruby-mode.el, misc/ruby-electric.el: use regexp-opt where
...
possible for more efficient regexps.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-06 22:34:46 +00:00
matz
3f3584d623
* misc/ruby-mode.el: don't highlight keywords when they're the
...
beginning of non-keyword symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-06 22:33:43 +00:00
matz
ce231cdbdd
* misc/ruby-mode.el: don't crash the whole mode if the Subversion
...
$ keyword isn't interpolated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-06 22:32:38 +00:00
matz
2d1c5d2c24
* misc/*.el: merged the following patches from Nathan Weizenbaum
...
<nex342 at gmail.com>. [ruby-core:18424]
* misc/ruby-mode.el: improve here-doc performance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-06 22:30:34 +00:00
knu
3f91366caf
* misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the
...
regexp to only pick definition lines properly. `module_funtion'
is not a definition of a module named `_function'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-07 09:04:27 +00:00
nobu
1bcbc29d95
* misc/ruby-mode.el: fix here-doc strings with inner quotes. patches
...
by Nathan Weizenbaum <nex342 AT gmail.com> from [ruby-core:17615]
through [ruby-core:17910].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-22 00:51:35 +00:00
matz
cf5cf236d7
* misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook is
...
not available. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>
in [ruby-dev:34853].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-26 07:51:21 +00:00
matz
f145325797
* misc/ruby-mode.el: move fontifying code from hook.
...
[ruby-core:16636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-02 06:01:13 +00:00
nobu
9f9a532d98
* misc/ruby-style.el (ruby-style-{case,label}-indent): up list from
...
indentation point.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-22 13:15:56 +00:00
nobu
6a98d417f0
* misc/ruby-mode.el (ruby-encoding-map): added shift-jis for older
...
versions.
* misc/ruby-mode.el (ruby-mode-set-encoding):
coding-system-to-mime-charset is not a standard function.
[carbon-emacs:795]
fix for the case that magic comment exists but coding system is
absent.
* misc/ruby-mode.el (ruby-mode): use write-contents-functions or
write-contents-hooks for older versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15 06:38:13 +00:00
knu
69327a9d2e
* misc/rdebug.el, misc/README: Remove rdebug.el as per request
...
from the maintainer and mention the ruby-debug project at
RubyForge in README.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-10 11:37:46 +00:00
knu
4a1d5cfafe
Mention the ruby-debug project at RubyForge.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-10 11:36:29 +00:00
nobu
c97735b53c
* misc/ruby-mode.el (ruby-mode): should use `run-mode-hooks' instead
...
of calling `run-hooks' directly to run the mode hook. patch from
Chiyuan Zhang <pluskid AT gmail.com> in [ruby-core:15915]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-17 08:11:15 +00:00
nobu
05eeb60259
* misc/ruby-mode.el (ruby-encoding-map, ruby-use-encoding-map): added
...
to customize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-14 02:24:32 +00:00
nobu
c7e829292a
* misc/ruby-mode.el (ruby-mode-set-encoding): special treat for
...
compatibility with -Ks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-12 08:01:08 +00:00
nobu
53577db05b
* misc/ruby-mode.el (ruby-add-log-current-method): use ruby style
...
method name format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-06 02:14:17 +00:00
matz
99e8314b3b
* misc/ruby-mode.el (ruby-calculate-indent): should distinguish
...
comment and # in strings. [ruby-dev:33874]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-26 07:53:40 +00:00
nobu
f11ac55489
* misc/ruby-style.el (ruby-style-label-indent): fix for labels inside
...
blocks in switch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 20:09:46 +00:00
nobu
f7ed47355e
* misc/ruby-mode.el (ruby-mode-set-encoding): updates magic comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-28 15:10:02 +00:00
nobu
ce26086b01
* misc/ruby-mode.el (ruby-mode): set ruby-mode-set-encoding to buffer
...
local before-save-hook.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-27 13:31:47 +00:00
nobu
c9ca560ce8
* misc/ruby-mode.el (ruby-mode-set-encoding): automatically insert
...
encoding magic comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-27 12:49:01 +00:00
akr
6cdef2dc7e
* $Date$ keyword removed to avoid inclusion of locale dependent
...
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-06 15:49:38 +00:00
matz
8110d52333
* misc/ruby-mode.el (ruby-parse-partial): handle stringified
...
symbols properly using ruby-forward-string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-12 04:54:00 +00:00
nobu
32865ef821
* misc/ruby-style.el (ruby-style-{case,label}-indent): adjust for
...
labels inside switch block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-26 06:00:52 +00:00
matz
bbe0af6be1
* parse.y (parser_yylex): dot at the head of the line denote line
...
continuation from previous one to support fluent interface.
[experimental]
* misc/ruby-mode.el (ruby-calculate-indent): support fluent dot.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-25 17:06:29 +00:00
nobu
ac907e669a
* misc/ruby-style.el (ruby-style-label-indent): fix for function top
...
level labels.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-20 19:58:41 +00:00
nobu
b21d410d4e
* misc/ruby-style.el (ruby-style-label-indent): for yacc rules.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-05-17 08:02:02 +00:00
nobu
da4ad54e47
* misc/ruby-style.el: new file. C/C++ style for ruby source code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-04-26 04:54:01 +00:00
knu
5a347e064f
* misc/ruby-mode.el (ruby-block-end-re): Support for the
...
exprimental ';;' terminator had been dropped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-11 09:46:46 +00:00
knu
af2b2755cc
* misc/README, misc/rdebug.el: Add rdebug.el, Emacs ruby-debug
...
interface based on rubydb3x.el; submitted by Martin Nordholts
<enselic AT gmail.com> in [ruby-bugs:PR#9023].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-03-10 20:52:31 +00:00
matz
14476c3bea
* misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix
...
regexp font-lock bug. [ruby-talk:235758]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-24 09:09:51 +00:00
matz
bf74ef51a2
* lib/matrix.rb (Matrix::rank): use quo method to avoid integer
...
division problem. [ruby-core:09644]
* lib/matrix.rb (Matrix::rank_e): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-05 09:59:45 +00:00
matz
f2e069ad2b
* misc/ruby-mode.el (ruby-parse-partial): better here-doc support.
...
a patch from Marshall T. Vandegrift <llasram at gmail.com>.
[ruby-core:08804]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-09-13 09:29:41 +00:00
matz
cced56ef7c
* misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
...
expression. [ruby-dev:27868]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-30 04:50:04 +00:00
nobu
9e12dc5ce9
* misc/ruby-mode.el (ruby-calculate-indent): arrange deep-indent
...
closing parenthesis at same column as the opening.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-24 16:47:20 +00:00