From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WImxF2T6C2X2PQAA9RJhRA:P1 (envelope-from ) for ; Thu, 21 Sep 2023 10:10:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WImxF2T6C2X2PQAA9RJhRA (envelope-from ) for ; Thu, 21 Sep 2023 10:10:12 +0200 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 3C7EF443E6 for ; Thu, 21 Sep 2023 10:10:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EtpK4niP; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695283812; a=rsa-sha256; cv=none; b=G2rFHG8kJOlZcb9Gnj9PS6dfdPV6yI1rbvTv3pJO4LDqWLcC05anSUq9Mb+2uJcpL7gMeb 4mG6PinU6kszzelrq4l2okCLjeKh1dfS9qVMsep9ElZjrYIT+NAsqt5ZFHZ4jmZbHQhGoq FcHSDmESKiYSJEajVv1r7Guxz+H5UswV8IZ8CAPiuzTWnmIxMe+b2YM6XbQ/27vccdq6r3 gGhfQA44SBwbd6JWl5QGRyUJqsS//qa+dNWZaGRCBNIgYsicDZ8/VFkIH0OEOBbw8bs0BZ vl/1Bg0qOWZbKAbAj4Wt+sv8DL2K9saEywndEsEQZa+sF/gCAz80KgHJcyylnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695283812; 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=fZRLdBG2QLmHszn/gZuqhpyVVn2s4OVKnbxVVwQXFMs=; b=czj1TMoZlk2whlWO4bteC9tFYdEGqGe9+fMOnlSHaCm0jbA/D6qZdCw3QxwOH/dteHGBK+ VZRg9SK4To/OgVxWQOzDmbubFIvtBqQORXHeAN0zUJJRBMDzBO3wTEAb/rS+N/jCusf8/s oB26QMCa1ir8eHqRHBnWZhrLjMmXK0raxPlY92MxG91H94kPlL0usxyyxKHEBnKLfJTXGg hg+nfZNmxoD7JuFcrPKVQr8Qk37PwABZ4b0N2RaxV4SlkscPPbLQQCnWTzBxJvbpXa+R4M XvbWLEz9f+V4QyijQOs9NtZx4FOvYqz/B7ywn9wNlZBn4Edh77NggeVZQndf8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EtpK4niP; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjEkf-0002v1-Kq; Thu, 21 Sep 2023 04:09:33 -0400 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 1qjEkb-0002uW-KE for guix-devel@gnu.org; Thu, 21 Sep 2023 04:09:29 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjEkZ-0004Mm-Pw for guix-devel@gnu.org; Thu, 21 Sep 2023 04:09:29 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-405101a02bcso2544825e9.1 for ; Thu, 21 Sep 2023 01:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695283766; x=1695888566; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=fZRLdBG2QLmHszn/gZuqhpyVVn2s4OVKnbxVVwQXFMs=; b=EtpK4niPI8zK5zvlaxpPRx2QrRo8dnfyZnyCo+47lR5M1/NLv4XIana5ro3JZyaN3F aUpDI7OrZqOVpPxfCFfALOhZZt7SALu9Qs5FFloiJbmAE76nTQ5udKuMZXcQDJdGLIfv jQRwn+NTqvkOeVe3/aXL1pK5wohnNBdibaRRZDykFi4YxwJAgIdvBnPBJggQJpH39axt K7ZbtFlZd6dzlRzyaanqh1JksqNkLqb5d1R/g8yBy6X04csx5EYSE3DDgKsvSS0U/UOQ DsBWk1uS7QWF1E2RhWasMtJOs0dQvS7JnGurLnVMHLsv5ETMhAHkSDj08fOhcs7bpPYL AIjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695283766; x=1695888566; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fZRLdBG2QLmHszn/gZuqhpyVVn2s4OVKnbxVVwQXFMs=; b=BsycD6JoJuQbatUQ3hbyosaMB+gkFZPEKcfqA9tqvD2e3mGNLLZ6f3coZWpVdUsX4X XwumwJIFo723a3DZY0JBAKZcqCKRdToUD4ikExfqx0oTLhz99Rmols71nAgFjo7iSBLx etVvyJSjOCWQ2uJmVQTTUCX6RPw2/dttoxNYjpNG0KfTGCbLVovJbVq3fR/R9E9k/x44 0uqx/4dq2WXN8h+Q+pybas2nIs+MC3zc+pTmkWMoYGWjQxHZWasnc79TjVkAJY+gskyV j8NfjRcCBJ7+d2UvGR8aamOGRdZ2EpH0GCHiG7/mPsio7GP7tL8p/oJjfGnczVbgHxNX ck3g== X-Gm-Message-State: AOJu0Yx6e+IKCh/0ILFqnPlA7ORaGAQF7h/lXW9xksIoISzKx/AR9B8T Nc328fM9uGUWgV7meB6/Hpl0ZDf6R7w= X-Google-Smtp-Source: AGHT+IGc/9kHJ9gCbfavuLZ81PqHmlVj/mERlmRItEYx4Aw8ROm71xQvj6pPY3iPhppLQA4L3rzIcw== X-Received: by 2002:a05:6000:136c:b0:317:3a23:4855 with SMTP id q12-20020a056000136c00b003173a234855mr4167653wrz.2.1695283765787; Thu, 21 Sep 2023 01:09:25 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id k17-20020a5d66d1000000b0031759e6b43fsm1033830wrw.39.2023.09.21.01.09.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 01:09:25 -0700 (PDT) From: Simon Tournier To: Maxim Cournoyer Cc: guix-devel Subject: Helpers? (was Re: New section to easily reference Debbugs URLs within Emacs Debbugs) In-Reply-To: <877cok4ssy.fsf@gmail.com> References: <87bke07ccl.fsf@gmail.com> <87sf7bqxba.fsf@gmail.com> <877cok4ssy.fsf@gmail.com> Date: Thu, 21 Sep 2023 09:58:40 +0200 Message-ID: <865y44rm8f.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32c.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.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.52 X-Spam-Score: -9.52 X-Migadu-Queue-Id: 3C7EF443E6 X-Migadu-Scanner: mx2.migadu.com X-TUID: WEjyCQPzLryd Hi Maxim, On Wed, 20 Sep 2023 at 14:13, Maxim Cournoyer w= rote: >> (define-key gnus-article-mode-map "R" >> #'(lambda () >> "Start composing a reply mail to the current message. >> The original article will be yanked, see `gnus-summary-wide-reply-with-o= riginal'." > > This comes stock with Gnus (used by Emacs-Debbugs); I just enter 'S W' > (capitalized S followed by capitalized W) to send a wide reply (wide > replies to keep the bug in CC as well as all participants subscribed). > To reply privately to a single participant you could use just the 'R' > Gnus binding. Yeah, I rebind =E2=80=99S W=E2=80=99 to =E2=80=99R=E2=80=99 and drop the pr= ivate reply to a single participant that I never use. That=E2=80=99s to be uniform with Emacs-Notm= uch and =E2=80=99R=E2=80=99 fits better my muscle memory for wide reply. Anywa= y. The interesting part here is the stash part, I guess. Maybe an advice around gnus-summary-wide-reply-with-original would be better. When I start the wide reply, it extracts the Debbugs-ID number (e.g., 12345) and push "https://issues.guix.gnu.org/issue/12345" to the kill ring. Then I can easily yank it somewhere in the message for reference. Well, it is an helper when doing some triage of old bugs. For example, it eases to type this: --8<---------------cut here---------------start------------->8--- Hi, This bug#30434 [1] is old=E2=80=A6 blabla=E2=80=A6 1: https://issues.guix.gnu.org/issue/30434 --8<---------------cut here---------------end--------------->8--- Similarly, I have another helper that I have often used from Debbugs (gnus) Summary. --8<---------------cut here---------------start------------->8--- (defmacro defun-bug->url (name url &optional docstring) "Macro returning yankage #bug URL. The `interactive' function that the macro returns is then referred by NAME. Please provide a DOCSTRING." (let ((fun (intern (symbol-name name))) (doc (concat docstring "\n\n" (format "Yankable result: `%sNUMBER'." url)))) `(defun ,fun (number) ,doc (interactive (list (progn (when (not (boundp 'debbugs-gnu-bug-number)) (setq debbugs-gnu-bug-number -2)) (read-string (format "Bug number (%s): " debbugs-gnu-bug-number) nil nil debbugs-gnu-bug-number)))) (let ((str (format "%s%s" ,url number))) (kill-new str) (when current-prefix-arg (browse-url str)) (message (format "%s killed." str)))))) (defun-bug->url my/guix-issues "https://issues.guix.gnu.org/issue/" "Add URL of bug NUMBER to `kill-ring'.") (defun-bug->url my/guix-debbugs "https://debbugs.gnu.org/cgi/bugreport.cgi?= bug=3D" "Add (old) URL of bug NUMBER to `kill-ring'.") --8<---------------cut here---------------end--------------->8--- Well, I remember Ludo also shared [1] some of their helper. And Joshua Branson worked [2] about some guix-debbugs.el. Maybe it would be worth to collect these various simple helpers and put them in the Cookbook or else. Because, Debbugs has many annoyances but one best advantage is just being email, and as Chris Wellons said: I=E2=80=99m now understanding for the first time why all those old = fogey hackers like to use e-mail for everything: mailing lists, software patches, bug reporting, etc. E-mail a user interface agnostic system, giving everyone their own choice. The tricky part is setting up a decent interface to it. https://nullprogram.com/blog/2013/09/03/ Cheers, simon 1: Re: debbugs-guix.el helper function Ludovic Court=C3=A8s Fri, 07 Oct 2022 11:47:38 +0200 id:87ilkwc6dh.fsf@gnu.org https://lists.gnu.org/archive/html/guix-devel/2022-10 https://yhetil.org/guix/87ilkwc6dh.fsf@gnu.org 2: https://issues.guix.gnu.org/issue/56987