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 16:56:27 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Sx2AagY39VBVEzkm" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23773"; 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 16:57:10 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 1n6aZC-0005yw-PP for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 16:57:10 +0100 Original-Received: from localhost ([::1]:37578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6aZA-0002Rs-Rz for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 10:57:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6aYb-0002Pd-1l for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 10:56:33 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:36180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6aYZ-00041I-66 for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 10:56:32 -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=5RBvC9CfvFsC8aUSfgcKUhn0VoT+CDgG2TVS+R2Jrgo=; b=c56tNoZAxH5pp0n2FItrqFevoM Y7tIUquJMzP3wVrtMywi0jxc2dmnG6MWHUjPx5FfEV3IzdwKNStwEA1hWzZX0LH6AxjeIniK0m0ql TymUPjHZXSj4O8ku0OipyUnKaxGN1feYolj4M8D/X9rkRC3vg8oA57cdyD/+JMNh1MTiP1ojXH7V+ TaWPHn6i6qOERdulqbeAHEKjFhtIur0UEmlkzMZYD5rK/xQK0ebVSyKWxGOtn/IhE/ggm2YJUbfBX Q3fbNWpxAbgjOHAVe3VUhgLfVH3fRuFOACQaJKumU95FpAiO4OoRSdqUeHBEFXcw28LDagCCO0vPR 5bt8XuuQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1n6aYW-00026o-09; Sun, 09 Jan 2022 16:56:28 +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:135154 Archived-At: --Sx2AagY39VBVEzkm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 09, 2022 at 03:43:42PM +0100, fatiparty@tutanota.com wrote: [...] > > This is looking for a file "daph.el" (after looking for a "daph.elc") > > somewhere in `load-path'. Does that exist? > > > > Sorry for asking something which might be obvious, but your question > > doesn't make it completely clear. > > >=20 > It does not exist.=C2=A0 The file is named daph-ideograms.el but I am usi= ng=20 > (provide 'daph) at the end of the file.=C2=A0 And using (require 'daph) a= fter=20 > setting the load-path in another file. Ah, no. That's not how it works: Emacs won't look into all files to find which one `provides' daph. It looks for whatever file called "daph.elc" or "daph.el" which comes first in its search path. So you better call your file "daph.el" (or alternatively you call your feature "daph-ideograms", as you prefer). (The "provide" at the end of your file is doing a slightly different job: it is confirming that, indeed, the feature is present now: the file's loading could, for example, fail). Cheers --=20 t --Sx2AagY39VBVEzkm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYdsFpAAKCRAFyCz1etHa RpkZAJ9FmZv/OpyZRbx/rb75NFKhCRfkuwCffUoHOLmfOcMxPeCaRAzmmT06ZSQ= =VFrF -----END PGP SIGNATURE----- --Sx2AagY39VBVEzkm--