From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.bugs Subject: bug#47368: 28.0.50; map-elt returns nil without "deprecated" TESTFN Date: Wed, 24 Mar 2021 23:52:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a31fad05be5029a4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36258"; mail-complaints-to="usenet@ciao.gmane.io" To: 47368@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 24 23:54:13 2021 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 1lPCOC-0009HS-2W for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Mar 2021 23:54:12 +0100 Original-Received: from localhost ([::1]:54012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPCOA-0000Qf-Lu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Mar 2021 18:54:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPCO2-0000QT-Vi for bug-gnu-emacs@gnu.org; Wed, 24 Mar 2021 18:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53052) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPCO2-0000wN-Na for bug-gnu-emacs@gnu.org; Wed, 24 Mar 2021 18:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPCO2-0001RG-N4 for bug-gnu-emacs@gnu.org; Wed, 24 Mar 2021 18:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Mar 2021 22:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47368 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16166263985449 (code B ref -1); Wed, 24 Mar 2021 22:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Mar 2021 22:53:18 +0000 Original-Received: from localhost ([127.0.0.1]:36357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPCNK-0001Pp-9q for submit@debbugs.gnu.org; Wed, 24 Mar 2021 18:53:18 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPCNJ-0001Pi-1Y for submit@debbugs.gnu.org; Wed, 24 Mar 2021 18:53:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPCNI-0000Hq-CH for bug-gnu-emacs@gnu.org; Wed, 24 Mar 2021 18:53:16 -0400 Original-Received: from mail-ua1-x92c.google.com ([2607:f8b0:4864:20::92c]:34809) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPCNC-0000Y9-R4 for bug-gnu-emacs@gnu.org; Wed, 24 Mar 2021 18:53:16 -0400 Original-Received: by mail-ua1-x92c.google.com with SMTP id j4so8382144uan.1 for ; Wed, 24 Mar 2021 15:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=1KdeWmB5jO2xrglOMNEoiP58U0lvjCM87f/4PfZj0+c=; b=OhLTbtnPG7HhYYjGRi+EbKfpQWEwPTQasv8+IJHYl23LtKZYTKb4rj9UiX9VKpj0rv qFLt/q8MI3RujBE3iclhblB3Q9IzUKlcSnON/XSNXq/G3BreFxhMGUqyGQ9u5wm/EeXj mKa2GDI7jjZC8Pn2nLqChsTJ5+Stw9Qv7pDkajgNLUNIzkA9mjVPQ8Vgva6n89Tbzh3v PLPnSSoYayWsYsxWGQPssT6fcxeUWKo6Z6ULMP7lmckgnVpsximB90bNyj7VrID+DZb2 II3nYjzIDkYJ+DjLxTkAFHNcS8+8EJV48mce2yqHo0vYFHQQwcrUmUmTBK1IMp2XZ8nU nzLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1KdeWmB5jO2xrglOMNEoiP58U0lvjCM87f/4PfZj0+c=; b=PefGcHRZax2x86ReTr5Cyt6CGByQ34d2p8cjxU02hOkYv1VkkdazEE035CY0IlV0Ua Z0edB1vvEIWjXDHJnQy/iWiaCgEV625EeZauCylnsDvBmnRSqklJ86T4zAGnktTavXvm UDAvhu8y2AhikK1d/dhcWto+GDl440/Sw2K0cxljld8GwTajuTsbabJh+ilBDKGU0GET +Tir7jCzfKvFr0Ivl68pIJZ5u29Cj+0btLkYDI9n/nt3R1UEfrgpC6OwePltImkqEG9c dBsT0T332ZsXrqZi7Mi1YIo1n16sTwt88lFOQDjiEwBFL/LfK/WJvS+lPVN5Ud/ZQkxT LsYA== X-Gm-Message-State: AOAM531AqV0zvaFK0uuah+wZatjCCRuuDZviMthku1Hl1BiT5SzUqzmJ j8wA9nsBhfxkMIjOx2Jynfx2bVxfyc3c9WY8bvgx0goPu6Js2A== X-Google-Smtp-Source: ABdhPJwS4FC2DXFATCYKcEoJIjsXUBp3eUgqIrzUAFql90Y0ipMENPX/Ac1XdC8OOtnU/BxXPCym8O7A4p7aIRvO5Ro= X-Received: by 2002:ab0:7316:: with SMTP id v22mr3340359uao.134.1616626388769; Wed, 24 Mar 2021 15:53:08 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::92c; envelope-from=dalanicolai@gmail.com; helo=mail-ua1-x92c.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:202969 Archived-At: --000000000000a31fad05be5029a4 Content-Type: text/plain; charset="UTF-8" Message-ID: <87czvonp73.fsf@dalanicolai-at-gmail.com> --text follows this line-- The docstring of the map-elt function from the map.el package (version 3.0) mentions that TESTFN is deprecated because "its default depends on the MAP argument". However when I try e.g. (map-elt '(("A1" . 3)) "A1") it returns nil. When I add the correct TESTFN (map-elt '(("A1" . 3)) "A1" nil 'string=) it does correctly return 3. So it seems to me that TESTFN is not yet deprecated, or that otherwise I am understanding it incorrectly. In that case I would label this as a documentation bug. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.25, cairo version 1.16.0) of 2021-02-18 built on daniel-fedora Repository revision: 185121da6978553d538d37d6d0e67dc52e13311f Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12010000 System Description: Fedora 34 (Workstation Edition Prerelease) Configured using: 'configure --with-nativecomp' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=none locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils map seq byte-opt gv bytecomp byte-compile cconv help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func cl-loaddefs cl-lib iso-transl 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 button loaddefs faces cus-face pcase macroexp files window 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 nativecomp emacs) Memory information: ((conses 16 74272 8338) (symbols 48 7113 0) (strings 32 20890 1678) (string-bytes 1 713441) (vectors 16 13521) (vector-slots 8 292167 12582) (floats 8 25 33) (intervals 56 238 0) (buffers 992 13)) --000000000000a31fad05be5029a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Message-ID: <87czvonp73.fsf@dalanicolai-at-gmail.com>
--text = follows this line--

