From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eshel Yaron via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69387: 30.0.50; A string shouldn't be both a docstring and a return value Date: Sun, 25 Feb 2024 18:33:08 +0100 Message-ID: References: Reply-To: Eshel Yaron Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14205"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier To: 69387@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 25 19:41:18 2024 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 1reJR7-0003YE-74 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Feb 2024 19:41:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1reJQY-0007iE-F6; Sun, 25 Feb 2024 13:40:42 -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 1reJQW-0007hB-Hg for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 13:40:40 -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 1reJQW-0000SC-91 for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 13:40:40 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1reJQv-0001E3-3K for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2024 13:41:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eshel Yaron Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Feb 2024 18:41:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69387 X-GNU-PR-Package: emacs Original-Received: via spool by 69387-submit@debbugs.gnu.org id=B69387.17088864294529 (code B ref 69387); Sun, 25 Feb 2024 18:41:05 +0000 Original-Received: (at 69387) by debbugs.gnu.org; 25 Feb 2024 18:40:29 +0000 Original-Received: from localhost ([127.0.0.1]:37954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reJQH-0001Am-9Q for submit@debbugs.gnu.org; Sun, 25 Feb 2024 13:40:29 -0500 Original-Received: from mail.eshelyaron.com ([107.175.124.16]:48562 helo=eshelyaron.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1reIvk-00084C-Qn for 69387@debbugs.gnu.org; Sun, 25 Feb 2024 13:08:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com; s=mail; t=1708882391; bh=nD7O6O4dOgxpjrPuQAQuc084xMokyvNyPkex99W18RA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=mNZYuiEkBzpjYVqA9jpMGo3+jrWp9TLf7R9RlftfzXa9zFVqSoptrekD4c7BfORwU qZ+5p/Spo5T9JEOBCbQdj1YYLUoZQ11m7Uyq0L9nQR3lvXPHDNtva3Da7ncHaMdgNn qCW1q6BAcSy3xPxEyV8xBcxomVFjSHw+53WlghjyhXTMHZKu/iWwagQSmrsMVysm4B 6orHhXx0Mza5v9G2lUzQ4v+aSqFj43hG1oITpP+5gbAHJGx/vhGnPEqcpwRhSa7BXL rOODCXsFolYu3QsPcxcy5+d/UuSX6zzbnWEwTWyE9zEVW1d9QN9fUD4NxzIprs9gh3 OUEBPmSl+UezQ== In-Reply-To: (Stefan Monnier via's message of "Sun, 25 Feb 2024 11:29:45 -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:280636 Archived-At: Hi Stefan, Stefan Monnier writes: > Package: Emacs > Version: 30.0.50 > > > Currently, ELisp defines > > (lambda (blabla) "Help!") > > as a function that returns "Help!" *and* whose docstring is "Help!". > As seen in commit eeb89a5cb292bffe40ba7d0b0cf81f82f8452bf8, it can be > a source of annoyance as well. > > I cannot remember finding source code which makes use of this "feature". vc-mode kind of abuses of this feature: --8<---------------cut here---------------start------------->8--- (defun vc-mode (&optional _arg) ;; Dummy function for C-h m "Version Control minor mode. This minor mode is automatically activated whenever you visit a file under control of one of the revision control systems in `vc-handled-backends'. VC commands are globally reachable under the prefix \\[vc-prefix-map]: \\{vc-prefix-map}") --8<---------------cut here---------------end--------------->8--- Here the assumption is that the string is used as a doc string, which indeed leads to unexpected results, see Bug#65092. Best, Eshel