Re: Removed variables ‘org-agenda-skip-comment-trees’ and ‘org-agenda-skip-archived-trees’

2020-11-19 Thread wlharvey4
Hmm, I restarted Emacs, and the variables show up.  My apologies.  I upgraded a 
day or two ago, but didn’t restart until now.

Wesley

> On Nov 19, 2020, at 8:28 PM, Kyle Meyer  wrote:
> 
> wlharv...@mac.com writes:
> 
>> In Org 9.4, Manual section 11 Agenda Views, second to last paragraph,
>> neither of the referenced variables appears to exist.
> 
> Hmm, what leads you to say that?
> 
>  $ git describe master
>  release_9.4-134-g0d525cbc7
> 
>  $ git grep 'org-agenda-skip-\(comment\|archived\)-trees' master
>  master:doc/org-manual.org:  #+vindex: org-agenda-skip-archived-trees
>  master:doc/org-manual.org:  ~org-agenda-skip-archived-trees~, in which case 
> these trees are
>  master:doc/org-manual.org:#+vindex: org-agenda-skip-comment-trees
>  master:doc/org-manual.org:#+vindex: org-agenda-skip-archived-trees
>  master:doc/org-manual.org:setting ~org-agenda-skip-comment-trees~ and
>  master:doc/org-manual.org:~org-agenda-skip-archived-trees~ to ~nil~.
>  master:lisp/org-agenda.el:(defcustom org-agenda-skip-comment-trees t
>  master:lisp/org-agenda.el: (and org-agenda-skip-archived-trees (not 
> org-agenda-archives-mode)
>  master:lisp/org-agenda.el: (and org-agenda-skip-comment-trees
>  master:lisp/org.el:(defcustom org-agenda-skip-archived-trees t
>  master:lisp/org.el:(defvar org-agenda-skip-comment-trees)
>  master:lisp/org.el:(org-agenda-skip-archived-trees (memq 'archive 
> skip))
>  master:lisp/org.el:(org-agenda-skip-comment-trees (memq 'comment 
> skip))
>  master:lisp/org.el: (when org-agenda-skip-archived-trees




Re: Removed variables ‘org-agenda-skip-comment-trees’ and ‘org-agenda-skip-archived-trees’

2020-11-19 Thread wlharvey4
'(org-version)' produces:

9.4-41-g9bb930-elpaplus from org-plus-contrib-20201116

> On Nov 19, 2020, at 8:28 PM, Kyle Meyer  wrote:
> 
> wlharv...@mac.com writes:
> 
>> In Org 9.4, Manual section 11 Agenda Views, second to last paragraph,
>> neither of the referenced variables appears to exist.
> 
> Hmm, what leads you to say that?
> 
>  $ git describe master
>  release_9.4-134-g0d525cbc7
> 
>  $ git grep 'org-agenda-skip-\(comment\|archived\)-trees' master
>  master:doc/org-manual.org:  #+vindex: org-agenda-skip-archived-trees
>  master:doc/org-manual.org:  ~org-agenda-skip-archived-trees~, in which case 
> these trees are
>  master:doc/org-manual.org:#+vindex: org-agenda-skip-comment-trees
>  master:doc/org-manual.org:#+vindex: org-agenda-skip-archived-trees
>  master:doc/org-manual.org:setting ~org-agenda-skip-comment-trees~ and
>  master:doc/org-manual.org:~org-agenda-skip-archived-trees~ to ~nil~.
>  master:lisp/org-agenda.el:(defcustom org-agenda-skip-comment-trees t
>  master:lisp/org-agenda.el: (and org-agenda-skip-archived-trees (not 
> org-agenda-archives-mode)
>  master:lisp/org-agenda.el: (and org-agenda-skip-comment-trees
>  master:lisp/org.el:(defcustom org-agenda-skip-archived-trees t
>  master:lisp/org.el:(defvar org-agenda-skip-comment-trees)
>  master:lisp/org.el:(org-agenda-skip-archived-trees (memq 'archive 
> skip))
>  master:lisp/org.el:(org-agenda-skip-comment-trees (memq 'comment 
> skip))
>  master:lisp/org.el: (when org-agenda-skip-archived-trees




Removed variables ‘org-agenda-skip-comment-trees’ and ‘org-agenda-skip-archived-trees’

2020-11-19 Thread wlharvey4
In Org 9.4, Manual section 11 Agenda Views, second to last paragraph, neither 
of the referenced variables appears to exist.  The manual should be updated; is 
there a different mechanism for these actions now?

Regards,
Wesley


Seeking identical output for export

2020-01-07 Thread wlharvey4
Hello:

I am seeking to find the right way to obtain identical output when exporting an 
Org file into texinfo using the export menu from within the Org file as well as 
from a Makefile using an Emacs batch script.

Currently I am using (org-export-to-file ‘texinfo “”) from within a 
Makefile.  This produces a file that has a few differences from that produced 
by using the export menu 'C-c C-e i t’.

The batch script is:

 emacs -Q --batch --eval '\
  (progn \
(require '\''org) \
(require '\''ob) \
(require '\''ox-texinfo) \
(require '\''ob-shell) \
(setq org-confirm-babel-evaluate nil) \
(find-file "$(ORG)") \
(org-export-to-file '\''texinfo "$(TEXI)"))'

The differences include:
- the {{{date}}} macro is empty when created with the Makefile
  e.g. subtitle Version 0.0.0 
 versus
 subtitle Version 0.0.0 2020-01-07 10:05

The Org source is:
#+subtitle {{{version}}} {{{date}}}
#+macro:version Version 0.0.0

The version macro is expanded but not the date macro.

- references are random strings rather than similar to the #+name when created 
with the Makefile
  e.g. float Listing,orge1fba27
 versus 
 float Listing,get-org-filename

- periods at the end of variable references
  e.g. ... exists: $NEWDIR.
 versus 
 ...exists: $NEWDIR@.

Thank you for any suggestions.

Wesley


[O] Inject value of macro into code using a variable

2019-10-15 Thread wlharvey4 via Emacs-orgmode
Is it possible to inject the value of a macro into code using a variable?

I set a macro called ‘version’ with a version number at the top of my .org 
file.  I would like to do something like this:

#+macro:version Version 0.2.5

#+name:code-name
#+begin_src js :tangle some-file.js :var ver={{{version}}} :exports both 
:results output
const version = ver;
#+end_src

When this code is evaluated during export, there is an error:

org-babel-ref-resolve: Reference ‘{{{version}}}’ not found in this buffer

Regards,
Wesley




[O] Bug: Export to Texinfo Broken [9.2 (9.2-elpaplus @ /Users/lolh/.emacs.d/elpa/org-plus-contrib-20181230/)]

2019-01-21 Thread wlharvey4
The following Org document exports to Texinfo '.texi’ in Orgmode
9.1.14 but fails under Orgmode 9.2 with the following error message:

'Cannot generate node name for type: src-block'

The source of the problem arises from commit `04f35fc473`.  When the
changes are undone in that one commit, the document will export
to a ‘.texi' file.  There's no documented motivation for the change, so it’s
Hard to figure out what a proper fix would be.

If the Org document does not use #+CAPTION and #+NAME, (and therefore
no links nor listings), then the document will export in 9.2.  For some reason,
when adding a #+CAPTION or #+NAME, the code cannot return a node name.

Wesley Harvey


# -*- mode:org; -*-
#+TITLE:Hello World in the World
#+SUBTITLE:A Listing of All the Ways to Say /Hello World/
#+AUTHOR:HW
#+DATE:\today
* Introduction
 :PROPERTIES:
 :UNNUMBERED:
 :END:
 This is an introduction to /Hello World/.
* Hello World in Python
 :PROPERTIES:
 :DESCRIPTION: Source code for Hello World
 :ALT_TITLE: HelloWorld Python
 :END:
 #+CAPTION[Hello Python]:Hello World in Python
 #+NAME:src:hello-world-python
 #+BEGIN_SRC python -n :results output
 print("Hello World from Python.")
 #+END_SRC

 #+RESULTS: src:hello-world-python
 : Hello World from Python.

** Reference To Python HelloWorld
  See [[src:hello-world-python][Hello World Python]].
* Hello World in JavaScript
 :PROPERTIES:
 :DESCRIPTION: How to say HelloWorld in JavaScript
 :ALT_TITLE: HelloWorld JS
 :END:
 #+CAPTION[Hello JS]:Hello World in JavaScript
 #+NAME:src:hello-world-js
 #+BEGIN_SRC js -n :results: output
 console.log("Hello World from JavaScript.")
 #+END_SRC

 #+RESULTS: src:hello-world-js
 : Hello World from JavaScript.
 : undefined

** Reference to JS HelloWorld
  JavaScript.  ([[src:hello-world-js][HW JS]])
* Listings
 :PROPERTIES:
 :APPENDIX:
 :END:
 #+TEXINFO: @listoffloats Listing

* EXPORT SETTINGS  :noexport:
#+TEXINFO_CLASS: info
#+TEXINFO_DIR_CATEGORY:Texinfo
#+TEXINFO_DIR_TITLE:HelloWorld
#+TEXINFO_DIR_DESC:How to say HelloWorld in Different Languages
#+TEXINFO_PRINTED_TITLE:Hello World Around the World
-

Emacs  : GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.7.0, Carbon Version 158 
AppKit 1561.6)
of 2018-11-17
Package: Org mode version 9.2 (9.2-elpaplus @ 
/Users/lolh/.emacs.d/elpa/org-plus-contrib-20181230/)

current state:
==
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-texinfo-format-headline-function 
'org-texinfo-format-headline-default-function
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-latex-pdf-process '("%latex -interaction nonstopmode -output-directory %o 
%f" "makeindex %b" "makeglossaries %b"
"%latex -interaction nonstopmode -output-directory %o 
%f")
org-agenda-files '("/usr/local/work/workorg/wlcases.org " 
"~/.org/notes.org ")
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-mhe 
org-rmail org-w3m)
org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function 
org-imenu-get-tree] 2]
#[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-show-all append local] 5]
#[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes 
auto-fill-mode org-eldoc-load)
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-archive-hook '(org-attach-archive-delete-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-babel-pre-tangle-hook '(save-buffer)
org-latex-compiler "xelatex"
org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-babel-load-languages '((emacs-lisp . t) (perl . t) (python . t) (ruby . t) 
(C . t) (clojure . t) (java . t) (latex . t) (js . t) (ocaml . t))
org-log-done 'time
org-export-backends '(ascii html icalendar latex md odt org texinfo)
org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS 
WIDTH)"]
org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C"