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: Sun, 9 Jan 2022 23:10:54 +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="o2IdS5MLb4NaCEeJ" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40938"; 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 Sun Jan 09 23:11:27 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 1n6gPO-000AUG-SL for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 23:11:26 +0100 Original-Received: from localhost ([::1]:54524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6gPN-0005Zg-RC for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 17:11:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6gOx-0005Yr-Kj for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 17:10:59 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:36196) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6gOv-0005bm-IT for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 17:10:59 -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=6biP7yGGnmtiRv3vPp9JRGkAgGN2g4IUMG5ZTsXylp0=; b=XYdp1fnJLWYj0exeda0KwLWyNS 8d1B8HfHWjC3P1OIWzEYSdlZrrx830wK+uzUh/0eHJ97Ju5cNMMMeHZnZH2Kb/SKVYKzC+JbhNbDE nl2g3E0Xjv/gWUq7Lk2jZSmb5erFv2rlPpGvvriG6WhVB51boXn38beU9tLATVsCpiiimgjHc/Biz tycQ8fTL7PH7U2YODGskQP6P5+CDqf8I9Pe0agLLZCTpUkE7Tqfw2VRsF81FeG57FoygXxon5To7b Wm/nygg8STQogDFQXuU0pUGQx1Ybrn9c5CPO/M8g7+ensCRXLpfGivmFotD6g/xmqxy0pS07Yep+9 dTCT9p5g==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1n6gOs-00030q-Qw; Sun, 09 Jan 2022 23:10:54 +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:135163 Archived-At: --o2IdS5MLb4NaCEeJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 09, 2022 at 10:49:58PM +0100, fatiparty@tutanota.com wrote: >=20 > Jan 9, 2022, 16:50 by tomas@tuxteam.de: [...] > >> test.el > >> *******=20 > >> =C2=A0 (add-to-list > >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 'load-path "~/Admin/bin/gadi-1.0/typex/= ziggurat-protowrit/daph-ideograms") > >> =C2=A0=C2=A0 ;; Load the Daph Package if it has not already been loade= d. > >> =C2=A0=C2=A0 (require 'daph "daph-ideograms") > >> > >> -------- > >> > >> My load path is quite long, and wonder how this can be shortened by st= oring in some other variable > >> before passing to 'add-to-list'. > >> > > > > I don't quite understand your last sentence. What is it you are trying > > to shorten -- and how? > > > I want to keep within 72 characters on the line.=C2=A0 I could store the = first part=C2=A0=20 > '~/Admin/bin/gadi-1.0/typex/ziggurat-protowrit/' in some variable, and f= ind some > way to add the complete path for 'add-to-list'. Ah -- it's about the (string) length of that path element, not about the (list) length of the whole load-path. 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 :-) Cheers --=20 t --o2IdS5MLb4NaCEeJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYdtdaAAKCRAFyCz1etHa RhP7AJ9XNh0ZahHx3J5Y76pSIobDWexWvwCeOKATwJDejYX3zASbt03p2VA5QkA= =0MRH -----END PGP SIGNATURE----- --o2IdS5MLb4NaCEeJ--