unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Ruby mode added
@ 2008-12-10 19:08 Chong Yidong
  2008-12-10 19:24 ` Dan Nicolaescu
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Chong Yidong @ 2008-12-10 19:08 UTC (permalink / raw)
  To: emacs-devel; +Cc: Phil Hagelberg

Richard has okayed adding Ruby-mode to CVS, and I've done so.  I made a
few changes with respect to Phil Hagelberg's version at github:

- Moved definition of ruby-mode to the end of the file to avoid compiler
  warnings.

- Removed the defun-region-command macro.  Is there a better way for
  this file to remain XEmacs-compatible without this hack?

(eval-when-compile
  (defmacro defun-region-command (func args &rest body)
    (let ((intr (car body)))
      (when (featurep 'xemacs)
        (if (stringp intr) (setq intr (cadr body)))
        (and (eq (car intr) 'interactive)
             (setq intr (cdr intr))
             (setcar intr (concat "_" (car intr)))))
      (cons 'defun (cons func (cons args body))))))

- There seemed to be a reference to an unbound variable, `indent-point',
  in ruby-parse-partial.  I assumed this was an attempt to use dynamic
  scope to access the let-bound variable `indent-point' in
  ruby-calculate-indent; therefore I renamed indent-point as
  ruby-indent-point and added a `boundp' check.  Phil, could you check
  if this is the intention of the code?

I have also updated NEWS and the Emacs manual.

Does anyone see any problem?




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-12-16 17:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-10 19:08 Ruby mode added Chong Yidong
2008-12-10 19:24 ` Dan Nicolaescu
2008-12-10 19:45   ` Will Farrington
2008-12-11  2:06   ` Chong Yidong
2008-12-11  7:09     ` Dan Nicolaescu
2008-12-11  2:16   ` Stefan Monnier
2008-12-10 21:16 ` Paul R
2008-12-11  2:15 ` Stefan Monnier
2008-12-12  4:10   ` Chong Yidong
2008-12-12 18:44     ` Stefan Monnier
2008-12-12 19:07 ` Dan Nicolaescu
2008-12-16 17:14 ` Phil Hagelberg

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).