From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: Phil Hagelberg <phil@hagelb.org>, emacs-devel@gnu.org
Subject: Re: Ruby mode added
Date: Wed, 10 Dec 2008 21:15:22 -0500 [thread overview]
Message-ID: <jwviqprtq42.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87y6yn26gk.fsf@cyd.mit.edu> (Chong Yidong's message of "Wed, 10 Dec 2008 14:08:59 -0500")
> - 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
`ruby-defun-region-command'.
Stefan
next prev parent reply other threads:[~2008-12-11 2:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwviqprtq42.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=phil@hagelb.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.