emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `C-h f' doesn't show file where function comes from


From: Katsumi Yamaoka
Subject: Re: `C-h f' doesn't show file where function comes from
Date: Mon, 08 Sep 2008 09:31:36 +0900
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

>>>>> Katsumi Yamaoka wrote:
> It relates to whether Emacs is installed or not.
[...]
> Here is a patch:

I think displaying the ".gz" extension in file names is needless
because of `auto-compression-mode'.  Please replace the last patch
with this:

--- help-fns.el~        2008-09-01 21:41:33 +0000
+++ help-fns.el 2008-09-08 00:30:41 +0000
@@ -295,7 +295,8 @@
        ;; When the Elisp source file can be found in the install
        ;; directory return the name of that file - `file-name' should
        ;; have become an absolute file name ny now.
-       (and (file-readable-p lib-name) lib-name)))
+       (or (and (file-readable-p lib-name) lib-name)
+           (and (file-readable-p (concat lib-name ".gz")) lib-name))))
      ((let* ((lib-name (file-name-nondirectory file-name))
             ;; The next form is from `describe-simplify-lib-file-name'.
             (file-name




reply via email to

[Prev in Thread] Current Thread [Next in Thread]