From: Al Chou Date: 2001-07-14T05:33:03+09:00 Subject: [ruby-talk:17819] func-menu additions for Ruby Hi, all, I got frustrated with func-menu.el not supporting Ruby, so I added the following to it. However, my regexp for grabbing method names doesn't work quite right (I get a lot of entries on the function menu that just say "def" instead of the actual method name). Anyone care to point out where I'm going astray (I started by copying the existing regexp for PERL)? ;;; Ruby ;;; Albert Davidson Chou (defvar fume-function-name-regexp-ruby "^\\s-*def[ \t]+\\([A-Za-z_][A-Za-z0-9_]*\\)" "Expression to get Ruby function names") and inside the following section I added a hook for Ruby so that func-menu will work in Ruby mode: ;;; This is where the mode specific regexp's are hooked in ;;; (defvar fume-function-name-regexp-alist ;; Ruby (ruby-mode . fume-function-name-regexp-ruby) Al ===== Albert Davidson Chou Get answers to Mac questions at http://www.mac-mgrs.org/ . __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/