[O] Orgstruct failed M-Ret org-insert-heading

2015-01-21 Thread Tory S. Anderson
I'm trying out orgstruct mode for the first time and have added it for some of 
my .el files. It seems to work (collapses sections nicely) except when I 
attempt to add a section with M-Ret with point on a header. I receive the 
message:
org-insert-heading: This should not happen

If I manually use org-insert-heading, it works just fine. Any solutions? I'm 
using GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 
2014-09-30 on buildvm-10.phx2.fedoraproject.org. 



Re: [O] How do I un-spare tree a buffer?

2015-01-21 Thread Karl Voit
* Michael Strey mst...@strey.biz wrote:
 On Mi, 2015-01-21, Tory S. Anderson wrote:

 [...]

 How do I un-sparsify my org buffer? 

 C-c C-c

Looks like this only hides the highlighted words. Correct?

If you want to get the original visibility like the state after
opening this file, you can use C-u C-u TAB which I learned just
today :-)

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] exporting latex fragments to ODT using imagemagick

2015-01-21 Thread e.fraga
On Wednesday, 21 Jan 2015 at 10:42, Sebastien Vauban wrote:

[...]

 On that part, given a deadline, a workaround could be to COMMENT the
 trees you don't want to export, instead of tagging them with noexport?

Thanks for the suggestion.  Interestingly, the export process still
attempts to generate images for LaTeX fragments within sections that are
commented out.  This seems fundamentally wrong?

At least, with tex:dvipng instead of tex:imagemagick, the export dosn't
fail.

Thanks again,
eric
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-717-gd36bd8



[O] How to override locale setting for time-stamp language

2015-01-21 Thread Karl Voit
Hi!

I am using Emacs 24.3 on different machines. With Debian GNU/Linux I
get time-stamps like 2015-01-21 Wed. However, with Windows 7 Pro
(which I do not administrate), I get 2015-01-21 Mi where Mi
stands for the German Mittwoch.

What do I have to add to my configuration so that I get Wed
instead of Mi on all of my systems, independent of system
settings?



My naïve debug session resulted in: org-insert-timestamp 
format-time-string which is built-in and uses locale settings to
resolve %a to get the abbreviated name of the day.

I don't have a clue which variable holds the locale settings that is
used for this case and I also don't have an idea if modifying this
variable has some potential negative effects as well.

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] Redirecting stderr to stdout with babel/shell

2015-01-21 Thread Karl Voit
* Achim Gratz strom...@nexgo.de wrote:
 Karl Voit writes:
 However with an additional echo at the end:

 You need to understand what you're doing or at least copy the code
 exactly.  The last line in my example is a colon : so that the shell
 exit code is always zero.  

You're right. The only thing I did not know was the meaning of the
colon.

http://stackoverflow.com/a/3224910 did fix my ignorance :-)

 If not, Babel will ignore the output since it interprets any
 non-zero exit code as failure.  Since you've redirected STDERR to
 STDOUT the error buffer that would normally let you know what
 happened stays empty.  The echo has the same effect, but produces
 a blank line you don't want.

Yes, now everything makes sense to me. Thanks for your pointer!

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] xml-rpc-request error for wordpress

2015-01-21 Thread Alex Kost
Shiyuan (2015-01-18 03:23 +0300) wrote:

 Hi all,
 I have been using org2blog/wp package to manage my wordpress blog. It had
 been woking very well until last week when things started to fail.
  org2blog/wp uses xml-rpc-request to connect to wordpress.com which returns
 the 301 Error.  I haven't changed my emacs config for quite a long time. So
 I guess something might have happened on the wordpress side or some emacs
 packages break something.  I have googled around but cannot find any
 relevant info.  I don't have too much experience about xml-rpc. Any help
 about debugging this issue would be appreciated. The traceback is attached.
 I can login wordpress and maintain my blog through the browser and web
 interface.  Thanks.

Not sure, but as I saw POST and Error during request: 301 in your
backtrace, I think it may be the same as the bug 16960: 
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16960.

-- 
Alex



Re: [O] EXPORT_FILENAME Doesn't Seem to Be Documented.

