]> git.eshelyaron.com Git - emacs.git/commit
Move interactive `transpose-regions' to Lisp
authorKarl Fogel <kfogel@red-bean.com>
Sun, 18 Mar 2018 21:43:18 +0000 (16:43 -0500)
committerKarl Fogel <kfogel@red-bean.com>
Sun, 18 Mar 2018 21:43:18 +0000 (16:43 -0500)
commit3a3aa0e056a3f4e8023bc8e8142ffbc73daac4ea
treedf8de3f2c87890813a936307453417214fe1df57
parent9667ba25b4af54179c28a719163c4b74f02d0ff8
Move interactive `transpose-regions' to Lisp

Define `transpose-regions' in Lisp, because its complex interactive
spec was ungainly in C, and change the C version to non-interactive
`transpose-regions-internal'.  The Lisp function is just a wrapper
around the C function, which still does all the work.

* lisp/simple.el (transpose-regions): New wrapper function, with
  interactive spec taken from old C `transpose-regions'.

* src/editfns.c (Ftranspose_regions): Rename to...
  (Ftranspose_regions_internal): ...here, and remove interactive spec.

Discussion on Emacs Devel:

  From: Karl Fogel
  To: Emacs Development
Cc: Richard Copley, Charles A. Roelli
  Subject: Re: [Emacs-diffs] master b88e7c8: \
           Make transpose-regions interactive (Bug#30343)
  Date: Fri, 16 Mar 2018 10:23:31 -0500
  Message-ID: <87po44jb7w.fsf@red-bean.com>

  https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00555.html
lisp/simple.el
src/editfns.c