From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: kakkokakko@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#67835: 30.0.50; Error with undocumented disabled commands Date: Fri, 15 Dec 2023 19:45:13 +0900 Message-ID: <87bkarn3ra.wl@id.domain> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1454"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.1 Mule/6.0 (HANACHIRUSATO) To: 67835@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 15 14:32:39 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 1rE8Ix-0000Fc-9l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Dec 2023 14:32:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rE8IY-0005qa-UL; Fri, 15 Dec 2023 08:32:14 -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 1rE8IP-0005ph-Ma for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2023 08:32:06 -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 1rE8IM-000668-TH for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2023 08:32:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rE8IM-0006V2-Ix for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2023 08:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: kakkokakko@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2023 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67835 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.170264706424314 (code B ref -1); Fri, 15 Dec 2023 13:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Dec 2023 13:31:04 +0000 Original-Received: from localhost ([127.0.0.1]:51756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rE8HP-0006JM-A1 for submit@debbugs.gnu.org; Fri, 15 Dec 2023 08:31:03 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:58512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rE5hA-0005jN-Lc for submit@debbugs.gnu.org; Fri, 15 Dec 2023 05:45:29 -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 1rE5h3-0007hM-I7 for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2023 05:45:22 -0500 Original-Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rE5h1-0004uX-Kf for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2023 05:45:21 -0500 Original-Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-3b9e07690ccso423545b6e.3 for ; Fri, 15 Dec 2023 02:45:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702637117; x=1703241917; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:subject:to:from :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=e96o67tvT6+hSdunDi9mH/w4BqAQtimuMiJlUuLwxsY=; b=IuAykWtGJirWHtUzf5+sgsknvaBCBoot4UhO5nyYphDutAeRSU186wK0hHpBn+1TzO Qvn6j+aKZOfFiIZa0uH2D5PCXlW3yMax4bg4T/HnuEq9GsAxYWEvObK9S3CCmF28lrdd AAztHflURWgmuKx14JYNOe5DFeJi6Re6CsetgtRigzaMgcf8SelON0+65iNy/aPWTAGM AIAGD7xe0aXdVRgbQEFCopMZa5Fab1XOq31J1Kbo1Am/r7c4D57RtcXfkLpePC6DA+mY E6uKQlltqomu51T52vsvuzvGaEthRlqmRegAJgu6dzMozkLKlvqFvIGTkE+L1+iH6SHY Xl5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702637117; x=1703241917; h=content-transfer-encoding:mime-version:user-agent:subject:to:from :message-id:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=e96o67tvT6+hSdunDi9mH/w4BqAQtimuMiJlUuLwxsY=; b=BRKowjwQkIXhqh1QSjvzeJoEu06S542lZTvvs2C/t3pPnpE/1leNThMH8Ox+9ygSDy 9+Eay1IiIfqHf6PZ9P68mgWAvRyU8ERTJ/D2JYdtUo60x/Mc2NAVB5rI7vYR4jBOyuDk hMxXfkqnLUuhQMHeoDt2fRPUnF6dp5ocfLEF3CyWIDux2EMAF3jCtUoqdZk0iWevDQt/ wRg7Vy1maLxgEDa0bIdxftWhKsY+Y4o/qFC7EFJdhK4u8LGOeTa9Qv1MpGAYPDcDYB7C 5lzlkBBG050KMU83n3LscDRpsRVTj19NV4SlqFx8eEciVEjLxT6868aIXJtgBgTGlTdE lR/g== X-Gm-Message-State: AOJu0YzIlNnrF0smUj90aEe0Kz/Pz/Xuqvzsy6MTjj1YMLzPmJWWu70h XIKmbKUflfbF6qYx5oxPfF9G+KKnemI= X-Google-Smtp-Source: AGHT+IEz+cChComL+CoIhhH2fOfSXK1g2WGora5x0ey1A8U0ezRz/4fPPZXBftX/7SqkfmHbFM0xiQ== X-Received: by 2002:a05:6808:2f10:b0:3b9:de62:2baa with SMTP id gu16-20020a0568082f1000b003b9de622baamr15273914oib.20.1702637116754; Fri, 15 Dec 2023 02:45:16 -0800 (PST) Original-Received: from host.i ([2409:10:c880:6010:f20:f14e:3ed4:186f]) by smtp.gmail.com with ESMTPSA id fa11-20020a056a002d0b00b006cb95c0fff4sm13260577pfb.71.2023.12.15.02.45.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 02:45:16 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::22d; envelope-from=kakkokakko@gmail.com; helo=mail-oi1-x22d.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 15 Dec 2023 08:31:02 -0500 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:276264 Archived-At: 1. emacs -Q --eval "(progn (defun foo () (interactive)) (put 'foo 'disabled= 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=A2s the first part of its description: |=20 | << 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 >>")) --=20 KH