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: Help sought understanding shorthands wrt modules/packages Date: Sat, 05 Nov 2022 12:49:27 -0400 Message-ID: References: <25a8a3a6-81c8-3fbc-434d-fb1b24ae1d62@gmail.com> <83cza48lxe.fsf@gnu.org> 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="13812"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 05 17:50:06 2022 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 1orMMw-0003MO-2b for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Nov 2022 17:50:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orMML-0000hc-Ht; Sat, 05 Nov 2022 12:49:29 -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 1orMMK-0000hG-MZ for emacs-devel@gnu.org; Sat, 05 Nov 2022 12:49:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orMMJ-0003aN-PA; Sat, 05 Nov 2022 12:49:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=oK011r9bP2o57mECuR+OkCSxv4gSl1HOVvYgq0Ig+38=; b=OtGNKc3AAAPW SL7JQ31W7rDgr7eS/mXRA2c/EacoUxhQNpEYAJWXV8ESUk4Q3kAVygJHWYK9BZP5MeAb/4ZX9hnTm dx4q6+KHirH9w1ekvqG3pZ7B6JWIf3dvw5dgxVg0TgX78TfQv8zZ2Q74DPNSBMwwVTrS/meQTmK9u 6U7gsyzBoczKnS9gaLMHEhCpBpvj/PnSil861dEjUEyoIVGBiaZhV39MNm9WO4H8dCexe15rYEeAe wHQyTRgMmb73oP5/pV44AX+MypxqZiAVm3TRVymD4PE8Lgx4Nvgw/CUQ6umMIwGTweziLVXS2PFPo AbDF+NHc0b1aNmIUyo8IGw==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1orMMJ-0002Hw-5C; Sat, 05 Nov 2022 12:49:27 -0400 In-Reply-To: <83cza48lxe.fsf@gnu.org> (message from Eli Zaretskii on Thu, 03 Nov 2022 10:46:53 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299219 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. ]]] > Please do test it, but in any case please don't install before the > emacs-29 release branch is cut. This change is significant enough to > not risk it for the upcoming release of Emacs 29. That is unreasonable. People have been installing very large changes just lately. This is an added small feature that won't affect any code unless it explicitly uses this, which currently nothing does. Since it finishes an existing feature and makes it usable for the most important case, we should definitely install it before Emacs 29. I now have tested it -- a simple case now works. If someone tells me how to install the s package from NonGNU ELPA, I could test that too. (I have never installed anything from ELPA.) I wrote text for etc/NEWS: ** Shorthands for loading a file can be specified from "outside". The new function `load-with-shorthands' loads a file and specifies additional shorthands for reading it. I wrote this simple interface function in shorthands.el. (defun load-with-shorthands (file add-shorthands) "Load FILE adding the additional shorthands in ADD-SHORTHANDS. ADD-SHORTHANDS should be an alist of symbol renamings to apply when loading FILE; see Info node `(elisp)Shorthands' for more details. These shorthands act before the shorthands specified in the file itself." (load file nil nil nil nil add-shorthands)) -- 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)