Skip to content

Commit

Permalink
manual: Use updated support for definition commands
Browse files Browse the repository at this point in the history
Instead of ox-texinfo+.el use the new implementation
that I expect to be merged into Org itself.
  • Loading branch information
tarsius committed Dec 26, 2021
1 parent b16b69a commit dd38c65
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 152 deletions.
1 change: 0 additions & 1 deletion default.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ LOAD_PATH += -L .

ifndef ORG_LOAD_PATH
ORG_LOAD_PATH = -L ../../org/lisp
ORG_LOAD_PATH += -L ../../ox-texinfo+
endif

INSTALL_INFO ?= $(shell command -v ginstall-info || printf install-info)
Expand Down
4 changes: 2 additions & 2 deletions docs/.orgconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#+options: H:4 num:4 toc:2
#+property: header-args :eval never

#+texinfo_deffn: t
#+macro: kbd (eval (let ((case-fold-search nil) (regexp (regexp-opt '("SPC" "RET" "LFD" "TAB" "BS" "ESC" "DELETE" "SHIFT" "Ctrl" "Meta" "Alt" "Cmd" "Super" "UP" "LEFT" "RIGHT" "DOWN") 'words))) (format "@@texinfo:@kbd{@@%s@@texinfo:}@@" (replace-regexp-in-string regexp "@@texinfo:@key{@@\\&@@texinfo:}@@" $1 t))))
#+macro: year (eval (format-time-string "%Y"))
#+macro: version (eval (ox-texinfo+-get-version 'mixed))
#+macro: version (eval (or (getenv "PACKAGE-VERSION") (ignore-errors (car (process-lines "git" "describe" "--exact"))) (ignore-errors (concat (car (process-lines "git" "describe" (if (getenv "AMEND") "HEAD~" "HEAD"))) "+1"))))

#+language: en
3 changes: 1 addition & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ info: $(PKG).info dir
html: $(PKG).html
pdf: $(PKG).pdf

ORG_ARGS = --batch -Q $(ORG_LOAD_PATH) -l ox-texinfo+
ORG_EVAL = --eval "(setq org-texinfo+-dissolve-noexport-headlines t)"
ORG_ARGS = --batch -Q $(ORG_LOAD_PATH)
ORG_EVAL += --eval "(setq indent-tabs-mode nil)"
ORG_EVAL += --eval "(setq org-src-preserve-indentation nil)"
ORG_EVAL += --funcall org-texinfo-export-to-texinfo
Expand Down
Loading

0 comments on commit dd38c65

Please sign in to comment.