From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#59082: 28.2; Undocumented `intern-soft` feature with shorthands symbols Date: Sat, 12 Nov 2022 18:14:11 +0000 Message-ID: References: <875yfresq9.fsf@posteo.net> <831qq8ny2m.fsf@gnu.org> <87leog4018.fsf@posteo.net> <83o7tcm7ji.fsf@gnu.org> <83mt8wm5ai.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e101e905ed49f9c1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: thievol@posteo.net, 59082@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 12 19:15:08 2022 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 1otv23-0004VZ-M2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Nov 2022 19:15:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otv21-0008Gs-F6; Sat, 12 Nov 2022 13:15:05 -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 1otv1z-0008Cv-Jv for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 13:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otv1y-0000aX-Tc for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 13:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otv1y-00037P-JB for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 13:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 18:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59082 X-GNU-PR-Package: emacs Original-Received: via spool by 59082-submit@debbugs.gnu.org id=B59082.166827687211940 (code B ref 59082); Sat, 12 Nov 2022 18:15:02 +0000 Original-Received: (at 59082) by debbugs.gnu.org; 12 Nov 2022 18:14:32 +0000 Original-Received: from localhost ([127.0.0.1]:48995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otv1U-00036W-48 for submit@debbugs.gnu.org; Sat, 12 Nov 2022 13:14:32 -0500 Original-Received: from mail-oi1-f179.google.com ([209.85.167.179]:41920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otv1S-00036J-6I for 59082@debbugs.gnu.org; Sat, 12 Nov 2022 13:14:30 -0500 Original-Received: by mail-oi1-f179.google.com with SMTP id l127so7768254oia.8 for <59082@debbugs.gnu.org>; Sat, 12 Nov 2022 10:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Bi90fDC11VcXtFvLMRJUjLb+/WIQ4gEGyUwQoHHBF6M=; b=d2r6PkhzjkGfNFvW3KmnebyjY6vc5SYr0AkcHpRenYMcaBit9CU9BFOcHUY5Uzgs/f TCEA9WmCvmtnhQDI/AByqFr/der0nj1+uHpl/HmrTQcvfqYEiBs6+xrmY9b7epdhGGqI UmT8z7A5obui3//WFqprq7UXOzN1I/F0BKgWvYHPltJO25mkJlA5RC6Qf1jP7mavkuLP 9j+3+fqHAD/cHPUej4CWO4lkqEwFWM/yAlKp6TWB0OQ1tJ6ko8gPPcOFYHpZ+hTxRn3Y tYNL4X5nPj6m1kgnrgG2XjshSPrBf2EqVV3tw2XU01JTJkFR5EzQ35fVf8FiilOmbmqv oSDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bi90fDC11VcXtFvLMRJUjLb+/WIQ4gEGyUwQoHHBF6M=; b=qmRPVRN5eBd9710T1STYVeBTFmGf3atjvi2lssWaDZ57ZwTKVTGRgJD2973FpY0qN+ PwKoPIFnfq/HUqBE19LM1x6kLbStfTowxZiEN7qCijrBv8Gtfj7byZKmjJDfYmXnF59W /9tDEHlUHWNT3G3j2eYYbwr2XXRxoCWWergD45Q77OVEmUXl0F9yxVOMzdxz2+MQUwWI NKPyTTz+CvlKWUjD+VnEtUXdIyNYxclAm+o9eZZ6z/XQ2UYrRCmQyh8MpRw9mk68tPAY CUaa0KPkuan91JPNZvR//etXtQLqJ9h7mY5Gaqwxf3Sny98mZnGIQNyvy8UnN5kiZuMb mUiA== X-Gm-Message-State: ANoB5pmaf76TbSs+XGITx4BAHl8rgdQa3kBbnKKHELW0erQQSWcTc970 2LedjKxcHUhDEZwTrmzxACmrzDfXR3t+URZBqIU= X-Google-Smtp-Source: AA0mqf5rqrnO4iSuc9xe2wT+mUBwS1GWD6HmC0yMnGzF9Hpz92ZXYIlmmW0m5ID/b3l3CfaEsrRZdmoiJQRvCtWAcoU= X-Received: by 2002:aca:3b06:0:b0:359:ca6a:7fc0 with SMTP id i6-20020aca3b06000000b00359ca6a7fc0mr3168104oia.215.1668276864220; Sat, 12 Nov 2022 10:14:24 -0800 (PST) In-Reply-To: <83mt8wm5ai.fsf@gnu.org> 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:247681 Archived-At: --000000000000e101e905ed49f9c1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Nov 12, 2022, 17:49 Eli Zaretskii wrote: > > From: Jo=C3=A3o T=C3=A1vora > > Date: Sat, 12 Nov 2022 17:18:57 +0000 > > Cc: thievol@posteo.net, 59082@debbugs.gnu.org > > > > Of course. And for blue the programmer > Sorry, it probably didn't help that this "for blue" slipped in when typing on my phone. > If the docstring reader is ever enhanced, then maybe programmers can > refer to symbols there using > > shorthands. Until then, shorthands are Lisp-only. > > I don't understand this response. Are you saying that the problem > doesn't exist, or are you saying that you just don't care? Or are you > saying something else? > I understand. I'm saying docstrings are outside the functional scope of shorthands, so you should just use longhand there for now. Same as you must use in M-x and other "global" contexts. Because shorthands are not new names for symbols. But I'm also saying that, perhaps, for the particular case of docstrings, which are inherently file-local constructs, the "docstring reader", whenever it lives, could be enhanced to allow shorthands, too. So the intermediate representation of the docstring mini-language could understand that the text x-foo actually references the symbol xeno-foo. And then C-h f would display the true symbol name as it usually does. But this would basically be a new feature, not strictly necessary to enable the things that shorthands are originally designed for. But convenient, for sure. Jo=C3=A3o > --000000000000e101e905ed49f9c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Nov 12, 2022, 17:49 Eli Zaretskii <eliz@gnu.org> w= rote:
> From: Jo=C3=A3o T=C3=A1v= ora <joaotavora@gmail.com>
> Date: Sat, 12 Nov 2022 17:18:57 +0000
> Cc: thievol@posteo.net, 59082@debbugs.gnu= .org
>
> Of course. And for blue the programmer=C2=A0

Sorry, it probably didn= 9;t help that this "for blue" slipped in when typing on my phone.=

> If the docstring reader is ever enhanced, then maybe programmers can r= efer to symbols there using
> shorthands. Until then, shorthands are Lisp-only.

I don't understand this response.=C2=A0 Are you saying that the problem=
doesn't exist, or are you saying that you just don't care?=C2=A0 Or= are you
saying something else?

I understand. I'm saying docstrings are outside t= he functional scope of shorthands, so you should just use longhand there fo= r now. Same as you must use in M-x and other "global" contexts. B= ecause shorthands are not new names for symbols.
But I'm also saying that, perhaps, for the par= ticular case of docstrings, which are inherently file-local constructs, the= "docstring reader", whenever it lives, could be enhanced to allo= w shorthands, too. So the intermediate representation of the=C2=A0 docstrin= g mini-language could understand that the text x-foo actually references th= e symbol xeno-foo. And then C-h f would display the true symbol name as it = usually does.

But this w= ould basically be a new feature, not strictly necessary to enable the thing= s that shorthands are originally designed for. But convenient, for sure.

Jo=C3=A3o
--000000000000e101e905ed49f9c1--