From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fatiparty--- via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: File for minor mode not found Date: Tue, 11 Jan 2022 01:23:34 +0100 (CET) Message-ID: References: <878rvpeyek.fsf@gmx.net-MszOZsb----2> <874k6cgap3.fsf@gmx.net-MszaWDg----2> Reply-To: fatiparty@tutanota.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="36520"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Tomas Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 11 01:24:04 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 1n74xG-0009Eo-LK for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 01:24:02 +0100 Original-Received: from localhost ([::1]:48950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n74xE-0008WK-MY for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 19:24:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n74ws-0008W9-9x for help-gnu-emacs@gnu.org; Mon, 10 Jan 2022 19:23:38 -0500 Original-Received: from w1.tutanota.de ([81.3.6.162]:55754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n74wq-0007Uo-Ec for help-gnu-emacs@gnu.org; Mon, 10 Jan 2022 19:23:38 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 2A8E3FA0921; Tue, 11 Jan 2022 00:23:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641860614; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=60GyTLlWYR/Ycl9Wqr/hhmfMy/UP38/2+VKRY6PjHeY=; b=2IVzheP6LV8dcEAomHzgWhBLRJXv5gwbZ3MCwd47194J6YQjuKI0KHGycoQ694wd ++eBPICY+IxpkhJ8Rrlzn77Xf1Zpcd/cKc6bPDVyAePvIQZEOdsELBISSeUx1Saofi/ mI6NgU3QLL9qLbH8Yugi3W4y1sQetRtgav6we0gWsS9Heaomrsg7XPVxsj0w237g+W5 F+by99Sq3017MZZHaSCIVHQinDVE9tKJQqYuNRR8nEdM2vGO2E3Yzxgw8y3kkyH5DIn deFvSLfGPfILCxQr+F5YgNCQMOmaJNbUdVgozlrBFsiITEcxekdQrwphvbK553ck5Vb Uqy6V0WzpQ== In-Reply-To: Received-SPF: pass client-ip=81.3.6.162; envelope-from=fatiparty@tutanota.com; helo=w1.tutanota.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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:135191 Archived-At: Jan 10, 2022, 18:09 by tomas@tuxteam.de: > 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. Sa= y, >> > 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/...")', > 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) > With file-name-concat, I get=20 Symbol's function definition is void: file-name-concat I am using GNU Emacs 27.2 of 2021-09-28 > 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 >