all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Teemu Likonen <tlikonen@iki.fi>
Cc: help-gnu-emacs@gnu.org
Subject: Re: yank-repeat-newline
Date: Tue, 26 Jul 2011 21:45:40 +0200	[thread overview]
Message-ID: <4E2F1964.4040008@easy-emacs.de> (raw)
In-Reply-To: <87pqkwrg2d.fsf@mithlond.arda>

Am 26.07.2011 21:35, schrieb Teemu Likonen:
> * 2011-07-26T21:24:03+02:00 * Andreas Röhler wrote:
>
>> Am 26.07.2011 21:19, schrieb Teemu Likonen:
>>> Please tell us what you want. How should the command work? How do you
>>> want to execute it and what should it do?
>
>> It's in the docstring: repeat last yank resp. to numerical arg. Also I
>> want in some cases have a newline added - ie insert yanks vertically.
>
> Yes, but how do you want to execute those "some cases"? For example, you
> could make the command ask:
>
>
>      (defun yank-repeat-newline (arg&optional nl)
>        "With numerical ARG, repeat last yank ARG times.
>      With optional arg NL, also insert newlines. "
>        (interactive (list (prefix-numeric-value current-prefix-arg)
>                           (y-or-n-p "Add a newline? ")))
>        (dotimes (i arg)
>          (insert (car kill-ring))
>          (if nl (insert "\n"))))
>

Hi Teemu, hi Drew,

thanks a lot both.

Can still only one argument specify in example above.
Drew presented a solution indeed.

However, after all think Emacs could make a better use of these both 
interactive codes by separating it. It's a kind of interference with "P" 
"p" which makes things more complex then needed and doesn't contribute - 
IMHO.

Will present the matter at emacs-devel.

So far,

Andreas







  reply	other threads:[~2011-07-26 19:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26 19:12 yank-repeat-newline Andreas Röhler
2011-07-26 19:19 ` yank-repeat-newline Teemu Likonen
2011-07-26 19:24   ` yank-repeat-newline Andreas Röhler
2011-07-26 19:35     ` yank-repeat-newline Teemu Likonen
2011-07-26 19:45       ` Andreas Röhler [this message]
2011-07-26 20:33         ` yank-repeat-newline Drew Adams
2011-07-26 19:32 ` yank-repeat-newline Drew Adams

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=4E2F1964.4040008@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tlikonen@iki.fi \
    /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.