From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.help Subject: overlapping shorthands Date: Mon, 24 Jun 2024 13:28:19 -0800 Message-ID: <87h6dini8c.fsf@librehacker.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="31701"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Mailing List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 24 23:30:08 2024 Return-path: Envelope-to: geh-help-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 1sLrGK-00080H-5R for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 24 Jun 2024 23:30:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLrEm-0006w4-5s; Mon, 24 Jun 2024 17:28:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLrEk-0006he-Jl for help-gnu-emacs@gnu.org; Mon, 24 Jun 2024 17:28:30 -0400 Original-Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLrEi-00072l-Mc for help-gnu-emacs@gnu.org; Mon, 24 Jun 2024 17:28:30 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 3E40320D136A for ; Mon, 24 Jun 2024 23:28:26 +0200 (CEST) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20240523; t=1719264503; x=1721078904; bh=XYT/kKVJYnWTsOVDRW6w7cDBIWiulj8G6ZD0veRNd6Q=; b=ORVVbfYiQtfE fig1PhN144Qh/X1dBkaC9pVfnHyw4pwnYCRk1F8YwVOqttBymjOl6BkIHDzc5H8i Yv6JbyLwj05Lz/XjbzREXNd50Jw5BYF4CFtEQwVL74SszYO/5f6sULPpu4Fa+llo e3V3oljulvrnUKAImEXcu/RbARgo2rr3DQexeHXjGI8LY6Z3f0h6DHsOqzlgdRiT 6VwtSBSk4SP4QDZlU2PNkUXtuMvfnLDQ4yL5Tka3AeYIjbER6syf41SguD7Cb3jG U2FR9KCItx4lR5ZarLMvR2LZqmTatZqdVNSF9hi7TOkfqqFK1mB7PdSQDyfI8s54 yyXc+39IMw== X-Virus-Scanned: amavis at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id rfJj8SLTmEC6 for ; Mon, 24 Jun 2024 23:28:23 +0200 (CEST) Original-Received: from int-mx009.mykolab.com (unknown [10.9.13.9]) by mx.kolabnow.com (Postfix) with ESMTPS id 50FA420D1348 for ; Mon, 24 Jun 2024 23:28:22 +0200 (CEST) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx009.mykolab.com (Postfix) with ESMTPS id 478FB21F0917 for ; Mon, 24 Jun 2024 23:28:22 +0200 (CEST) Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146987 Archived-At: Hi, shorthands seem very handy, but I was wondering if it was possible to d= o overlapping prefixes, like so: ;; read-symbol-shorthands: (("c/fd/" "celest/fractional-day/") ("c/" . "cel= est/")) But this does not seem to work the way I hope. One part confusing me is tha= t Emacs always applies the "c/" rule and not the "c/fd/" rule, regardless o= f which order the shorthands are given in. Curious if somebody has more ins= ight on this. I didn't see any related discussion in the manual regarding t= his question. --=20 =F0=9F=93=9B Christopher Howard =F0=9F=9A=80 gemini://gem.librehacker.com =F0=9F=8C=90 http://gem.librehacker.com =D7=91=D7=A8=D7=90=D7=A9=D7=99=D7=AA =D7=91=D7=A8=D7=90 =D7=90=D7=9C=D7=94= =D7=99=D7=9D =D7=90=D7=AA =D7=94=D7=A9=D7=9E=D7=99=D7=9D =D7=95=D7=90=D7=AA= =D7=94=D7=90=D7=A8=D7=A5