2015-01-21 Thread Nicolas Goaziou
Hello,

Ian Barton li...@wilkesley.net writes:

 Following my earlier post about how to specify and export filename on
 a per buffer basis the variable EXPORT_FILENAME doesn't seem to be
 documented in anywhere in the current git version of org, although it
 appears in http://orgmode.org/manual/Export-settings.html.

 I think it should appear at least in Summary of in-buffer settings
 as well as Export Settings. I am happy to provide a patch, but
 before I do is there anywhere else it should be documented?

It is documented in the manual. It appears in

  (info (org) Export settings)

BTW, it is EXPORT_FILE_NAME.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] org-rss-headline

2015-01-21 Thread Nicolas Goaziou
Nicolas Petton nico...@petton.fr writes:

 Ahh, sorry about that. I'm not used to contributing through
 emails. Would cloning the repository and create branches that can be
 merged into the main repository be more convenient?

Cloning the repository would help. You can create branches for large
patches and use format-patch for simple ones.

Regards,



Re: [O] three bugs/misfeatures in org-reveal (or is org-reveal the wrong way to reveal around point?)

2015-01-21 Thread Nicolas Goaziou
Samuel Wales samolog...@gmail.com writes:

 On 1/18/15, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
   ((default . 2)
(occur-tree . 1)
(tags-tree . 1)
(isearch . 3)
(bookmark-jump . 3))

 where

   1. means only the minimal location is shown, i.e., top level
  headline + headline, and section (no child) if match is not on
  a headline.

   2. means context 1 + hierarchy above

   3. means context 2 + siblings

   4. means canonical view, i.e, show full hierarchy above and siblings,
  and, if match is within a section, show also section and all
  children.


[...]

 please refresh me on the grammar.  does section mean something like
 header + body text + children as a whole?

Section is what you call the body text.

 as a ui note, it might work to use symbols instead of numbers.  if the
 code could support it bloatlessly, maybe even allow mix and match so
 that you can do 3 without 2 if you want?

I suggested numbers because the visibility states defined were
incremental. It is also possible to name views with symbols. However
this is not the issue at the moment.

I'd like to know first what views are useful. Currently, for a given
context, there are 16 possible combinations. I'm pretty sure at least
half of them can be dropped.

Minimal view (state 1 above) and canonical view (state 4) are
mandatory. In between, I'm not sure what is used. I suggested two of
them. Apparently, you would also need 3 without 2 (i.e., siblings
without hierachy above).

Regards,



Re: [O] [PATCH] ob-shell

2015-01-21 Thread Pascal Fleury
Hello,

Here is a patch that will figure out the version of bash in a less fork-y
way.
It keeps the result in a variable after having gotten it the first time by
indeed forking to bash.

--Pascal

On Fri, Aug 22, 2014 at 8:16 PM, Achim Gratz strom...@nexgo.de wrote:

 Pascal Fleury writes:
  Please forget about the previous patch I submitted, I have a new one
  that should work now on all platforms.
  Let me know if it should be formatted differently.

 You don't really want to fork into bash each time you're about to run a
 shell code block just to find out if it suppports associative arrays.
 This needs to be determined at customization time.

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

 Factory and User Sound Singles for Waldorf Q+, Q and microQ:
 http://Synth.Stromeko.net/Downloads.html#WaldorfSounds





0001-PATCH-ob-shell.el-now-emits-associative-array-code-o.patch
Description: Binary data


[O] org-block-regexp questions

2015-01-21 Thread Marcin Borkowski
Hi list,

I'm studying org-block-regexp.  One thing that bugs me is this part:

#\\+begin_?

It suggests to me that the underscore after begin might be optional;
but a quick experiment with the exporter shows that this is not the
case.

Next, this part:

\\([^ \n]+\\)

would suggest that TAB is a valid part of the name of the block.
Strange, isn't it?

Finally, the rationale behind

\\(\\([^\n]+\\)\\)?

escapes me completely.  What's the use of groups nested like this?

Any ideas?

-- 
Marcin Borkowski   This email was proudly sent
http://mbork.plfrom my Emacs.



Re: [O] xml-rpc-request error for wordpress

