1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00
emacs/lib-src
Stefan Monnier 59732a83c8 Don't store docstrings of preloaded .el files in etc/DOC
Since the location of those files changes between build time and
installation time, this requires to tweak the file name used in those
(#$ . NNN) references during the dump so they don't hardcode the build
directory.  We do it in the same way as was already done for those
same file names in `load-history`, except we convert them back to
absolute file names more lazily (i.e. when fetching the actual
docstring rather than at startup), which requires remembering the
`lisp-dir` computed at startup in the new `lisp-directory` variable.

* src/Makefile.in ($(etc)/DOC): Don't scan Lisp files any more.

* src/lread.c (Fload): Use relative file names for `load-file-name`
when preloading for the dump, like we already did for `current-load-list`.
(read_list): Don't zero-out dynamic docstring references during the
preload since they won't be filled later by Snarf-documentation any more.
(read1): Remove the hash-hack for doc references that were zeroed.

* lisp/startup.el (lisp-directory): New variable.
(command-line): Set it.

* src/doc.c (get_doc_string): Use `lisp-directory` for dynamic
docstring references using relative file names.
(syms_of_doc): Add `Qlisp_directory`.

* lib-src/make-docfile.c (scan_file): Don't handle `.el` or `.elc`
files any more.
(IS_SLASH): Remove macro, not used any more.
(skip_white, read_lisp_symbol, search_lisp_doc_at_eol)
(scan_lisp_file): Remove functions, not used any more.

* doc/lispref/loading.texi (Library Search): Mention `lisp-directory`.
2021-12-30 23:17:45 -05:00
..
be_resources.cc Add support for the Haiku operating system and its window system 2021-11-20 21:46:07 +08:00
ChangeLog.1 Update copyright year to 2021 2021-01-01 01:13:56 -08:00
COPYING
ctags.c
ebrowse.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
emacsclient.c Merge remote-tracking branch 'origin/master' into feature/pgtk 2021-12-10 14:50:21 +08:00
etags.c Really fix the etags TEX parsing 2021-12-12 11:45:11 +01:00
hexl.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
make-docfile.c Don't store docstrings of preloaded .el files in etc/DOC 2021-12-30 23:17:45 -05:00
make-fingerprint.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
Makefile.in Prefer $(info) to @echo 2021-12-20 12:24:04 -08:00
movemail.c Pacify gcc 11.1.1 -Wanalyzer-null-argument 2021-07-12 00:12:20 -07:00
ntlib.c Fix compilation errors with MinGW64 GCC 11 2021-10-24 20:45:56 +03:00
ntlib.h Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pop.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00
pop.h Update copyright year to 2021 2021-01-01 01:13:56 -08:00
rcs2log Update copyright year to 2021 2021-01-01 01:13:56 -08:00
README
seccomp-filter.c Fix Seccomp filter for newer GNU/Linux systems (Bug#51073). 2021-10-09 19:39:31 +02:00
update-game-score.c Update copyright year to 2021 2021-01-01 01:13:56 -08:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.