From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.emacs.devel Subject: Re: Docstring hack Date: Sat, 30 Jul 2022 08:50:19 -0400 Message-ID: References: <87czdmlrd7.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004b374e05e50536b2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39729"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 30 14:51:19 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oHlw7-000A8y-Ob for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jul 2022 14:51:19 +0200 Original-Received: from localhost ([::1]:57864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHlw6-0001We-8P for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jul 2022 08:51:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHlvP-0000pa-9h for emacs-devel@gnu.org; Sat, 30 Jul 2022 08:50:35 -0400 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:46992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHlvN-0006B7-H3 for emacs-devel@gnu.org; Sat, 30 Jul 2022 08:50:35 -0400 Original-Received: by mail-pl1-x633.google.com with SMTP id p8so6719034plq.13 for ; Sat, 30 Jul 2022 05:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zibwBOb6/QKSSdRwx3g0gp0CGrLJUFlbZrKsBtqqr9Y=; b=NApE8dq3jmWUQ4ZP2BcLsAgjPRR6sWNSgEa7m4TO5RfDBJrR3KYJ9cjvkPatidrj5t vWGt8nCg3KEXEnOh8gQ/ZXzY8Dd0U+b0lhuL/KrI14LfJfWydbd2Bne4kSnJsesSdAFN GZkiFhWRGF9S/7s9OZG/U/VKRf+aJnpiFiKDHNcH9psC7unP0pkGsojTxQh4UHUuQBtL ZZ40P64oZgNiFkFcYwprka4t0YN96PIY8m8+p8cgqug9YAONWFXDR8WlxwJz3CqkrcCe KG0YrUkY2sylI2P0CH49JvvIJQaTyoVsCV/HzUfGLUyDyy2zPXh0YxcsC64bb05fONfM y6qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zibwBOb6/QKSSdRwx3g0gp0CGrLJUFlbZrKsBtqqr9Y=; b=eU75q/fyHzKy4+HR0Bo1CDw68hUXWlO0G7LW8ZZ5gse+CwxqfWvORwQQ8X2Vgt+L5e whC53409h7974J1eWmwESLzsBnbrSURNGNK1GqsWTILmyki2IB4QROJSXzGzuxd+xN1P UwSbmMPnqeRwQK08I+73gKOkvzczWaSNVd2JlzJOELFpL9XfySqwPAmHUjLAOc9aSZb7 9EhAIwOfKewNOPoxWB8Tgj+aHFssZkcpui5ZcAKtOFDS54TumdlG0zDFgsyDGyixjQLg TAJY5G5HodlUBtFXq5CzUlA5QcnG9EOWr6s29YGIfp+MXdyBq3wkPowYEy+T83uJHFYp DQyQ== X-Gm-Message-State: ACgBeo1dH4nbGBkOteEU9CTx4ENi3pXjPZtU5jeWJcxhhMhsJ7v037LJ y6WH6ad1nePP9I50/NXVXrrc323t8m3uO6NlvN0= X-Google-Smtp-Source: AA6agR4peSwp+ae/EnNDXsHLouaKRSWTc2mVigksh+1uwNUOiVcVx9mbCcnCQKEc9YHx8KR1NLEo9NZQ0+XgO/jrLEU= X-Received: by 2002:a17:902:e944:b0:16d:c804:93b0 with SMTP id b4-20020a170902e94400b0016dc80493b0mr8472675pll.121.1659185432047; Sat, 30 Jul 2022 05:50:32 -0700 (PDT) In-Reply-To: <87czdmlrd7.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=owinebar@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URI_DOTEDU=1.246 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292871 Archived-At: --0000000000004b374e05e50536b2 Content-Type: text/plain; charset="UTF-8" On Sat, Jul 30, 2022, 8:25 AM Po Lu wrote: > Lynn Winebarger writes: > > 4) Make a special read syntax for literal docstrings, e.g. #", and do > away with the weird context-sensitive semantics of ordinary string literals > altogether. > > > > Also, the test in read_literal_string should probably be for > "will_dump_p" rather than the purify flag, since it's the dumping that > prompts the deferral of docstring > > loading, not the identification of constants. > > > > Any preferences? > > None in particular, except that option 4 is unacceptable as it is not > compatible with older code, and is completely different from all other > Lisp implementations. > Not compatible in what sense? I'm not that familiar with lisp implementations - isn't Emacs's treatment of a leading escaped literal newline already completely different? Is there a typical use of #" as a reader macro? It's"undefined" according to https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node191.html Thanks, Lynn --0000000000004b374e05e50536b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Jul 30, 2022, 8:25 AM Po Lu <luangruo@yahoo.com= > wrote:
Lynn Winebarger <owinebar@gmail.com> writes:
> 4) Make a special read syntax for literal docstrings, e.g. #", an= d do away with the weird context-sensitive semantics of ordinary string lit= erals altogether.
>
> Also, the test in read_literal_string should probably be for "wil= l_dump_p" rather than the purify flag, since it's the dumping that= prompts the deferral of docstring
> loading, not the identification of constants.
>
> Any preferences?

None in particular, except that option 4 is unacceptable as it is not
compatible with older code, and is completely different from all other
Lisp implementations.

Not compatible in what sense?=C2=A0
I'm not that familiar with lisp implementations - isn't Emacs&= #39;s treatment of a leading escaped literal newline already completely dif= ferent?=C2=A0 Is there a typical use of #" as a reader macro?=C2=A0 It= 's"undefined" according to=C2=A0https://www.cs.cmu.edu/Groups/AI= /html/cltl/clm/node191.html

Thanks,
Lynn

--0000000000004b374e05e50536b2--