From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: [External] : Supplying DOC string in a `defun' using `defvar' Date: Thu, 3 Jun 2021 00:52:46 +0200 Message-ID: References: <87r1hlw6pn.fsf@web.de> 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="1890"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "help-gnu-emacs@gnu.org" To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 03 00:53:38 2021 Return-path: Envelope-to: geh-help-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 1loZk2-0000Hu-Qk for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Jun 2021 00:53:38 +0200 Original-Received: from localhost ([::1]:59244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loZk1-0001MC-Rk for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Jun 2021 18:53:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loZjM-0001IR-4E for help-gnu-emacs@gnu.org; Wed, 02 Jun 2021 18:52:56 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:54411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loZjJ-0002km-SR for help-gnu-emacs@gnu.org; Wed, 02 Jun 2021 18:52:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1622674366; bh=7RXy0uSw08g8+wmuSRclimGqHWjvaFRg5AIAswLf7no=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=JhYDo3a+1MdxLNOC95hN8MAP5vym3m4rIcGn15o6I9ZZxzVh7VL1IYxvDGQGpx+aH KXq5Sq4J1bYpDe1W8r33m/HX/SATVfBy8Gq3RJi3uvajS/YaMdS+BB2gO8g+PQRwEK vWE6D53YO4+RrSTGNEoCI8MPQKQb2j05GzCos+6I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs08.server.lan [172.19.170.176]) (via HTTP); Thu, 3 Jun 2021 00:52:46 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:yLbBHa/eDaH0h0Ki3Y8PqI+lzDao3cy+TQUfvek6LK0Xfj7bG3dxlG4Nv43PhjIfaci7A +9IcgF5S/4sZHfPeSAETj5mxwNwajYlAHnrFfxAZu3ZJ64ku94jVx1lGQhMHPK4dlW4sODhQ/P8W pXEuWNbviJPiEFtMEf4GqVGi6rq2Tn4Wa73sVNNXRKH790mGLInnlrfARGAdLYvevOMV8C3cg1f2 ft6Z6Kh4zKgJsD67SycS3xkNDTWt+HTgBLuANnlh0ga+tE6p8QkNI31MPJa1SSIMEnoBceG7lZA9 TA= X-UI-Out-Filterresults: notjunk:1;V03:K0:IUkOHy/6Ics=:swNt4a2TQN4/HtAfE+H/M7 zJwg/SLaUIpxZu01LUwOH6nuViuO0h9pwIfJt1tXQjSfUiZfboidBSQ2zCE9rDLGOQo1g/RWu 6WUSOcMQDH6esWN9ZuBUR6yDkA4VEmGByvO9YDR7eSvbQPMwl7jTWmaVDRyFnOC4sQqtxYoK4 sYCm6PnZ0db4jFbWddhHRgorje3A6h3gtjoF6fFHIOZptLpcBJpKpfeXz9dRLm6e9uygU5YY6 VTA3ymvtMIC7VKVq6OBATICClvTQslKANxPsmCpt0YnCVQ43bilrTrZGhPILkK9A27RY/6DZ4 wBp9FtX9Q2B2sD6kcDhv6IOaTKuU0VIG2ejsOiZCQjAMQQuAXYfOAngZSH8bLMkJue/fb+3W8 RDUWAZ9IYRSRNXSJEo/9DmxDdxdDf6Eho5N1kgEipsPqE/KuJnnn5hoGzkTA7APF+si5Q/VGg KwS6+VcnMjq9NNrwR9M66aey72mBTSvmxZVzA+2k9+8DBlBgxVyS5fNh008U8x2xDkf/rTm2H mLrEwzleocltO9TXAVj082x1OgwlczLctrzli2BDDVqaSNq+S/nxvXREMx5cQKzftexqCtydJ QfwUJod/8+PHI0hT4wTeiSHV9ATdbNzTUVC7TnC9jd6UtkqclgQmxqrqQrSq/RWoEiimC4+37 Z2IP2p4D64cKbhsEB/XDvlNPwVA47vwDCdw4lr240qdxvXNuOlJp0MPfwTp5M8LvSEZJixiK5 X9QpAek3ED1pKXUyKxyqh3x0bbfuq0hbWh6dT+mTVKxCGsvjkGpyqCAXbtmt19G9WeqA7U25 Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130518 Archived-At: > Sent: Thursday, June 03, 2021 at 10:39 AM > From: "Stefan Monnier" > To: "Drew Adams" > Cc: "Christopher Dimech" , "help-gnu-emacs@gnu.org" > Subject: Re: [External] : Supplying DOC string in a `defun' using `defva= r' > > > As I'm sure you know, by "this should be fixed" > > I meant please fix :documentation, so it works > > with both "dialects". > > Patch welcome. > > > The "fix" of introducing broken stuff, and saying "It'll all be fixed > > when the dynamic dialect finally goes away" doesn't cut the mustard. > > That's just "Demain on rase gratis !". > > The fact is: the two dialects *are* different and that's the price that > had to be paid in order to introduce lexical scoping without breaking > all the existing code. > > The fact that `:documentation` only works in the new dialect is the > least common hurdle among several others (I've already seen at least 20 > cases here on gnu.emacs.help (plus at least the same amount in other > places) of ELisp snippets working only in the new dialect and users > stumbling because of that, this is the first that involves the obscure > `:documentation` feature). > > So, while it is technically possible to make :documentation work in the > old dialect, it won't fix the core problem nor its most common > manifestations. That core problem can only be fixed by helping people > move to the new dialect as quickly as possible so we can go back to > living in a single dialect. > > This discussion has already helped one user change its code to the new > dialect, so maybe the fact that `:documentation` doesn't work in the old > dialect should be seen as a feature to help people move to the > new dialect. > > > Stefan How long will you allow users to move to the new dialect? And after that = time, the lexical binding declaration would no longer be necessary, right?