Re: [O] org-agenda-files for calfw

2015-08-28 Thread Julien Cubizolles
Julien Cubizolles j.cubizol...@free.fr writes:

 Nick Dokos ndo...@gmail.com writes:


 Bind org-agenda-files in a let before calling cfw:open-org-calendar:

 (let ((org-agenda-files '(...)))
   (cfw:open-org-calendar))

 That's exactly what I needed, thanks.

I just noticed something very weird, as soon as the agenda is recreated
(next month in a month view), the binding of org-agenda-files is lost,
and reverts to the global value...


Julien.




Re: [O] Links to Info manuals in exported HTML/LaTeX

2015-08-28 Thread Suvayu Ali
On Thu, Aug 27, 2015 at 10:19:40AM +0200, Marcin Borkowski wrote:
 Hi all,
 
 it seems that links to Info manuals are broken in HTML and LaTeX export
 (and possibly in other backends, too).
 
 Would it make sense to make them work, i.e., link to the official web
 versions, at least for standard Info manuals, like Emacs manual, Elisp
 reference or Org manual?

You could probably use filters (org-export-filter-link-functions) to
point them where you want them.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] org-agenda-files for calfw

2015-08-28 Thread Julien Cubizolles
Nick Dokos ndo...@gmail.com writes:


 Bind org-agenda-files in a let before calling cfw:open-org-calendar:

 (let ((org-agenda-files '(...)))
   (cfw:open-org-calendar))

That's exactly what I needed, thanks.

Julien.




Re: [O] no such file or directory gnuplot

2015-08-28 Thread Grant Rettke
On Thu, Aug 27, 2015 at 4:24 PM, Tobias Frischholz tob...@friolz.com wrote:
 My system is an OSX Yosemite with Emacs 24.5.1 and org-mode 8.3.1 (both
 installed via Homebrew).

 For training purposes I have tried this example:
 https://www.gnu.org/software/emacs/manual/html_node/org/Org_002dPlot.html

 Upon hitting C-c  g, I get the following in my *Messages* buffer:

Perhaps it isn't in your =PATH=. Try
https://github.com/purcell/exec-path-from-shell .



Re: [O] org-agenda-files for calfw

2015-08-28 Thread Nick Dokos
Julien Cubizolles j.cubizol...@free.fr writes:

 Julien Cubizolles j.cubizol...@free.fr writes:

 Nick Dokos ndo...@gmail.com writes:


 Bind org-agenda-files in a let before calling cfw:open-org-calendar:

 (let ((org-agenda-files '(...)))
   (cfw:open-org-calendar))

 That's exactly what I needed, thanks.

 I just noticed something very weird, as soon as the agenda is recreated
 (next month in a month view), the binding of org-agenda-files is lost,
 and reverts to the global value...



I admit I didn't read your original question very carefully, so I might
have overlooked something, but the behavior above is not weird: the let
binds org-agenda-files and then calls cfw:ooc - when that returns the
let binding is gone as well.

-- 
Nick




[O] exporting multiple choice questions to Aiken or GIFT formats?

2015-08-28 Thread Eric S Fraga
Hi,

just on the off chance that somebody has done this already, is there an
export engine for creating Aiken or GIFT format exam questions?

I assume not, so my next question is where to start?  I want to take
something like this:

#+begin_src org
  ,* What is my name?
  :PROPERTIES:
  :answer:   3
  :END:
  1. Joe
  2. Martha
  3. Eric
  4. Fido
#+end_src

and generate (assuming Aiken format):

#+begin_example
What is my name?
A. Joe
B. Martha
C. Eric
D. Fido
ANSWER: C
#+end_example

I can probably do this quite easily with awk (my language of choice fo
text manipulation generally) but it would quite nice to be able to
export directly from org.

The second step would be to be able to select a random number of
questions to export from a larger question bank.  Suggestions for how to
do this also welcome!

By the way, I am not wedded to the format shown in the org example but
the output does have to match what is shown (upper case letters, upper
case ANSWER immediately following).

thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] Worg isn't publishing

2015-08-28 Thread Kyle Meyer
Thomas S. Dye t...@tsdye.com writes:

 Aloha all,

 Worg hasn't published for several days.

 All the best,
 Tom

I pushed to Worg last night and noticed that it did not update.  I
recorded the message below but hadn't got around to emailing the list.

  0 git … push -v origin master:refs/heads/master
Pushing to w...@orgmode.org:worg.git
Counting objects: 3, done.
Writing objects: 100% (3/3), 687 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: From /home/worg/worg
remote:  * branchmaster - FETCH_HEAD
remote: Merge made by recursive.
remote:  org-contribute.org |   55 
++-
remote:  1 files changed, 28 insertions(+), 27 deletions(-)
remote: worg publish process 22778 started at 08/27/15@11:08:01
remote: Loading 00debian-vars...
remote: Loading /etc/emacs-snapshot/site-start.d/00emacs-snapshot-common.el 
(source)...
remote: Loading /etc/emacs/site-start.d/50git-core.el (source)...
remote: Loading /home/emacs/.emacs.el (source)...
remote: Loading /home/emacs/.emacs-custom.el (source)...
remote: Source file `/home/emacs/git/org-mode/lisp/org.el' newer than 
byte-compiled file
remote: Source file `/home/emacs/git/org-mode/lisp/org-list.el' newer than 
byte-compiled file
remote: Source file `/home/emacs/git/org-mode/lisp/org-element.el' newer 
than byte-compiled file
remote: Invalid function: 41
remote: worg publish process 22778 exited at 08/27/15@11:08:02
To w...@orgmode.org:worg.git
   709aeef..85626b9  master - master
updating local tracking ref 'refs/remotes/origin/master'

A recent post (unresolved) also reported Invalid function: 41:

http://thread.gmane.org/gmane.emacs.orgmode/100162/focus=100198

--
Kyle



Re: [O] org-agenda-files for calfw

2015-08-28 Thread Julien Cubizolles
Nick Dokos ndo...@gmail.com writes:

 I admit I didn't read your original question very carefully, so I might
 have overlooked something, but the behavior above is not weird: the let
 binds org-agenda-files and then calls cfw:ooc - when that returns the
 let binding is gone as well.

It seems that the function cfw:ooo is called everytime the agenda is
redrawn. Advising cfw:ooo should be the way to go then.

Julien.




[O] Worg isn't publishing

2015-08-28 Thread Thomas S . Dye
Aloha all,

Worg hasn't published for several days.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



[O] install org-element, org-db

2015-08-28 Thread Lawrence Bottorff
What's the best way to install latest org-element and org-db? They're not
default, are they? They're not in ELPA.


Re: [O] install org-element, org-db

2015-08-28 Thread Rasmus
Lawrence Bottorff borg...@gmail.com writes:

 What's the best way to install latest org-element and org-db? They're not
 default, are they? They're not in ELPA.

Don't know what org-db is.  Re org-element you should probably use the one
that comes with your org-package.  IOW, you general org version and your
org-element version should be in sync.

Hope it helps,
Rasmus

-- 
Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken på knä!




Re: [O] exporting multiple choice questions to Aiken or GIFT formats?

2015-08-28 Thread Marcin Borkowski

On 2015-08-28, at 16:44, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 Hi,

 just on the off chance that somebody has done this already, is there an
 export engine for creating Aiken or GIFT format exam questions?

I've never heard of these, but I did a similar thing for HTML+JS and
LaTeX:

https://github.com/mbork/org-edu-html
https://github.com/mbork/org-edu-latex

My markup was to use lists with checkboxes, and check the correct
answer(s).

 The second step would be to be able to select a random number of
 questions to export from a larger question bank.  Suggestions for how to
 do this also welcome!

I would do it in a separate function altogether, so that I could
e.g. first create a random set of questions, and then run an exporter to
generate the test.

Tomorrow I'm giving a talk during EmacsConf2015
(http://emacsconf2015.org/) about custom Org exporters.  Notes and code
are available here: https://github.com/mbork/ox-oddmuse .

 thanks,
 eric

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



Re: [O] install org-element, org-db

2015-08-28 Thread Lawrence Bottorff
Yes, I got confused when I did M-x org-element-interpret-data and got
nothing. I used it in a code block and it worked fine. Beginner question
for sure: Why do these functions not work as M-x commands, rather, just in
elisp code?

BTW, how would I run org-element-interpret-data and have it just place the
output directly into my buffer without placing it in the #+RESULTS: output
format? I see I can customize the #+RESULTS: word itself, and, of
course, *:results
raw* almost gets it, but still puts the #+RESULTS: label at the top.

On Fri, Aug 28, 2015 at 4:27 PM, Rasmus ras...@gmx.us wrote:

 Lawrence Bottorff borg...@gmail.com writes:

  What's the best way to install latest org-element and org-db? They're not
  default, are they? They're not in ELPA.

 Don't know what org-db is.  Re org-element you should probably use the one
 that comes with your org-package.  IOW, you general org version and your
 org-element version should be in sync.

 Hope it helps,
 Rasmus

 --
 Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken på knä!





Re: [O] install org-element, org-db

2015-08-28 Thread Nick Dokos
Lawrence Bottorff borg...@gmail.com writes:

 Yes, I got confused when I did M-x org-element-interpret-data and got 
 nothing. I used it in a code block
 and it worked fine. Beginner question for sure: Why do these functions not 
 work as M-x commands, rather,
 just in elisp code?


It's the difference between commands and functions. Commands are
functions that contain an (interactive) form and can be executed with
M-x command RET.  Functions need to be evaluated with M-: (function
args...) RET.

See the command entry in

   (info (elisp) What is a function)

and references therein. I should say that the above is not quite
accurate but it captures 99% of what you need to know. Read the
references for the whole story.

 BTW, how would I run org-element-interpret-data and have it just place the 
 output directly into my
 buffer without placing it in the #+RESULTS: output format? I see I can 
 customize the #+RESULTS: word
 itself, and, of course, :results raw almost gets it, but still puts the 
 #+RESULTS: label at the top.


M-: (org-element-interpret-data) RET

would evaluate the function, but any results would go to the echo area,
not your buffer. Adding a prefix argument would do what you want:

C-u M-: (org-element-interpret-data) RET

 On Fri, Aug 28, 2015 at 4:27 PM, Rasmus ras...@gmx.us wrote:

 Lawrence Bottorff borg...@gmail.com writes:

  What's the best way to install latest org-element and org-db? They're 
 not
  default, are they? They're not in ELPA.

 Don't know what org-db is.  Re org-element you should probably use the one
 that comes with your org-package.  IOW, you general org version and your
 org-element version should be in sync.

 Hope it helps,
 Rasmus

 --
 Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken på knä!

Nick




[O] org-collector unable to handle macros

2015-08-28 Thread Mark Edgington
I have had problems getting org-collector.el to generate tables where the
content of the tables should include macros.  At some point in the past this
worked, but at this time (latest git version of org-mode), the following
example fails (unless you remove the macro from the property definition):

# comment-macro
#+MACRO: c 

* Notes
:PROPERTIES: 
:ID: sched_table
:COLUMNS:  %WEEKNUM(Week #) %DAY(Day) %INCLASS(In-class Content)
%READINGS(Readings) %PRECLASS(Pre-class Assignments / Homework)
:END:
** WEEK 1
*** DAY
:PROPERTIES:
:INCLASS:  ABC {{{c(stuff)}}} DEF
:DAY:  T
:WEEKNUM:  1
:END:
blah

* Schedule
# type C-c C-c on the #BEGIN line to attempt to generate the table
#+BEGIN: propview :id sched_table :defaultval  :conds ((not (string= DAY
))) :cols (WEEKNUM DAY INCLASS READINGS PRECLASS) :noquote t :colnames
(Week # Day In-class Content Readings Pre-class Assignments / Homework)

#+END:


Any help in resolving this problem would be appreciated!  Thanks.




Re: [O] install org-element, org-db

2015-08-28 Thread Nick Dokos
Nick Dokos ndo...@gmail.com writes:

 BTW, how would I run org-element-interpret-data and have it just place the 
 output directly into my
 buffer without placing it in the #+RESULTS: output format? I see I can 
 customize the #+RESULTS: word
 itself, and, of course, :results raw almost gets it, but still puts the 
 #+RESULTS: label at the top.


 M-: (org-element-interpret-data) RET

 would evaluate the function, but any results would go to the echo area,
 not your buffer. Adding a prefix argument would do what you want:

 C-u M-: (org-element-interpret-data) RET


I didn't look at the definition before posting, sorry -
org-element-interpret-data takes an argument and you need to
pass it in the call:

C-u M-: (org-element-interpret-data  data) RET

As Rasmus points out, that might be complicated/inconvenient/both.

Nick




Re: [O] org-mode 3.5.1 at emacs 24: invalid-functon 41

2015-08-28 Thread Nicolas Goaziou
Hello,

Martin Steffen mstef...@ifi.uio.no writes:

 org-element--set-regexps: Invalid function: 41

41 is ?\) character. I think the problem lies in this snippet from
`org-element--set-regexps'

  (case org-plain-list-ordered-item-terminator
(?\) )) (?. \\.) (otherwise [.)]))
 ^^^

Could you try the following patch?

diff --git a/lisp/org-element.el b/lisp/org-element.el
index 8f41ab2..7b95e0d 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -177,8 +177,11 @@ specially in `org-element--object-lex'.)
;; Clock lines.
(regexp-quote org-clock-string) \\|
;; Lists.
-   (let ((term (case org-plain-list-ordered-item-terminator
- (?\) )) (?. \\.) (otherwise [.)])))
+   (let ((term (if (characterp
+org-plain-list-ordered-item-terminator)
+   (char-to-string
+org-plain-list-ordered-item-terminator)
+ [.)]))
  (alpha (and org-list-allow-alphabetical \\|[A-Za-z])))
  (concat \\(?:[-+*]\\|\\(?:[0-9]+ alpha \\) term \\)
  \\(?:[ \t]\\|$\\)))


Regards,

-- 
Nicolas Goaziou



Re: [O] install org-element, org-db

2015-08-28 Thread Rasmus
Lawrence Bottorff borg...@gmail.com writes:

 Yes, I got confused when I did M-x org-element-interpret-data and got
 nothing. I used it in a code block and it worked fine. Beginner question
 for sure: Why do these functions not work as M-x commands, rather, just in
 elisp code?

The technical reason: Function that are not marked as interactive won't
show up in M-x.  See the the docstring of interactive and the elisp manual
for details.

Why wasn't it marked interactive [note, I'm speculating here]?  It's
unlikely that you could want or should to run org-element-interpret-data
with hand-written input.  The org-element form becomes quite long (check
org-element-at-point on your favorite element).  In any case, when you
need it just do M-:.

 BTW, how would I run org-element-interpret-data and have it just place the
 output directly into my buffer without placing it in the #+RESULTS: output
 format? I see I can customize the #+RESULTS: word itself, and, of
 course, *:results
 raw* almost gets it, but still puts the #+RESULTS: label at the top.

To the best of my knowledge I would say no.  If I'm wrong Nick D will
surely chim in with the correct answer.

Rasmus

-- 
May contains speling mistake




Re: [O] org-collector unable to handle macros

2015-08-28 Thread Charles Millar
This may be related to the problem or is the same that I reported in 
April and May and again earlier this month when Bastien's requested 
details in his August 4th message.


org-collector does not work with org 8.3, but does with 8.2.10

Charlie Millar

On 08/28/2015 02:11 PM, Mark Edgington wrote:

I have had problems getting org-collector.el to generate tables where the
content of the tables should include macros.  At some point in the past this
worked, but at this time (latest git version of org-mode), the following
example fails (unless you remove the macro from the property definition):

# comment-macro
#+MACRO: c

* Notes
:PROPERTIES:
:ID: sched_table
:COLUMNS:  %WEEKNUM(Week #) %DAY(Day) %INCLASS(In-class Content)
%READINGS(Readings) %PRECLASS(Pre-class Assignments / Homework)
:END:
** WEEK 1
*** DAY
:PROPERTIES:
:INCLASS:  ABC {{{c(stuff)}}} DEF
:DAY:  T
:WEEKNUM:  1
:END:
blah

* Schedule
# type C-c C-c on the #BEGIN line to attempt to generate the table
#+BEGIN: propview :id sched_table :defaultval  :conds ((not (string= DAY
))) :cols (WEEKNUM DAY INCLASS READINGS PRECLASS) :noquote t :colnames
(Week # Day In-class Content Readings Pre-class Assignments / Homework)

#+END:


Any help in resolving this problem would be appreciated!  Thanks.