all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: Luc Teirlinck <teirllm@dms.auburn.edu>, emacs-devel@gnu.org
Subject: Re: kmacro.texi
Date: Wed, 01 Dec 2004 13:06:25 +0100	[thread overview]
Message-ID: <m37jo22pfi.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1CZKgL-0003e3-7c@fencepost.gnu.org> (Richard Stallman's message of "Tue, 30 Nov 2004 21:57:29 -0500")

Richard Stallman <rms@gnu.org> writes:

> Reading your proposed changes to kmacro.texi made me aware that C-x
> C-k has become a sort of special command mode, in which many ordinary
> commands have special meanings.  That is against the spirit of Emacs,

I looked for 'spirit' in the index of the Lisp ref, and didn't find it.

> and going against the spirit of Emacs in something that is rather
> obscure and only rarely used is a bad thing.

Why do you think this is rarely used -- I use it _often_.

And C-x e e e ...  already does something very similar.
Nobody has complained about that so far.

And C-u C-SPC C-SPC C-SPC ...

(Ok, I'm biased, as I added those short-cuts too)

>
> So I want to get rid of this mode-like feature as it now stands.
>
> However, there is a way it could be implemented, giving similar
> results, that would be consistent with the spirit of Emacs: to make
> this a major mode.  One command could create a buffer which represents
> the macro ring, and switch to it.  That buffer could use a special
> major mode in which single-character commands do things like navigate
> through this ring.

Lets consider C-x C-k C-p C-p C-p C-k which rotates the macro ring
three places and executes the resulting head macro.

While the user enters C-x C-k C-p ... the echo area shows the current
macro at the head of the macro ring after each C-p, so in effect it is
much like a major mode -- just using the echo area as a single line
window into the macro ring.

Instead, you want to open a different window to show the macro ring
and select another macro in that window.

However, very often, the macros I write refer to data in several
windows on the screen, i.e. they contain things like C-x o.  E.g. to
navigate between a *grep* buffer and source windows, and back again.

With your proposal, I have to mess up the window layout just to rotate
the macro ring -- I would consider that to be a HUGE drawback compared
to the current functionality.

But there are some nice possibilities with your proposed interface,
so I'll think more about it.

>
> For instance, if it makes one line per keyboard macro, then moving
> point in this buffer could have the effect of rotating the ring.  That
> way, C-p and C-n in this buffer would have the desired effect on the
> macro ring, merely because they move point (as they usually do) in the
> buffer that represents the ring.
>
> Kim, could you work on these changes?

Yes.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2004-12-01 12:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-30  4:30 kmacro.texi Luc Teirlinck
2004-11-30  9:53 ` kmacro.texi Kim F. Storm
2004-12-01  2:57 ` kmacro.texi Richard Stallman
2004-12-01  2:57 ` kmacro.texi Richard Stallman
2004-12-01 12:06   ` Kim F. Storm [this message]
2004-12-02 13:10     ` kmacro.texi Richard Stallman
2004-12-02 14:17       ` kmacro.texi Kim F. Storm
2004-12-04  2:46         ` kmacro.texi Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-12-03 19:42 kmacro.texi Stefan Monnier
2004-12-04  0:42 ` kmacro.texi Kim F. Storm

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=m37jo22pfi.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=teirllm@dms.auburn.edu \
    /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.