unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: man/kmacro.texi
Date: Sat, 21 Aug 2004 17:46:21 -0400	[thread overview]
Message-ID: <E1Bydgr-0004h2-C6@fencepost.gnu.org> (raw)
In-Reply-To: <200408210354.i7L3sig04866@raven.dms.auburn.edu> (message from Luc Teirlinck on Fri, 20 Aug 2004 22:54:44 -0500 (CDT))

    What is a complete line?  I would say, a line terminated by a newline
    _or_ the end of the buffer.  For `apply-macro-to-region-lines' it
    means "terminated by a newline" with no "or".  This is ambiguous and
    should be mentioned _if_ this is intended.  But _is_ it intentional?

It must be intentional, but whether the person realized it was
different from the usual Emacs behavior is a separate question.
In any case, it seems to me that being compatible with the usual
Emacs handling of repeating for each line would be an improvement.
Would you like to change the code, and remove the word "complete"
in the manual here?

    The entire section `(emacs)Keyboard Macro Counter' is difficult to
    read.

Would you like to try to rewrite it?

    The entire section `(emacs)Keyboard Macro Counter' is difficult to
    read.  I am pretty sure that it must be very useful for _something_,
    but it is not obvious what that is.

The purpose is for numbering items in a table.
For instance, you could write a macro to turn

* Hello
* Thank you
* You're welcome
* Goodbye

into 

1. Hello
2. Thank you
3. You're welcome
4. Goodbye

    I would _guess_ that `kmacro-insert-counter' and `kmacro-add-counter'
    only make sense during execution of a macro...

Yes, of course.

    As a last remark, this chapter seems to come rather early in the Emacs
    manual.  Section `(emacs)Save Keyboard Macro' seems to assume a
    non-trivial level of knowledge about key bindings, like the difference
    between local and global bindings, whereas the reader may not have any
    knowledge at all about binding keys at that stage.

Keyboard macros used to be documented inside Customization.
I think this chapter should be moved back there.
Also, moving some parts of it to emacs-xtra is a good idea.

  reply	other threads:[~2004-08-21 21:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-21  3:54 man/kmacro.texi Luc Teirlinck
2004-08-21 21:46 ` Richard Stallman [this message]
2004-08-22  0:37   ` man/kmacro.texi Luc Teirlinck
2004-08-22 23:39     ` man/kmacro.texi Richard Stallman
2004-08-26  0:48       ` man/kmacro.texi Luc Teirlinck
  -- strict thread matches above, loose matches on Subject: below --
2004-08-21  2:46 man/kmacro.texi Luc Teirlinck
2004-08-21 21:46 ` man/kmacro.texi Richard Stallman
2004-08-22  4:37   ` man/kmacro.texi Luc Teirlinck

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Bydgr-0004h2-C6@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).