From: Brett Williams Date: 2001-11-08T01:41:51+09:00 Subject: [ruby-talk:24532] ruby-mode fix for Emacs 21? I recently upgraded to GNU Emacs 21 (and have been very happy with it). But it seems that something is wrong with ruby-mode now. If I ever use the vertical bars: blah.each do |foo| ... end I get the following error, causing the indentation to fail: Invalid regexp: "Unmatched \\{" This was really annoying as I spend the majority of my time at work programming in Ruby. I am not a lisp programmer, but the problem was fixed when I replaced the following line from ruby-calculate-indent: (not (looking-at "\\{"))) with: (not (looking-at "{"))) I would list the line number, but my copy has had some code added to do "paren matching" with code blocks using "end", so the line number wouldn't be useful to anyone else. From my knowledge of regexps (which is not elisp centric), the first way is correct as a bare { should start a quantifier, so likely my "fix" just breaks it differently, avoiding the previous error :) Does anyone have the correct fix for this? -- The key of strategy... is not to choose a path that leads to victory, but to choose so that all paths lead to a victory. -- L.M. Bujold