From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#69387: 30.0.50; A string shouldn't be both a docstring and a return value Date: Mon, 26 Feb 2024 20:06:00 +0100 Message-ID: References: <2D08AD76-59F7-41BE-9363-96677967034A@gmail.com> <4FCE8B7D-17D7-44E8-A764-A6047209CBE1@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29760"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , Eli Zaretskii , 69387@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 26 20:40:54 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 1regqK-0007VS-Jn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Feb 2024 20:40:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1regq8-0003Xo-Hi; Mon, 26 Feb 2024 14:40:40 -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 1regq6-0003WW-3i for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 14:40:38 -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 1regq5-0002Jo-Lt for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 14:40:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1regqU-0000SM-Dv for bug-gnu-emacs@gnu.org; Mon, 26 Feb 2024 14:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Feb 2024 19:41:02 +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.17089764191636 (code B ref 69387); Mon, 26 Feb 2024 19:41:02 +0000 Original-Received: (at 69387) by debbugs.gnu.org; 26 Feb 2024 19:40:19 +0000 Original-Received: from localhost ([127.0.0.1]:60640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1regpm-0000QI-Nm for submit@debbugs.gnu.org; Mon, 26 Feb 2024 14:40:19 -0500 Original-Received: from mail-lj1-f176.google.com ([209.85.208.176]:52261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1regl8-0000Ee-Dv for 69387@debbugs.gnu.org; Mon, 26 Feb 2024 14:35:34 -0500 Original-Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d28051376eso28994621fa.0 for <69387@debbugs.gnu.org>; Mon, 26 Feb 2024 11:35:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708976039; x=1709580839; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=E60vEoQFLHBSj+g5Lc8jEe0Xde6Z6AFWZcMrFgIaPjA=; b=Ug0Q8CCZpHE+pWv56MCv0AdqzWhR5Ul2a4DKq5jb4phvXKxIzWsPlhmRSHGfshLw6c ox24HBbcyBQiJQZBSo9QEUTwEEXWhCGgfjWWAZaMFucrGUDFRamtWWRT0l9liV0P0Tes q/TWntfK6zleqYJnhIyiM0xb7Tql5ChIbI5S2VVLGBCm2PBh/+GOzOR4Y07/77gQcsjy qtRZGNFjaUWYE2wAQ5Wted9JmTHSC2mDzW2BWksoC7MHQAFM651QZIg50e7kCscQ730y sw0Uzsx+QRTXKPCnIZgoc4d3ztKWQ69tiDnatvI1+ND4tuCdCQzwMs4VTT558Rjw92hJ vr9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708976039; x=1709580839; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=E60vEoQFLHBSj+g5Lc8jEe0Xde6Z6AFWZcMrFgIaPjA=; b=GW6GD8SQUUxvoyQgpglK6l111GsmgPkiHbn/w59joakz1yaOpVZgAXUXs+34Gfnscd P6BVKDGqUj8mejYjEElplnhdcmbgcEKv5kOQoI/H7n+lBsoee2vP3xuiVX018v/qej4p GWDCzSndarJyxbyBRWCA64u/tO26Pvnn+hkrx7ETHzid6ys0Jv9rmTOKN3AlVP0yMqwL 1DbHIUFVo0nxKEBijiRiz5o/AwDp+eSK04sTF33kSvYi8yPetP6jxZOt82PBlFn5r3T0 55woy7J3S2FQ2EYIOMbET9aoJbQZku5Xd0knEfMecFWOX3B51a3ms9EnE/VTAt1mPrnY 44Vg== X-Forwarded-Encrypted: i=1; AJvYcCXvFJ+I/QqQAhhNzDxPwtD5LmX58kXoePDe5wZ7Rtqmc5urm8Zy8hMfhyEYt33uI/SxItLabMbNMoTU1QHNz/Stwk3UOpU= X-Gm-Message-State: AOJu0YxRLR+J61xbRPaadeEqsAKnMdKI62j7GWQrwsIN3zGUb2XEt+/v kkCUXFfY+bGrsXyTKPnC1bZ7jzb4avh8qcuzBbH0QFIu5HOFO2eCr/CpqguZ X-Google-Smtp-Source: AGHT+IGz5aVMUtsBd7JyXrr3om+A+zVtcJZYc9dzQFZxPZcGReGExyUnvUwSHys1IhN916kp1wuHWQ== X-Received: by 2002:a05:651c:19ab:b0:2d2:6138:ee7f with SMTP id bx43-20020a05651c19ab00b002d26138ee7fmr5929633ljb.4.1708974361660; Mon, 26 Feb 2024 11:06:01 -0800 (PST) Original-Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id e21-20020a2e9855000000b002d0b33c1571sm968337ljj.26.2024.02.26.11.06.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2024 11:06:01 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:280704 Archived-At: 26 feb. 2024 kl. 19.17 skrev Stefan Monnier : > No, I mean that we should not keep the old dual-use semantics, even if > it means some docstrings get temporarily "lost" until the code is = fixed. Yes, that's fine. Those aren't likely to have many avid readers. > As for whether (defun (ARGS) "string") should treat the string as > a docstring or a return value, I'd rather keep it as a return value, = so > it's the same as for `lambda`. Another reason is because, the kind of > failures it is likely to introduce is a lot more mild: it's much safer > to remove a docstring than to change the return value. I agree. I'll make a patch for the warning, just so that we can see what = it would look like. And will let you worry about the highlighting then!