From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: source-directory, installed Emacs, and C source Date: Wed, 25 Oct 2023 10:41:33 +0200 Message-ID: <87msw75c1u.fsf@ledu-giraud.fr> References: <875y2wrt0q.fsf@catern.com> <83cyx4krfm.fsf@gnu.org> <837cncko34.fsf@gnu.org> <87y1fsq9ef.fsf@catern.com> <831qdjlvi3.fsf@gnu.org> Reply-To: Manuel Giraud 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="19144"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: sbaugh@catern.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 25 10:42:49 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qvZTV-0004lJ-1D for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Oct 2023 10:42:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvZSW-0000NK-OM; Wed, 25 Oct 2023 04:41:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvZST-0000MN-6S for emacs-devel@gnu.org; Wed, 25 Oct 2023 04:41:45 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvZSM-0001LE-BW; Wed, 25 Oct 2023 04:41:43 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=asnhS4nx RHm5xML9fcK5ykxR+9YHf2OWz+y/pR+gPLo=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=qgKj3pBl0BqJHTfesE1+bZ9s8qUx8A fCbX5xV0IjvLXM61QLJF8pcZep8P+cqVaEwlaRxl/slWyICkALRrmyBA== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=asnhS4nxRHm5xML9 fcK5ykxR+9YHf2OWz+y/pR+gPLo=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=d4EumwDld+H/wrUYtmfBq1GtSFX3BNz4whdDQE OxTCFkBaGBt2y6kwmmzomwwEchRjPiaWCTwr4tzaz8ToNPwNW7XV7TpRZ/EK6p4bPmMH6f PxNrKmAEkdfUSRSorPl3Lq/EjSKRU/3K4jnptfA5x+R8vwerBI6bA6EUAtzFW/MxyFe/N9 mAujnTtdYlNVmSv/pTx5yggqP96ycjw7IHImuOlQrWA9XHirl9jjraHXzf917zaSi20GoJ eEgPlRt2h8lR1AvUZf6t+PySyzDY157HhDW2SAZtsrYhMx1yj/fRD8n/bADMQQiIe5f9/H Q42h/MU78+4HPKG//+f0Czow== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 32ba22c5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 25 Oct 2023 10:41:34 +0200 (CEST) In-Reply-To: <831qdjlvi3.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 24 Oct 2023 21:34:44 +0300") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr 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_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311831 Archived-At: Eli Zaretskii writes: [...] > AFAIR, Emacs looks for Lisp files by scanning load-path. So if you > customize load-path to include the directories in the source tree, you > should be able to tell Emacs to look for the Lisp files in another > directory. I think that's what we do when Emacs is run uninstalled, > and that's why it finds the Lisp files in the source tree. This works=E2=80=A6 but not always. Here is a test I've just done: - emacs -Q - then load the following: --8<---------------cut here---------------start------------->8--- (add-to-list 'load-path "~/emacs-repo/lisp/") (dolist (dir '("vc" "use-package" "url" "textmodes" "progmodes" "play" "org" "nxml" "net" "mh-e" "mail" "leim" "language" "international" "image" "gnus" "eshell" "erc" "emulation" "emacs-lisp" "cedet" "calendar" "calc" "obsolete")) (add-to-list 'load-path (format "~/emacs-repo/lisp/%s/" dir))) --8<---------------cut here---------------end--------------->8--- Now my `load-path' value is: ("~/emacs-repo/lisp/obsolete/" "~/emacs-repo/lisp/calc/" "~/emacs-repo/lisp/calendar/" "~/emacs-repo/lisp/cedet/" "~/emacs-repo/lisp/emacs-lisp/" "~/emacs-repo/lisp/emulation/" "~/emacs-repo/lisp/erc/" "~/emacs-repo/lisp/eshell/" "~/emacs-repo/lisp/gnus/" "~/emacs-repo/lisp/image/" "~/emacs-repo/lisp/international/" "~/emacs-repo/lisp/language/" "~/emacs-repo/lisp/leim/" "~/emacs-repo/lisp/mail/" "~/emacs-repo/lisp/mh-e/" "~/emacs-repo/lisp/net/" "~/emacs-repo/lisp/nxml/" "~/emacs-repo/lisp/org/" "~/emacs-repo/lisp/play/" "~/emacs-repo/lisp/progmodes/" "~/emacs-repo/lisp/textmodes/" "~/emacs-repo/lisp/url/" "~/emacs-repo/lisp/use-package/" "~/emacs-repo/lisp/vc/" "~/emacs-repo/lisp/" "/home/manuel/emacs/share/emacs/30.0.50/lisp" "/home/manuel/emacs/share/emacs/30.0.50/lisp/vc" "/home/manuel/emacs/share/emacs/30.0.50/lisp/use-package" "/home/manuel/emacs/share/emacs/30.0.50/lisp/url" "/home/manuel/emacs/share/emacs/30.0.50/lisp/textmodes" "/home/manuel/emacs/share/emacs/30.0.50/lisp/progmodes" "/home/manuel/emacs/share/emacs/30.0.50/lisp/play" "/home/manuel/emacs/share/emacs/30.0.50/lisp/org" "/home/manuel/emacs/share/emacs/30.0.50/lisp/nxml" "/home/manuel/emacs/share/emacs/30.0.50/lisp/net" "/home/manuel/emacs/share/emacs/30.0.50/lisp/mh-e" "/home/manuel/emacs/share/emacs/30.0.50/lisp/mail" "/home/manuel/emacs/share/emacs/30.0.50/lisp/leim" "/home/manuel/emacs/share/emacs/30.0.50/lisp/language" "/home/manuel/emacs/share/emacs/30.0.50/lisp/international" "/home/manuel/emacs/share/emacs/30.0.50/lisp/image" "/home/manuel/emacs/share/emacs/30.0.50/lisp/gnus" "/home/manuel/emacs/share/emacs/30.0.50/lisp/eshell" "/home/manuel/emacs/share/emacs/30.0.50/lisp/erc" "/home/manuel/emacs/share/emacs/30.0.50/lisp/emulation" "/home/manuel/emacs/share/emacs/30.0.50/lisp/emacs-lisp" "/home/manuel/emacs/share/emacs/30.0.50/lisp/cedet" "/home/manuel/emacs/share/emacs/30.0.50/lisp/calendar" "/home/manuel/emacs/share/emacs/30.0.50/lisp/calc" "/home/manuel/emacs/share/emacs/30.0.50/lisp/obsolete") Now if I try to 'C-h f (describe-function)', some functions will point to the source in "~/emacs-repo/" and others will point to the install path source in "~/emacs/share/emacs/30.0.50/". For instance: - 'gnus', 'eshell' and 'dired' --> ~/emacs-repo/ - 'find-file', 'balance-windows' and 'set-frame-font' --> ~/emacs/share/= emacs/30.0.50/ --=20 Manuel Giraud