2015-01-21 Thread Puneeth Chaganti
Shiyuan,

Wordpress has moved all the blogs to https.  You will need to change
your blog's url to https://myname.wordpress.com/xmlrpc.php; instead
of using http://.

See: https://github.com/punchagan/org2blog/issues/177

Best,
Puneeth



Re: [O] New patches WAS Re: [PATCH] inline src block results can be removed

2015-01-21 Thread Charles C. Berry

On Tue, 20 Jan 2015, Nicolas Goaziou wrote:


Charles C. Berry ccbe...@ucsd.edu writes:


This is probably the shortest path. I'd apprecaite it if you would
refactor that part.


I implemented `org-macro-escape-arguments' which can replace your
initial snippet:



Nicolas,

Thank you!

I attach 3 patches and a file of usage examples.

Any of `:results list', `:results table', multiline results (after 
stripping a trailing newline), and list results now generates an error.


Best,

Chuck

From b3e1998eb5592a74b7d8d91858bc2da8121d0bf5 Mon Sep 17 00:00:00 2001
From: chasberry ccbe...@ucsd.edu
Date: Wed, 21 Jan 2015 18:08:58 -0800
Subject: [PATCH 1/3] lisp/ox.el: Enable removable inline src results

* lisp/ox.el: (org-export-as): Treat `results' as an `identity' macro
  with one argument after Babel executes.
---
 lisp/ox.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index 8880e10..3d5c7f2 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -2884,7 +2884,8 @@ Return code as a string.
