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#50959: 28.0.50; Shorthand symbols are unknown to Emacs Date: Sat, 2 Oct 2021 15:02:41 +0100 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Phil Sainty , 50959@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 02 16:03:17 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 1mWfbh-0009nm-Lh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 16:03:17 +0200 Original-Received: from localhost ([::1]:43076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWfbf-0004qr-Sm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 10:03:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43648) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWfbS-0004os-4x for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 10:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48570) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWfbR-0002hR-U4 for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 10:03:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWfbR-0003oj-QJ for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 10:03:01 -0400 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, 02 Oct 2021 14:03:01 +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.163318337714663 (code B ref 50959); Sat, 02 Oct 2021 14:03:01 +0000 Original-Received: (at 50959) by debbugs.gnu.org; 2 Oct 2021 14:02:57 +0000 Original-Received: from localhost ([127.0.0.1]:60116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWfbN-0003oR-BU for submit@debbugs.gnu.org; Sat, 02 Oct 2021 10:02:57 -0400 Original-Received: from mail-pg1-f176.google.com ([209.85.215.176]:34433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWfbM-0003oE-8R for 50959@debbugs.gnu.org; Sat, 02 Oct 2021 10:02:56 -0400 Original-Received: by mail-pg1-f176.google.com with SMTP id 133so12173227pgb.1 for <50959@debbugs.gnu.org>; Sat, 02 Oct 2021 07:02:56 -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:content-transfer-encoding; bh=gQDQQpaSPIsxlkbYrMQUnIwh2mNxU3x/mNdRRrXCJ+k=; b=ePFy2zmCsNhKXA059TlQ3ux6Wn2WEbUjJ7vOrHQHkyb90KuShA+OaDSdXaQNg8zBNy eDa4wy8/KfC2lrESHpBpHtE6FGp+8FUXTlzdIOE49gUcc4vLN5M6/dExvYCb6753UhCY qW30v7u++Q8cojuDxy80qSUJdyQhRrt4InLF2lV4ORLl7zuhNZjhZlq+s8OS1XWpmqvb 25EJWDB5qo1HESH8QY6Ki6M/0O7fVFpvjXkQ0nTzW+gMvFYPwime2Aww2hgjUPrh+xul rIe6IpN5+CEpdOiNTzQteMYyEPjczZ88hNlMVBe0Apy7boqbNNjrpn+CSXDBbokTmSkb VIyg== 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:content-transfer-encoding; bh=gQDQQpaSPIsxlkbYrMQUnIwh2mNxU3x/mNdRRrXCJ+k=; b=lmy8g5T+LOGNUzc6J4MEaUGGLnOb4WfB2s1Hs0zX8EPlP8ZK8P2HccaNhmV387edBY vyAdrnURHY8FKVwu2v3ZkSOdDfTRnePCt6BhjpgD28Z2O+/ZIBwYC/DA8yypu/UbxPdS QaRWvaHxGwEnDbU6mSOORxkpDbISPFzi+4TG5k1rhncz40qIcG9Jn33t6bzwwvcnwlPm SRafcBkr3dm9B50wIMndY4z/rfylRXFWR3Y7Dce+fHEbYpJhes4N4IVR0Np2IeCmTy0x vpp91fhQsdMMG24IN9mLQnR9mHsHB4ucYELgn591pYHWlqgzLSUyFrc0OWCBVsn7vZrY RdVg== X-Gm-Message-State: AOAM5319LDIb5u3PhViQ2DOeHBN4B9NtIGghAajGG2FI4T/0xSFVr04Z HpBN4Z285s77hSqgdFr8ifF6dyGVkNme6R7Y2CM= X-Google-Smtp-Source: ABdhPJxQHkypmzHHQttfr1+9mu2j62enPOqeHDllzAL/jyKza1qi+PvUqJKLfavurwzq8xoGmU4PI/gu4Di4mXrxVNw= X-Received: by 2002:a05:6a00:24d0:b0:448:29d1:518f with SMTP id d16-20020a056a0024d000b0044829d1518fmr16655669pfv.72.1633183370197; Sat, 02 Oct 2021 07:02:50 -0700 (PDT) In-Reply-To: <83r1d3boeh.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" Xref: news.gmane.io gmane.emacs.bugs:216152 Archived-At: On Sat, Oct 2, 2021 at 1:30 PM Eli Zaretskii wrote: > > > From: Jo=C3=A3o T=C3=A1vora > > Cc: psainty@orcon.net.nz, 50959@debbugs.gnu.org > > Date: Sat, 02 Oct 2021 12:54:13 +0100 > > > > 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 wel= l > > 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. Jo=C3=A3o