Re: [O] Descriptive links in tables no longer working

2016-02-07 Thread Loris Bennett
Nicolas Goaziou  writes:

> Hello,
>
> "Loris Bennett"  writes:
>
>> OK, thanks.  I have the version from 2015-02-01, which seems to be the
>> most current from orgmode.org/elpa, so I'll just wait until the next
>> version appears.
>
> This version contains the fix. You might have forgotten to reload.
>
> Regards,

You're right.  Sorry for the noise - everything is working as expected.

Cheers,

Loris

-- 
This signature is currently under construction.




Re: [O] org-player and switch to lexical binding in org.el

2016-02-07 Thread Michael Brand
Hi Paul

On Thu, Jan 28, 2016 at 4:00 AM, Paul Sexton  wrote:

> Hi, I have just pushed the suggested change to the org-player repository on
> bitbucket. Please let me know if it has fixed the problem.

org-player.el 1.0.1 plays again for links with a position. For links
without position there is a change missing, see my attached patch as a
suggestion.

Michael
--- org-player.1.0.1.el	2016-01-29 21:32:18.0 +0100
+++ org-player.1.0.2.el	2016-02-06 09:27:14.0 +0100
@@ -2,7 +2,7 @@
 ;;; org-player.el - Play audio and video files in org-mode hyperlinks
 ;;;
 ;;; Author: Paul Sexton 
-;;; Version: 1.0.1
+;;; Version: 1.0.2
 ;;; Repository at http://bitbucket.org/eeeickythump/org-player/
 ;;;
 ;;;
