From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#25196: mention how to see top or middle of each yank-pop Date: Sun, 28 Jul 2019 01:18:52 +0300 Organization: LINKOV.NET Message-ID: <87mugzw27n.fsf@mail.linkov.net> References: <87lgvjfy2n.fsf@jidanni.org> <87ef2bk9se.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238242"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 25196@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 28 00:26:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrV8i-000znN-1k for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jul 2019 00:26:08 +0200 Original-Received: from localhost ([::1]:47506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrV8g-0003Fj-UL for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 18:26:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36997) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrV8d-0003Dl-OD for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 18:26:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrV8c-0000bT-Sq for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 18:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrV8c-0000b8-GU for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 18:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrV8c-0002ty-C0 for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 18:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 22:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 25196-submit@debbugs.gnu.org id=B25196.156426631711081 (code B ref 25196); Sat, 27 Jul 2019 22:26:02 +0000 Original-Received: (at 25196) by debbugs.gnu.org; 27 Jul 2019 22:25:17 +0000 Original-Received: from localhost ([127.0.0.1]:45544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrV7t-0002se-2e for submit@debbugs.gnu.org; Sat, 27 Jul 2019 18:25:17 -0400 Original-Received: from bonobo.birch.relay.mailchannels.net ([23.83.209.22]:17888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrV7r-0002sW-Ge for 25196@debbugs.gnu.org; Sat, 27 Jul 2019 18:25:15 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 67CD76A1399; Sat, 27 Jul 2019 22:25:14 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a28.g.dreamhost.com (100-96-1-163.trex.outbound.svc.cluster.local [100.96.1.163]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E54576A14F8; Sat, 27 Jul 2019 22:25:13 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a28.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Sat, 27 Jul 2019 22:25:14 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Decisive-Skirt: 6069de624768a62c_1564266314205_1942416856 X-MC-Loop-Signature: 1564266314205:3463442073 X-MC-Ingress-Time: 1564266314204 Original-Received: from pdx1-sub0-mail-a28.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a28.g.dreamhost.com (Postfix) with ESMTP id AB09583294; Sat, 27 Jul 2019 15:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=UjlYgkYV70+fkDey0GqJu/TvXlU=; b= H5ootGE/taQR6U6yYEU+S+t9vIR2H5xJxW3uxDOxzqInnwbM7pEcr+tlh96agVxz /k+1nX72cXv3UfhsfEc/vkBVS6SE9gViUj79iYxdakwBd113ChIvzO0EAhH9tms1 T/ELr4FCfuVxOl7LR4ha2TcvSg/+Wf7XbS3GF1eWYlg= Original-Received: from mail.jurta.org (m91-129-103-76.cust.tele2.ee [91.129.103.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a28.g.dreamhost.com (Postfix) with ESMTPSA id C3D2A8329A; Sat, 27 Jul 2019 15:25:06 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a28 In-Reply-To: <87ef2bk9se.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sat, 27 Jul 2019 13:16:01 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrkeeigddujeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrdejieenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrdejiedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehlrghrshhisehgnhhushdrohhrghenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163919 Archived-At: --=-=-= Content-Type: text/plain >> Also in (info "(emacs) Earlier Kills") say how to see the top or middle >> of each yank-pop without breaking the yank-pop sequence. > > I don't think there is a way to do that? FWIW, here is battle-tested (i.e. use for many years) command that allows looking at the top or middle of each yank-pop before yanking: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline; filename=yank-from-kill-ring.el Content-Transfer-Encoding: quoted-printable (defvar yank-from-kill-ring-history nil) (defun yank-from-kill-ring (string) "Insert the kill-ring item selected from the minibuffer history. Use minibuffer navigation and search commands to browse the kill-ring in the minibuffer history before typing RET to insert the item." (interactive (list (let ((history-add-new-input nil) ;; Remove keymaps from text properties of copied string, ;; because typing RET in the minibuffer might call ;; an irrelevant command from the map of copied string. (yank-from-kill-ring-history (mapcar (lambda (h) (remove-list-of-text-properties 0 (length h) '(keymap local-map action mouse-action) h) h) kill-ring))) (read-string "Yank from kill-ring: " nil 'yank-from-kill-ring-history))= )) (setq yank-window-start (window-start)) (push-mark) (insert-for-yank string)) (global-set-key "\M-\C-y" 'yank-from-kill-ring) (put 'yank-from-kill-ring 'delete-selection t) --=-=-=--