From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#67835: 30.0.50; Error with undocumented disabled commands Date: Sat, 16 Dec 2023 11:37:13 -0800 Message-ID: References: <87bkarn3ra.wl@id.domain> <83cyv6mgw3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11470"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67835-done@debbugs.gnu.org To: Eli Zaretskii , kakkokakko@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 16 20:38:29 2023 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 1rEaUW-0002lR-F7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Dec 2023 20:38:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rEaU7-0001Iv-I8; Sat, 16 Dec 2023 14:38:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rEaU5-0001I9-Vp for bug-gnu-emacs@gnu.org; Sat, 16 Dec 2023 14:38:01 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rEaU5-0005Bb-NB for bug-gnu-emacs@gnu.org; Sat, 16 Dec 2023 14:38:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rEaU6-0004vV-DI for bug-gnu-emacs@gnu.org; Sat, 16 Dec 2023 14:38:02 -0500 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Dec 2023 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 67835 X-GNU-PR-Package: emacs Mail-Followup-To: 67835@debbugs.gnu.org, stefankangas@gmail.com, kakkokakko@gmail.com Original-Received: via spool by 67835-done@debbugs.gnu.org id=D67835.170275544618880 (code D ref 67835); Sat, 16 Dec 2023 19:38:02 +0000 Original-Received: (at 67835-done) by debbugs.gnu.org; 16 Dec 2023 19:37:26 +0000 Original-Received: from localhost ([127.0.0.1]:56086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEaTV-0004uR-Jn for submit@debbugs.gnu.org; Sat, 16 Dec 2023 14:37:25 -0500 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:51383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rEaTQ-0004u7-Nr for 67835-done@debbugs.gnu.org; Sat, 16 Dec 2023 14:37:24 -0500 Original-Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-54c77e0835bso2117323a12.2 for <67835-done@debbugs.gnu.org>; Sat, 16 Dec 2023 11:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702755434; x=1703360234; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=Pn6K/TsQWkoQwh4kpzeNFP+hRJDnCTE/348ZtqGtcP0=; b=lQlP0jO1tG4D/SihIjNduEWbYU9HwRcHfOgcvwq2FT+eRZPwFeDS9xnyPoROfXOrlt B6bhRU0hw2+W+097CZpKzh4kKLMQq101nlH/PcZMENJf6IiGaGHPTP/u3kT8kcYnQlTm 8Tv/yY5C85K95V0QT0ETqI71OCK/OPG/DLsRcCnj1Ms+3t2TaXa2hSKosOfkezF0c4bJ m9Fp/2xEjb9O8Yie6OHqbaib8R997r2y9KSAeP0PTp62g9j+hbx7ph4RFwa9r0gLcua4 9mxnDuplG4eBXpoRz3zOE0PBqiLpc+/30fkSQLhzSkzvnHS8utRinPmolV0ALn8UaA3v v6Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702755434; x=1703360234; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Pn6K/TsQWkoQwh4kpzeNFP+hRJDnCTE/348ZtqGtcP0=; b=LtNhgm7Lh9YHQHpPU28upOG2BvotcdLkWq6kjiw+RRuXXYf8R20hw6kVzlTivEs79q gwuOAnM3/ZDseWO+a62Ljxxm2ZfTgttw1FMs2CNOCudw9n3wa0WNOBP5NMRDfBFIz6vC jmnAYZCWBQ5m0l3B9IDitR8hLw2IZGghBrmU43PGV+/EyAbNs0SGE/YMZKjPuABL5t6M xxO5FrQea2Th1j+kAo8jiyu9pB6EzjLbo9buC5NT2VnEpQ/+Ur6vK4HIjWQSKASGbNoz mvjKXAXHDY33dq0p9xYnyP1tJawrbjJIb7+jfoDBE2IhUSN67W044NTczkwvaxFMqQd3 dO7g== X-Gm-Message-State: AOJu0YxninxG70JUIZUfsnc4BBbxVex5epEE8WeWMpIlSFWo0skTr1+0 oJDMYnuDfE/M58iLhBpS9kMPbTznMVPexzmB7xw= X-Google-Smtp-Source: AGHT+IH4q6fHdI+1DhohJXUacCuaLb7vdoVtOEVTQylZmTX/RoWLdZ2H7jxyZxg2ss0XAJLJ1bb+nV1UQw+AptnHzH8= X-Received: by 2002:a50:d787:0:b0:551:ab9e:53c6 with SMTP id w7-20020a50d787000000b00551ab9e53c6mr4847364edi.52.1702755434083; Sat, 16 Dec 2023 11:37:14 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 16 Dec 2023 11:37:13 -0800 In-Reply-To: <83cyv6mgw3.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276376 Archived-At: Version: 29.2 Eli Zaretskii writes: >> Date: Fri, 15 Dec 2023 19:45:13 +0900 >> From: kakkokakko@gmail.com >> >> 1. emacs -Q --eval "(progn (defun foo () (interactive)) (put 'foo 'disab= led t))" >> 2. M-x foo RET >> >> Then, I encountered the error message "Wrong type argument: >> char-or-string-p, nil". This behavior is different from that in >> previous versions, like 27.1, where I received the following message. >> >> | You have invoked the disabled command foo. >> | It is disabled because new users often find it confusing. >> | Here=E2=80=99s the first part of its description: >> | >> | << not documented >> >> | ... >> >> I also expect similar behavior in 30.0.50. >> >> In 30.0.50, it appears that disabled-command-function in >> novice.el triggers this error by executing (insert nil) for >> undocumented commands in the following code. >> >> | (insert (condition-case () >> | (documentation cmd) >> | (error "<< not documented >>"))) >> >> Although omitting a docstring is generally considered poor practice, >> triggering an error for such commands might not be intentional >> behavior. The corresponding code in 27.1 was as follows: >> >> | (... (or (condition-case () >> | (documentation cmd) >> | (error nil)) >> | "<< not documented >>")) Thanks for the bug report! This should now be fixed on emacs-29.