From: Bob Newell <bobnewell@bobnewell.net>
To: help-gnu-emacs@gnu.org
Subject: Re: mark multi regions, kill and yank
Date: Mon, 30 Oct 2023 09:56:41 -1000 [thread overview]
Message-ID: <87jzr3khom.erppky@sajiitrvx.tjxeghbtk.com> (raw)
In-Reply-To: <87cywwvvs8.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 30 Oct 2023 18:56:39 +0100")
>> ;;; 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?
Unfortunately not. It is a 50% solution. But now other posts
in this thread have shown how to do what you wish.
--
Bob Newell
Honolulu, Hawai`i
- Via GNU/Linux/Emacs/Gnus/BBDB
next prev parent reply other threads:[~2023-10-30 19: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
2023-10-30 19:56 ` Bob Newell [this message]
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=87jzr3khom.erppky@sajiitrvx.tjxeghbtk.com \
--to=bobnewell@bobnewell.net \
--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.