From unknown Fri Aug 15 02:03:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30888 <30888@debbugs.gnu.org> To: bug#30888 <30888@debbugs.gnu.org> Subject: Status: Allow searching compressed C sources for `find-function' Reply-To: bug#30888 <30888@debbugs.gnu.org> Date: Fri, 15 Aug 2025 09:03:40 +0000 retitle 30888 Allow searching compressed C sources for `find-function' reassign 30888 emacs submitter 30888 Felipe Ochoa severity 30888 wishlist tag 30888 wontfix patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 20 17:41:07 2018 Received: (at submit) by debbugs.gnu.org; 20 Mar 2018 21:41:07 +0000 Received: from localhost ([127.0.0.1]:44323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyP0F-0007DL-1o for submit@debbugs.gnu.org; Tue, 20 Mar 2018 17:41:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eyP0C-0007Ci-SE for submit@debbugs.gnu.org; Tue, 20 Mar 2018 17:41:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyP06-0000WA-J5 for submit@debbugs.gnu.org; Tue, 20 Mar 2018 17:40:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eyP06-0000W3-FM for submit@debbugs.gnu.org; Tue, 20 Mar 2018 17:40:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyP05-0002oW-B6 for bug-gnu-emacs@gnu.org; Tue, 20 Mar 2018 17:40:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyP02-0000Qt-8u for bug-gnu-emacs@gnu.org; Tue, 20 Mar 2018 17:40:57 -0400 Received: from mail-vk0-x234.google.com ([2607:f8b0:400c:c05::234]:46515) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyP02-0000QK-3p for bug-gnu-emacs@gnu.org; Tue, 20 Mar 2018 17:40:54 -0400 Received: by mail-vk0-x234.google.com with SMTP id f124so1891272vkg.13 for ; Tue, 20 Mar 2018 14:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=AwqeezX/B9p6dX4eEirWrRqwGoIhtiEt/Bwr3UBGWfg=; b=nSEo+wC5t5e3bkEsiPMeDOnMWNNSYKd26NNFpa71LKP+LiOO8gQiUCUbaJGqGmdHPA CPa7izwqEoX5iqAF5qbfgp15TRuntmsvAtD2UGmfY80ohfEU9neihQ4eVfTO7RBO4lJ1 Xc+YJhy5dPyJsscVet0UpT3lCnJrtSVKPVaO6B62G4Vg9N2e1lz8ehkquyG2bJW7bFwQ qS7lJQ1hnhKlc8t8gfJ9oRWn9y4Nr3QvNaEqFbiyOuWeEPRlgNfUQ0KcT2RYyoNG8JRE D+tu2qVhV2zh9l2WGq2EiQuGW8cEkHH0Sy+Jvxg8bSS86Znc2SCUi0S3uQexqrxWjo8H WGPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=AwqeezX/B9p6dX4eEirWrRqwGoIhtiEt/Bwr3UBGWfg=; b=nOlElFYeb9g05p7GPtgwMaQomhAEZQQQN2aXU4GPR46hsP7lfl901w6lF1NNjKLBHX fzIDaKLXLMvPPBlESoa56kWIhOcj9CDBV+CR6rgt6asPz1OqXjOOQkD72uzxW6/Des7M 079k4MycP7FrePK68n3s0e7a/ihTpvEuccbONBfStBIKsBbv2Jd5wuET5G26o11oxS6m YtgLKoTzWnB1UErTVHyuBAMUesmT0OuCN+hJUGpKOz956Ul9PMfb0ngkHLIHiQ/8DeqF 7ugUgsCratVu6DhU1HO89GCeXw7D6vNcNFxTN08vCD26QgisYjbxFUymS81ofn1+3t/N nOBA== X-Gm-Message-State: AElRT7HU+BQRsww8DKZy3IltHNDpKavL9eHLtmFvu3oEuO86Mi/zpb2Y JhKLnb7R8dIxWfttIvbC28FPKU1w X-Google-Smtp-Source: AG47ELtmG0tKc/Q73rUkqOYzWUf+Hy9VsMxBAi/pcwX/CF7DJHLmHWeQDDsfaZbebR5uUfL/uSBRmQ== X-Received: by 10.31.83.197 with SMTP id h188mr11575019vkb.84.1521582053128; Tue, 20 Mar 2018 14:40:53 -0700 (PDT) Received: from x1-ubuntu ([190.146.241.123]) by smtp.gmail.com with ESMTPSA id d130sm807646vkf.22.2018.03.20.14.40.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 14:40:52 -0700 (PDT) From: Felipe Ochoa To: bug-gnu-emacs@gnu.org Subject: Allow searching compressed C sources for `find-function' Date: Tue, 20 Mar 2018 16:40:50 -0500 Message-ID: <878tams9wd.fsf@inc-query.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) This patch makes the handling of compressed sources consistent between C functions and lisp functions (for which `find-function' already supports compression). >From 3fd28dd1682f9e7a723cc7cbaeaad10da63989cd Mon Sep 17 00:00:00 2001 From: Felipe Ochoa Date: Tue, 20 Mar 2018 16:26:25 -0500 Subject: [PATCH] Allow searching compressed C sources for `find-function' From: felipe * emacs-lisp/find-func.el (find-function-C-source) --- lisp/emacs-lisp/find-func.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index 300bfab..cc1af01 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el @@ -243,14 +243,14 @@ find-function-advised-original (defun find-function-C-source (fun-or-var file type) "Find the source location where FUN-OR-VAR is defined in FILE. TYPE should be nil to find a function, or `defvar' to find a variable." - (let ((dir (or find-function-C-source-directory - (read-directory-name "Emacs C source dir: " nil nil t)))) - (setq file (expand-file-name file dir)) - (if (file-readable-p file) + (let* ((dir (or find-function-C-source-directory + (read-directory-name "Emacs C source dir: " nil nil t))) + (full-name (locate-file file (list dir) load-file-rep-suffixes))) + (if full-name (if (null find-function-C-source-directory) (setq find-function-C-source-directory dir)) - (error "The C source file %s is not available" - (file-name-nondirectory file)))) + (error "The C source file %s is not available" file)) + (setq file full-name)) (unless type ;; Either or both an alias and its target might be advised. (setq fun-or-var (find-function-advised-original -- 2.7.4 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 14:50:54 2019 Received: (at 30888) by debbugs.gnu.org; 24 Jun 2019 18:50:54 +0000 Received: from localhost ([127.0.0.1]:57967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfU3J-0002Jp-Ma for submit@debbugs.gnu.org; Mon, 24 Jun 2019 14:50:53 -0400 Received: from quimby.gnus.org ([80.91.231.51]:34946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfU3I-0002JX-Bo for 30888@debbugs.gnu.org; Mon, 24 Jun 2019 14:50:52 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfU3E-0006Yh-5V; Mon, 24 Jun 2019 20:50:50 +0200 From: Lars Ingebrigtsen To: Felipe Ochoa Subject: Re: bug#30888: Allow searching compressed C sources for `find-function' References: <878tams9wd.fsf@inc-query.com> Date: Mon, 24 Jun 2019 20:50:48 +0200 In-Reply-To: <878tams9wd.fsf@inc-query.com> (Felipe Ochoa's message of "Tue, 20 Mar 2018 16:40:50 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Felipe Ochoa writes: > This patch makes the handling of compressed sources consistent between C > functions and lisp functions (for which `find-function' already supports > compression). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30888 Cc: 30888@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Felipe Ochoa writes: > This patch makes the handling of compressed sources consistent between C > functions and lisp functions (for which `find-function' already supports > compression). I guess that makes sense, and the implementation looks OK to me, but what's the use case? The reason `find-function' does look into .el.gz files is that on some (many?) distributions, the .el files in Emacs are distributed with Emacs (sometimes in a separate package), but in .gz form. I've never seen gzipped .c files in the wild -- is that something that's done? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 19:17:16 2019 Received: (at 30888) by debbugs.gnu.org; 16 Sep 2019 23:17:16 +0000 Received: from localhost ([127.0.0.1]:51331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0F9-0004tL-SA for submit@debbugs.gnu.org; Mon, 16 Sep 2019 19:17:16 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0F8-0004tD-Lp for 30888@debbugs.gnu.org; Mon, 16 Sep 2019 19:17:15 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iA0F4-0007sB-08; Tue, 17 Sep 2019 01:17:13 +0200 From: Lars Ingebrigtsen To: Felipe Ochoa Subject: Re: bug#30888: Allow searching compressed C sources for `find-function' References: <878tams9wd.fsf@inc-query.com> Date: Tue, 17 Sep 2019 01:17:09 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 24 Jun 2019 20:50:48 +0200") Message-ID: <87v9tromq2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Felipe Ochoa writes: > >> This patch makes the handling of compressed sources consistent between C >> functions and lisp functions (for which `find-function' already [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30888 Cc: 30888@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Felipe Ochoa writes: > >> This patch makes the handling of compressed sources consistent between C >> functions and lisp functions (for which `find-function' already supports >> compression). > > I guess that makes sense, and the implementation looks OK to me, but > what's the use case? The reason `find-function' does look into .el.gz > files is that on some (many?) distributions, the .el files in Emacs are > distributed with Emacs (sometimes in a separate package), but in .gz > form. > > I've never seen gzipped .c files in the wild -- is that something that's > done? There was no response (on the use case) in 12 weeks, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 19:17:27 2019 Received: (at control) by debbugs.gnu.org; 16 Sep 2019 23:17:27 +0000 Received: from localhost ([127.0.0.1]:51334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0FK-0004to-3t for submit@debbugs.gnu.org; Mon, 16 Sep 2019 19:17:27 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iA0FI-0004tg-TC for control@debbugs.gnu.org; Mon, 16 Sep 2019 19:17:25 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iA0FG-0007sP-Ci for control@debbugs.gnu.org; Tue, 17 Sep 2019 01:17:24 +0200 Date: Tue, 17 Sep 2019 01:17:22 +0200 Message-Id: <87tv9bompp.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #30888 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 30888 wontfix close 30888 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 30888 wontfix close 30888 quit From unknown Fri Aug 15 02:03:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Oct 2019 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator