From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: File for minor mode not found Date: Sun, 09 Jan 2022 16:12:19 +0100 Message-ID: <878rvpeyek.fsf@gmx.net> References: 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="16248"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: fatiparty@tutanota.com To: fatiparty--- via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 09 16:13:11 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 1n6Zsc-00042M-3T for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 16:13:10 +0100 Original-Received: from localhost ([::1]:51018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6Zsb-0004KU-00 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 10:13:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6Zs1-0004KB-Hr for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 10:12:36 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:46735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6Zrx-0006Pd-NB for help-gnu-emacs@gnu.org; Sun, 09 Jan 2022 10:12:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1641741141; bh=HaRIxI31osQs7GhA6Je27+H175x/Yyti4GeAhgnA1TQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=N+Jc3mwhM3ukIUxnooPJjVChFn3XkJUlgeu8cfRAPn8k8sGhadeWArrjuYikRhnB4 eW+p/uU2vpfnk3Bw+qmWA285j5o0Zxj+xkqMVX27mlkyRlFkFKIUUBYKuiJphRCqRF HRpGvQ9RKF7SprqPeGqk1IuDiBD9d+0gEY/u8TME= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.38.238]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Md6R1-1mWxrr36hP-00aFqk; Sun, 09 Jan 2022 16:12:20 +0100 In-Reply-To: (fatiparty's message of "Sun, 9 Jan 2022 15:43:42 +0100 (CET)") X-Provags-ID: V03:K1:8IrLBrV7rGBgjhXftRsQEpv+CeFar4Hr5wG4ZYuqJyTLoIfvrYm JplvXNwANjmQYRCeZg2jeKgwM2bsaXc2LnnexPCgxCm32Ve51Ft5OxuND707pKqGgbPmsPf rFxf7lYvLdgPwzUfM4kDJ+N0L2SWlLb1rki3jlNkOLo3Y+g3kZcLX1dgNiSx4tUzN5/Sj3e EY03jzfSH6oFlJeN91cIg== X-UI-Out-Filterresults: notjunk:1;V03:K0:3Yk4dPeROEU=:+xPvID3SPkoTCqLTXO1RTt ZnN4FkTjH41yr6IZ+/Eeq1Ajip0cHhanbWikd74EK5sXKNzDR+Pfpm9c42aPnkFGhV6V/PyNO TWU9KSLEJ4JXwpCXDHVgaDErywpt0MYcipxlUtFJQqu3AGMbTlG9vnw6rkL0UBhiAnGEPM7ry dZbwVcs3dL/unvaHNIsHmDt9RFIGSqVwsmeAy/2z/1PfIaMKhuCt6eoDCq2sRREybtpPuzAHM XSqe7AzvDk+/Sw9HsC89FOoyyWRhi4TjGcgNUqZLmPyhf3xdlcSFwUpJNk+FuaYHRdA5O8XsA 43JA1jrmbSSOFDY8H0ojq8bE4Q9jx+5gquc+60+l4BfqMw5hs+8A/mpyg5YV9H6oEwa6WUykW S0o4v3xOSezTxrFqWKWY1Jo8Id3QaX7J88RkYdM04ZG5r1ia2YaDl4bU+8LQHWsAyozqB++93 NlWQWK281HSh8+eC17fSchFJSPSaBioi6U4iLirq2u2lpEID2hd+ND99ksxZzwul87TZ5YEEz TStf8AquyzkEdRRSMPf3AK2QhUIgyXDNdRiQNGpjJrxi3OsE0C2bnim8mFZ7JGyvPJSgjbqs4 LyHPUlqeHpXD1kriNFmxlTgDGmLfIJYOXDhntnRdEBd//ZRroG1WToXWhlIGbOseO4+oC4lCa MN0wxoe+pRrL9/5ZHPsxDBdFWX1wV5vkEYnnl2IC0kPdOtrzaBt98kwpoewFEEcV5qTIDMUtw gpuZUKHrv3dboeuOmtbgvEpuQTWXZitPVRWVVSIRf645aq3XzBlZKe3uqYBRAwe3x5NdAop6 Received-SPF: pass client-ip=212.227.17.20; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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:135152 Archived-At: On Sun, 9 Jan 2022 15:43:42 +0100 (CET) fatiparty--- via Users list for the= GNU Emacs text editor wrote: > Jan 9, 2022, 06:47 by tomas@tuxteam.de: > >> On Sun, Jan 09, 2022 at 06:14:33AM +0100, fatiparty--- via Users list for >> the GNU Emacs text editor wrote: >> >>> >>> Have made a minor mode called daph stored in file path >>> >>> ~/Admir/typ/zig/daph-ideograms" >>> >> >> Under which name is it stored there? >> >>> This is the call for daph-minor-mode >>> >>> (define-minor-mode daph-minor-mode >>> >>> At the end or the file I use (provide 'daph) >>> >>> In another file I call the minor mode >>> >>> (defun fad-daph-ideograms () >>> =C2=A0=C2=A0 "Tex command highlighting." >>> >>> =C2=A0=C2=A0 (add-to-list >>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 'load-path "~/Admir/typ/zig/daph-ideogra= ms") >>> >>> =C2=A0=C2=A0 (require 'daph) >>> >> >> 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. >> > > 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. That should be (require 'daph "daph-ideograms"), see `C-h f require':. require is a built-in function in =E2=80=98C source code=E2=80=99. =20=20=20 (require FEATURE &optional FILENAME NOERROR) =20=20=20 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. =20=20=20 If FILENAME is omitted, the printname of FEATURE is used as the file name, and =E2=80=98load=E2=80=99 will try to load this name appended wit= h the suffix =E2=80=98.elc=E2=80=99, =E2=80=98.el=E2=80=99, or the system-dependent s= uffix for dynamic module files, in that order. Steve Berman