aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2020-01-24 16:41:38 -0800
committerPaul Eggert2020-01-24 16:46:42 -0800
commitf42d57c7dbd571b449270c8899a67e537561c2b2 (patch)
tree3750aa093fb8ac135c20a247e8d82c49b55bd8a4 /etc
parent0c6c8aa002d321db61afdd14c70744f7bc27f268 (diff)
downloademacs-f42d57c7dbd571b449270c8899a67e537561c2b2.tar.gz
emacs-f42d57c7dbd571b449270c8899a67e537561c2b2.zip
Install C source code for C-h f etc.
Without this change, on typical GNU/Linux distributions like Debian, the first button of ‘C-h f car RET’ does not work because the source code for ‘car’ is not installed (Bug#37527). Fix this by installing the (compressed) C source code alongside the (compressed) Lisp source code that is already installed. This adds about 3 MB (about 2%) to the size of the installed files on my platform. * Makefile.in (emacs_srcdir): New macro. (epaths-force): Substitute PATH_EMACS_SOURCE. (install-c-src): New rule, that installs a copy of the C source code if emacs_srcdir says to. (install-arch-indep): Depend on it. * configure.ac (emacs_srcdir): New var. Add support for --disable-install-srcdir. * lisp/emacs-lisp/find-func.el (find-function-C-source-directory): Look in emacs-source-directory first. (find-function-C-source): Also look for gzipped source files. * lisp/startup.el (normal-top-level): Also recode emacs-source-directory. * src/epaths.in (PATH_EMACS_SOURCE): New macro. * src/lread.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME. (syms_of_lread): New var emacs-source-directory.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5395f2ccfb2..c3a71ade8ac 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -58,6 +58,12 @@ shaping, so 'configure' now recommends that combination.
58** The ftx font backend driver has been removed. 58** The ftx font backend driver has been removed.
59It was declared obsolete in Emacs 27.1. 59It was declared obsolete in Emacs 27.1.
60 60
61---
62** Emacs now installs a copy of its C source code, used for debugging help.
63For example, pressing the first button in the *Help* buffer generated
64by 'C-h f car RET' now takes you to a copy of the C-language
65implementation of the function 'car'.
66
61 67
62* Startup Changes in Emacs 28.1 68* Startup Changes in Emacs 28.1
63 69
@@ -142,6 +148,9 @@ called when the function object is garbage-collected. Use
142** 'parse-time-string' can now parse ISO 8601 format strings, 148** 'parse-time-string' can now parse ISO 8601 format strings,
143such as "2020-01-15T16:12:21-08:00". 149such as "2020-01-15T16:12:21-08:00".
144 150
151** The new variable 'emacs-source-directory' gives the Emacs source
152code location.
153
145 154
146* Changes in Emacs 28.1 on Non-Free Operating Systems 155* Changes in Emacs 28.1 on Non-Free Operating Systems
147 156