From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: Re: A read-based grep-like for symbols (el-search?) (was Do shorthands break basic tooling (tags, grep, etc)? (was Re: Shorthands have landed on master)) Date: Sat, 02 Oct 2021 03:39:22 -0500 Message-ID: <87ilyfq0qt.fsf@alphapapa.net> References: <25d8d72022b571db5291@heytings.org> <87h7e2xsl5.fsf@gmail.com> <25d8d72022e1ea7ed022@heytings.org> <87fstl7lzw.fsf@web.de> <87a6jt7ilx.fsf@web.de> <87fstlzlaq.fsf@gmail.com> <20211001070242.GC16352@tuxteam.de> <8735pk5i3j.fsf@gmail.com> <8fc4f254-5dc0-f3c0-7a72-c217b154438a@yandex.ru> <87sfxk41w0.fsf@gmail.com> 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="20868"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 02 10:41:14 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 1mWaa2-0005JJ-PZ for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Oct 2021 10:41:14 +0200 Original-Received: from localhost ([::1]:56846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWaa1-0002oe-AE for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Oct 2021 04:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWaYv-0001xH-Fm for emacs-devel@gnu.org; Sat, 02 Oct 2021 04:40:05 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:59664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWaYu-0000RM-2U for emacs-devel@gnu.org; Sat, 02 Oct 2021 04:40:05 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mWaYs-0003qz-Fi for emacs-devel@gnu.org; Sat, 02 Oct 2021 10:40:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:276054 Archived-At: João Távora writes: >> I think the "private" symbols are largely irrelevant to this >> discussion. Unless people really are (?) going to use shorthands for >> them. > > I would. In fact, I would use them _prominently_ for private symbols, > which are the vast majority of symbols I write and precisely where I > feel most pain. eglot--this, eglot--that, eglot-test--foo. For > definitions of external symbols, like '(defun eglot-super-important-bit > () )' I would _not_ use them, precisely to safeguard answering some > basic questions with "grep". Yes, I'd also like to use them within a package. For example, in org-super-agenda.el, rather than "org-super-agenda-this" and "org-super-agenda--that", it would be nice to be able to write something like "osa-this" and "osa--that" (or, if I wanted to be cute, something like "~/this" and "~/-that", since some kind of prefix is still required).