From: David Masterson <David.Masterson@synopsys.com>
Subject: Re: Extending Info-directory-list. There's got to be a better way.
Date: 04 Apr 2003 10:18:55 -0800 [thread overview]
Message-ID: <uvfxuktww.fsf@synopsys.com> (raw)
In-Reply-To: fjuc6b.r5.ln@acm.acm
>>>>> Alan Mackenzie writes:
> I recently added the following to my .emacs, after much (too much)
> searching of the docs:
> (eval-after-load "info"
> '(progn (info-initialize)
> (push "/usr/src/packages/BUILD/emacs-21.1/info/"
> Info-directory-list)))
> This was the only way I found of appending to the front of
> Info-directory-list which works regardless of whether or not Info
> has already been loaded (for example, by desktop).
> Surely there's got to be a better way? One that doesn't involve
> arcane constructions like eval-after-load and calling functions like
> info-initialise which feel like they ought to be internal private
> functions rather than public functions.
> Anybody got any ideas to share?
Info-directory-list is one of the areas that needs work in both Emacs
and XEmacs. For instance, Info-default-directory-list seems to have
been obsoleted in XEmacs. That means that your code has to be
tailored to the particular Emacsen (for instance, info-initialize does
not exist in XEmacs). Another problem that comes up is that the order
of Info-directory-list is very important.
What happens if you just do this?
(add-to-list 'Info-directory-list
"/usr/src/packages/BUILD/emacs-21.1/info/" t)
Somebody needs to rewrite Info such that, when it constructs the
directory node, it sorts it on the basis of @dircategory and @direntry
so that the organization of the directory node will not be dependent
on the order of the directories in Info-directory-list. Of course,
that assumes a fairly standard Info file setup. :-\
--
David Masterson David DOT Masterson AT synopsys DOT com
Sr. R&D Engineer Synopsys, Inc.
Software Engineering Sunnyvale, CA
prev parent reply other threads:[~2003-04-04 18:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-01 20:59 Extending Info-directory-list. There's got to be a better way Alan Mackenzie
2003-04-01 22:59 ` Oliver Scholz
2003-04-02 4:13 ` Eli Zaretskii
2003-04-03 21:31 ` Kevin Ryde
2003-04-04 18:18 ` David Masterson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uvfxuktww.fsf@synopsys.com \
--to=david.masterson@synopsys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.