;; EMAIL is not a parsed keyword: store it as-is.
(cons email (or (plist-get info :email) ))
(cons title
- (org-element-interpret-data (plist-get info :title
+ (org-element-interpret-data (plist-get info :title)))
+   (cons results $1))
  'finalize)
 ;; Parse buffer.
 (setq tree (org-element-parse-buffer nil visible-only))
-- 
1.9.3 (Apple Git-50)

From 8598049ee8f581b0866693c861b0905ef158b951 Mon Sep 17 00:00:00 2001
From: chasberry ccbe...@ucsd.edu
Date: Wed, 21 Jan 2015 18:12:51 -0800
Subject: [PATCH 2/3] ob-exp.el: Enable removal of {{{results(...)}}}

* ob-exp.el (org-babel-exp-do-export): `clean' lambda form removes inline
  results wrapped in `results{{{(' `)}}}' by calling
  `org-babel-remove-inline-result'.
---
 lisp/ob-exp.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index edb889c..afe6cd9 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -315,7 +315,9 @@ The function respects the value of the :exports header 
argument.
   (let ((silently (lambda () (let ((session (cdr (assoc :session (nth 2 
info)
   (when (not (and session (equal none session)))
 (org-babel-exp-results info type 'silent)
-   (clean (lambda () (unless (eq type 'inline) (org-babel-remove-result 
info)
+   (clean (lambda () (if (eq type 'inline)
+ (org-babel-remove-inline-result info)
+   (org-babel-remove-result info)
 (case (intern (or (cdr (assoc :exports (nth 2 info))) code))
   ('none (funcall silently) (funcall clean) )
   ('code (funcall silently) (funcall clean) (org-babel-exp-code info type))
-- 
1.9.3 (Apple Git-50)

From c89448e5e6859a6c5c9d5d954470d17b3fdb8b25 Mon Sep 17 00:00:00 2001
From: chasberry ccbe...@ucsd.edu
Date: Wed, 21 Jan 2015 18:22:07 -0800
Subject: [PATCH 3/3] lisp/ob-core.el: Inline source block / babel call results
 are replaceable

* lisp/ob-core.el (org-babel-insert-result): Delete any `results'
  macro following current inline src block or babel call; insert
  current value in 'results' macro possibly wrapping RESULT in an
  export snippet or inline source block first.

* lisp/ob-core.el (org-babel-remove-inline-result): Delete results of
  current inline src block or inline babel call if it is wrapped in a
  {{{results(.*)}}} macro call.

* lisp/ob-core.el (org-babel-get-lob-one-liner-matches): Ensure that
  the point ends up on the same line as, and just before, `call_'
  before setting match-data.
---
 lisp/ob-core.el | 152 ++--
 1 file changed, 115 insertions(+), 37 deletions(-)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 892c3e3..457a4fd 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -252,8 +252,11 @@ Returns non-nil if match-data set
   Set match data if on line of an lob one liner.
 Returns non-nil if match-data set
   (save-excursion
-(unless (= (point) (point-at-bol)) ;; move before inline block
-  (re-search-backward [ \f\t\n\r\v] nil t))
+(let* ((el (org-element-context))
+  (beg (org-element-property :begin el))
+  (type (org-element-type el)))
+  (when (eq type 'inline-babel-call)
+   (goto-char beg)))
 (if (looking-at org-babel-inline-lob-one-liner-regexp)
t
   nil)))
@@ -2063,21 +2066,27 @@ If the path of the link is a file path it is expanded 
using
 (defun org-babel-insert-result
   (result optional result-params info hash indent lang)
   Insert RESULT into the current buffer.
-By default RESULT is inserted after the end of the
-current source block.  With optional argument RESULT-PARAMS
-controls insertion of results in the org-mode file.
-RESULT-PARAMS can take the following values:
+
+By default RESULT is 

Re: [O] [bug] ox-taskjuggler

2015-01-21 Thread Søren Mikkelsen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2015-01-21 14:31, John Hendy wrote:
 
 On Jan 21, 2015 7:09 AM, Søren Mikkelsen so...@aamikkelsen.dk 
 mailto:so...@aamikkelsen.dk wrote:
 
 On 2015-01-20 22:00, Nicolas Goaziou wrote:
 Hello,
 
 Søren Mikkelsen s...@iha.dk mailto:s...@iha.dk writes:
 
 I'm trying to use the taskjuggler exporter for getting an
 overview
 of my
 project, and it seems to be straight forward if you know a
 bit about Taskjuggler.
 
 However, tasks that are scheduled org-mode like, i.e.,
 
 *** TODO My task SCHEDULED: 2015-01-27 Tue
 
 don't appear in the report. But, if I add a START property it
 will
 appear.
 
 *** TODO My task 2 :PROPERTIES: :start:2015-03-01 :END:
 
 I suspect it has something to do with l462-470:
 
 (defun org-taskjuggler-get-start (item) Return start date
 for task or resource ITEM. ITEM is a headline.  Return value
 is a string or nil if ITEM doesn't have any start date
 defined. (let ((scheduled (org-element-property :scheduled
 item))) (or (and scheduled (org-timestamp-format scheduled
 %Y-%02m-%02d)) (and (memq 'start
 org-taskjuggler-valid-task-attributes) (org-element-property
 :START item)
 
 
 I'm not that experienced in elisp, so I hope someone can help
 me.
 
 There is no bug in the snippet shown.
 
 ox-taskjuggler just doesn't use SCHEDULED to set start
 property for tasks. However, it will use SCHEDULED to set the
 start date for the project.
 
 Note that I don't use Taskjuggler, so I don't know if this is
 the right behaviour or not.
 
 
 Regards,
 
 According to the org mode docs, assigning the start of a task
 should be possible both ways:
 
 http://orgmode.org/worg/exporters/taskjuggler/ox-taskjuggler.html#sec-5


 
Or am I misinterpreting the docs?
 
 
 Well, I wrote that , so you may be correctly interpreting docs
 written by someone who misunderstood!
 
 Perhaps the SCHUDULED property is just for the main project
 container. I don't see it actually used in any examples?
No, not other than the task example I was referring to.
 
 Sorry if the confusion was my fault! John
 -- Best regards, Søren Mikkelsen
 
 
 
It would, however, make sense to be able to scheduled tasks where
interpreted as the start time, if the org-file is used for more than
just generating the report.

- -- 
Best regards,
Søren Mikkelsen
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEcBAEBAgAGBQJUwKYOAAoJECUE7rt2jWDwZisH/RgMvuzGu8gef7Yw3474yjkV
CIVf1D+DNXQKPv0R596hYhf8GrvSWw87+OvYtsDdcXJ+ueDxycPgrNy+rQbnGBvO
UUjla1QMNtIXMHvRB232cZ91hL50CCI5Mgx5k67PRU9shvfJIA/b0KouZmrmyMna
uUm16IaH3vWVNm/BrQJJi86jhz6uBqF9NBmaefoZxIYd8HAJLg1iQGMaDCxvhwLq
xzQtfQAlUxkVi+rzOwOuYk9U11ixMPzm8h8XFTNo+Uvj8GyVMIs4+ZFRqwQJG7nk
PC/9K4SXcOuBprZZTXX4Y4YKJiSJ6qRH+omjB7TXKtDYK6Atlh4egkw33hyxoak=
=qAfS
-END PGP SIGNATURE-




Re: [O] remote ref in spreadsheets

2015-01-21 Thread Michael Brand
Hi Michael

On Wed, Jan 21, 2015 at 9:20 PM, Michael Welle mwe012...@gmx.net wrote:
 @2$2=remote(BC_2014,@II$3)
 @3$2=remote(BC_2013,@II$3)
 @4$2=remote(BC_2012,@II$3)
 [...]
 would be nice to use a column formula, something like remote($1,@II$3),
 where $1 of the master table holds the name of the referenced table.

It was also January when I needed this for yearly tables the first
time :-) and I implemented and documented it with an ERT and in the
manual one year ago. It is still available only in Org release_8.3beta
which you seem not to have installed yet.

If you do an aggregation, in this case by year, then Thierry Banel's
package Org aggregate
https://github.com/tbanel/orgaggregate
is very convenient as it can simplify a lot.

Michael



[O] How do I un-spare tree a buffer?

2015-01-21 Thread Tory S. Anderson
Silly question, but I can't find it in the manual or in the command list. After 
creating a sparse tree (C-c / /) I cannot return to the original view; I even 
tried replacing the sparse tree with a match-all regexp, which was a mistake... 

How do I un-sparsify my org buffer? 



Re: [O] ANN: org-vcard. Export/import vCards. Backwards-compatible with org-contacts.el.

2015-01-21 Thread Rasmus
Hi,

Gour g...@atmarama.net writes:

 On Sub, 2014-08-02 at 11:12 +1000, Alexis wrote:

 However, in order to have smooth syncing of my calendar(s)  contacts I
 switched to Evolution in order to sync with my phone using DAVdroid via my own
 instance of ownCloud.

I use this as well.  I don't know of a good step from owncloud-contancts
to Emacs (BBDB or Org, I don't care).  I found AsynK screwed up my
contacts.

 Few days ago I also found out about http://orgzly.com/ and it seems there will
 be nice org client for Android soon (I was not too happy with Mobile).

First time I hear about this.  But I can't find the source code and I
don't think it has been mentioned on this list before...  Color me
skeptical for know.

 2. Using org-vcard as a library, create org-carddav (which i hope to
 start working on shortly) in order to be able to synchronise contacts
 stored in Org with arbitrary CardDAV servers.

Cool stuff!

Cheers,
Rasmus

-- 
With monopolies the cake is a lie!




Re: [O] ANN: org-vcard. Export/import vCards. Backwards-compatible with org-contacts.el.

2015-01-21 Thread Gour
On Sub, 2014-08-02 at 11:12 +1000, Alexis wrote:

Hello Alexis,

I spent some time with Vim  Taskwarrior, but now returning back to Emacs 
org.

However, in order to have smooth syncing of my calendar(s)  contacts I
switched to Evolution in order to sync with my phone using DAVdroid via my own
instance of ownCloud.

Few days ago I also found out about http://orgzly.com/ and it seems there will
be nice org client for Android soon (I was not too happy with Mobile).

 2. Using org-vcard as a library, create org-carddav (which i hope to
 start working on shortly) in order to be able to synchronise contacts
 stored in Org with arbitrary CardDAV servers.
 
 3. Using org-carddav, set up a way of synchronising my Org-based
 contacts with my smartphone-based contacts.

This mail is composed within Evolution using emacsclient...I'd like to create
org tasks from Gnus, so I wonder what is the status of org-carddav which would
enable to use 'best-combo' - keeping contacts within org and sync them via
phone by using ownCloud?


Sincerely,
Gour

-- 
As a strong wind sweeps away a boat on the water, 
even one of the roaming senses on which the mind 
focuses can carry away a man's intelligence.






Re: [O] End Section with \clearpage

2015-01-21 Thread Rainer M Krug
Rasmus ras...@gmx.us writes:

 Hi,

 Rainer M Krug rai...@krugs.de writes:

 I want to add after some sections a \clearpage which works, But the
 \clearpage is part of the last header:

 ,
 | * Subsection to be ended with clearpage
 | ** Sub-section
 | some text
 | *** sub-sub-section
 | Some more text
 | 
 | \clearpage
 | 
 | * Next Subsection
 | * Last subsection
 `

 Is there a way that I can add this \clearpage at the end of the section
 *without* being in the last subsection?

 I guess not?

 Use a org-export-filter-section-functions filter to insert \clearpage at
 the end on headlines with the appropriate property or tag.  A quick hack:

 (defun rasmus/get-org-headline-string-element  (headline backend info)
   Return the org element representation of an element.

 Won't work on ~verb~/=code=-only headers
   (let ((prop-point (next-property-change 0 headline)))
 (if prop-point (plist-get (text-properties-at prop-point headline) :parent

 (defun rasmus/org-latex-clearpage (headline backend info)
   Insert a clearpage at end of heading if property clearpage is non-nil.
   (when (org-export-derived-backend-p backend 'latex)
 (let ((elm (rasmus/get-org-headline-string-element headline backend 
 info)))
   (when (and elm (org-element-property :CLEARPAGE elm))
   (concat headline \\clearpage\\n)

 (add-to-list 'org-export-filter-headline-functions
  'rasmus/org-latex-clearpage)

 Example file:

 * test
   :PROPERTIES:
   :clearpage: t
   :END:
 ** sub1
 ** sub2

This looks very interesting for many things. Thanks.

Rainer


 —Rasmus

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] exporting latex fragments to ODT using imagemagick

2015-01-21 Thread Sebastien Vauban
Eric S Fraga wrote:
 hopefully this request is not as embarrassing as my last one to this
 list earlier today... :-)  regardless, I am definitely confused and
 things are driving me crazy.  You can tell I have a deadline... :(

 I need to export a document to ODT, a document that has a significant
 amount of LaTeX maths.  I am using tex:imagemagick.  Unfortunately, the
 export fails because it is trying to create images from LaTeX fragments
 in part of my document that should not be exported.

On that part, given a deadline, a workaround could be to COMMENT the
trees you don't want to export, instead of tagging them with noexport?

Best regards,
  Seb

-- 
Sebastien Vauban




[O] EXPORT_FILENAME Doesn't Seem to Be Documented.

2015-01-21 Thread Ian Barton
Following my earlier post about how to specify and export filename on a 
per buffer basis the variable EXPORT_FILENAME doesn't seem to be 
documented in anywhere in the current git version of org, although it 
appears in http://orgmode.org/manual/Export-settings.html.


I think it should appear at least in Summary of in-buffer settings as 
well as Export Settings. I am happy to provide a patch, but before I 
do is there anywhere else it should be documented?


Ian.



Re: [O] ANN: org-vcard. Export/import vCards. Backwards-compatible with org-contacts.el.

2015-01-21 Thread Gour
On Sri, 2015-01-21 at 11:24 +0100, Rasmus wrote:

 I use this as well.  I don't know of a good step from owncloud-contancts
 to Emacs (BBDB or Org, I don't care).  

How do you feed Gnus with your contact's email addresses when composing email?

 First time I hear about this.  But I can't find the source code and I
 don't think it has been mentioned on this list before...  Color me
 skeptical for know.

It's still closed, but I installed it and it is promising.

Sincerely,
Gour

-- 
In the material world, one who is unaffected by whatever good 
or evil he may obtain, neither praising it nor despising it, 
is firmly fixed in perfect knowledge.






Re: [O] ANN: org-vcard. Export/import vCards. Backwards-compatible with org-contacts.el.

2015-01-21 Thread Gour
On Sri, 2015-01-21 at 13:16 +0100, Rasmus wrote:

 gnus-harvest.el and BBDB v3.

Interesting...thank you.

 I'll check it if it makes it to F-Droid.

I dl-ed it from GooglePlay, but you have to join the group first.


Sincerely,
Gour

-- 






Re: [O] [bug] ox-taskjuggler

2015-01-21 Thread Søren Mikkelsen
On 2015-01-20 22:00, Nicolas Goaziou wrote:
 Hello,
 
 Søren Mikkelsen s...@iha.dk writes:
 
 I'm trying to use the taskjuggler exporter for getting an overview of my
 project, and it seems to be straight forward if you know a bit about
 Taskjuggler.

 However, tasks that are scheduled org-mode like, i.e.,

 *** TODO My task
   SCHEDULED: 2015-01-27 Tue

 don't appear in the report. But, if I add a START property it will appear.

 *** TODO My task 2
 :PROPERTIES:
 :start:2015-03-01
 :END:

 I suspect it has something to do with l462-470:

 (defun org-taskjuggler-get-start (item)
   Return start date for task or resource ITEM.
 ITEM is a headline.  Return value is a string or nil if ITEM
 doesn't have any start date defined.
   (let ((scheduled (org-element-property :scheduled item)))
 (or
  (and scheduled (org-timestamp-format scheduled %Y-%02m-%02d))
  (and (memq 'start org-taskjuggler-valid-task-attributes)
(org-element-property :START item)


 I'm not that experienced in elisp, so I hope someone can help me.
 
 There is no bug in the snippet shown.
 
  ox-taskjuggler just doesn't use SCHEDULED to set start property for
 tasks. However, it will use SCHEDULED to set the start date for the
 project.
 
 Note that I don't use Taskjuggler, so I don't know if this is the right
 behaviour or not.
 
 
 Regards,
 
According to the org mode docs, assigning the start of a task should be
possible both ways:

http://orgmode.org/worg/exporters/taskjuggler/ox-taskjuggler.html#sec-5

Or am I misinterpreting the docs?

-- 
Best regards,
Søren Mikkelsen




Re: [O] ANN: org-vcard. Export/import vCards. Backwards-compatible with org-contacts.el.

2015-01-21 Thread Rasmus
Gour g...@atmarama.net writes:

 On Sri, 2015-01-21 at 11:24 +0100, Rasmus wrote:

 I use this as well.  I don't know of a good step from owncloud-contancts
 to Emacs (BBDB or Org, I don't care).  

 How do you feed Gnus with your contact's email addresses when composing email?

gnus-harvest.el and BBDB v3.

 First time I hear about this.  But I can't find the source code and I
 don't think it has been mentioned on this list before...  Color me
 skeptical for know.

 It's still closed, but I installed it and it is promising.

I'll check it if it makes it to F-Droid.

—Rasmus

-- 
One thing that is clear: it's all down hill from here 




Re: [O] How do I un-spare tree a buffer?

2015-01-21 Thread Michael Strey
On Mi, 2015-01-21, Tory S. Anderson wrote:

[...]

 How do I un-sparsify my org buffer? 

C-c C-c

-- 
Michael Strey
http://www.strey.biz
https://twitter.com/michaelstrey



[O] Org Ical export doesn't work for 2015?

2015-01-21 Thread Tory S. Anderson
I use a shell script to look over my agenda and export an ical file, which I 
then upload and bring into my google calendar. But it no longer seems to be 
working; mostly, none of my agenda items I've created since 2015 (or maybe a 
little before, it's hard to tell) are showing up (although some of the items 
that take place IN 2015 but were created earlier are still present). Any idea 
what the problem is? The principle line I'm running is this: 

emacs --batch --user $USER --eval (progn (org-agenda-list nil nil 'year) 
(org-icalendar-combine-agenda-files))

As I said, it was working just fine last year. What's changed? 



[O] Turn a plain list item into a headline bahevious differently for level (1, 2) and (3 and higher) levels

2015-01-21 Thread Rainer Stengele
Hi,

having

*** headline level 3
- item1
^

and executing C-c * having put cursor as indicated
results in

*** headline level 3
*** item1

whereas I would expect

*** headline level 3
 item1

for lower level headline (2 and 1) it works as expected.

Is this a bug? If not why is the behaviour different for level 3 and higher?

GNU Emacs 24.3.50.1 (i386-mingw-nt6.1.7601) of 2013-03-14 on VBOX
Org-mode version 8.3beta (release_8.3beta-727-ga1cdc6

Regards,
Rainer Stengele




Re: [O] How do I un-spare tree a buffer?

2015-01-21 Thread Tory S. Anderson
Ah! Thanks. That should really be documented more clearly. 

Michael Strey mst...@strey.biz writes:

 On Mi, 2015-01-21, Tory S. Anderson wrote:

 [...]

 How do I un-sparsify my org buffer? 

 C-c C-c



[O] org-capture-templates - any way how to call function for template?

2015-01-21 Thread David Belohrad
Dear All,

i want to make a capture template, which will call a function to feed
that template. Is there any way how to do it?

Something like this:

(E Dynamic diary entry entry (file+datetree (concat my-org-files
diary.org)) my_template_function)


I have found that one can use function for _target_, but not for actual
template. Afaik template can be only loaded from a file, right?

thanks
.d.




Re: [O] [bug] ox-taskjuggler

2015-01-21 Thread John Hendy
On Jan 21, 2015 7:09 AM, Søren Mikkelsen so...@aamikkelsen.dk wrote:

 On 2015-01-20 22:00, Nicolas Goaziou wrote:
  Hello,
 
  Søren Mikkelsen s...@iha.dk writes:
 
  I'm trying to use the taskjuggler exporter for getting an overview of
my
  project, and it seems to be straight forward if you know a bit about
  Taskjuggler.
 
  However, tasks that are scheduled org-mode like, i.e.,
 
  *** TODO My task
SCHEDULED: 2015-01-27 Tue
 
  don't appear in the report. But, if I add a START property it will
appear.
 
  *** TODO My task 2
  :PROPERTIES:
  :start:2015-03-01
  :END:
 
  I suspect it has something to do with l462-470:
 
  (defun org-taskjuggler-get-start (item)
Return start date for task or resource ITEM.
  ITEM is a headline.  Return value is a string or nil if ITEM
  doesn't have any start date defined.
(let ((scheduled (org-element-property :scheduled item)))
  (or
   (and scheduled (org-timestamp-format scheduled %Y-%02m-%02d))
   (and (memq 'start org-taskjuggler-valid-task-attributes)
 (org-element-property :START item)
 
 
  I'm not that experienced in elisp, so I hope someone can help me.
 
  There is no bug in the snippet shown.
 
   ox-taskjuggler just doesn't use SCHEDULED to set start property for
  tasks. However, it will use SCHEDULED to set the start date for the
  project.
 
  Note that I don't use Taskjuggler, so I don't know if this is the right
  behaviour or not.
 
 
  Regards,
 
 According to the org mode docs, assigning the start of a task should be
 possible both ways:

 http://orgmode.org/worg/exporters/taskjuggler/ox-taskjuggler.html#sec-5

 Or am I misinterpreting the docs?


Well, I wrote that , so you may be correctly interpreting docs written by
someone who misunderstood!

Perhaps the SCHUDULED property is just for the main project container. I
don't see it actually used in any examples?

Sorry if the confusion was my fault!
John
 --
 Best regards,
 Søren Mikkelsen




Re: [O] org-capture-templates - any way how to call function for template?

2015-01-21 Thread David Belohrad
ok, i've found the magic behind:

(E Microsoft Exchange diary entry entry (file+datetree (concat my-org-files 
diary.org))
(function testme))
))

(defun testme ()
* %? :event:\n%a\n%^T\n\nEntered on %U
)


it took me some time to find out the correct syntax

.d.


David Belohrad da...@belohrad.ch writes:

 Dear All,

 i want to make a capture template, which will call a function to feed
 that template. Is there any way how to do it?

 Something like this:

 (E Dynamic diary entry entry (file+datetree (concat my-org-files
 diary.org)) my_template_function)


 I have found that one can use function for _target_, but not for actual
 template. Afaik template can be only loaded from a file, right?

 thanks
 .d.