summaryrefslogtreecommitdiffstats
path: root/misc
Commit message (Collapse)AuthorAgeFilesLines
* * misc/ruby-style.el: It is too late to set c-file-style inknu2009-06-241-4/+5
| | | | | | | | c-mode-hook (at least on Emacs 23). Call c-set-style instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/completion.rb (IRB::InputCompletor::Operators): Addknu2009-04-031-2/+2
| | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@23129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: added comment to mention newer versionmatz2008-12-231-6/+47
| | | | | | | bundled with Emacs 23 or later. a patch from Phil Hagelberg <phil at hagelb.org> in [ruby-core:20838]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-c-mode): buffer may not have filenobu2008-10-091-1/+9
| | | | | | | name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: safe custimizable variables.nobu2008-09-261-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-keyword-end-re): emacs21 support. amatz2008-09-221-15/+41
| | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@19460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/emacs-mode.el: don't set case-fold-search globally to nil;matz2008-09-061-4/+5
| | | | | | instead just set it when we need it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: fix a variable-name error.matz2008-09-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/*.el: untabify, for interal consistency and consistencymatz2008-09-064-857/+857
| | | | | | with standard Emacs elisp files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el, misc/ruby-electric.el: use regexp-opt wherematz2008-09-062-18/+33
| | | | | | possible for more efficient regexps. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: don't highlight keywords when they're thematz2008-09-061-5/+4
| | | | | | beginning of non-keyword symbols. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: don't crash the whole mode if the Subversionmatz2008-09-061-3/+2
| | | | | | $ keyword isn't interpolated. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/*.el: merged the following patches from Nathan Weizenbaummatz2008-09-062-20/+20
| | | | | | | | <nex342 at gmail.com>. [ruby-core:18424] * misc/ruby-mode.el: improve here-doc performance. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix theknu2008-08-071-1/+1
| | | | | | | | regexp to only pick definition lines properly. `module_funtion' is not a definition of a module named `_function'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: fix here-doc strings with inner quotes. patchesnobu2008-07-221-46/+96
| | | | | | | | by Nathan Weizenbaum <nex342 AT gmail.com> from [ruby-core:17615] through [ruby-core:17910]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook ismatz2008-05-261-1/+3
| | | | | | | not available. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34853]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: move fontifying code from hook.matz2008-05-021-18/+12
| | | | | | [ruby-core:16636] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-{case,label}-indent): up list fromnobu2008-04-221-0/+2
| | | | | | | indentation point. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-encoding-map): added shift-jis for oldernobu2008-04-151-12/+20
| | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@16028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/rdebug.el, misc/README: Remove rdebug.el as per requestknu2008-04-101-136/+0
| | | | | | | | from the maintainer and mention the ruby-debug project at RubyForge in README. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Mention the ruby-debug project at RubyForge.knu2008-04-101-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode): should use `run-mode-hooks' insteadnobu2008-03-171-1/+1
| | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@15790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-encoding-map, ruby-use-encoding-map): addednobu2008-03-141-4/+12
| | | | | | | to customize. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-set-encoding): special treat fornobu2008-03-121-0/+3
| | | | | | | compatibility with -Ks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-add-log-current-method): use ruby stylenobu2008-03-061-8/+33
| | | | | | | method name format. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-calculate-indent): should distinguishmatz2008-02-261-1/+1
| | | | | | comment and # in strings. [ruby-dev:33874] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-label-indent): fix for labels insidenobu2008-02-231-1/+1
| | | | | | | blocks in switch. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-set-encoding): updates magic comment.nobu2008-01-281-9/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode): set ruby-mode-set-encoding to buffernobu2008-01-271-0/+1
| | | | | | | local before-save-hook. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-mode-set-encoding): automatically insertnobu2008-01-271-10/+30
| | | | | | | encoding magic comment. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * $Date$ keyword removed to avoid inclusion of locale dependentakr2008-01-063-3/+0
| | | | | | | string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-parse-partial): handle stringifiedmatz2007-11-121-2/+3
| | | | | | symbols properly using ruby-forward-string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-{case,label}-indent): adjust fornobu2007-10-261-9/+13
| | | | | | | labels inside switch block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): dot at the head of the line denote linematz2007-10-251-6/+10
| | | | | | | | | continuation from previous one to support fluent interface. [experimental] * misc/ruby-mode.el (ruby-calculate-indent): support fluent dot. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-label-indent): fix for function topnobu2007-09-201-3/+23
| | | | | | | level labels. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-label-indent): for yacc rules.nobu2007-05-171-4/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el: new file. C/C++ style for ruby source code.nobu2007-04-261-0/+36
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-block-end-re): Support for theknu2007-03-111-1/+1
| | | | | | | exprimental ';;' terminator had been dropped. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/README, misc/rdebug.el: Add rdebug.el, Emacs ruby-debugknu2007-03-102-6/+143
| | | | | | | | interface based on rubydb3x.el; submitted by Martin Nordholts <enselic AT gmail.com> in [ruby-bugs:PR#9023]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fixmatz2007-01-241-1/+1
| | | | | | regexp font-lock bug. [ruby-talk:235758] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb (Matrix::rank): use quo method to avoid integermatz2006-12-051-0/+2
| | | | | | | | | division problem. [ruby-core:09644] * lib/matrix.rb (Matrix::rank_e): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-parse-partial): better here-doc support.matz2006-09-131-1/+1
| | | | | | | | a patch from Marshall T. Vandegrift <llasram at gmail.com>. [ruby-core:08804] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-expr-beg): support $! at the end ofmatz2005-11-301-1/+1
| | | | | | | expression. [ruby-dev:27868] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-calculate-indent): arrange deep-indentnobu2005-09-241-2/+6
| | | | | | | closing parenthesis at same column as the opening. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-expr-beg): deal with heredoc separately.nobu2005-09-241-6/+6
| | | | | | | | | | | fixed: [ruby-list:41168] * misc/ruby-mode.el (ruby-calculate-indent): not to deepen indent level for continuous line inside parentheses. http://nabeken.tdiary.net/20050915.html#p02 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * signal.c (sigexit): call rb_thread_signal_exit() instead ofmatz2005-06-121-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_exit(). [ruby-dev:26347] * eval.c (rb_thread_signal_exit): a new function to exit on main thread. * eval.c (rb_thread_switch): exit status should be retrieved from ruby_errinfo. * eval.c (rb_f_exit): ensure exit(0) should call exit(EXIT_SUCCESS). * missing/mkdir.c: remove. [ruby-core:05177] * hash.c (env_aset): do not treat nil as key-removing value. [ruby-list:40865] * parse.y (method_call): allow aref expression ([]) to take a block. * parse.y (block_dup_check): a function to check duplication of a block argument and an actual block. * lib/delegate.rb (SimpleDelegator::__setobj__): need check for recursive delegation. [ruby-core:04940] * lib/cgi.rb: add underscore aliases CGI::escape_html, CGI::unescape_html, CGI::escape_element, CGI::unescape_element. [ruby-core:05058] * misc/ruby-mode.el (ruby-expr-beg): fix looking point drift. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): allow ';;' to be block terminator inmatz2005-06-071-7/+8
| | | | | | | | | | | | | | | | | | place of 'end'. [highly experimental] * misc/ruby-mode.el (ruby-block-end-re): allow ';;' for a negative indent trigger. [highly experimental] * parse.y (parser_yylex): "respond_to?:foo" should be interpreted as "respond_to? :foo" at the command level. [ruby-talk:144303] * sprintf.c (rb_f_sprintf): raise exception on debug mode (-d), not verbose mode (-w/-w). [ruby-core:05123] * sprintf.c (rb_f_sprintf): warn always on verbose mode. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): stringnobu2005-05-231-1/+1
| | | | | | | literals to be matched non-greedy. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_attr): attribute name check added.matz2005-04-181-1/+1
| | | | | | | * numeric.c (flo_plus): small typo fix. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-expr-beg): returned true always.nobu2005-03-191-2/+1
| | | | | | | fixed: [ruby-list:40683] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e