Skip to content

Pr haskell info fixes #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ dir: haskell-mode.info
$(INSTALL_INFO) --dir=$@ $<

haskell-mode.tmp.texi: haskell-mode.texi
@sed -n -e '/@chapter/ s/@code{\(.*\)}/\1/' \
-e 's/@chapter \(.*\)$$/* \1::/p' \
-e 's/@unnumbered \(.*\)$$/* \1::/p' \
haskell-mode.texi > haskell-mode-menu-order.txt
@sed -e '1,/@menu/ d' \
-e '/end menu/,$$ d' \
haskell-mode.texi > haskell-mode-content-order.txt
diff -C 1 haskell-mode-menu-order.txt haskell-mode-content-order.txt
@rm haskell-mode-menu-order.txt haskell-mode-content-order.txt

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may not have had enough coffee yet this morning, but my reading of this code suggests that the two -order.txt files are created and then immediately removed, such that the code has no effect. Please correct me if I'm wrong!

$(SUBST_ATAT) < haskell-mode.texi > haskell-mode.tmp.texi

haskell-mode.info: haskell-mode.tmp.texi
Expand Down
7 changes: 3 additions & 4 deletions haskell-mode.texi
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,16 @@ Haskell Mode is an Haskell development Environment for GNU Emacs version 23 or l
* Getting Help and Reporting Bugs::
* Getting Started::
* Editing Haskell Code::
* Unicode::
* Unicode support::
* Indentation::
* Compilation::
* haskell-decl-scan-mode::
* Compilation::
* inferior-haskell-mode::
* haskell-interactive-mode::
* haskell-cabal-mode::
* Concept index::
* Function index::
* Variable index::

@end menu

@node Introduction
Expand Down Expand Up @@ -150,7 +149,7 @@ The major mode @code{literate-haskell-mode} (which is derived from @code{haskell

@code{haskell-mode} supports @dfn{syntax highlighting} via Emacs' Font Lock minor mode which should be enabled by default in current Emacsen. @xref{Font Lock,,,emacs}, for more information on how to control @code{font-lock-mode}.

@node Unicode
@node Unicode support
@chapter Unicode support

@cindex Unicode
Expand Down