Article View: gnu.emacs.bug
Article #98911Suggestion: have an elisp variable doc-file-name
From: Boaz Ben-Zvi
Date: Fri, 01 Feb 1991 21:20
Date: Fri, 01 Feb 1991 21:20
31 lines
2036 bytes
2036 bytes
When Emacs is created (dumped), the name of the documentation file
(e.g. "DOC-18.56.1") gets in and can be reconfigured only by
re-dumping emacs. (It seems that a call to Snarf-documentation
(in the file doc.c) sets the variable).
Why wouldn't that name be user configurable (i.e. have a variable
like doc-file-name ) ?
I ran into this when trying to build some documenting service similar
to emacs' help. I built my own DOC file (with similar format; e.g. F...)
and managed to fool the "documentation" function to take my argument
as an emacs function:
(let ((exec-directory "/u/boaz/clu/")
(doc-file-name "MY-DOC") ;; this does not work !!!!
)
(documentation '(lambda . (foo . (456))))) ;; 456 is the index into DOC
the only problem was that emacs insisted on the file name "DOC-18.56.1",
which makes it a nuisance (I want my service to be used by many users
with different versions of emacs).
-- Boaz.
p.s. I know I can write a similar C code to do it, but distributing both
elisp and C code makes things more complex.
========================================================
* Boaz Ben-Zvi (boaz@neutron.lcs.mit.edu) *
* MIT: NE43-526 Tel: (617) 253-6212 *
========================================================
Technical Details
Message-ID:
<1991Feb1.212009.15297@mintaka.lcs.mit.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!CONCERTO.LCS.MIT.EDU!boazShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,5323f14ebf42b415,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-02-01 13:20:09 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!CONCERTO.LCS.MIT.EDU!boaz From: boaz@CONCERTO.LCS.MIT.EDU (Boaz Ben-Zvi) Newsgroups: gnu.emacs.bug Subject: Suggestion: have an elisp variable doc-file-name Message-ID: <1991Feb1.212009.15297@mintaka.lcs.mit.edu> Date: 1 Feb 91 21:20:09 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: boaz@lcs.mit.edu Distribution: gnu Organization: Laboratory for Computer Science, MIT Lines: 31 Approved: bug-gnu-emacs@prep.ai.mit.edu