From: Kevin Ryde <user42@zip.com.saynotospam.au>
Subject: Re: Extending Info-directory-list. There's got to be a better way.
Date: Fri, 04 Apr 2003 07:31:44 +1000 [thread overview]
Message-ID: <87vfxvz2rj.fsf@zip.com.au> (raw)
In-Reply-To: fjuc6b.r5.ln@acm.acm
Alan Mackenzie<none@example.invalid> writes:
>
> (eval-after-load "info"
> '(progn (info-initialize)
> (push "/usr/src/packages/BUILD/emacs-21.1/info/" Info-directory-list)))
>
> Surely there's got to be a better way?
I use the little function below. Still not a thing of beauty, but
avoids forcibly running info-initialize.
(defun my-info-directory (dir)
"Setup an extra info directory.
This is added to `Info-directory-list' if info has been initialized, or
to `Info-default-directory-list' if not.
`Info-additional-directory-list' is not used, since that comes after
`Info-directory-list' in the searching, and extras should come before the
standard locations."
(if (not (file-exists-p dir))
(message "Skipping %s" dir))
(add-to-list (if (boundp 'Info-directory-list)
'Info-directory-list
'Info-default-directory-list)
dir))
next prev parent reply other threads:[~2003-04-03 21:31 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 [this message]
2003-04-04 18:18 ` David Masterson
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vfxvz2rj.fsf@zip.com.au \
--to=user42@zip.com.saynotospam.au \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).