all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Masterson <dsmasterson@gmail.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: emacs-devel@gnu.org
Subject: Re: Info, dir, and Emacs packages ?
Date: Sat, 11 Mar 2023 18:36:26 -0800	[thread overview]
Message-ID: <SJ0PR03MB545583D825D2429C7B151FEFA2B89@SJ0PR03MB5455.namprd03.prod.outlook.com> (raw)
In-Reply-To: <87wn3npogp.fsf@posteo.net> (Philip Kaludercic's message of "Sat,  11 Mar 2023 10:33:10 +0000")

Philip Kaludercic <philipk@posteo.net> writes:

> David Masterson <dsmasterson@gmail.com> writes:
>
>> I'm missing something.  When and what causes a package directory to get
>> added to Info-directory-list? I've constructed a simple .info and dir
>> for an existing Emacs package I'm playing with, but, when I copy them to
>> the installed package and restart Emacs, it doesn't get added to the
>> Info-directory-list, so isn't seen by 'info'.  Any help?
>
> In `package-activate-1' (invoked by `package-activate' (invoked by
> `package--activate-all' using `package--alist' (which uses
> `package-load-all-descriptors'))) you will find this snippet:
>
>       ;; Add info node.
>       (when (file-exists-p (expand-file-name "dir" pkg-dir))
>         ;; FIXME: not the friendliest, but simple.
>         (require 'info)
>         (info-initialize)
>         (add-to-list 'Info-directory-list pkg-dir))
>
> So unless the dir or the .info file is broken (and this is an issue
> caused by info), it might be that the package is not being detected?

Interesting.  The package itself loads fine -- it's just not adding the
pkg-dir to Info-directory-list. This code suggests that it's not parsing
the 'dir' file -- it's simply just checks its existence.  The package is
in package-alist.

Oh, wait.  I put the dir/info files in the old package directory.  Doh!

-- 
David Masterson



      reply	other threads:[~2023-03-12  2:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-11  5:14 Info, dir, and Emacs packages ? David Masterson
2023-03-11 10:33 ` Philip Kaludercic
2023-03-12  2:36   ` 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=SJ0PR03MB545583D825D2429C7B151FEFA2B89@SJ0PR03MB5455.namprd03.prod.outlook.com \
    --to=dsmasterson@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=philipk@posteo.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.