From unknown Wed Jun 18 23:15:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38886 <38886@debbugs.gnu.org> To: bug#38886 <38886@debbugs.gnu.org> Subject: Status: (read-variable) documentation doesn't match behavior Reply-To: bug#38886 <38886@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:15:28 +0000 retitle 38886 (read-variable) documentation doesn't match behavior reassign 38886 emacs submitter 38886 Douglas Lewan severity 38886 minor tag 38886 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 02 21:28:42 2020 Received: (at submit) by debbugs.gnu.org; 3 Jan 2020 02:28:42 +0000 Received: from localhost ([127.0.0.1]:40287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inChe-0001IU-4Q for submit@debbugs.gnu.org; Thu, 02 Jan 2020 21:28:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:38287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inChb-0001IM-Vt for submit@debbugs.gnu.org; Thu, 02 Jan 2020 21:28:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45404) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inCha-00064j-RW for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2020 21:28:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_40, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inChZ-0002lc-S5 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2020 21:28:38 -0500 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:41274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inChZ-0002iu-MZ for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2020 21:28:37 -0500 Received: by mail-qk1-x733.google.com with SMTP id x129so32794215qke.8 for ; Thu, 02 Jan 2020 18:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=m4YNitDv7KQmhQkUz0zQHReS+pKQGMRdnr65UwKiQf8=; b=N2zp++mlEvKvR6xjJ759ItkHWmSNL2v+8GclDgxy5NQx041IMFjTuzS9KnZpbmJhDe fTRY5wyWMiw1w4mnX+ZmVWDSFtgEtkbwMiISqRe2CvQ+TaY2mbX/LqzzqEdZY4DSA6ov FU7Sh/RqqY+dx3/JWb29FAl/VoVPTvkERMvfjBZedl9oE43R/4UDDVHuhwfQFKr3nXf9 RSKTpZuAoWEUOllT6e24/Q9RESan56qbdEp/NvT1mSq+W6xin198masYlGIIgQ1HosEH pqBSVXf2js+L0aRX5AJp4bIN14Ot729REeU+qcchu+sddGRQLT7dM3w++ISNZxQFvtLi s6Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=m4YNitDv7KQmhQkUz0zQHReS+pKQGMRdnr65UwKiQf8=; b=PZpLZDj1P0cQWzg3KN1z30gwL9oEIiuKvK/JnSW1LzF6AoDdFkRKMK1HpF7/elicZZ I6MiiKLi+mykpmV1DGnhUhgNJHQ5+e38ZIxNYG3G1NFmml3Y3soUpiWHIsCwiQ4a9V/P vm7yWMkpuPzB/kq/knPXUB6jgGfhYCTKWW8qyBuUKIfDHqVYmqUoUrTmIEgZzT87S/HU 047ylqhbKOju8TebVXmqxmR1m0ZWWxg8aCK8BuAgalr2YUTRqIqOaFSErRIaxmzJJYhj aNHkj5kz7LEr5wQbZp+di4zmM3HZasMZBmAr26loXDBtm7WhsCkAaZJdeXQd+pC6p9uc uqLg== X-Gm-Message-State: APjAAAWcXVpSX/ND/iNPPcqJzht8Cd4dNirZOQAnb3DQfZc3QBR4oCMv dE9fXuqD37NW5xabdeH3Ba8pcvY= X-Google-Smtp-Source: APXvYqxmEnI/mi3Zjbzok1wq2NkGG6IPL18qlBpLPC/w4SJbtQFvMNS15XmV066Pd17KHh40PDeAAw== X-Received: by 2002:ae9:f719:: with SMTP id s25mr61061916qkg.209.1578018516050; Thu, 02 Jan 2020 18:28:36 -0800 (PST) Received: from [0.0.0.0] ([185.220.101.77]) by smtp.gmail.com with ESMTPSA id l35sm16162006qtl.12.2020.01.02.18.28.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jan 2020 18:28:35 -0800 (PST) To: bug-gnu-emacs@gnu.org From: Douglas Lewan Subject: (read-variable) documentation doesn't match behavior Message-ID: <1589f14c-d537-44f4-9143-dbd619d25038@gmail.com> Date: Thu, 2 Jan 2020 21:28:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::733 X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) According to the documentation for (read-variable), this sexp (read-variable "?" '(all one top)) should return all if there's no input. It, however, signals an error instead: Wrong type argument: stringp, all. Indeed, this sexp (read-variable "?" '("all" "one" "top")) does return the symbol all I'm guessing that that is in fact the intended behavior. (In the C code that seems to be the case.) However, the documentation is ambiguous. The first paragraph of the documentation would better end "... if it is a list of strings." -- ,Doug d.lewan2000@gmail.com (908) 720 7908 From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 21 10:56:52 2020 Received: (at 38886) by debbugs.gnu.org; 21 Aug 2020 14:56:53 +0000 Received: from localhost ([127.0.0.1]:48022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k98TM-0002gY-Oj for submit@debbugs.gnu.org; Fri, 21 Aug 2020 10:56:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k98TL-0002gL-1g for 38886@debbugs.gnu.org; Fri, 21 Aug 2020 10:56:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QuWwHj9jaRRZCqgZ1eR5XiAVlTXhX5JGNthfisI5N50=; b=PvEG3Jz7AbglurQSzRzCV7NtgZ vZ2amRAqa9s2IPtRG4bfbcI2RiOFKI4iSytTczJHHZfE70t7Hr2sTLcP0PYCORFYH/gI1O/AEsEb0 a5VTWYx3DSQJ7E3j5+jDs/e9mBh55cMAXjHGe93uYecH/UWVLVZK/g5zrxlpylSvYK20=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k98T8-00071Q-A1; Fri, 21 Aug 2020 16:56:44 +0200 From: Lars Ingebrigtsen To: Douglas Lewan Subject: Re: bug#38886: (read-variable) documentation doesn't match behavior References: <1589f14c-d537-44f4-9143-dbd619d25038@gmail.com> X-Now-Playing: Cristina's _Disco Clone_: "Disco Clone (Disco Mix)" Date: Fri, 21 Aug 2020 16:56:36 +0200 In-Reply-To: <1589f14c-d537-44f4-9143-dbd619d25038@gmail.com> (Douglas Lewan's message of "Thu, 2 Jan 2020 21:28:25 -0500") Message-ID: <87o8n4oxnf.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Douglas Lewan writes: > According to the documentation for (read-variable), this sexp > (read-variable "?" '(all one top)) should return all if there's no > input. It, however, signals an error instead: Wrong type argument [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38886 Cc: 38886@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Douglas Lewan writes: > According to the documentation for (read-variable), this sexp > (read-variable "?" '(all one top)) should return all if there's no > input. It, however, signals an error instead: Wrong type argument: > stringp, all. Indeed, this sexp (read-variable "?" '("all" "one" > "top")) does return the symbol all > > I'm guessing that that is in fact the intended behavior. (In the C > code that seems to be the case.) However, the documentation is > ambiguous. The first paragraph of the documentation would better end > "... if it is a list of strings." Yup. I've now fixed the doc string in the way you suggest in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 21 10:56:58 2020 Received: (at control) by debbugs.gnu.org; 21 Aug 2020 14:56:58 +0000 Received: from localhost ([127.0.0.1]:48025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k98TR-0002gq-Vb for submit@debbugs.gnu.org; Fri, 21 Aug 2020 10:56:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k98TQ-0002gR-Cj for control@debbugs.gnu.org; Fri, 21 Aug 2020 10:56:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=byjh522/TR/XoBwXyldgG+9y/fNkKFl/OKl7KgrWdlQ=; b=FiMFK0bsI05zfVEWECwnW2ehS0 ZAn61pktGwfHxM+TmEEa3lWYVY/V4THRYKbQmJfd9EeyJkera5SqDxNe3kHsA2ML7kaP2XLQVcDZe USnq8fA03pzpOSKj0pIk4Iw0+NZMO1v2LMSpTNuoFlHfvGtdKyxby000tMdhuxfM91k0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k98TI-000722-L4 for control@debbugs.gnu.org; Fri, 21 Aug 2020 16:56:50 +0200 Date: Fri, 21 Aug 2020 16:56:47 +0200 Message-Id: <87mu2ooxn4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #38886 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 38886 fixed close 38886 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 38886 fixed close 38886 28.1 quit From unknown Wed Jun 18 23:15:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 19 Sep 2020 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator