unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Visuwesh <visuweshm@gmail.com>
To: 56568@debbugs.gnu.org
Subject: bug#56568: [PATCH] Fix docstring of mailcap-user-mime-data
Date: Fri, 15 Jul 2022 09:39:22 +0530	[thread overview]
Message-ID: <87y1wv2f0t.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]

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'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-net-mailcap.el-mailcap-user-mime-data-Doc-fix.patch --]
[-- Type: text/patch, Size: 959 bytes --]

From 7bd9a5fce3e575ef3027fe7022d6b23e05c9f238 Mon Sep 17 00:00:00 2001
From: Visuwesh <visuweshm@gmail.com>
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


             reply	other threads:[~2022-07-15  4:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-15  4:09 Visuwesh [this message]
2022-07-15  9:50 ` bug#56568: [PATCH] Fix docstring of mailcap-user-mime-data Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1wv2f0t.fsf@gmail.com \
    --to=visuweshm@gmail.com \
    --cc=56568@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).