[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ruby mode added

From: Stefan Monnier
Subject: Re: Ruby mode added
Date: Wed, 10 Dec 2008 21:15:22 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> - 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))))))

As mentioned earlier, an easy way is to rename it to


reply via email to

[Prev in Thread] Current Thread [Next in Thread]