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.help Subject: Re: Skipping installation of .el.gz files Date: Mon, 23 Oct 2023 14:35:31 +0300 Message-ID: <83wmvdo9ks.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22432"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 23 13:37:06 2023 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 1qutF4-0005Yh-5s for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 23 Oct 2023 13:37:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qutDw-000894-UB; Mon, 23 Oct 2023 07:35:56 -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 1qutDu-0007wI-Ef for help-gnu-emacs@gnu.org; Mon, 23 Oct 2023 07:35:54 -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 1qutDo-0004e4-GU for help-gnu-emacs@gnu.org; Mon, 23 Oct 2023 07:35:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=k46oj1sbm9Ke/9AL4CEBf7Wc8N7vH4tMtwBAnM6PnAI=; b=Rif2DMvXVCAJ czp/TaAuvat0HZT1NgJHGkBvXZH2zlJq4kIV7THS3DkR8oHgcrj3MkbwZuCk15X1qcr83+tR8a71O /iO15L8NGOQCNQzjaHH8XHPp+aVNX768Xjp1uqGGGain5GF1gEkEJ3QGy08h58FJFHT7Hf6UQYeBm XQcJw4OGUyoy0MxMwM7i6+klCdksKuxGK4RQjZlxEOwad2oQcFWXZfMEQOLfdm/fPx+TcYn1amKWb nvX8VfC2vHKkdolNfrWtEmjhl6gCFjbwTnOfYq6X7uKN5Qa5yC2H5Rq3qw0ADPOAZM9OuSEGeeeCB 82WNMavZRP9x8hfrla+39g==; In-Reply-To: (message from Spencer Baugh on Sun, 22 Oct 2023 20:45:46 -0400) 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145354 Archived-At: > From: Spencer Baugh > Date: Sun, 22 Oct 2023 20:45:46 -0400 > > > At my site, I'd like to install the Emacs source code along with Emacs > and set source-directory, so that users can easily jump to function > definitions and search the Emacs source. > > This works great for C function definitions, but Lisp function > definitions still jump to the .el.gz files which are installed by "make > install". If I delete those files, jumping to Lisp function definitions > stops working entirely. > > Is there a clean and supported way to teach Emacs to jump to the files > in source-directory instead of the .el.gz ones? I suggest to override find-lisp-object-file-name with a similar definition that does what you want. Alternatively (not tested) tweak load-path to include the source tree's lisp/ directory and its subdirectories before the directory where Lisp files were installed.