From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#56568: [PATCH] Fix docstring of mailcap-user-mime-data Date: Fri, 15 Jul 2022 09:39:22 +0530 Message-ID: <87y1wv2f0t.fsf@gmail.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="26879"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 56568@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 06:10:14 2022 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 1oCCec-0006nn-0N for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 06:10:14 +0200 Original-Received: from localhost ([::1]:56238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCCea-0006v6-FP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 00:10:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCCeR-0006sH-8x for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 00:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCCeQ-0001L5-Uq for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 00:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCCeQ-00005F-Q7 for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 00:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jul 2022 04:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165785819732763 (code B ref -1); Fri, 15 Jul 2022 04:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jul 2022 04:09:57 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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:237052 Archived-At: --=-=-= 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 --=-=-=--