all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: charles@aurox.ch, Stefan Monnier <monnier@iro.umontreal.ca>,
	Emacs Development <emacs-devel@gnu.org>
Subject: Re: [Emacs-diffs] master b88e7c8: Make transpose-regions interactive (Bug#30343)
Date: Thu, 15 Mar 2018 20:20:19 +0000	[thread overview]
Message-ID: <CAPM58oh95Gpb5MCZLC5zTvxAntot92RXgWFz6vSc3Hqb5f10_w@mail.gmail.com> (raw)
In-Reply-To: <83woyiscns.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

On 11 March 2018 at 18:13, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Stefan Monnier <monnier@IRO.UMontreal.CA>
> > Date: Sun, 11 Mar 2018 12:05:11 -0400
> > Cc: "Charles A. Roelli" <charles@aurox.ch>
> >
> > > -DEFUN ("transpose-regions", Ftranspose_regions, Stranspose_regions,
> 4, 5, 0,
> > > +DEFUN ("transpose-regions", Ftranspose_regions, Stranspose_regions,
> 4, 5,
> > > +       "(if (< (length mark-ring) 2)\
> > > +       (error \"Other region must be marked before transposing two
> regions\")\
> > > +     (let* ((num (if current-prefix-arg\
> > > +                    (prefix-numeric-value current-prefix-arg)\
> > > +                   0))\
> > > +            (ring-length (length mark-ring))\
> > > +            (eltnum (mod num ring-length))\
> > > +            (eltnum2 (mod (1+ num) ring-length)))\
> > > +       (list (point) (mark) (elt mark-ring eltnum) (elt mark-ring
> eltnum2))))",
> >
> > Am I the only one who dislikes seeing such Elisp code hidden within our
> > C files?
>
> I have no problems with that.
>
>
I agree with Eli, it seems fine to me, but I'm not sure what the
alternative is. If it's to move the body of the interactive spec into
a function in an elisp file, and replace the spec with a call to that
function, it seems overly complicated. (It also feel like a layering
violation, but that can only be true if there is a rule or guideline
saying so and I don't know of any.)

[-- Attachment #2: Type: text/html, Size: 2216 bytes --]

  reply	other threads:[~2018-03-15 20:20 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180311105533.30002.78782@vcs0.savannah.gnu.org>
     [not found] ` <20180311105534.3DAFD23CF3@vcs0.savannah.gnu.org>
2018-03-11 16:05   ` [Emacs-diffs] master b88e7c8: Make transpose-regions interactive (Bug#30343) Stefan Monnier
2018-03-11 17:23     ` Charles A. Roelli
2018-03-12  9:56       ` Leo Liu
2018-03-11 18:13     ` Eli Zaretskii
2018-03-15 20:20       ` Richard Copley [this message]
2018-03-16 15:23         ` Karl Fogel
2018-03-20 21:33           ` Karl Fogel
2018-03-20 21:46             ` Richard Copley
2018-03-21  7:22             ` Eli Zaretskii
2018-03-22  5:30               ` Karl Fogel
2018-03-22  7:12                 ` Eli Zaretskii
2018-03-22  7:15                 ` Unnecessarily moving stiff between files considered harmful (Was: [Emacs-diffs] master b88e7c8: Make transpose-regions interactive) (Bug#30343) Eli Zaretskii
2018-03-23 18:03                   ` Unnecessarily moving stiff between files considered harmful Karl Fogel
2018-03-22 13:39                 ` [Emacs-diffs] master b88e7c8: Make transpose-regions interactive (Bug#30343) Stefan Monnier
2018-03-23 18:05                   ` Karl Fogel
2018-03-25 10:03               ` Charles A. Roelli
2018-03-25 15:41                 ` Eli Zaretskii
2018-03-25 20:29                   ` Charles A. Roelli
2018-03-26 15:59                     ` Eli Zaretskii
2018-03-28 20:19                     ` Juri Linkov
2018-03-29  4:53                       ` Karl Fogel
2018-03-29 11:38                         ` Eli Zaretskii
2018-03-29 12:17                         ` Stefan Monnier

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=CAPM58oh95Gpb5MCZLC5zTvxAntot92RXgWFz6vSc3Hqb5f10_w@mail.gmail.com \
    --to=rcopley@gmail.com \
    --cc=charles@aurox.ch \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.