all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: rms@gnu.org
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Old-style backquotes in cc-vars.el
Date: Thu, 06 Sep 2007 17:27:37 +0300	[thread overview]
Message-ID: <87lkbj50od.fsf@jurta.org> (raw)
In-Reply-To: <E1IT14c-0005zb-GA@fencepost.gnu.org> (Richard Stallman's message of "Wed\, 05 Sep 2007 16\:02\:02 -0400")

>     I did it with a macro that did something like:
>
>        C-u C-s ([`,]@? C-SPC M-x up-list RET DEL C-u C-SPC C-d C-SPC C-M-u C-d
>        C-u C-SPC
>
> Could you work out the details again, and put it in NEWS as a
> suggestion?  Or code it in Lisp?

BTW, since TODO contains the following task:

    ** Add a way to convert a keyboard macro to equivalent Lisp code.

I've implemented a feature that converts a macro like:

    C-u C-s ([`,]@? C-SPC M-x up-list RET DEL C-u C-SPC C-d C-SPC C-M-u C-d
    C-u C-SPC

to the equivalent Lisp function:

(defun last-macro-commands ()
  (interactive)
  (re-search-forward "([`,]@?")
  (set-mark-command nil)
  (up-list 1)
  (backward-delete-char-untabify 1)
  (pop-to-mark-command)
  (delete-char 1)
  (set-mark-command nil)
  (backward-up-list)
  (delete-char 1)
  (pop-to-mark-command))

I need to polish details and will post a patch asap.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2007-09-06 14:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 20:51 Old-style backquotes in cc-vars.el Stefan Monnier
2007-09-01 10:18 ` Alan Mackenzie
2007-09-03 20:46   ` Stefan Monnier
2007-09-04  3:14     ` T. V. Raman
2007-09-04 22:57       ` Richard Stallman
2007-09-05  2:21         ` T. V. Raman
2007-09-05  2:44           ` dhruva
2007-09-05  3:26             ` Stefan Monnier
2007-09-05 20:02               ` Richard Stallman
2007-09-06 14:27                 ` Juri Linkov [this message]
2007-09-07  6:32                   ` Richard Stallman
2007-09-05 13:29             ` T. V. Raman
2007-10-06 16:31 ` Alan Mackenzie
2007-10-06 18:31   ` Thien-Thi Nguyen
2007-10-06 20:51     ` Alan Mackenzie
2007-10-06 21:46       ` Thien-Thi Nguyen
2007-10-11 17:41     ` Davis Herring
2007-10-19  7:29       ` Thien-Thi Nguyen
2007-10-06 22:27   ` Stefan Monnier
2007-10-07  9:40     ` Alan Mackenzie
2007-10-07  9:41       ` Thien-Thi Nguyen
2007-10-07 19:40       ` Eli Zaretskii
2007-10-07 13:10   ` Richard Stallman

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=87lkbj50od.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.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.