all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: help-gnu-emacs@gnu.org
Subject: Re: mark multi regions, kill and yank
Date: Mon, 30 Oct 2023 18:56:39 +0100	[thread overview]
Message-ID: <87cywwvvs8.fsf@mat.ucm.es> (raw)
In-Reply-To: 87zg00jas0.cahcbkqxd@xqbyxoy.ajhx.org

[-- Attachment #1: Type: text/plain, Size: 1480 bytes --]


> Uwe Brauer <oub@mat.ucm.es> writes:


> I have heard this called "scatter gather."  I've been using
> the following rather trivial code, which isn't fully "scatter
> gather" but it does 1-3 above in incremental fashion, that is,
> one region at a time rather than all at once.  I realize this
> is not quite what you want, however it does allow you to yank
> a concatenated set of copied or killed regions.

> ;;; A couple of append commands for scatter-gather.  Bind to
> ;;; global keys. Why C-cps and C-cpk? Because it's difficult,
> ;;; especially in org-mode, to find free keys.

> (defun append-kill-to-kill-ring ()
>   (interactive)
> (append-next-kill)
> (kill-region (mark) (point)))

> (defun append-save-to-kill-ring ()
>   (interactive)
> (append-next-kill)
> (kill-ring-save (mark) (point)))

> (global-set-key "\C-cps" 'append-save-to-kill-ring)
> (global-set-key "\C-cpk" 'append-kill-to-kill-ring)


Thanks, but this does not allow you to mark visually various region at
the same time, right?


-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Hamas terroristic attack on Israel, especially the despicable pogroms.
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the NATO membership of Ukraine.
I support the EU membership of Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2023-10-30 17:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-30 16:02 mark multi regions, kill and yank Uwe Brauer
2023-10-30 17:11 ` Bob Newell
2023-10-30 17:56   ` Uwe Brauer [this message]
2023-10-30 19:56     ` Bob Newell
2023-10-30 17:32 ` [External] : " Drew Adams
2023-10-30 17:54   ` Uwe Brauer
2023-10-30 19:39     ` Drew Adams
2023-10-30 20:32       ` Uwe Brauer
2023-10-30 21:42         ` Drew Adams
2023-10-31  8:53           ` Uwe Brauer
2023-10-31 16:39             ` Drew Adams
2023-10-31 16:52               ` Uwe Brauer
2023-10-31 17:48                 ` Drew Adams
2023-10-31 20:36                   ` Uwe Brauer
2023-10-31 21:08                     ` Drew Adams
2023-11-01  7:05                       ` Uwe Brauer
2023-11-01 15:00                         ` 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=87cywwvvs8.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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.