[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Merging a local info file with the system's

From: Teemu Likonen
Subject: Re: Merging a local info file with the system's
Date: Tue, 10 Feb 2009 18:12:19 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

On 2009-02-10 02:49 (-0700), Iain Dalton wrote:

> Texinfo manual Sec. 21.2.3 says you can add extra info directories to
> Info-directory-list and it will merge all the `dir' files it finds. I
> created ~/.emacs.d/info/, added info files, and made this `dir' file:
>     Programming
>     * ANSI Common Lisp: (ansicl).             Draft ANSI Common Lisp standard
> Instead of merging the dir files, "C-h i" only shows this minimal one.
> What am I doing wrong?

I have forgot the theory about how things work but I'll show you what
works in my system. I have this line in my ~/.emacs file:

    (add-to-list 'Info-default-directory-list "~/.emacs.d/info/")

And I have a Makefile (see below) for converting .texi files to .info
files and creating "dir" file. If you want to use it put it in your
~/.emacs.d/info/ directory and run "make". First it converts .texi files
(if any) to .info files and then creates a "dir" file from all .info
that are available. Just run "make" if you want to update. Command "make
clean" will delete the "dir" file and all .info files which have the
corresponding .texi file available.

# Makefile
INFO := $(patsubst %.texi,,$(wildcard *.texi))

dir: $(INFO) $(wildcard *.info)
        for file in $?; do \
                ginstall-info $$file $@; done %.texi
        makeinfo --output=$@ -- $<

        rm -f -- dir $(INFO)

.PHONY: clean

reply via email to

[Prev in Thread] Current Thread [Next in Thread]