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: Sun, 9 Jan 2022 22:49:58 +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="27539"; 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 Sun Jan 09 22:51:50 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 1n6g6Q-0006y5-K7 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 22:51:50 +0100 Original-Received: from localhost ([::1]:45412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6g6P-0006FQ-2r for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 16:51:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6g4g-0006FI-7t for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 16:50:02 -0500 Original-Received: from w1.tutanota.de ([81.3.6.162]:38488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6g4e-0002rf-8S for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 16:50:01 -0500 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id B316CFBF5A1; Sun, 9 Jan 2022 21:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641764998; 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=AakFn/bE+w3n2M6kKIX9U12sjvTrJ0STQQXP6eg4XqA=; b=wqb0HMvjaWaBc94V4hfzgSYKBznNnWSFnevEPkUIyj7U93iTJZHuXxnVyN4Qxifc AIF9AgYhFihHqtacRGf6ha8IHt2WH6Fisr4mFrwv6GpP5NFaXeiwmqHyXxNCfJx9hYQ 3TnQ44J8Yhh7caESivW5PjU4zCWi5gowccZhRZbWgTyRQj7N1foDsuwLPH0jNSgFDxb szQ8HyCK3t4lIIXnF7lsl66WWxqS7xR5s7bka+oxSMz9I4Y7AhvGBVsGIk5m6bHXYON z2KR14i2nnq85VURQc5Jd0hc623BX+Blsnx8p86TvxN3EYxfHjrK/IqxWIIRk5IRari wh+oSzM+Iw== 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.01, RCVD_IN_MSPIKE_WL=-0.01, 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:135162 Archived-At: Jan 9, 2022, 16:50 by tomas@tuxteam.de: > On Sun, Jan 09, 2022 at 05:37:49PM +0100, fatiparty--- via Users list for= the GNU Emacs text editor wrote: > > [...] > >> I have difficulty about the utility of 'provide'.=C2=A0 You have pointed= out that (provide 'daph) >> simply announces that daph is a feature of the current emacs.=C2=A0 Can = it be any name?=C2=A0 The=20 >> manual states that "calling 'provide' adds 'feature' tothe front of 'fea= tures' if it is not already >> in that list".=C2=A0 This suggests that provide should also use=C2=A0 (= provide 'daph-ideograms).=C2=A0 >> > > That depends on how you want to call your feature. Note that once a > feature is `provide'd, a `require' of that feature does nothing. Quoting > from the docs: > > require is a built-in function in =E2=80=98C source code=E2=80=99. > > (require FEATURE &optional FILENAME NOERROR) > > If feature FEATURE is not loaded, load it from FILENAME. > If FEATURE is not a member of the list =E2=80=98features=E2=80=99, then = the > feature is not loaded; so load the file FILENAME. > >> I guess that one could define the feature as 'daph' when using 'provide'= .=C2=A0 And use the feature 'daph' >> when calling 'require'.=C2=A0 In this way, the 'daph' will be recognise = the 'daph' feature in the features variable, >> but use the optional filename "daph-ideograms" >> > > Yes, that'd be a way to do it (in theory you could have one file > providing several features, for example). > >> Thus >> >> daph-ideograms.el >> ********************** >> =C2=A0 (provide 'daph) >> >> 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/zi= ggurat-protowrit/daph-ideograms") >> =C2=A0=C2=A0 ;; Load the Daph Package if it has not already been loaded. >> =C2=A0=C2=A0 (require 'daph "daph-ideograms") >> >> -------- >> >> My load path is quite long, and wonder how this can be shortened by stor= ing 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 fi= rst part=C2=A0=20 '~/Admin/bin/gadi-1.0/typex/ziggurat-protowrit/' in some variable, and fin= d some way to add the complete path for 'add-to-list'. > Cheers > --=20 > t >