all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: Opening files from a command
Date: Mon, 03 Nov 2008 17:51:02 +0100	[thread overview]
Message-ID: <yoijy700pxc9.fsf@remote1.student.chalmers.se> (raw)
In-Reply-To: 200811031125.mA3BPHRC024513@zogzog.maillard.mobi

Xavier Maillard <xma@gnu.org> writes:

>    C-x (                          ;; Start macro
>      C-SPC C-e M-w C-a C-n        ;; Put line on kill-ring
>      C-x 4 f C-y <return>         ;; Open that file in a different window
>      C-x o                        ;; Go back to the shell buffer
>    C-x )                          ;; End macro
>
> Do you know an emacs-mode to automatically do the transcription
> between an emacs macro like the one on the left to a more
> textified version like the one on the right side ? Here the macro
> is pretty basic but with more complex ones, it could help to have
> such description on demand.

Like

    (format-kbd-macro
     (kbd
      "C-x (
         C-SPC C-e M-w C-a C-n
         C-x 4 f C-y <return>
         C-x o
       C-x )")
     t)

    =>

    "C-SPC                  ;; set-mark-command
    C-e                     ;; move-end-of-line
    M-w                     ;; kill-ring-save
    C-a                     ;; move-beginning-of-line
    C-n                     ;; next-line
    C-x 4 f                 ;; find-file-other-window
    C-y                     ;; yank
    RET                     ;; newline
    C-x o                   ;; other-window"

Cf. `edit-kbd-macro'.





  reply	other threads:[~2008-11-03 16:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-01 20:28 Opening files from a command Decebal
2008-11-01 20:57 ` Rupert Swarbrick
2008-11-03 11:25   ` Xavier Maillard
2008-11-03 16:51     ` Johan Bockgård [this message]
2008-11-03 23:25       ` Xavier Maillard
2008-11-01 21:07 ` Drew Adams
2008-11-01 21:20 ` Peter Dyballa
2008-11-01 23:26 ` Paul R

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=yoijy700pxc9.fsf@remote1.student.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    --cc=help-gnu-emacs@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.