From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.help Subject: Re: mark multi regions, kill and yank Date: Mon, 30 Oct 2023 09:56:41 -1000 Organization: Avi Gobbler Publishing Message-ID: <87jzr3khom.erppky@sajiitrvx.tjxeghbtk.com> References: <87lebkxfml.fsf@mat.ucm.es> <87zg00jas0.cahcbkqxd@xqbyxoy.ajhx.org> <87cywwvvs8.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23846"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Chrome/5.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 30 20:57:46 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qxYOP-0005zL-Hl for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Oct 2023 20:57:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxYNZ-0005fB-7h; Mon, 30 Oct 2023 15:56:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxYNX-0005ez-Pm for help-gnu-emacs@gnu.org; Mon, 30 Oct 2023 15:56:51 -0400 Original-Received: from smtp.forwardemail.net ([149.28.215.223]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxYNV-0008OF-TC for help-gnu-emacs@gnu.org; Mon, 30 Oct 2023 15:56:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell.net; h=Content-Type: MIME-Version: Message-ID: Date: References: In-Reply-To: Subject: To: From; q=dns/txt; s=fe-148fdb2209; t=1698695803; bh=ayEV4ry7RW21rKcuJl8acf8ctJVwojynFYWzMBJAPDs=; b=sjs8fB3Ov2PGIDcuaG1qwPs7twrGJg9reTjlSz8MmZL+wb+bsP/AkwJnGjJpx5VKuicP29ZhH yGiamJWidMW1iW9fJab2EafgZdBb4MnjsOZkPFNujgLTrAI3NSM1d45j3LXeYkXnI3BQVKLIJD7 yqQijOdWKUUuvhmQKbkLLr4Q147AVwVaxpN2kv87x4l6o6um1lpru6ufz2440K82cC08N50Bwjb lsHolcFfRqGA0p/NzRh+ttQIu0VHD7bT3MA9GjHsn1jff3+tlPjyHQAti/tj9UHjf63ITbcYWrs ISeOhccEjzH7eFOkJ8/xr04IumtwDh5iXyZhE/CuHY6g== In-Reply-To: <87cywwvvs8.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 30 Oct 2023 18:56:39 +0100") X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net Original-X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; bobnewell@bobnewell.net, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 65400a7bda65aff6a4b1b776 Received-SPF: pass client-ip=149.28.215.223; envelope-from=SRS0=597e=GN=bobnewell.net=bobnewell@fe-bounces.bobnewell.net; helo=smtp.forwardemail.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145428 Archived-At: >> ;;; 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