The docstring of the map-elt function from the m= ap.el package (version
3.0) mentions that TESTFN is deprecated because &= quot;its default depends on
the MAP argument". However when I try e= .g.

(map-elt '(("A1" . 3)) "A1")

it r= eturns nil.

When I add the correct TESTFN

(map-elt '((&qu= ot;A1" . 3)) "A1" nil 'string=3D)

it does correct= ly return 3.

So it seems to me that TESTFN is not yet deprecated, or= that otherwise I
am understanding it incorrectly. In that case I would = label this as a
documentation bug.


In GNU Emacs 28.0.50 (buil= d 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.25, cairo version 1.16.0)
= =C2=A0of 2021-02-18 built on daniel-fedora
Repository revision: 185121da= 6978553d538d37d6d0e67dc52e13311f
Repository branch: feature/native-comp<= br>Windowing system distributor 'The X.Org Foundation', version 11.= 0.12010000
System Description: Fedora 34 (Workstation Edition Prerelease= )

Configured using:
=C2=A0'configure --with-nativecomp'
Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM G= SETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M= 17N_FLT MODULES NATIVE_COMP
NOTIFY INOTIFY PDUMPER PNG RSVG SOUND THREAD= S TIFF TOOLKIT_SCROLL_BARS
X11 XDBE XIM XPM GTK3 ZLIB

Important s= ettings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIE= RS: @im=3Dnone
=C2=A0 locale-coding-system: utf-8-unix

Major mode= : Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t<= br>=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-i= ndent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
= =C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global= -font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode:= t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 tra= nsient-mark-mode: t

Load-path shadows:
None found.

Feature= s:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs=
rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail
rmail-= loaddefs auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs pass= word-cache json text-property-search time-date subr-x
mm-decode mm-bodie= s mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail = rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils map seq byte-op= t gv bytecomp byte-compile cconv help-fns
radix-tree cl-print debug back= trace help-mode easymenu find-func
cl-loaddefs cl-lib iso-transl 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 sele= ct scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tt= y-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang = vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 he= brew greek
romanian slovak czech european ethiopic indian cyrillic chine= se
composite charscript charprop case-table epa-hook jka-cmpr-hook help<= br>simple abbrev obarray cl-preloaded nadvice button loaddefs faces
cus-= face pcase macroexp files window text-properties overlay sha1 md5
base64= format env code-pages mule custom widget hashtable-print-readable
backq= uote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting = font-render-setting cairo move-toolbar gtk x-toolkit
x multi-tty make-ne= twork-process nativecomp emacs)

Memory information:
((conses 16 7= 4272 8338)
=C2=A0(symbols 48 7113 0)
=C2=A0(strings 32 20890 1678)=C2=A0(string-bytes 1 713441)
=C2=A0(vectors 16 13521)
=C2=A0(vector= -slots 8 292167 12582)
=C2=A0(floats 8 25 33)
=C2=A0(intervals 56 238= 0)
=C2=A0(buffers 992 13))
--000000000000a31fad05be5029a4--