From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Bremner Newsgroups: gmane.mail.notmuch.general,gmane.emacs.bugs 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 Content-Type: multipart/mixed; boundary="===============4311611495300181042==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25484"; mail-complaints-to="usenet@ciao.gmane.io" Cc: notmuch-gxuj+Tv9EO5zyzON3hdc1g@public.gmane.org To: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: notmuch-bounces-gxuj+Tv9EO5zyzON3hdc1g@public.gmane.org Tue Sep 07 19:58:54 2021 Return-path: Envelope-to: gmn-notmuch@m.gmane-mx.org Original-Received: from nmbug.tethera.net ([144.217.243.247] helo=mail.notmuchmail.org) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNfMz-0006OK-O9 for gmn-notmuch@m.gmane-mx.org; Tue, 07 Sep 2021 19:58:53 +0200 Original-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) Original-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) Original-Received: by fethera.tethera.net (Postfix, from userid 1001) id 333F15FD5C; Tue, 7 Sep 2021 13:58:44 -0400 (EDT) Original-Received: (nullmailer pid 57582 invoked by uid 1000); Tue, 07 Sep 2021 17:58:42 -0000 Message-ID-Hash: 2Y5Z2OKUF7DRVYTTKJ7NLS5X26GIYPOX X-Message-ID-Hash: 2Y5Z2OKUF7DRVYTTKJ7NLS5X26GIYPOX X-MailFrom: david-1j+SLnlVNwXR7s880joybQ@public.gmane.org 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 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: Xref: news.gmane.io gmane.mail.notmuch.general:32344 gmane.emacs.bugs:213726 Archived-At: --===============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