GNU bug report logs -
#30888
Allow searching compressed C sources for `find-function'
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30888 in the body.
You can then email your comments to 30888 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30888
; Package
emacs
.
(Tue, 20 Mar 2018 21:42:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Felipe Ochoa <felipe.nospam.ochoa <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 20 Mar 2018 21:42:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <felipe.nospam.ochoa <at> gmail.com>
Date: Tue, 20 Mar 2018 16:26:25 -0500
Subject: [PATCH] Allow searching compressed C sources for `find-function'
From: felipe <felipe <at> fov.space>
* 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30888
; Package
emacs
.
(Mon, 24 Jun 2019 18:51:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 30888 <at> debbugs.gnu.org (full text, mbox):
Felipe Ochoa <felipe.nospam.ochoa <at> gmail.com> 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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30888
; Package
emacs
.
(Mon, 16 Sep 2019 23:18:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 30888 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Felipe Ochoa <felipe.nospam.ochoa <at> gmail.com> 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
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 16 Sep 2019 23:18:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
30888 <at> debbugs.gnu.org and Felipe Ochoa <felipe.nospam.ochoa <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 16 Sep 2019 23:18:05 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 15 Oct 2019 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 187 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.