all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ralf Angeli <angeli@caeruleus.net>
Subject: Calling Info-find-file from other parts of Emacs
Date: Sun, 11 Jun 2006 14:51:00 +0200	[thread overview]
Message-ID: <e6h3i5$cq9$1@sea.gmane.org> (raw)

Hi,

AUCTeX currently uses `Info-find-file' for checking if certain info
files are available.  There are two problems with that.

First, the function is not autoloaded.  That's why AUCTeX autoloads it
manually, which of course fails with Emacs 21 where the function is
not present and which will break should the function ever be moved to
another file.  (I think, I can code around that problem.)  So maybe
the function can be autoloaded?

Second, if the function is called before the canonical entry point
`info' (or `Info-goto-node' for that matter) is called, the variable
`Info-directory-list' will not be initialized and search for any file
will fail.  Could initialization of `Info-directory-list' be done by
`Info-find-file' as well, or maybe even by loading info.el?

With the above changes the function could be used reliably by other
parts of Emacs.  Does this make sense or is there another way of
checking for the availability of info files?

-- 
Ralf

             reply	other threads:[~2006-06-11 12:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-11 12:51 Ralf Angeli [this message]
2006-06-11 19:26 ` Calling Info-find-file from other parts of Emacs Eli Zaretskii
2006-06-11 22:03   ` Ralf Angeli
2006-06-11 22:50     ` Kevin Ryde
2006-06-13 13:33       ` Juri Linkov
2006-06-16  0:13         ` Kevin Ryde
2006-06-21 18:06           ` Stefan Monnier
2006-06-24 23:48             ` Kevin Ryde
2006-07-02 15:57               ` Stefan Monnier

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='e6h3i5$cq9$1@sea.gmane.org' \
    --to=angeli@caeruleus.net \
    /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.