From unknown Sat Sep 06 05:21:24 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#56568 <56568@debbugs.gnu.org> To: bug#56568 <56568@debbugs.gnu.org> Subject: Status: [PATCH] Fix docstring of mailcap-user-mime-data Reply-To: bug#56568 <56568@debbugs.gnu.org> Date: Sat, 06 Sep 2025 12:21:24 +0000 retitle 56568 [PATCH] Fix docstring of mailcap-user-mime-data reassign 56568 emacs submitter 56568 Visuwesh severity 56568 minor tag 56568 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 00:09:57 2022 Received: (at submit) by debbugs.gnu.org; 15 Jul 2022 04:09:57 +0000 Received: from localhost ([127.0.0.1]:39183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCCeG-0008WH-0J for submit@debbugs.gnu.org; Fri, 15 Jul 2022 00:09:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:42834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCCeC-0008W7-QQ for submit@debbugs.gnu.org; Fri, 15 Jul 2022 00:09:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCCeC-0006Qy-B0 for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 00:09:48 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:41938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCCeA-0001H0-HZ for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 00:09:47 -0400 Received: by mail-pf1-x442.google.com with SMTP id l124so3617826pfl.8 for ; Thu, 14 Jul 2022 21:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=22hvxFITRCQQGgMf9eRESqBBkzFDroA7/WmM5daTvuU=; b=chrUXMuIBtZWLgwvcUuSE9bI4byNiQXqkLVTNKFktuMaM0cf26dt+5BclNjMa7dOsJ Xe6PGDyTr5WPhoQP/EN0F5xepuyBaMtQ2PU8gNwFvRYyeblk0GF4tiAyAUcTJxYJZYNz vpEycruLazaQDMjbKPkTtmGEKjnfJr95IDsPhZxR2E1JPIqiu4rT98Pn94VTA7keCPI4 5DJUHQ3IpHDzq7N7qV8qGmmdiuIdN9AsopRvTG4WlSmUdJImdDdeIQjqJGuLlpbdb6E3 I/ojZNlVy6e417IuOPjar+seWcyU8iWOmgaP6R3Qurqrc6o7uJpZUkLeXNai1xGowOVX wT6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=22hvxFITRCQQGgMf9eRESqBBkzFDroA7/WmM5daTvuU=; b=hxy+GU+6kqcvcmyKCE1nTX7hIJGzTG0GlBk+j6N9arT5+kyDZFVCj9YUeOMCdqHskZ QybnwKtRm7KDUKL4bqdgPhmTUS0UJXlT3EAlK3XRke1msmDRL4TtRupeeWDsBbq4iEcd S1hpy/qeReM4X/fc4KGSKxgPU45jD9V6C1mUttG4XGjO5/kcbw4F9/WPvutunTBbT7Rk sLT+mD7xIQFWvHfhFzl76Ol2AhR0KFkCct9M5JPxGWubug3XrS0rZ5eQGkEXXkzXFnps 0Fk1zEDYatdqxr56+2ZeF27uqknQo228+COTEvowKEAQU1t82dKJLUb6WmfXxWH42qYc IxAA== X-Gm-Message-State: AJIora+P4jdOpqH2bbxHBvm1AiM2Gjdc7K2cWBy84AE2S7n0vopSAKga EbkY7yr1FqLzR5ceF6hhV76Jdmn0EaM= X-Google-Smtp-Source: AGRyM1ulKWdcxjplbGP2f76CBzirgrLb50L59MbuiKR4Jc8r8TvAHq4wIikB9cgjtagaFidkyAz1yQ== X-Received: by 2002:a05:6a00:1485:b0:52a:ca0b:5383 with SMTP id v5-20020a056a00148500b0052aca0b5383mr11767144pfu.0.1657858184579; Thu, 14 Jul 2022 21:09:44 -0700 (PDT) Received: from localhost ([49.205.87.11]) by smtp.gmail.com with ESMTPSA id s2-20020aa78bc2000000b0052ac1af926fsm2553191pfd.20.2022.07.14.21.09.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 21:09:43 -0700 (PDT) From: Visuwesh To: bug-gnu-emacs@gnu.org Subject: [PATCH] Fix docstring of mailcap-user-mime-data Date: Fri, 15 Jul 2022 09:39:22 +0530 Message-ID: <87y1wv2f0t.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=visuweshm@gmail.com; helo=mail-pf1-x442.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Tags: patch The docstring describes an alist format but the setter function and :options keyword for the defcustom expects a nested list. However, the setter functions turns the nested list into the alist format described in the docstring. I.e., (("mpv %s" "audio/.*") ("mpv %s" "video/.*")) transforms to (((view . "mpv %s") (type . "audio/.*")) (view . "mpv %s") (type . "video/.*")) In GNU Emacs 29.0.50 (build 15, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2022-07-15 built on astatine Repository revision: 2e0c76e397811837fd119c1298a5606b4ef65be5 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure --with-sound=alsa --with-x-toolkit=lucid --with-json --without-xaw3d --without-gconf --without-libsystemd --without-cairo' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-lisp-net-mailcap.el-mailcap-user-mime-data-Doc-fix.patch >From 7bd9a5fce3e575ef3027fe7022d6b23e05c9f238 Mon Sep 17 00:00:00 2001 From: Visuwesh Date: Fri, 15 Jul 2022 09:21:30 +0530 Subject: [PATCH] * lisp/net/mailcap.el (mailcap-user-mime-data): Doc fix. --- lisp/net/mailcap.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/net/mailcap.el b/lisp/net/mailcap.el index ee72eba35d..469643dbca 100644 --- a/lisp/net/mailcap.el +++ b/lisp/net/mailcap.el @@ -87,11 +87,9 @@ mailcap--set-user-mime-data (defcustom mailcap-user-mime-data nil "A list of viewers preferred for different MIME types. -The elements of the list are alists of the following structure +The elements of the list are lists of the following structure - ((viewer . VIEWER) - (type . MIME-TYPE) - (test . TEST)) + (VIEWER MIME-TYPE TEST) where VIEWER is either a Lisp command, e.g., a major mode, or a string containing a shell command for viewing files of the -- 2.35.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 05:50:30 2022 Received: (at 56568) by debbugs.gnu.org; 15 Jul 2022 09:50:30 +0000 Received: from localhost ([127.0.0.1]:39441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCHxt-0000j6-R1 for submit@debbugs.gnu.org; Fri, 15 Jul 2022 05:50:30 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCHxs-0000ik-CW for 56568@debbugs.gnu.org; Fri, 15 Jul 2022 05:50:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hWPCgd3wk1EQNKvl5x5CB0Js3/YVBha+KNWFHhbiUlM=; b=H58BVjD9NqZ8NYcJHLjt+hYcJ0 eXKm+NYpcxBU971JOEGhf37BiFq5oxehfUftULmjnvkjIDTq1D+Kb66q08YyFYalc8lMOEHUdT2Jw WfhqdaMWL2DOVkM0X5gQ06QdlJAv9QFo111SsFbpsM3YXbUVvN/hitsA2SnllFa/fsjo=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCHxj-00059P-RB; Fri, 15 Jul 2022 11:50:22 +0200 From: Lars Ingebrigtsen To: Visuwesh Subject: Re: bug#56568: [PATCH] Fix docstring of mailcap-user-mime-data In-Reply-To: <87y1wv2f0t.fsf@gmail.com> (Visuwesh's message of "Fri, 15 Jul 2022 09:39:22 +0530") References: <87y1wv2f0t.fsf@gmail.com> X-Now-Playing: Peter Broderick's _Blackberry_: "The Niece" Date: Fri, 15 Jul 2022 11:50:19 +0200 Message-ID: <87ilnyogbo.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Visuwesh writes: > The docstring describes an alist format but the setter function and > :options keyword for the defcustom expects a nested list. Thanks; pushed to Emacs 29. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56568 Cc: 56568@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Visuwesh writes: > The docstring describes an alist format but the setter function and > :options keyword for the defcustom expects a nested list. Thanks; pushed to Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 15 05:50:35 2022 Received: (at control) by debbugs.gnu.org; 15 Jul 2022 09:50:35 +0000 Received: from localhost ([127.0.0.1]:39444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCHxz-0000jW-4g for submit@debbugs.gnu.org; Fri, 15 Jul 2022 05:50:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:44754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCHxx-0000ix-Kj for control@debbugs.gnu.org; Fri, 15 Jul 2022 05:50:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DtTTtaouKs7uRAku6k97qOM5Gs8HTcRW0ZxmRxvoMiQ=; b=WrVLa45pkglPu2rhtOb6W0N7rZ ErmeldLnFS6beIJw9EDnXfoN5Xwm1BtAFsrF+s2SLdTB7NzDy7nGzj4QkCLCv2oirSW+bguyEfAX9 BHINmHUmi7vSnw1kh26wTlagFL2KUgsuRoI1FIasqn2r11z3xAlnYaL/2r5jbCJFTT54=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCHxp-00059c-Ky for control@debbugs.gnu.org; Fri, 15 Jul 2022 11:50:27 +0200 Date: Fri, 15 Jul 2022 11:50:25 +0200 Message-Id: <87h73iogbi.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #56568 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 56568 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 56568 29.1 quit From unknown Sat Sep 06 05:21:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 12 Aug 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator