From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ernesto Alfonso Newsgroups: gmane.emacs.bugs Subject: bug#54639: 26.1; (not (string-empty-p nil)) returns true Date: Wed, 30 Mar 2022 12:20:43 -0400 Message-ID: <874k3fza1w.fsf@debianx1e> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21410"; mail-complaints-to="usenet@ciao.gmane.io" To: 54639@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 30 18:32:18 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 1nZbF4-0005Nt-8f for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Mar 2022 18:32:18 +0200 Original-Received: from localhost ([::1]:33606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZbF2-00033H-Rf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Mar 2022 12:32:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZb4A-0000yh-BT for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2022 12:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZb4A-0007BG-2e for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2022 12:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZb49-00065r-V7 for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2022 12:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ernesto Alfonso Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Mar 2022 16:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54639 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.164865725523397 (code B ref -1); Wed, 30 Mar 2022 16:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Mar 2022 16:20:55 +0000 Original-Received: from localhost ([127.0.0.1]:36733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZb42-00065J-IS for submit@debbugs.gnu.org; Wed, 30 Mar 2022 12:20:55 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZb40-00065A-Rc for submit@debbugs.gnu.org; Wed, 30 Mar 2022 12:20:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZb40-0000fb-L8 for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2022 12:20:52 -0400 Original-Received: from [2a00:1450:4864:20::434] (port=36621 helo=mail-wr1-x434.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZb3x-0007AP-Il for bug-gnu-emacs@gnu.org; Wed, 30 Mar 2022 12:20:52 -0400 Original-Received: by mail-wr1-x434.google.com with SMTP id u3so30071232wrg.3 for ; Wed, 30 Mar 2022 09:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=3CYVqY/tyAUAV34IbsVcDkPWfJVIwTC7gCrqvW5JS3M=; b=aIQfWgx7Fl33rQ1eiqTJOBnM9m5xecHbISXBNrSJ/io5Rj37QSUtnsExFkNbAwzrJT PNTRriovYKyvMtMxVYHyU0dRy6RS1cbG2TM9cKsVPVr+A1EhN404Tw6Ber9ZU4E/c3lA 1KotqXg2t9BpxGlJ7OuMApfiTQoTq2J4bV7zuhc0UYISrVPuqkyWHCjRq4dvpRJrejcf KYeodw1JeIai1pdR9PrwxrdZPT9uT/gRGkpvdOtmXRYLGO9wZCCFY1ncblpJ2hfDK2rn F5bi0kXwOBjlG+5896iRaNgITiSbSEiHxANohMmCNUpERQHox70cHhrMvY6qQKS809CW 0Txw== 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:mime-version; bh=3CYVqY/tyAUAV34IbsVcDkPWfJVIwTC7gCrqvW5JS3M=; b=LVy9ngrm79gJuiy8jaS0/ce4GXgESXtUHqmaLbyBoKBRcJCBAYlccpaEia31YYgDHK DBOop4MaYB+wPvueQmN2hDDJAGXl/7hi6WZfrWGBeXpBWt/uwyRjVd0nNR38LRGz4kJS EwSXmd1oUpEWOjWcydT/Rl96OxKozv2Qcq1Ua1c2xxgzMyRRXouKG1xdBJoevLkrvuIJ W5VlRgTKhbhaTtymFwIzPeCxL+Cm/2U21PF6DmW8YYj5IuXmtchlOm6QrsQBRENbwHkd lLKvgEpXCM2xXV/Z46onQnW3CbT1Th+n1gCbvo3iOKlh0byWkXX0TEGO5DgwjAL22gnV gUsA== X-Gm-Message-State: AOAM5314uI7gpSVg3Hu6JJubc7JTwA2+bw4slXYPs0tj2xBGAea8vFJA xTY8D0Fj9190ftr5UJlGdtEdymUVlCY= X-Google-Smtp-Source: ABdhPJw/uewWIP+vLGadId5mWYmzpRfW+oTXWKvmnNxNDTe8qu8x8TE1wsiUhhFyyIvUvsUEeqOLfA== X-Received: by 2002:adf:e701:0:b0:203:f4c2:a1c with SMTP id c1-20020adfe701000000b00203f4c20a1cmr343586wrm.628.1648657246032; Wed, 30 Mar 2022 09:20:46 -0700 (PDT) Original-Received: from debianx1e (76-242-160-40.lightspeed.dybhfl.sbcglobal.net. [76.242.160.40]) by smtp.gmail.com with ESMTPSA id 10-20020a5d47aa000000b00204012e4373sm21392432wrb.101.2022.03.30.09.20.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 09:20:45 -0700 (PDT) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::434 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=erjoalgo@gmail.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:229121 Archived-At: The expression (not (string-empty-p nil)) returns true. This is very conuterintuitive: nil is as "empty" a value as there is! Some of the more reasonable alternatives I can think of in order of preference are: 1. (string-empty-p nil) simply returns t 2. (string-empty-p nil) raises a type error 3. subr-x.el provides a separate string-null-or-empty-p function In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-22, modified by Debian built on x86-grnet-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) Recent messages: nil [2 times] Quit uncompressing subr-x.el.gz...done Note: file is write protected scroll-down-command: Beginning of buffer [11 times] Mark saved where search started killed: (string-empty-p sip-autosend-message) Mark set [2 times] Making completion list... Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs-StqULU/emacs-26.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: IELM Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t text-scale-mode: t indent-on-save-mode: 0 global-erjoalgo-command-mode: t erjoalgo-command-mode: t show-paren-mode: t global-text-scale-mode: t autobuild-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/ealfonso/quicklisp/dists/quicklisp/software/slime-v2.24/slime-tests hides /home/ealfonso/.emacs.d/elpa/slime-20191224.2328/slime-tests /home/ealfonso/quicklisp/dists/quicklisp/software/slime-v2.24/slime-autoloads hides /home/ealfonso/.emacs.d/elpa/slime-20191224.2328/slime-autoloads /home/ealfonso/quicklisp/dists/quicklisp/software/slime-v2.24/slime hides /home/ealfonso/.emacs.d/elpa/slime-20191224.2328/slime /home/ealfonso/.emacs.d/elpa/autobuild-20200209.2005/autobuild hides /home/ealfonso/git/dotemacs/lisp/core/autobuild /home/ealfonso/.emacs.d/elpa/s-20180406.808/s hides /home/ealfonso/git/dotemacs/lisp/libs/s /home/ealfonso/.emacs.d/elpa/dash-20191109.1327/dash hides /home/ealfonso/git/dotemacs/lisp/libs/dash /home/ealfonso/quicklisp/dists/quicklisp/software/slime-v2.24/contrib/slime-cl-indent hides /home/ealfonso/git/dotemacs/lisp/libs/slime-cl-indent /home/ealfonso/.emacs.d/elpa/babel-20181201.919/babel hides /home/ealfonso/git/babel/babel /home/ealfonso/.emacs.d/elpa/let-alist-1.0.6/let-alist hides /usr/share/emacs/26.1/lisp/emacs-lisp/let-alist Features: (shadow emacsbug ielm eieio-opt speedbar sb-image ezimage dframe help-fns radix-tree cl-print legalese finder skeleton mhtml-mode css-mode color eww url-queue shr svg xml js imenu cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs sgml-mode dom flyspell ispell animate sort python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell mailalias mail-extr rfc2368 browse-url qp gnus-ml disp-table nndraft nnmh nnfolder utf-7 bbdb-gnus network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache sh-script smie executable misearch multi-isearch dired-aux ffap vc-git diff-mode face-remap diary-lib diary-loaddefs cal-iso org-rmail org-mhe org-irc org-info org-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win org-docview doc-view jka-compr image-mode org-bibtex bibtex org-bbdb org-w3m org-agenda files-x tmp-completions tetris-o-1 beeper translation babel mm-url url url-proxy url-privacy url-expand url-methods url-history mailcap gnus nnheader wid-edit wm-windows slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime hi-lock company-oddmuse company-keywords company-etags 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 elec-pair lisp-mnt gud apropos compile etags xref project arc-mode archive-mode cl ox-texinfo ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-crypt org-element avl-tree generator org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint comint ring ob-core ob-eval org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs erc-goodies erc erc-backend erc-compat thingatpt bbdb-mua bbdb-com crm bbdb-message sendmail message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader bbdb bbdb-site timezone websocket url-cookie url-domsuf url-util bindat selcand proxy-mode project-opener org-omnibar erjoalgo-command-mode command-mode-commands anonymizer genpass ert pp ewoc debug flycheck cl-extra ansi-color json map find-func help-mode rx subr-x header2 sticky-windows company edmacro kmacro pcase dedicated dash-functional plusx my-emacs-settings paren server isearch-fast-reverse buttons zoom-global easy-mmode quick-yes advice goto-last-change autobuild-common-rules autobuild f dash s finder-inf slime-autoloads info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util 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 menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer 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 dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1037404 79976) (symbols 48 63949 2) (miscs 40 856 1109) (strings 32 168803 4766) (string-bytes 1 5624278) (vectors 16 92002) (vector-slots 8 2066993 159212) (floats 8 615 891) (intervals 56 17949 134) (buffers 992 61))