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, 02 Oct 2021 12:54:13 +0100 Message-ID: <8735pj3amy.fsf@gmail.com> 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> 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="921"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: psainty@orcon.net.nz, 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 13:55:13 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 1mWdbk-000AWe-7b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 13:55:12 +0200 Original-Received: from localhost ([::1]:43836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWdbi-0002WQ-7G for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 07:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWdba-0002Tp-B9 for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 07:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46584) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWdba-000862-36 for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 07:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWdba-0008Kx-1Q for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2021 07:55:02 -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 11:55: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.163317566031989 (code B ref 50959); Sat, 02 Oct 2021 11:55:01 +0000 Original-Received: (at 50959) by debbugs.gnu.org; 2 Oct 2021 11:54:20 +0000 Original-Received: from localhost ([127.0.0.1]:58129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWdat-0008Jt-SR for submit@debbugs.gnu.org; Sat, 02 Oct 2021 07:54:20 -0400 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:50987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWdas-0008Jc-56 for 50959@debbugs.gnu.org; Sat, 02 Oct 2021 07:54:18 -0400 Original-Received: by mail-wm1-f44.google.com with SMTP id j27so9137109wms.0 for <50959@debbugs.gnu.org>; Sat, 02 Oct 2021 04:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=F/HJRitYemS7Fg5YDXYVIV+qHtWQ7AhSmWSIVxJkaMY=; b=B7l/GQH/qVpuit1P4TP1dPC4+5WztK2RlQKxrIIi7amBiH+asDpPVncJ2VJAZzwmq9 a+XsZEz1oCoEtCECAiN7EbP022nJA3WB7eFCxER61SVJIOazU8btc6Ju72ySPVMhsTmh OOmLg7d0c8VDpk4Nmbo1kP1Fl4CJeedTFoQi5q1Alme7vVoSBg2SoRUfYnTR7MK/ktmF gi5P7D6uXWtEL+yz5H12BRtIghHfRzvPSUNA7MIwKcR8OqT8+RT/9FcKUYynYO6DTUh6 fHzTopLVffNaAMmOfpRMjBszaethR7XafKw8Mx0E3JuMNZER+w4AIRmxpoZFSc2N4NLs p7yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=F/HJRitYemS7Fg5YDXYVIV+qHtWQ7AhSmWSIVxJkaMY=; b=fH2ZhUam09Oy69mYfGf911IijGF4OvkqGHWI3cUbjhCre8EIHHpMnfOcCvfVzLBg8J 6Hd4BP8uBk5EzGdId51gM9W5Ghl4wzCHsBg7qArh0dd/CBqeaDpboTsebcvhltZ1i9pJ 6ZAZqZhlQIQEfRRjq9UugKINnVBD+BknA/mi4/bLzlvX883oKXbAznlG3EosHY4Ti7rq 79M9nPwRy8ZdU0+znaVoqhVbAhhFLeJ5Vy41UfMThz1eWFaLnW5fDXTx/SDJIS9sQJq9 X3H9x2FS4Gk/E7NNHOBVgAjKWcVxC3FNLasvl3INvGvbM5r0XxTC50YtVh9AJvEiSuH1 FybQ== X-Gm-Message-State: AOAM532R/4F69uzr1B9nMjJdBXVcyI3L8uiemtOLC6iAUCVJ7VzfTW6n X5V1msuB6kw6lq6VumgxT+KiL6a5yOg= X-Google-Smtp-Source: ABdhPJx1DSzrMNY7wVMbbzPpGM7SBmBpB9QRAJOMkW3mAri8NpEm9QlV2PqrRje2wPBDiuUsCREQIw== X-Received: by 2002:a05:600c:4f12:: with SMTP id l18mr9201927wmq.156.1633175652146; Sat, 02 Oct 2021 04:54:12 -0700 (PDT) Original-Received: from krug ([87.196.156.235]) by smtp.gmail.com with ESMTPSA id v6sm491739wrd.71.2021.10.02.04.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 04:54:11 -0700 (PDT) In-Reply-To: <87mtnr3chk.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sat, 02 Oct 2021 12:14:15 +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:216132 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > Eli Zaretskii writes: >> Would it be possible to see if the current buffer (from which the >> minibuffer was entered) has shorthands, and if so, apply them to >> minibuffer input? > > Yes, much like it is done with C-M-i, basically. Let me improve on that. That it _can_ be done doesn't mean that it _should_ be done, but we can decide on that. There are various levels to this integration: 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. In levels 2 and 3 the user might be surprised that what once worked for one 'C-h o' session no longer works for another 'C-h o' session. The only way I can see this being acceptable is if the user is somehow made aware -- visually or otherwise -- that the list she is seeing is somehow connected to the origin buffer. In contrast, C-M-i (where level 3 happens) never really leaves the buffer: its results are connected to it because they will be inserted there. Jo=C3=A3o