From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UBgAJF6oN2G2UQAAgWs5BA (envelope-from ) for ; Tue, 07 Sep 2021 19:58:54 +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 CBGzH16oN2GKNgAAB5/wlQ (envelope-from ) for ; Tue, 07 Sep 2021 17:58:54 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 90254B188 for ; Tue, 7 Sep 2021 19:58:53 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9AB032051A; Tue, 7 Sep 2021 13:58:47 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id CE10620503 for ; Tue, 7 Sep 2021 13:58:44 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 333F15FD5C; Tue, 7 Sep 2021 13:58:44 -0400 (EDT) Received: (nullmailer pid 57582 invoked by uid 1000); Tue, 07 Sep 2021 17:58:42 -0000 From: David Bremner To: bug-gnu-emacs@gnu.org Subject: 27.1; defcustom for mail-user-agent is too strict? Date: Tue, 07 Sep 2021 14:58:41 -0300 Message-ID: <87ilzcp8ry.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2Y5Z2OKUF7DRVYTTKJ7NLS5X26GIYPOX X-Message-ID-Hash: 2Y5Z2OKUF7DRVYTTKJ7NLS5X26GIYPOX X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: notmuch@notmuchmail.org X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============4311611495300181042==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631037533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=oEqoM2pb3G9lhI/eJnBjOgPxbgqAXy/zkELDRn57B9w=; b=I63WnVie884lJaSJjC6YYF1pep/SVwHJMIRca2aAKbZjjvQ3+NlR3K8pdCe7awq22ZGUrR Leyg4kPOa8FIJboFDgxJUNolBczrtLA4frPd44QG9nSHG9fEZNSZkFXMrlzBT9KgwSTE6r F+eT3wGSGZICqqTOOpq3/cb6i/R6cN4dc/9X8Kc6loCqcayHBq0BfPghZm00PuGA6pHjUo GPUWL1kLMcnIr10R9JaCRO60fqEG5SmS49rnJVTBB5RwyyfEGn7fBg4lm4KT/+GGrFsYvP dyneass0A7Kc5a1fOWY3utE5TpU5fjuBHc5JBVrOL9lliS3tXPRXWN0LWcPviA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631037533; a=rsa-sha256; cv=none; b=k91jycaH8nRyUpcBD/2T6LuWvsQ/Fa9ruJGb/cGFEiUMigEv2ExcMPskJh4r2HXTYrDImq ltaFD330UdK6nEWWNaBcXg+BcYUhRjGie+eXoFOK5mciXAk/d4NY9vgBMuhCABeSGauCdi cbwGf6oJsygY0oVbSSq23G7X8tDnt9s7CY2yoiQzXi76iRyOUBWoxqn1FkPZwNgdX2MKEC jJivN5OmGqE1UxySnlWTK77e7kWiFAQHjrDiIDgNxfyz/kNXcfI11995IdmaYNldiF19SF xD6o3O6QTzT80EhnWQ1m8j9/l5KItGMMNOGEkA2hZRpKw5Mz7PJHpLbHPKv5vQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -3.19 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 90254B188 X-Spam-Score: -3.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: w+P2wG3nMUe4 --===============4311611495300181042== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable The defcustom for mail-user-agent looks like :type '(radio (function-item :tag "Message package" :format "%t\n" message-user-agent) ;; [...] snip=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 (function-item :tag "Message with full Gnus features" :format "%t\n" gnus-user-agent) (function :tag "Other")) This means that a symbol without a function definition cannot be set (using customize) as mail-user-agent. This seem inconsistent with the docstring of define-mail-user-agent,=20 SYMBOL can be any Lisp symbol. Its function definition and/or value as a variable do not matter for this usage; we use only certain properties on its property list, to encode the rest of the arguments. and with existing mail user agents such as message-user-agent and gnus-user-agent which don't have function definitions. As far as I know, this defcustom is still enforcing that the symbol is a function in emacs 28.x. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cair= o version 1.16.0) of 2021-03-27, modified by Debian built on x86-conova-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:= /usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share= /emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-cairo --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -ffile-prefix-map=3D/build/emacs-LlFm6W/emacs-27.1+1=3D. -fstack-protector= -strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_CA.UTF-8 locale-coding-system: utf-8-unix Major mode: notmuch-show Minor modes in effect: shell-dirtrack-mode: t tracking-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Features: (shadow sort company-oddmuse company-keywords company-etags etags fileloop xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb company mail-extr emacsbug sendmail cursor-sensor smerge-mode diff mm-archive shr-color org-clock org-duration view mule-util cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs cal-iso org-eldoc org-element avl-tree generator ol-eww eww mm-url url-queue ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum url url-proxy url-privacy url-expand url-methods url-history shr url-cookie url-domsuf url-util svg xml dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win gnus nnheader ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m face-remap org-agenda org-refile org org-macro org-footnote org-pcomplete org-list org-faces org-entities noutline outline org-version ob-dot ob-shell ob-emacs-lisp ob-python python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 ls-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-exp ob-comint comint ansi-color ob-core ob-eval org-table org-keys org-loaddefs find-func edmacro kmacro cl-extra notmuch notmuch-tree notmuch-jump notmuch-hello wid-edit notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj notmuch-query goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag crm notmuch-lib notmuch-version notmuch-compat pcase hl-line message rmc dired dired-loaddefs rfc822 mml mailabbrev gmm-utils mailheader mm-view mml-smime mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mail-utils text-property-search time-date smime dig mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr vc-git server tempo ol-notmuch ol org-compat org-macs format-spec org-install vc vc-dispatcher circe-color-nicks color circe-chanop circe advice diff-mode lui-irc-colors irc make-tls-process tls gnutls puny lcs lui-format lui tracking shorten easy-mmode rx thingatpt paren help-mode flyspell ispell ring circe-compat bbdb-loaddefs preview-latex auto-loads tex-site finder-inf dpkg-dev-el info debian-el slime-autoloads package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 655778 54211) (symbols 48 31792 3) (strings 32 150840 22171) (string-bytes 1 4753274) (vectors 16 59825) (vector-slots 8 1381524 89918) (floats 8 1245 935) (intervals 56 18472 870) (buffers 1000 63)) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJGBAEBCAAwFiEEkiyHYXwaY0SiY6fqA0U5G1WqFSEFAmE3qFESHGRhdmlkQHRl dGhlcmEubmV0AAoJEANFORtVqhUhsysQAL30afOpW832jNaMF2tywykg2hnYT8dD ipqf7py/AMX6clnYYP+sYXX4LSu1c8t2cv6ofVskEaEsciiHqKWdGZM2P59oHdNc DSgmsg83z6UqB7QojwuhNuxd+T9kyDaLnCJUXUAUYWjf4wry8wnlFZ7VM55E37OC E0/E3PiZTAq+7189jMdSVlAIO8PTkSOY2Vgghwni7cFMH7h4gKpsb2HRX+w5hrnB R/ge8gP1P2eOWhVZ5IXVhaUPfi7ke4Xg/vwCNQKULFixWN7+XUJQJMG7g4tCtCXU AOhA8lhKYNrmCND8XeppBizTmUCB9lV/788oIAP4Y57cEyatPPSCZPZlSlCIFniA 6/dmb3kzUECx5G7u/V7kUFhj5pcspk/VJiP4GR72coCMaz/zxCy7mV4HaSZo4J12 RSlp/VFPLreW72Fau20JLd2kvdUdBpQxsGO+TFD70ESxMQMxggHJofYVsXujawy7 xN2EItObhsge8Mfg87SXV47GafVBR28gd+VPMMSVfzsv3tbJH/xHUncBjAeQ7q2K USVfE/vigxxS5wK3t3NSY3rG+yplQthYDZaef36DjLGeNfvxyrZOZOlIMR0bryoi Gnik4VPzRhohjFrQDrAQl91nIUFfOsVePsP2oc50rbYAkOqDbVytQ5ljMACgd6Xf poTxvWsjSJ8W =yEgk -----END PGP SIGNATURE----- --=-=-=-- --===============4311611495300181042== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============4311611495300181042==--