From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#46369: 28.0.50; Bind clone-buffer into the new C-x x keymap Date: Sun, 07 Feb 2021 11:26:25 -0700 Message-ID: <87eehr20q6.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32877"; mail-complaints-to="usenet@ciao.gmane.io" To: 46369@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 07 19:26:16 2021 Return-path: Envelope-to: geb-bug-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 1l8olE-0008Ry-Fi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 19:26:16 +0100 Original-Received: from localhost ([::1]:35784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8olD-0006Z4-Ah for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 13:26:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8ol0-0006Yd-Sb for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 13:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8ol0-0005L2-LN for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 13:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8ol0-0001iC-Hm for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46369 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16127223436550 (code B ref -1); Sun, 07 Feb 2021 18:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2021 18:25:43 +0000 Original-Received: from localhost ([127.0.0.1]:48737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8okh-0001hZ-4A for submit@debbugs.gnu.org; Sun, 07 Feb 2021 13:25:43 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oke-0001hR-Ky for submit@debbugs.gnu.org; Sun, 07 Feb 2021 13:25:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8oke-0006Rz-Ey for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 13:25:40 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:51299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8oka-0005AC-Bn for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 13:25:39 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 99DF6A92 for ; Sun, 7 Feb 2021 13:25:31 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 07 Feb 2021 13:25:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=LfZOTAuqQCnpxELRc+5+tZELq0FS6qSNlzYh8rT4slY=; b=pEdiw77Y CywLmoz02gUvYs/3tjUlYiOYOP/3D5Oe4UE9J5zPkkU7ydMWxp8q3EHpCgRkPFo2 yDYuvblXo8VF1zhXjaVzE6cA1zDSkLYkn7GbLnl1kBORW6Dppdo02zBSvRUdB/HD n9RYoUTCqcC4Lvstvf79dlk5bNiVFDJ5/f1lpLP5Y6QrXnFY9qxlKZqDr81O5ena H/MwuNtMuxfJo3XdHZCdIdXJWmSL5Jf7pk2cEVJHkh3Q3GO1OXKPdDdDARtcstzA E28KVRzN30xLlSvnr21WNZom4hmN42QLMHvi5k7Hw82cpvHK6rkCC/3GacMz5SMZ GaPCkf9W/SSAgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=LfZOTAuqQCnpxELRc+5+tZELq0FS6 qSNlzYh8rT4slY=; b=aRzFHg8xAOAS/ODEiRofNNW8XdZgJc0kzsNBOPX4Axrrn I4Gm5WS+qdhEmzG7K+XfQnfYbJ5OR8vxaSH6DeVArTBkqN8hlGlrInzVNaq4q9r7 v4jpbNpkAEyVbFQ4EpxbZSLtCYzyUq9vlZKcyyxPfxXDqhlsT4lp3OlCHtwDE060 FXMiW+fqyzI+kTsPxK28wqDa4IwYHpuaLX72t+mEZBlXVIu35km68qx894ZxI/Ia vkAQKDvKzYHKdbspfVj/5RlZ8JHeiy+3mKg0lOTaM+Z6sKyKQQDGIJDS0To56i2F XX1iD2omeDkaFfNI/hTJ9UK1ZB/w6qqAUQupmq5dg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrhedugdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehmtderredttd dtnecuhfhrohhmpefuvggrnhcuhghhihhtthhonhcuoehsphifhhhithhtohhnsehsphif hhhithhtohhnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepteegtdejheejvdehgeettd dvjeffudetuedutdegkefhtdetteeuueetkeefkeegnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepshhpfihhihhtthhonhesshhpfihhihhtth honhdrnhgrmhgv X-ME-Proxy: Received-SPF: pass client-ip=64.147.123.21; envelope-from=spwhitton@spwhitton.name; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199534 Archived-At: --=-=-= Content-Type: text/plain Hello, I noticed that Lars has bound rename-uniquely to C-x x u. I find that clone-buffer is a useful companion command to rename-uniquely so would like to request binding C-x x n to that (the letter 'n' follows Info-mode binding it to M-n). Patch attached in case that makes this easier. -- Sean Whitton --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Bind-clone-buffer-to-C-x-x-n.patch >From 3a6b6815f287622c100fcfdcc5b369e961de7b88 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 7 Feb 2021 11:24:29 -0700 Subject: [PATCH] Bind clone-buffer to C-x x n * lisp/bindings.el (ctl-x-x-map): Bind clone-buffer. * etc/NEWS: Document the change. --- etc/NEWS | 5 +++-- lisp/bindings.el | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index f65e3cf672..d4b792531e 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -241,8 +241,9 @@ search buffer due to too many matches being highlighted. ** A new keymap for buffer actions has been added. The 'C-x x' keymap now holds keystrokes for various buffer-oriented commands. The new keystrokes are 'C-x x g' ('revert-buffer'), -'C-x x r' ('rename-buffer'), 'C-x x u' ('rename-uniquely'), -'C-x x i' ('insert-buffer') and 'C-x x t' ('toggle-truncate-lines'). +'C-x x r' ('rename-buffer'), 'C-x x u' ('rename-uniquely'), 'C-x x n' +('clone-buffer'), 'C-x x i' ('insert-buffer') and 'C-x x t' +('toggle-truncate-lines'). * Editing Changes in Emacs 28.1 diff --git a/lisp/bindings.el b/lisp/bindings.el index 9462468b1b..2f4bab11cf 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -1418,6 +1418,7 @@ if `inhibit-field-text-motion' is non-nil." (define-key map "g" #'revert-buffer) (define-key map "r" #'rename-buffer) (define-key map "u" #'rename-uniquely) + (define-key map "n" #'clone-buffer) (define-key map "i" #'insert-buffer) (define-key map "t" #'toggle-truncate-lines) map) -- 2.29.2 --=-=-=--