From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id G2kYNniXf2AnZQEAgWs5BA (envelope-from ) for ; Wed, 21 Apr 2021 05:09:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qFbBMHiXf2CtRAAAB5/wlQ (envelope-from ) for ; Wed, 21 Apr 2021 03:09:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8ADE211956 for ; Wed, 21 Apr 2021 05:09:44 +0200 (CEST) Received: from localhost ([::1]:54210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZ3FH-0006E0-PM for larch@yhetil.org; Tue, 20 Apr 2021 23:09:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ3F3-0006Dq-GL for guix-devel@gnu.org; Tue, 20 Apr 2021 23:09:29 -0400 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:45816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZ3F0-0005Ft-Kh; Tue, 20 Apr 2021 23:09:29 -0400 Received: by mail-qk1-x72b.google.com with SMTP id d19so5908203qkk.12; Tue, 20 Apr 2021 20:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=ltTpw9/gUsrtoEcBa86HtC/JNRQrO/swWcDU9Kd0Be4=; b=r/5qZoC2sRifJ242WZEKog4/FIb8FdKSWv1Urn7KnoZdIVKGfDHOExogUZ8zSHzGnJ nqGeKS13YPYp4huVUVYQuy4C6t4RScDKi8hYw7jrG5d4dFQneLgNciUvTpdLzG0J9Dvb pOiCL5X2RLZjy3gGLiCKs3mLNPeooSaZFrov2FxAocIGbWZPyBaOeFTXavIu9rsQSCBH Lz6DBsMCA2tfiUn22XPHycA8gceXfNmlNp5wi4iRe/AywSzwRoyxXeBu9a90Xderu7kq 0+molHtIvR5yg6ce8XYIyJhrH/j78nVxhDNnxmeb0AX9gNGCfjPAJPb0oXQqft27jBYh 7wHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=ltTpw9/gUsrtoEcBa86HtC/JNRQrO/swWcDU9Kd0Be4=; b=FYwTLvQViNqQQMuCGxq3TDiQNDmlqSk7y0iT81EEmW8ToRRBbklPfBvZMEBig47F5b SPLGfd0yeU49SgJ3E4pSE07ob7QLaAFP433ACxbPksRKlAkf5tRisxDieQOUh0oLstbb Cz3sDxeAhKhahXTjTt12i+wULp3B9ZDBsZG7K6g5v9A0bPqRK8DwXgVAZ1/HlGL38kaH Q+U2E7bLSRbMPHjY/IdXu3qB95iXQw4FkHs6ApJNLGbt+R1E53LIdGzacNieXy9Hx41O Vg0v53X5xXPqeiT94TdXM9b1uB2yCFww2DQLqYxvTQ3gpSB01sPHNTMZjEh4UWa45WrN tJUg== X-Gm-Message-State: AOAM530x4qNfgyZG4spWSfPVFonNhYkn7TRKhgCJ8ArM/ZbzgYv+fdV+ Xpe4Fu8BfkIgp61+PCht70VQXgTY67qYMw== X-Google-Smtp-Source: ABdhPJwlomoQu1nJi9xj8TvEFRAXJ0MLI53A7p8z3kvxJ0C8yIgfe1UYhuG0MUO2Xoxenuw7RppoKg== X-Received: by 2002:a37:906:: with SMTP id 6mr19882364qkj.234.1618974565148; Tue, 20 Apr 2021 20:09:25 -0700 (PDT) Received: from hurd (dsl-205-151-56-5.b2b2c.ca. [205.151.56.5]) by smtp.gmail.com with ESMTPSA id j9sm753094qtl.12.2021.04.20.20.09.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 20:09:24 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Emacs and URLs in Git commit messages References: <87o8h0mdmt.fsf@gmail.com> <87y2g24x27.fsf@gnu.org> Date: Tue, 20 Apr 2021 23:09:23 -0400 In-Reply-To: <87y2g24x27.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 05 Feb 2021 11:40:32 +0100") Message-ID: <87bla8e3ks.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618974584; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ltTpw9/gUsrtoEcBa86HtC/JNRQrO/swWcDU9Kd0Be4=; b=RlBgKcOy3RCWs9yvC3aSrepKnodCIg7qFCFMtRjjSQhFXP9+mmGxMF3sgeJL7n/Zawip3o OWzN7YfdabH86iQb0THFzGmW+Adz3yJwIhI8EmdCwlZaaA/gM2vF8Xu0i7ooB0veuRfXFs CJ5KcupsFjXYmMFjTjBWYMDgwwKktx1jsc3QJFFFUCwX2HtNq9JzLJVvK1dc/4CC+2yqg+ 1rkAlx0Rz7NJevmmnV9GtpKdA218KDx1CABJPql+OZ68NCUyCmGxoB6pc0mcN3fx9K6p35 j90Vdpk/phpsRtYifQu22gb4SkJ1EbnZteytudsCHm0jdhGS3x0oPLcGMmsSTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618974584; a=rsa-sha256; cv=none; b=r5lZMx/YE+pBGzqNmTDy/ekNr+H923lF9iNGQyAi19V1a6GZyx4TE12VjC7rvQXKPQl2F6 DazTe/KyFWAJCNKRtAJyMNFFU6KQZJK8Att/qvE4MIMLbMNgOtlcIHZLaNLzV7AuTWwkQT r/fjyz3aLIZHNdDKQB949XQM0TW8I5OFyVm8QKJCgoqoT3GsD0zo7MttGPPsMeBmxQIwKG jgTY038zANjRfKd3W9Y5TQucldwbANIqRAphq2rETz5lXZAyiz+I61FvhECAzBFvvXUA/4 BLLO59JVcQUZA240LyuOo5bf5oCgeJuiKF7c/kHjrqJf4fI4zYpGHuHs5uYNyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="r/5qZoC2"; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="r/5qZoC2"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 8ADE211956 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9rq+4pBQSFp8 Hi, Ludovic Court=C3=A8s writes: [...] > I have this helper for debbugs.el: > > (defun ludo-copy-debbugs-url () > "Add to the kill ring the URL of the Debbugs issue at point." > (interactive) > (let ((url1 (concat "https://bugs.gnu.org/" > (number-to-string (debbugs-gnu-current-id)))) > (url2 (concat "https://issues.guix.gnu.org/" > (number-to-string (debbugs-gnu-current-id))))) > (kill-new url1) > (kill-new url2) > (message "Copied %s and %s" url1 url2))) > > (define-key debbugs-gnu-mode-map (kbd "C-w") 'ludo-copy-debbugs-url) > > That way I can C-w on a bug in *Guix Bugs* and I get the two URLs in the > clipboard (I normally use =E2=80=9Cbugs.gnu.org=E2=80=9D as the canonical= bug URL.) Oh, that's perhaps nicer than what I had here (I like the debbugs-gnu-current-id function): (defun buffer-string-match (regexp) "Return the string matching the first group, else nil" (let ((text (buffer-substring-no-properties (point-min) (point-max)))) (and (string-match regexp text) (match-string 1 text)))) (defun guix-get-debbugs-bug-number () (interactive) (or (buffer-string-match "\\([[:digit:]]+\\)@debbugs.gnu.org") (buffer-string-match "bug#\\([[:digit:]]+\\)"))) (defun guix-get-mumi-link (bug-number) (interactive (list (guix-get-debbugs-bug-number))) "Parse the current buffer for a Debbugs issues number and return a link for it in the MUMI Guix tracker." (let ((url (concat "https://issues.guix.gnu.org/" bug-number))) (kill-new url) (message "%s" url))) Maxim