From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oLKYMqi402NlFwEAbAwnHQ (envelope-from ) for ; Fri, 27 Jan 2023 12:42:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aNOhMai402MkngAAG6o9tA (envelope-from ) for ; Fri, 27 Jan 2023 12:42:32 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DE7C41DE72 for ; Fri, 27 Jan 2023 12:42:31 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 26BAE5F38D; Fri, 27 Jan 2023 11:42:29 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id B016F5F37C for ; Fri, 27 Jan 2023 11:42:26 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 8ED2E5FB9E; Fri, 27 Jan 2023 06:42:25 -0500 (EST) Received: (nullmailer pid 598971 invoked by uid 1000); Fri, 27 Jan 2023 11:42:24 -0000 From: David Bremner To: Daniel Kahn Gillmor , Notmuch Mail Subject: Re: emacs: keybindings in notmuch-show for copying the target of a link for a text/html part? (M-x shr-copy-url) In-Reply-To: <874jsd3tog.fsf@fifthhorseman.net> References: <874jsd3tog.fsf@fifthhorseman.net> Date: Fri, 27 Jan 2023 07:42:24 -0400 Message-ID: <87lelokxun.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: D7NCUOQ4PXZ3I4USOW7LQCIJ4GSMZCMS X-Message-ID-Hash: D7NCUOQ4PXZ3I4USOW7LQCIJ4GSMZCMS X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674819752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=RaB/eqwC6qkfiqfQ3JLf6eDtf8v7tTA7Fj71ftJMZZA=; b=FwgfjnMULr6SG+IXdw8GGseAXMnKfu61tCbs3ObasCPChCtlJP3OriAEbus36lD855BTHn CtQzzYq0mjaoMX26xsXrSyeE3ytrizFu8hHbJo4Ic8p5aTgVZ/f+7oZFkztH9qow0dBjnB Zc1lvs8iciqz68zn0rYLq7iG5KWLOjulbF132cFosYLpKXgkphga+RR7nLXQSABhofTA3h DbEMyT5TRxmG7vdzTQlhmUJ8GqbaG5NCcebWkl3TA0biEdShAB7hthPqyy4jgkhdgR3hHM 84UABh7uuh2GY3eqCNYK+l4nKCl4/rrzlwHY93WknSZKT98mhE1u71TINpb6Dw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674819752; a=rsa-sha256; cv=none; b=W10/2/ic//TQ+JBYNr9NRrTYDrNby7eqH6a2sxNgc1oAKu+cPkk4At5uHIauk75dWj0P5z M41WvvPQli1RrOS6lbYdsATER1s3On1GuB0nhogwQcanOCl0utRL/Ko3NN0n226jWa6OsE GM60ZQ1Rjr+NMkMZFgN0JTashrO5+d7R0kPU2wkSW2KycEJxcco9BSRFAQv6uCnrSt0Ami UNmbUgJIyfYaHq3ru975i1zcT6bOFk929af3V3hoy18oEfRAyIshmRwpXT6YJVHbRjLNx0 Zs5XbF0ubQm5v/iHX5xHGlS/grIbYswxiXm/grvrZIhb3eTWz/wV2GSWo0uczw== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.08 X-Spam-Score: -2.08 X-Migadu-Queue-Id: DE7C41DE72 X-TUID: 1NPQW6qhpeX2 Daniel Kahn Gillmor writes: > it appears that by positioning the point somewhere within the link and > doing "M-x shr-copy-url" i can copy the target of the link to the kill > ring. > I think it can be added to the mode-map in emacs/notmuch-show.el. does > anyone have a preference about what keybinding to use for it? Or is > there some reason to not provide a default keybinding to this > functionality in notmuch-show mode at all? Having a key-binding seems reasonable enough. What about "c u" ? It's not exactly like the other "c" bindings of course, because it depends on the cursor position, but maybe that is less important than general mnemonic of 'c' for copy. d