From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Do shorthands break basic tooling (tags, grep, etc)? (was Re: Shorthands have landed on master) Date: Sun, 03 Oct 2021 20:12:50 -0400 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> <871r534s2o.fsf@gmail.com> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2532"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, acm@muc.de, eliz@gnu.org, emacs-devel@gnu.org To: =?iso-8859-1?Q?Jo=C3=A3o_T=C3=A1vora?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 04 02:14:24 2021 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 1mXBcd-0000R2-Hz for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Oct 2021 02:14:23 +0200 Original-Received: from localhost ([::1]:59264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXBcb-00064A-SF for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Oct 2021 20:14:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXBbA-0005MC-If for emacs-devel@gnu.org; Sun, 03 Oct 2021 20:12:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59916) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXBb9-0000CY-3d; Sun, 03 Oct 2021 20:12:51 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1mXBb8-0004sn-0H; Sun, 03 Oct 2021 20:12:50 -0400 In-Reply-To: <871r534s2o.fsf@gmail.com> (message from =?iso-8859-1?Q?Jo=C3?= =?iso-8859-1?Q?=A3o_T=C3=A1vora?= on Sat, 02 Oct 2021 11:52:15 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:276140 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > The name the user sees is "s-foo". > > > > The name known to Emacs is "string-library-foo" (or whatever). > > > > The user types "C-h o s-foo RET" and Emacs says "no match". > That's only when the user types that in the minibuffer and doesn't > associate in any way to the buffer where you set up that particular > shorthand (remember, shorthands aren't global: that's the point). Much > like if I type 'import foo as bar' in my Python of JavaScript program > and then go search for 'bar' I don't get the results for 'foo'. This is the intentional behavior: to avoid putting `s-foo' in the global Emacs Lisp namespace. It will be available in those programs which do (require 's). Other programs will be able to use `s-foo' for some other meaning and there will be no conflict. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)