From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#50959: 28.0.50; Shorthand symbols are unknown to Emacs Date: Sat, 02 Oct 2021 17:20:42 +0300 Message-ID: <83ilyfbj9h.fsf@gnu.org> References: <16338bdc2497fc51c6fb6d54ab370bfb@webmail.orcon.net.nz> <831r59kyhf.fsf@gnu.org> <834ka4k15m.fsf@gnu.org> <83y27gijmz.fsf@gnu.org> <8335pmgnjy.fsf@gnu.org> <604da2cb10ac61f2b8b89a02c89056be@webmail.orcon.net.nz> <83a6jtff87.fsf@gnu.org> <5ac7a31cf2959c31c262a3377c736a5a@webmail.orcon.net.nz> <83ilygew7p.fsf@gnu.org> <83fstjdiwl.fsf@gnu.org> <837devdcz0.fsf@gnu.org> <93767e0236e7e85d27186293e38d3d25@webmail.orcon.net.nz> <8335pjd974.fsf@gnu.org> <87v92f3d15.fsf@gmail.com> <83y27bbs4d.fsf@gnu.org> <87mtnr3chk.fsf@gmail.com> <8735pj3amy.fsf@gmail.com> <83r1d3boeh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7700"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, 50959@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 02 16:22:28 2021 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 1mWfuF-0001rH-JI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 16:22:27 +0200 Original-Received: from localhost ([::1]:39986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWfuE-0005sl-Ix for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 10:22:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWftr-0005qE-2q for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 10:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWftq-0007xG-7H for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 10:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWftq-0004Kz-3g for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 10:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Oct 2021 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50959 X-GNU-PR-Package: emacs Original-Received: via spool by 50959-submit@debbugs.gnu.org id=B50959.163318446616604 (code B ref 50959); Sat, 02 Oct 2021 14:22:02 +0000 Original-Received: (at 50959) by debbugs.gnu.org; 2 Oct 2021 14:21:06 +0000 Original-Received: from localhost ([127.0.0.1]:60175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWfsw-0004Jj-02 for submit@debbugs.gnu.org; Sat, 02 Oct 2021 10:21:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWfst-0004IT-JJ for 50959@debbugs.gnu.org; Sat, 02 Oct 2021 10:21:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53878) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWfsn-00077N-Ee; Sat, 02 Oct 2021 10:20:57 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1416 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWfsn-0005G2-1O; Sat, 02 Oct 2021 10:20:57 -0400 In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Sat, 2 Oct 2021 15:02:41 +0100) 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" Xref: news.gmane.io gmane.emacs.bugs:216158 Archived-At: > From: João Távora > Date: Sat, 2 Oct 2021 15:02:41 +0100 > Cc: Phil Sainty , 50959@debbugs.gnu.org > > > > 0. no integration > > > > > > 1. This is the current integration. I.e. when C-h o is pressed on the > > > symbol the global name is discovered and used as the default. This > > > is how SLIME work with CL's namespacing system. SLIME is a very well > > > tested and widely appreciated Common Lisp IDE for Emcas. > > > > > > 2. The shorthands from the buffer where the minibuffer was entered are > > > _not_ in the completions list, but typing one of them interns the > > > symbol with those shorthands present, so you get the desired result. > > > This would fix Phil's visually-copy-and-type scenario. > > > > > > 3. (Eli's suggestion): the completion list would be augmented with the > > > shorthands from the buffer where the minibuffer was entered from. > > > > Are 2 and 3 significantly different (from the implementation POV)? > > I think so. > > I think 2 can be achieved by setting elisp-shorthands buffer-locally > in the minibuffer and removing the "require-match" flag requirement to > whatever completing-read call happens there. > > 3 is achieved by calculating the list of completions using > 'elisp--completion-local-symbols` and then filtering it down as usual. > "require-match" is kept untouched. You are saying that 3 is easier than 2? Then I think we should do 3, as it's better from the user's POV, right?