From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Newsgroups: gmane.emacs.help Subject: Re: File for minor mode not found Date: Mon, 10 Jan 2022 19:09:27 +0100 Message-ID: References: <878rvpeyek.fsf@gmx.net-MszOZsb----2> <874k6cgap3.fsf@gmx.net-MszaWDg----2> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Uh6T3RJ1D/oD1ZFP" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23337"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: fatiparty@tutanota.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 10 19:14:08 2022 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 1n6zBH-0005tG-HA for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 19:14:07 +0100 Original-Received: from localhost ([::1]:33378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6zBG-0003Wz-G2 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 13:14:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6z6s-0005Pu-Vf for help-gnu-emacs@gnu.org; Mon, 10 Jan 2022 13:09:35 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:36220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6z6p-0000Uu-Qq for help-gnu-emacs@gnu.org; Mon, 10 Jan 2022 13:09:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2IgNIaDV3sKfQN5z6nmRVBNfDgHtfSjqx0zPgjOejok=; b=JnP4t1IASlq72q7FX7n63YnRfO z4MB5/GzUNW0dHZ7OzZiAoxtngo7ejpnk8zo8wBvZvro52nxPXFeE5vGoTDt3xxScA7eUbljJ+IaC nAV/AfGTtbsyV9G7WvGsd+9gu7wEk75YXDIB9XgLBNN5LGtVZF716RFf6E+2uB5e6uX+yP9yteo+c gzA6pSbPwDg9/39wgFB642otlwehSw5g8gIH26Dd/3vltd9hDheOI8A6S6ZGjZC4u0yMXe290GC44 GF6ppJXFJz1SJCmVaJ28kx9UIbGGXYeqfWUJWItlWzmbjqDxH0pWR7uVA2GFKUysPXe5L7b0m5psi OidSqKJQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1n6z6l-000625-HU; Mon, 10 Jan 2022 19:09:27 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-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" Xref: news.gmane.io gmane.emacs.help:135189 Archived-At: --Uh6T3RJ1D/oD1ZFP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 10, 2022 at 01:19:55PM +0100, fatiparty@tutanota.com wrote: > Jan 9, 2022, 22:10 by tomas@tuxteam.de: [...] > > Well, typically some prefix of the path element has a significance. Say, > > for example "~/Admin/bin/gadi-1.0" be gadi-files or so. That's the way I > > usually do it. > > > > Bonus points: you only get to change one when that changes :-) > > > That is correct.=C2=A0 Would one use setq or something buffer local.=C2= =A0 How would.=C2=A0=20 > for instance, gadi-files be constructed? This is a matter of style and taste -- and can vary a lot. If there is just one place where you do it (quite possible) then I wouldn't even bother (someone else might, though). And actually, I would try to keep it that way. But if I found myself doing `(add-to-list 'load-path "~/Admin/bin/gadi-1.0/= =2E..")', I'd be tempted to do something along these lines: (defvar my-gadi-basedir "~/Admin/bin/gadi-1.0" "the base dir for gadi programs") (defun my-gadi-add-to-load-path (dir) (add-to-list 'load-path (file-name-concat my-gadi-basedir dir) and then: (my-gadi-add-to-load-path "typex/ziggurat-protowrit/daph-ideograms") I'm assuming that your "package prefix" is `my-gadi'. It is, of course, a judgement call whether or when this extra complication is worth the hassle. And there are (at least) 43 other ways to skin that cat. Besides, my choice of the split point for -basedir is just based on a very inexact feeling: you have more details. So take this just as a rough sketch for inspiration. Cheers --=20 t --Uh6T3RJ1D/oD1ZFP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYdx2UQAKCRAFyCz1etHa RhB8AJ9XcbXgePml0X2GL5tDGHo2VFmDMQCfXCySjDQPLUXO14JI3iOFnYBqi3g= =Hqvb -----END PGP SIGNATURE----- --Uh6T3RJ1D/oD1ZFP--