@@ -102,7 +102,7 @@
 
 (add-to-list 'org-file-apps
  (cons (concat org-player-file-extensions-regexp "$")
-   '(org-player-play-file file)))
+   (lambda (file link) (org-player-play-file file
 
 (add-to-list 'org-file-apps
  (cons (concat org-player-file-extensions-regexp


Re: [O] Evaluating simple inline expressions in org-mode

2016-02-07 Thread H. Dieter Wilhelm

>>> works as well.  I'm not sure how you define variables in calc however...
>>
>> You could write something like src_calc[:var x=3.41]{2*x} :-)
>
> Yes but can you save a variable for use in a later expression?

Well, at the moment I don't know another way as defining the calc
variables on the lisp level:

#+BEGIN_SRC emacs-lisp
(setq var-foo 9.81
  var-x 3.14
  var-bar ...)
#+END_SRC

Note: `var-' is a special prefix for the calc variables `foo', `x',
...

And then something like

  src_calc{2*x}

is working.

-- 
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany




Re: [O] org-pdfview-open doesn't work anymore

2016-02-07 Thread Nicolas Goaziou
Hello,

Michael Brand  writes:

> Remixed patch for review attached.

It looks good. Please apply it on master.

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Default location for "./" with respect to capture file+headline

2016-02-07 Thread John Hendy
On Fri, Feb 5, 2016 at 9:55 PM, Kyle Meyer  wrote:
> Hello,
>
> John Hendy  writes:
>
>> When I do =C-c c= to try a capture example, it's trying to file it
>> with respect to ~/org and I'm not sure why. Here's the capture section
>> of dir/setup/example-config:
>>
>> (setq org-capture-templates
>>   '(("l" "log" entry (file+headline "./demo/org-demo_capture.org" "Log")
>>  "* %? \n%u " :clock-in t :clock-resume t)
>> ("t" "task" entry (file+headline "./demo/org-demo_article.org" "Tasks")
>>  "* todo %? %^g\n%u" :prepend t)
>> ("c" "clock" entry (file+datetree "./demo/org-demo_clocking.org")
>>  "* %?\n%u" :clock-in t :clock-keep t)))
>>
>> The capture buffer wants to create the directory ~/org/demo.
>
> The variable org-directory affects this:
>
> --8<---cut here---start->8---
> Documentation:
> Directory with Org files.
> This is just a default location to look for Org files.  There is no need
> at all to put your files into this directory.  It is used in the
> following situations:
>
> 1. When a capture template specifies a target file that is not an
>absolute path.  The path will then be interpreted relative to
>‘org-directory’
> 2. When the value of variable ‘org-agenda-files’ is a single file, any
>relative paths in this file will be taken as relative to
>‘org-directory’.
> --8<---cut here---end--->8---

Thank you very much! That did it and let me run my "sandbox" org
capture demonstration nicely.

So I can fish for myself next time, did you happen to just know this
relationship, or search the manuals for "capture"? I took a look at
the templates manual page and simply say file+headline used, though
with an absolute path.
- http://orgmode.org/manual/Capture-templates.html#Capture-templates


In any case, thanks again for the tip.
John

>
> --
> Kyle



Re: [O] org-pdfview-open doesn't work anymore

2016-02-07 Thread Michael Brand
Hi Nicolas

On Sat, Feb 6, 2016 at 5:41 PM, Nicolas Goaziou  wrote:

> IMO, notifying user that there's something rotten in the state of
> `org-file-apps' is enough. There's no need to go into the gory details
> of the problem.

I agree and finally found what I was missing: Add `debug' to the
handler of `condition-case' to finally not disable support of further
investigation with `toggle-debug-on-error'. It obsoletes my trials to
provide enough context about the Lisp error in the handler itself.
Remixed patch for review attached.

Michael
From 96aa89840c15c71c534faa0ce265530d5ff88c0a Mon Sep 17 00:00:00 2001
From: Michael Brand 
Date: Sun, 7 Feb 2016 11:07:56 +0100
Subject: [PATCH] `org-file-apps' add migration hint for function signature

* lisp/org.el (org-open-file): Add a user error for when the function
signature does not match.
---
 lisp/org.el | 13 ++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index cce4f3a..e77fd4a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11325,15 +11325,22 @@ If the file does not exist, an error is thrown."
  ((functionp cmd)
   (save-match-data
 	(set-match-data link-match-data)
-	(funcall cmd file link)))
+	(condition-case nil
+	(funcall cmd file link)
+	  ;; FIXME: Remove this check when most default installations
+	  ;; of Emacs have at least Org 9.0.
+	  ((debug wrong-number-of-arguments wrong-type-argument
+	invalid-function)
+	   (user-error "Please see Org News for version 9.0 about \
+`org-file-apps'--Lisp error: %S" cmd)
  ((consp cmd)
   ;; FIXME: Remove this check when most default installations of
   ;; Emacs have at least Org 9.0.
   ;; Heads-up instead of silently fall back to
   ;; `org-link-frame-setup' for an old usage of `org-file-apps'
   ;; with sexp instead of a function for `cmd'.
-  (user-error
-   "Please see Org News for version 9.0 about `org-file-apps'"))
+  (user-error "Please see Org News for version 9.0 about \
+`org-file-apps'--Error: Deprecated usage of %S" cmd))
  (t (funcall (cdr (assq 'file org-link-frame-setup)) file)))
 (and (derived-mode-p 'org-mode)
 	 (eq old-mode 'org-mode)
-- 
2.4.9 (Apple Git-60)



Re: [O] No image output from Maxima in Babel

2016-02-07 Thread Zachary Peterson
> Eric S Fraga  writes:
> Confirmed.

> You haven't said what version you are using or what kind of system you
> are running on so I will assume up to date org on Linux as why would
> you be doing otherwise ;-)

> What is happening is that maxima, at least on my system (Debian
> testing), is creating the plot in my home directory and not where the
> org file is.  Check your home directory to see if the plot is there.

> If you specify a full path, e.g. /tmp/maxima-3d.png, it may work for
> you (it does for me) although obviously this is less than ideal.

> The fix would be to have the argument to set_plot_option for the
> gnuplot_plot_file be a fully qualified file name.

> (beyond my ability to fix unfortunately)

> HTH, eric

> -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org
> release_8.3.3-548-g99697a

Thank you, that was exactly what was happening.

-- 
Zachary Peterson
zap5...@psu.edu
(317) 828-2377
OpenPGP key: BF5879D6


signature.asc
Description: PGP signature


Re: [O] No image output from Maxima in Babel

2016-02-07 Thread Eric S Fraga
On Sunday,  7 Feb 2016 at 10:58, Zachary Peterson wrote:
>> Eric S Fraga  writes:
>> The fix would be to have the argument to set_plot_option for the
>> gnuplot_plot_file be a fully qualified file name.
>
>> (beyond my ability to fix unfortunately)
>
>> HTH, eric
>
> Thank you, that was exactly what was happening.

Great.  Maybe submit a bug report to have this on the list of things to
fix (sometime)?

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3.3-548-g99697a



Re: [O] [PATCH] org-attach.el: Get attachments from git annex

2016-02-07 Thread Achim Gratz
Erik Hetzner writes:
> Thank you for all your feedback on this code! I’m really happy with how it
> turned out, and glad it is in master now.

Please fix the tests to not fail (preferrably not run) if git-annex is
not installed.

Also, revert the patch to mk/targets.mk; $(RMR) already includes the
'--force' flag, so it can remove write protected files just fine.  If
it's write protecting directories then that would be stupid, but still
no reason to chmod all files.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Default location for "./" with respect to capture file+headline

2016-02-07 Thread Kyle Meyer
John Hendy  writes:

[...]

> Thank you very much! That did it and let me run my "sandbox" org
> capture demonstration nicely.
>
> So I can fish for myself next time, did you happen to just know this
> relationship, or search the manuals for "capture"? I took a look at
> the templates manual page and simply say file+headline used, though
> with an absolute path.
> - http://orgmode.org/manual/Capture-templates.html#Capture-templates

It doesn't seem to be mentioned in the capture documentation (either the
manual or org-capture-templates's docstring).  I think I knew about
org-directory from looking into something with
org-read-agenda-file-list, which is another place it is used.  Until
recently, org-directory's docstring was stale for a long time and nobody
noticed, so I'm guessing few people use the variable.

I've updated org-capture-templates and the capturing section of the
manual to mention org-directory.

--
Kyle



[O] [ANN] Tufte Org Mode

2016-02-07 Thread Thomas S . Dye
Aloha all,

An Org mode environment to create Tufte-LaTeX books and handouts is now
available at https://github.com/tsdye/tufte-org-mode.

Tufte Org Mode consists of two files:

1) an Org mode file, tufte-latex.org, that contains documentation
and setups for the Tufte-LaTeX book and Tufte-LaTeX handout classes,
and

2) an Emacs Lisp file, ox-tufte-latex.el, derived from the
ox-latex.el exporter written by Nicolas Goaziou, that implements an
Org mode export backend for the Tufte-LaTeX classes.

Also included is tufte-org-mode-handout.pdf, which is a Tufte style
handout that describes the Org mode source that generates it.

Many thanks to all the good Org mode people on the mailing list who
kindly helped along the way.

All the best,
Tom

PS  Note that ox-tufte-latex.el has been modified slightly since I sent
it to the ML a few days ago (the LaTeX attribute :offset is changed to
:placement). Tom

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



Re: [O] [PATCH] org-attach.el: Get attachments from git annex

2016-02-07 Thread Erik Hetzner
Hi Rasmus and Kyle,

On Sat, 06 Feb 2016 04:18:55 -0800,
Rasmus  wrote:
>
> Hi Erik and Kyle,
>
> Sorry for the delay, I was traveling this week.  I’m happy with the patch now
> and it has been pushed to master.

Thank you for all your feedback on this code! I’m really happy with how it
turned out, and glad it is in master now.

best, Erik

--
Sent from my free software system .



[O] indicate scheduled or deadline

2016-02-07 Thread Samuel Wales
some tasks show up in agenda agenda as (either closed or
inactive) and are also (either scheduled or deadline) without indication.

also, tasks show up in agenda text search without indicating
whether they are also (either scheduled or deadline).

i'd like to indicate that all of these tasks are also (either scheduled or
deadline) with ?!, perhaps in the prefix.  can this be done
without slowing down the agenda?

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] org-ref no bibliography generated in pdf

2016-02-07 Thread Andreas Kiermeier
On 7 February 2016 at 04:38, John Kitchin  wrote:

> that is why you don't get bibtex run then ;) try this
> (setq org-latex-pdf-process
>'("pdflatex -shell-escape -interaction nonstopmode
> -output-directory %o %b"
>  "bibtex %b"
>  "pdflatex -shell-escape -interaction nonstopmode
> -output-directory %o %b"
>  "pdflatex -shell-escape -interaction nonstopmode
> -output-directory %o %b"))
>

​Hi John & list,

is there any reason why we should be hardcoding multiple runs of pdflatex​

​(& bibtex) instead of using texify?

I have my org-latex-to-pdf set to
"texify -p -b --tex-option=-shell-escape %f"​
​ (I'm on Windows 10, running MikTex 2.9), which hasn't given my any
problems to date and seem to be a little more efficient​.

I'm just curious.

Cheers,

AK


Re: [O] org-ref no bibliography generated in pdf

2016-02-07 Thread John Kitchin
no reason. I do not actually use this code below. I have another
function that probably does want texify does ;) maybe some extra stuff
like running makeindex, etc

Andreas Kiermeier writes:

> On 7 February 2016 at 04:38, John Kitchin  wrote:
>
>> that is why you don't get bibtex run then ;) try this
>> (setq org-latex-pdf-process
>>'("pdflatex -shell-escape -interaction nonstopmode
>> -output-directory %o %b"
>>  "bibtex %b"
>>  "pdflatex -shell-escape -interaction nonstopmode
>> -output-directory %o %b"
>>  "pdflatex -shell-escape -interaction nonstopmode
>> -output-directory %o %b"))
>>
>
> ​Hi John & list,
>
> is there any reason why we should be hardcoding multiple runs of pdflatex
>
> ​(& bibtex) instead of using texify?
>
> I have my org-latex-to-pdf set to
> "texify -p -b --tex-option=-shell-escape %f"
> ​ (I'm on Windows 10, running MikTex 2.9), which hasn't given my any
> problems to date and seem to be a little more efficient​.
>
> I'm just curious.
>
> Cheers,
>
> AK


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] indicate scheduled or deadline

2016-02-07 Thread Samuel Wales
best i have:

(asetf (cdr (assoc 'agenda org-agenda-prefix-format))
   (replace-regexp-in-string
"%i "
"%i%(if (and (alpha-org-entry-get \"CLOSED\")
(alpha-org-entry-get \"SCHEDULED\")) \"!\" \" \")"
it))

On 2/7/16, Samuel Wales  wrote:
> some tasks show up in agenda agenda as (either closed or
> inactive) and are also (either scheduled or deadline) without indication.
>
> also, tasks show up in agenda text search without indicating
> whether they are also (either scheduled or deadline).
>
> i'd like to indicate that all of these tasks are also (either scheduled or
> deadline) with ?!, perhaps in the prefix.  can this be done
> without slowing down the agenda?
>
> --
> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
>
> The disease DOES progress.  MANY people have died from it.  And
> ANYBODY can get it.
>
> Denmark: free Karina Hansen NOW.
>


-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] org-ref no bibliography generated in pdf

2016-02-07 Thread Nick Dokos
Andreas Kiermeier  writes:

> On 7 February 2016 at 04:38, John Kitchin  wrote:
>
> that is why you don't get bibtex run then ;) try this
> (setq org-latex-pdf-process
>        '("pdflatex -shell-escape -interaction nonstopmode 
> -output-directory %o %b"
>          "bibtex %b"
>          "pdflatex -shell-escape -interaction nonstopmode 
> -output-directory %o %b"
>          "pdflatex -shell-escape -interaction nonstopmode 
> -output-directory %o %b"))
>
> ​Hi John & list,
>
> is there any reason why we should be hardcoding multiple runs of pdflatex​
>  
> ​(& bibtex) instead of using texify?
>
> I have my org-latex-to-pdf set to 
> "texify -p -b --tex-option=-shell-escape %f"​
> ​ (I'm on Windows 10, running MikTex 2.9), which hasn't given my any problems 
> to date and
> seem to be a little more efficient​.
>

They are not hardcoded: that's just the default value of
org-latex-pdf-process which can be customized.

The three pdflatex runs are a "safe" default which avoids
incompatibilities between systems.

The customization options for org-latex-pdf-process list some other
possibilities which one might choose in preference to the default. If
texify can do the job (even if it does not exist on all systems of
interest), I would suggest adding it to the customizations menu of the
variable, so it can be chosen by a user as his/her personal default.

-- 
Nick




Re: [O] using pdf as output of src-block doesn't show an inline image

2016-02-07 Thread Arun Persaud
Hi

managed to get pdfs to display ;)

Here is what I added in my .emacs file:

(add-to-list 'image-type-file-name-regexps '("\\.pdf\\'" . imagemagick))
(add-to-list 'image-file-name-extensions "pdf")
(setq imagemagick-types-inhibit (remove 'PDF imagemagick-types-inhibit))
(setq org-image-actual-width 600)

This works for me, but I always need to run org-display-inline-images by
hand after I changed something in my python code. That is, the images
don't update automatically, which they did for pngs. Any idea why that is?

Another question I have now, is if the above code messes up other modes,
I guess there was/is a reason to inhibit pdfs with imagemagick. How do I
make the above changes only apply to org-mode buffers?

Arun



[O] symbol's function definition is void: org-find-property

2016-02-07 Thread 童俊翔
I want to use capture, the following is my configuration in .emacs


;;(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)

;;capture template
(setq org-capture-templates
  '(("t" "Todo" entry (file+headline "~/360Cloud/GTD/gtd.org" "Tasks")
 "* TODO %?\n %i\n %a")
("j" "Journal" entry (file+datetree "~/360Cloud/GTD/journal.org")
 "* %?\nEntered on %U\n %i\n %a")))

When I press C-cc, j,  it doesn’t work, and i promoted that: symbol's function 
definition is void: org-find-property.
What’s the problem?
Thank you for your help!


[O] want a custom project-aware agenda-todo-view

2016-02-07 Thread Stefan Huchler
when I open agenda-view (list all todo entries) "t" I see all todo items
and in the first column the filename.

I would rather see the project the task belongs to,
sorry if I am ask thats maybe very simpel and I just dont find the right
varible/method to do so.


Like:

* Project
** Task 1
** Task 2

btw when I select in such views with 0 ALL I except see Tasks with TODO
and DONE state, I dont see the ones with DONE can I force to see them too?