From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: source-directory, installed Emacs, and C source Date: Wed, 25 Oct 2023 15:43:41 +0300 Message-ID: <83bkcmkh36.fsf@gnu.org> References: <875y2wrt0q.fsf@catern.com> <83cyx4krfm.fsf@gnu.org> <837cncko34.fsf@gnu.org> <87y1fsq9ef.fsf@catern.com> <831qdjlvi3.fsf@gnu.org> <87msw75c1u.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3165"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@catern.com, emacs-devel@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 25 14:44:41 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 1qvdFY-0000cm-MK for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Oct 2023 14:44:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvdEW-0000sa-Sv; Wed, 25 Oct 2023 08:43:36 -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 1qvdEU-0000sD-JC for emacs-devel@gnu.org; Wed, 25 Oct 2023 08:43:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvdET-00061l-OS; Wed, 25 Oct 2023 08:43:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5ruiTOPxwZwYxywAoJ4kPNFQPbUsyxPuMTie5RruUaA=; b=Jp2Aayn/IBxp5+BVXeiJ HI13l78fcKoElwN953sfoTC5F4NGBOSMxIE5ea3HQ/xYI2svII79wKhC6NfFFUmaKQ8YwEzvF6PbS QcKgA7Ir8wMqua6oE9IgQdagAMljzivnLHWLxYc7uyVb/ShO5kuViNp5elXpH1BrAnGb4u3TxfpKx 07j/5/hlPEpYI8NwEu8+obPnXmsmuTChwlYjkUnebKcI6JuIKBTZnQANuuMEsYPgdyAkeY+eYJUXj 6hGpjq1NTl/+Bti+elTXSQXxGXXAsuSJ1EXAU8Yem/VnU0VVIkDRkVGDpKnE1WZTLqyWtNePz8c30 B8/2o0ljmdVfkg==; In-Reply-To: <87msw75c1u.fsf@ledu-giraud.fr> (message from Manuel Giraud on Wed, 25 Oct 2023 10:41:33 +0200) 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:311839 Archived-At: > From: Manuel Giraud > Cc: sbaugh@catern.com, emacs-devel@gnu.org > Date: Wed, 25 Oct 2023 10:41:33 +0200 > > 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… 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--- I never said you should just prepend the source tree to the previous value, did I? And anyway, are you sure you emulated Spencer's use case closely enough? He never described in detail which files are where, but AFAIU at the very least you should have removed the *.el and *.el.gz files from the installation directory, since that is what he does (again, AFAIU).