[O] strange behaviour with org-indent-mode

2016-02-10 Thread Eric S Fraga
Hello all,

for a very long time now, my default org setting has been to use
org-indent-mode with visual-line-mode activated.  This has been working
very well until sometime since the start of the new year.  I have two
symptoms now:

1. org files, especially large ones (250kB+), do not actually indent
   automatically.

2. my org capture templates are introducing spaces at the start of lines
   in the capture buffer to line up the start of every line.  Very strange.

I have org-startup-indented set to t.

I am having difficulties tracking this down because a) the lack of
indenting doesn't happen all the time, just most of the time and b) I
don't think it happens with emacs -Q.  I'm looking for suggestions on
how to track down the root problem or if this rings anybody's bells.

Before anybody suggests bisecting, yes, bisecting my configuration would
probably help but it is such a convoluted configuration due to my using
emacs for 30+ years...  I guess I really should bit the bullet and clean
up my initialisation files soon!

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa



[O] Scanning for duplicate IDs of whole buffer when exporting a sub-heading

2016-02-10 Thread Karl Voit
Hi!

I do have this behavior which basically prevents me from exporting
from Org-mode. When I invoke export (LaTeX, HTML, ...) of a
sub-heading within a large file, Org-mode seems to scan *all* of my
agenda files (with approximately half a Million lines) at least for
duplicate IDs.

This takes very long on my i5 machine, roughly ten minutes. During
this scan, I can't use Emacs any more because it's blocking of
course.

How can I prevent this behavior?

The current sub-heading (with no further sub-headings) does not even
have any drawer.

Thanks for any hint!

-- 
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] problems with org and pabbrev

2016-02-10 Thread Eric S Fraga
On Wednesday, 10 Feb 2016 at 12:47, orgmode wrote:
> Thanks very much.  The following line did the trick:
>
> (define-key pabbrev-mode-map [tab] 'pabbrev-expand-maybe)
>
> I set this after loading orgmode.  It seems pabbrev uses \tab and not
> [tab]. or orgmode somehow overrides it, and it has to be set
> explicitly.

Excellent.  Glad I could help.  The mysteries of [tab]//\t/TAB are
just that, a complete mystery (to me).
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa



Re: [O] Scanning for duplicate IDs of whole buffer when exporting a sub-heading

2016-02-10 Thread Nicolas Goaziou
Hello,

Karl Voit  writes:

> I do have this behavior which basically prevents me from exporting
> from Org-mode. When I invoke export (LaTeX, HTML, ...) of a
> sub-heading within a large file, Org-mode seems to scan *all* of my
> agenda files (with approximately half a Million lines) at least for
> duplicate IDs.

Does your large file contain some [[id:...]] link? Does the sub-heading
contains any?

> This takes very long on my i5 machine, roughly ten minutes. During
> this scan, I can't use Emacs any more because it's blocking of
> course.

Even when using asynchronous export?

Regards,

-- 
Nicolas Goaziou



Re: [O] Scanning for duplicate IDs of whole buffer when exporting a sub-heading

2016-02-10 Thread Samuel Wales
reported before. maybe nicolas fixed it in master but not maint.



[O] Export org file to pdf: unable to resolve link

2016-02-10 Thread Sergio Bacelar
I am trying with no success to export the most important text from Vikas Rawal 
https://github.com/vikasrawal/orgpaper/blob/master/orgpapers.org 
 to pdf via 
LaTeX. I tried C-c C-e l o but I obtain always the error message “Unable to 
resolve link readata-code”. 
This happens because the link readapt-code is not working:


Code block [[readdata-code]] is an example of such a code block. Note
~:results value silent~ switch used in the  ~#+begin_src~ line.

#+BEGIN_SRC org
  ,#+NAME: readdata-code
  ,#+BEGIN_SRC R :results value silent

  read.data("datafile1.csv",sep=",",header=T)->mydata1


  ,#+END_SRC
#+END_SRC

If #+NAME was not inside the SRC block and there was no comma before #+NAME the 
link should work.
Does anyone can help me to export this file to pdf?

Re: [O] Scanning for duplicate IDs of whole buffer when exporting a sub-heading

2016-02-10 Thread Karl Voit
* Nicolas Goaziou  wrote:
> Hello,

Hi Nicolas!

> Karl Voit  writes:
>
>> I do have this behavior which basically prevents me from exporting
>> from Org-mode. When I invoke export (LaTeX, HTML, ...) of a
>> sub-heading within a large file, Org-mode seems to scan *all* of my
>> agenda files (with approximately half a Million lines) at least for
>> duplicate IDs.
>
> Does your large file contain some [[id:...]] link? 

Yes.

> Does the sub-heading contains any?

No.

>> This takes very long on my i5 machine, roughly ten minutes. During
>> this scan, I can't use Emacs any more because it's blocking of
>> course.
>
> Even when using asynchronous export?

Yes.

I am on maint, 75ee067410abf0ebab77b1b05d7dcfe2ddf53f4d.

-- 
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] org-capture -- optionally add time-of-day as with C-c . ?

2016-02-10 Thread Aaron Ecay
Hi John,

Using %^T seems to give the desired behavior you describe in your
message.  Can you try it and see if it works for you?  (Regrettably,
it’s not obvious from the docstring of ‘org-capture-templates’ that it
should behave like that, since %T is supposed to insert a time
unconditionally.  But in my testing, %^T only inserts a time if one is
entered by the user.)

-- 
Aaron Ecay



Re: [O] org-capture -- optionally add time-of-day as with C-c . ?

2016-02-10 Thread Charles Millar

Hi John,

On 02/10/2016 04:22 AM, John Magolske wrote:

In setting up org-capture, I'd like to have behaviour similar to what
`org-time-stamp` provides, which by default is bound to:

 C-c .

That command in org-mode brings up a 3-month calendar and a minibuffer
prompt for entering a date. With nothing entered at the prompt, just a
RET, a timestamp with the current date is inserted like so:

 <2016-02-09 Tue>

If a date is picked from the calender, say March 26, then that date
is inserted:

 <2016-03-26 Sat>

If, for example, 2pm is entered at the minibuffer prompt and March 8
is picked from the calender, then a timestamp like so gets inserted:

 <2016-03-08 Tue 14:00>

I find this to be a very nice, intuitive interface. Time-of-day is
easily added, but only if explicitly input. Otherwise just the date
shows up. I'm having a hard time setting this up for org-capture...
I can get close with something like:

   (setq org-capture-templates
   '(("t" "todo" entry (file+headline "~/org/todo.org" "Tasks")
   "* TODO %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t) 
t)\n")))

But that always inserts a time-of-day into the timestamp, using the
current time if nothing is input at the minibuffer prompt. So if I
just pick March 8 from the calender, that date will be inserted along
with the current time-of-day like so:

 ** TODO
 SCHEDULED: <2016-03-08 Mon 00:53>

Which pretty much always necessitates a manual edit of the time to
either remove it or adjust it to something relevant.

When explicitly adding a time value at the prompt in the minibuffer,
2pm for example, then picking March 8, this would show up:

 ** TODO
 SCHEDULED: <2016-03-08 Tue 14:00>

And that works great. It's just the aforementioned situation where no
time-of-day is entered and the current time-of-day gets associated
with some future-date timestamp rather than just having that date show
up by itself with no time-of-day.

Is there some way to have the `C-c .` behaviour outlined above happen
in org-capture?


Have you tried the template expansion %^T (active time stamp prompt with 
date and time); Also %^U is the inactive equivalent, etc.


Charlie Millar



Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-10 Thread Thorsten Jolitz
John Kitchin  writes:

> I guess it is a required signature for the function (i.e. some other
> function will call it with some argument), and _ indicates it is not
> used in the body. If you were to give it the arg a name, then checkdoc
> would complain about it not being in the docstring.

Sounds reasonable, thanks for the explanation.
But it does not seem to be a true guess, I tried it out with:

#+BEGIN_SRC emacs-lisp
(defun my-foo (_)
  "Hello World.
Argument _ unknown argument."
  (+ 1 1))
#+END_SRC

and checkdoc asked me to add the "Argument ..." part for "_" to the docstring.

I don't remember that I've seen this before, so maybe this is a rather new
feature/convention?

> Thorsten Jolitz writes:
>
>> Hi List,
>> just out of curiosity, a few functions in org-element.el contain _ in
>> their parameter list, but its not used in the body.
>> What does it stand for?
>
>
> --
> 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
>
>

-- 
cheers,
Thorsten




Re: [O] What does the _ in `(defun org-element-section-parser (_) ...)' stands for?

2016-02-10 Thread John Kitchin
On Wed, Feb 10, 2016 at 3:13 PM, Thorsten Jolitz  wrote:

> #+BEGIN_SRC emacs-lisp
> (defun my-foo (_)
>   "Hello World.
> Argument _ unknown argument."
>   (+ 1 1))
> #+END_SRC
>

strange. in Emacs 25.1, I am pretty sure I get no errors from checkdoc.



John

---
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


[O] Custom agenda 'tags-todo' sorting by scheduled data note working

2016-02-10 Thread Gabriel Duven

Hi guys,

I created a custom agenda view with tags-todo, which I like to sort by 
scheduled date.


(add-to-list 'org-agenda-custom-commands
  '("u" "Next actions" tags-todo "+PRIORITY=\"A\""
 ((org-agenda-overriding-header "Critical")
  (org-agenda-prefix-format " %-5:c")
  (org-agenda-sorting-strategy '(scheduled-down))
  (org-agenda-todo-ignore-scheduled 'future)
  (org-agenda-tags-todo-honor-ignore-options t)))
)

But sorting comes out wrong: It's not sorted by the scheduled date. In 
fact, it's not sorted at all, but seems to keep order of 
org-agenda-files.


Anybody help? Thanks a lot in advace!! Orgmode is great :)



[O] Bug: not generating iCalendar [8.2.10 (release_8.2.10 @ /usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/)]

2016-02-10 Thread Jose Hidalgo

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.

For some reason my iCalendar files only have the header information, not
one single event.


Emacs  : GNU Emacs 24.5.1 (x86_64-apple-darwin15.2.0, NS apple-appkit-1404.34)
 of 2016-01-04 on dante.inferno.local
Package: Org-mode version 8.2.10 (release_8.2.10 @ 
/usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-log-done t
 org-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-from-is-user-regexp "\\"
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all 
append local] 5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-hide-inline-tasks
  org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'ignore
 org-html-format-inlinetask-function 'ignore
 org-agenda-files '("~/git/orgmode/home.org" "~/git/orgmode/startup.org" 
"~/git/orgmode/work.org"
"~/git/orgmode/deporte.org" "~/git/orgmode/personal.org" 
"~/git/orgmode/goals2016.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )



Re: [O] Errors get suppressed by org-babel-execute-src-block

2016-02-10 Thread Aaron Ecay
Hi Gary,

2016ko otsailak 8an, Gary Oberbrunner-ek idatzi zuen:
> 
> org-babel-execute-src-block has a big unwind-protect that basically eats
> all errors inside it. I don't think it used to do that. 

The unwind-protect exists since 2010, so you’re probably mistaken about
that (depending on your frame of reference for “used to”...)

That said, the code in question seems very questionable to me.  First
of all, the unwind-protect should not be needed at all, due to the use
of (f)let (IOW, if the unwind-protect was ever needed, it was to paper
over a bug in emacs which should no longer exist).  Secondly, in 2012
commit 57104f9f changed an “org-flet” to a “let” in this function,
which is incorrect (since elisp is a lisp-2).  So the whole thing has
been effectively a no-op since then.

I’d like to install the attached patch to master, if there are no
objections.  That should resolve your concern as well as cleaning up the
dead code.

Aaron

-- 
Aaron Ecay
>From bdb68585d5b0ddf5a6c9876028b5f2be2f17e66a Mon Sep 17 00:00:00 2001
From: Aaron Ecay 
Date: Wed, 10 Feb 2016 19:39:04 +
Subject: [PATCH] ob-core: remove cruft
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* lisp/ob-core.el (org-babel-execute-src-block): Simplify.
(org-babel-tramp-handle-call-process-region): Remove.

Commit 57104f9f changed an org-flet to a let, rendering the whole
apparatus of modifying call-process-region inoperative.  Supposedly this
was put in place to work around a bug in
tramp-handle-call-process-region, which was removed from tramp in
2012 (after being renamed tramp-sh-call-process-region).  *shrug*

This commit just removes the whole thing.  It also no longer consults
‘org-src-lang-modes’, which is not helpful here.
---
 lisp/ob-core.el | 133 
 1 file changed, 47 insertions(+), 86 deletions(-)

diff --git a/lisp/ob-core.el b/lisp/ob-core.el
index 025985d..77f464f 100644
--- a/lisp/ob-core.el
+++ b/lisp/ob-core.el
@@ -26,6 +26,7 @@
 (eval-when-compile
   (require 'cl))
 (require 'cl-lib)
+(require 'subr-x)			; For `if-let'
 (require 'ob-eval)
 (require 'org-macs)
 (require 'org-compat)
@@ -36,10 +37,8 @@
 nil))
 
 ;; dynamically scoped for tramp
-(defvar org-babel-call-process-region-original nil)
 (defvar org-babel-library-of-babel)
 (defvar org-edit-src-content-indentation)
-(defvar org-src-lang-modes)
 
 (declare-function outline-show-all "outline" ())
 (declare-function org-get-indentation "org" ( line))
@@ -679,72 +678,53 @@ block."
 		 (default-directory
 		   (or (and dir (file-name-as-directory (expand-file-name dir)))
 		   default-directory))
-		 (org-babel-call-process-region-original ;; for tramp handler
-		  (or (org-bound-and-true-p
-		   org-babel-call-process-region-original)
-		  (symbol-function 'call-process-region)))
 		 (indent (nth 5 info))
-		 result cmd)
-	(unwind-protect
-		(let ((call-process-region
-		   (lambda ( args)
-			 (apply 'org-babel-tramp-handle-call-process-region
-args
-		  (let ((lang-check
-			 (lambda (f)
-			   (let ((f (intern (concat "org-babel-execute:" f
-			 (when (fboundp f) f)
-		(setq cmd
-			  (or (funcall lang-check lang)
-			  (funcall lang-check
-   (symbol-name
-	(cdr (assoc lang org-src-lang-modes
-			  (error "No org-babel-execute function for %s!"
- lang
-		  (message "executing %s code block%s..."
-			   (capitalize lang)
-			   (if (nth 4 info) (format " (%s)" (nth 4 info)) ""))
-		  (if (member "none" result-params)
-		  (progn
-			(funcall cmd body params)
-			(message "result silenced")
-			(setq result nil))
-		(setq result
-			  (let ((result (funcall cmd body params)))
-(if (and (eq (cdr (assoc :result-type params))
- 'value)
- (or (member "vector" result-params)
- (member "table" result-params))
- (not (listp result)))
-(list (list result)) result)))
-		;; If non-empty result and :file then write to :file.
-		(when (cdr (assoc :file params))
-		  (when result
-			(with-temp-file (cdr (assoc :file params))
-			  (insert
-			   (org-babel-format-result
-			result (cdr (assoc :sep (nth 2 info)))
-		  (setq result (cdr (assoc :file params
-		;; Possibly perform post process provided its appropriate.
-		(when (cdr (assoc :post params))
-		  (let ((*this* (if (cdr (assoc :file params))
-	(org-babel-result-to-file
-	 (cdr (assoc :file params))
-	 (when (assoc :file-desc params)
-	   (or (cdr (assoc :file-desc params))
-	   result)))
-  result)))
-			(setq result (org-babel-ref-resolve
-  (cdr (assoc :post params
-			(when (cdr (assoc :file params))
-			  (setq 

[O] Orgmode slow on windows on startup [8.3.2 (8.3.2-10-g00dacd-elpa @ c:/Users/Michael/AppData/Roaming/.emacs.d/elpa/org-20151005/)]

2016-02-10 Thread Michael Ziems

Hello,

im using orgmode and emacs on Windows.
When starting emacs, orgmode is extremely slow.
Pushing headlines arround, opening headlines and moving columns in
org-tables is a pain.
When i archive a big section in my org file through C-c C-x a and
unarchive it afterwards, then org gets really fast again.
just to show the issue i added the archiving as a profiler report here:

when doing archive first time:

- command-execute 648  60%
 - call-interactively 648  60%
  - org-toggle-archive-tag 637  59%
   - outline-hide-subtree 634  58%
- outline-flag-subtree 634  58%
 - outline-end-of-subtree 634  58%
outline-next-heading 186  17%
org-outline-level 65   6%
   + org-toggle-tag 2   0%
  + byte-code 6   0%
  + save-buffer 5   0%
+ timer-event-handler 397  36%
+ ... 33   3%

after orgmode gets fast:

- command-execute 12  38%
 - call-interactively 12  38%
  - org-toggle-archive-tag 6  19%
   - outline-hide-subtree 6  19%
- outline-flag-subtree 6  19%
 - outline-end-of-subtree 6  19%
outline-next-heading 4  12%
  + save-buffer 4  12%
  + byte-code 2   6%
+ timer-event-handler 12  38%
+ ... 7  22%

here an example of opening all headlines in one of my bigger org files
before and after the archiving / unarchiving:

before:

- command-execute 1467  99%
 - call-interactively 1467  99%
  - org-cycle 1452  98%
   - org-cycle-internal-local 1446  97%
- outline-show-children 1144  77%
 - outline-end-of-subtree 725  49%
outline-next-heading 220  14%
org-outline-level 89   6%
 - outline-map-region 419  28%
outline-next-heading 149  10%
  + # 149  10%
+ run-hook-with-args 190  12%
  org-end-of-subtree 3   0%
  org-show-entry 1   0%
   + run-hook-with-args-until-success 6   0%
  + byte-code 11   0%
  + minibuffer-complete 4   0%
+ ... 9   0%

After:

- command-execute 208  96%
 - call-interactively 208  96%
  - org-cycle 202  93%
   - org-cycle-internal-local 194  89%
- run-hook-with-args 184  85%
 - org-cycle-hide-drawers 158  73%
  + org-element-at-point 38  17%
org-flag-drawer 14   6%
org-end-of-subtree 2   0%
 + org-optimize-window-after-visibility-change 5   2%
 + org-cycle-hide-archived-subtrees 4   1%
 + org-cycle-show-empty-lines 3   1%
+ outline-show-children 8   3%
  org-end-of-subtree 2   0%
   + run-hook-with-args-until-success 8   3%
  + byte-code 6   2%
+ ... 8   3%

It is at the moment easy for me to do the archiving / unarchiving once
to get orgmode fast again but i dont understand what is wrong.
Does anybody have an idea?

Every help is appreciated a lot.

Thanks,

Michael





Emacs  : GNU Emacs 24.4.1 (i686-pc-mingw32)
 of 2014-10-24 on LEG570
Package: Org-mode version 8.3.2 (8.3.2-10-g00dacd-elpa @
c:/Users/Michael/AppData/Roaming/.emacs.d/elpa/org-20151005/)

current state:
==
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-stuck-projects '("+2DO/+WARTEN" nil nil "+#A/+#B/+#C")
 org-agenda-sticky t
 org-agenda-window-setup 'current-window
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-refile-targets '((org-agenda-files :maxlevel . 24))
 org-cycle-hook '(org-cycle-hide-archived-subtrees
  org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-custom-commands '(("x" "Nur Kalender ohne Aufgaben"
   agenda ""
   ((org-agenda-span 80)
(org-deadline-warning-days 1)
(org-agenda-include-diary t)
(org-agenda-entry-types
 (quote (:timestamp :sexp)))
(org-agenda-files
 (quote
  ("C:\\Users\\Michael\\Documents\\org\\privat.org"
"C:\\Users\\Michael\\Documents\\org\\dienst.org"
"C:\\Users\\Michael\\Documents\\org\\work.org")
  )
 )
)
("C:\\Users\\Michael\\Documents\\org\\export\\kalender.txt")
   )
  ("w" "Agenda Work" agenda ""
   ((org-agenda-files
 (quote
  ("C:\\Users\\Michael\\Documents\\org\\work.org"
"C:\\Users\\Michael\\Documents\\org\\info-work.org")
  )
 )
(org-agenda-span 1)
(org-agenda-include-diary nil)
(org-deadline-warning-days 4))
   )
  ("p" "Agenda Privat" agenda ""
   ((org-agenda-files
 (quote
  ("C:\\Users\\Michael\\Documents\\org\\privat.org"
"C:\\Users\\Michael\\Documents\\org\\dienst.org"

Re: [O] strange behaviour with org-indent-mode

2016-02-10 Thread Thorsten Jolitz
Eric S Fraga  writes:

Hello,
>
> for a very long time now, my default org setting has been to use
> org-indent-mode with visual-line-mode activated.  This has been working
> very well until sometime since the start of the new year.  I have two
> symptoms now:
>
> 1. org files, especially large ones (250kB+), do not actually indent
>automatically.
>
> 2. my org capture templates are introducing spaces at the start of lines
>in the capture buffer to line up the start of every line.  Very strange.
>
> I have org-startup-indented set to t.
>
> I am having difficulties tracking this down because a) the lack of
> indenting doesn't happen all the time, just most of the time and b) I
> don't think it happens with emacs -Q.  I'm looking for suggestions on
> how to track down the root problem or if this rings anybody's bells.
>
> Before anybody suggests bisecting, yes, bisecting my configuration would
> probably help but it is such a convoluted configuration due to my using
> emacs for 30+ years...  I guess I really should bit the bullet and clean
> up my initialisation files soon!

Maybe 

,
| C-h v org--indent TAB 
`

shows you some potential culprits?

-- 
cheers,
Thorsten




[O] Orgmode slow on windows on startup [8.3.2 (8.3.2-10-g00dacd-elpa @ c:/Users/Michael/AppData/Roaming/.emacs.d/elpa/org-20151005/)]

2016-02-10 Thread Michael Ziems

Hello,

im using orgmode and emacs on Windows.
When starting emacs, orgmode is extremely slow.
Pushing headlines arround, opening headlines and moving columns in
org-tables is a pain.
When i archive a big section in my org file through C-c C-x a and
unarchive it afterwards, then org gets really fast again.
just to show the issue i added the archiving as a profiler report here:

when doing archive first time:

- command-execute 648  60%
 - call-interactively 648  60%
  - org-toggle-archive-tag 637  59%
   - outline-hide-subtree 634  58%
- outline-flag-subtree 634  58%
 - outline-end-of-subtree 634  58%
outline-next-heading 186  17%
org-outline-level 65   6%
   + org-toggle-tag 2   0%
  + byte-code 6   0%
  + save-buffer 5   0%
+ timer-event-handler 397  36%
+ ... 33   3%

after orgmode gets fast:

- command-execute 12  38%
 - call-interactively 12  38%
  - org-toggle-archive-tag 6  19%
   - outline-hide-subtree 6  19%
- outline-flag-subtree 6  19%
 - outline-end-of-subtree 6  19%
outline-next-heading 4  12%
  + save-buffer 4  12%
  + byte-code 2   6%
+ timer-event-handler 12  38%
+ ... 7  22%

here an example of opening all headlines in one of my bigger org files 
before and after the archiving / unarchiving:


before:

- command-execute 1467  99%
 - call-interactively 1467  99%
  - org-cycle 1452  98%
   - org-cycle-internal-local 1446  97%
- outline-show-children 1144  77%
 - outline-end-of-subtree 725  49%
outline-next-heading 220  14%
org-outline-level 89   6%
 - outline-map-region 419  28%
outline-next-heading 149  10%
  + # 149  10%
+ run-hook-with-args 190  12%
  org-end-of-subtree 3   0%
  org-show-entry 1   0%
   + run-hook-with-args-until-success 6   0%
  + byte-code 11   0%
  + minibuffer-complete 4   0%
+ ... 9   0%

After:

- command-execute 208  96%
 - call-interactively 208  96%
  - org-cycle 202  93%
   - org-cycle-internal-local 194  89%
- run-hook-with-args 184  85%
 - org-cycle-hide-drawers 158  73%
  + org-element-at-point 38  17%
org-flag-drawer 14   6%
org-end-of-subtree 2   0%
 + org-optimize-window-after-visibility-change 5   2%
 + org-cycle-hide-archived-subtrees 4   1%
 + org-cycle-show-empty-lines 3   1%
+ outline-show-children 8   3%
  org-end-of-subtree 2   0%
   + run-hook-with-args-until-success 8   3%
  + byte-code 6   2%
+ ... 8   3%

It is at the moment easy for me to do the archiving / unarchiving once 
to get orgmode fast again but i dont understand what is wrong.

Does anybody have an idea?

Every help is appreciated a lot.

Thanks,

Michael





Emacs  : GNU Emacs 24.4.1 (i686-pc-mingw32)
 of 2014-10-24 on LEG570
Package: Org-mode version 8.3.2 (8.3.2-10-g00dacd-elpa @ 
c:/Users/Michael/AppData/Roaming/.emacs.d/elpa/org-20151005/)


current state:
==
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-stuck-projects '("+2DO/+WARTEN" nil nil "+#A/+#B/+#C")
 org-agenda-sticky t
 org-agenda-window-setup 'current-window
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-refile-targets '((org-agenda-files :maxlevel . 24))
 org-cycle-hook '(org-cycle-hide-archived-subtrees
  org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-custom-commands '(("x" "Nur Kalender ohne Aufgaben"
   agenda ""
   ((org-agenda-span 80)
(org-deadline-warning-days 1)
(org-agenda-include-diary t)
(org-agenda-entry-types
 (quote (:timestamp :sexp)))
(org-agenda-files
 (quote
  ("C:\\Users\\Michael\\Documents\\org\\privat.org" 
"C:\\Users\\Michael\\Documents\\org\\dienst.org" 
"C:\\Users\\Michael\\Documents\\org\\work.org")

  )
 )
)
("C:\\Users\\Michael\\Documents\\org\\export\\kalender.txt")
   )
  ("w" "Agenda Work" agenda ""
   ((org-agenda-files
 (quote
  ("C:\\Users\\Michael\\Documents\\org\\work.org" 
"C:\\Users\\Michael\\Documents\\org\\info-work.org")

  )
 )
(org-agenda-span 1)
(org-agenda-include-diary nil)
(org-deadline-warning-days 4))
   )
  ("p" "Agenda Privat" agenda ""
   ((org-agenda-files
 (quote
  ("C:\\Users\\Michael\\Documents\\org\\privat.org" 
"C:\\Users\\Michael\\Documents\\org\\dienst.org" 

[O] Alternative to MobileOrg for ios

2016-02-10 Thread Stoph Long
Dear All,

  I just found another way to synchronize org-mode and ios. It requires
dropbox and the ios Editorial app, but then you work with the original file
as "enhanced" plain text.  Editorial ($9.99,
http://omz-software.com/editorial/) is extensible in python as well as a
visual workflow language and has good regex coverage. I wrote some org
related functions (folding, priority setting, status setting, sorting by
status and priority) as a proof of concept. You can check out my screencast
of it for more info (https://youtu.be/JclQcwc2iJs).

  The scripts work well for my needs. Still, please back up your work
before using as I make no guarantees. I'm sure there are better programmers
out there who can bring this to the next level. The functions to date are
listed on the Editorial forum at
https://forum.omz-software.com/topic/2023/feature-org-mode-support/9

  The same thread on the forum is encouraging the author to add more
support for org.  He already supports markdown, multimarkdown, and
taskpaper so much of the core functionality (tables, checkboxes) is there.
So if you think this is a good direction, please add your +1 there and say
what you'd like to see.

  Note, I'm not affiliated with Editorial in any way, but I was very happy
to find a powerful plain text way to update my org files on the go!

Stoph


Re: [O] org-capture -- optionally add time-of-day as with C-c . ?

2016-02-10 Thread John Magolske
Hi Aaron,

* Aaron Ecay  [160210 11:22]:
> Using %^T seems to give the desired behavior you describe in your
> message.  Can you try it and see if it works for you?  (Regrettably,
> it’s not obvious from the docstring of ‘org-capture-templates’ that it
> should behave like that, since %T is supposed to insert a time
> unconditionally.  But in my testing, %^T only inserts a time if one is
> entered by the user.)

I just tried %^T and it did not work -- a time-of-day was included in
all cases. What *did* work however is the lowercase %^t version. With
that in my org-capture template, just the date is inserted, except when
an explicit time-of-day is entered at the minibuffer prompt. Then that
time is added after the date. This makes picking dates & times with
org-capture a breeze.

Thanks for clueing me in!

John

-- 
John Magolske
http://b79.net/contact



Re: [O] Errors get suppressed by org-babel-execute-src-block

2016-02-10 Thread Nicolas Goaziou
Hello,

Aaron Ecay  writes:

> I’d like to install the attached patch to master, if there are no
> objections.  That should resolve your concern as well as cleaning up the
> dead code.

No objection, but...

> +(require 'subr-x); For `if-let'

... you are not using `if-let' anywhere if this patch. Besides, we still
cannot use subr-x, since it is a 24.4 library, and, AFAIR, we didn't
drop support for 24.3 yet.


Regards,

-- 
Nicolas Goaziou



[O] org-attach-commit optional

2016-02-10 Thread John J Foerch
Hello,

I would like for org-attach's automatic committing of attachments to be
easily disabled.  Something along the lines of the attached patch.
Thoughts?

Thank you,

John Foerch
>From 2e6b4adb249ea36cd3546068974e97ff50e1e76b Mon Sep 17 00:00:00 2001
From: John Foerch 
Date: Wed, 10 Feb 2016 17:37:03 -0500
Subject: [PATCH] org-attach-attach: make use of git optional with variable
 org-attach-commit


diff --git a/lisp/org-attach.el b/lisp/org-attach.el
index 15d4841..8f367a2 100644
--- a/lisp/org-attach.el
+++ b/lisp/org-attach.el
@@ -55,6 +55,12 @@ where the Org file lives."
   :group 'org-attach
   :type 'directory)
 
+(defcustom org-attach-commit t
+  "If non-nil, attachments will be committed with git, if the org
+file is in a git repository."
+  :group 'org-attach
+  :type 'boolean)
+
 (defcustom org-attach-git-annex-cutoff (* 32 1024)
   "If non-nil, files larger than this will be annexed instead of stored."
   :group 'org-attach
@@ -373,7 +379,8 @@ METHOD may be `cp', `mv', `ln', or `lns' default taken from
((eq method 'cp)	(copy-file file fname))
((eq method 'ln) (add-name-to-file file fname))
((eq method 'lns) (make-symbolic-link file fname)))
-  (org-attach-commit)
+  (when org-attach-commit
+	(org-attach-commit))
   (org-attach-tag)
   (cond ((eq org-attach-store-link-p 'attached)
 	 (org-attach-store-link fname))
-- 
2.6.4



[O] [ANN] Allow filled inline src blocks and Babel calls

2016-02-10 Thread Nicolas Goaziou
Hello,

It is now possible to fill inline babel calls and inline source blocks.
Code within an inline source block is always treated as a single line,
tho.

This improvement required quite a few internal changes to Babel. Nothing
bad can happen, right? In any case... please report anything suspicious
in that area.


Regards,

-- 
Nicolas Goaziou0x80A93738



Re: [O] Custom agenda 'tags-todo' sorting by scheduled data note working

2016-02-10 Thread Nick Dokos
Gabriel Duven  writes:

> Hi guys,
>
> I created a custom agenda view with tags-todo, which I like to sort by
> scheduled date.
>
> (add-to-list 'org-agenda-custom-commands
>   '("u" "Next actions" tags-todo "+PRIORITY=\"A\""
>((org-agenda-overriding-header "Critical")
> (org-agenda-prefix-format " %-5:c")
> (org-agenda-sorting-strategy '(scheduled-down))
> (org-agenda-todo-ignore-scheduled 'future)
> (org-agenda-tags-todo-honor-ignore-options t)))
>   )
>
> But sorting comes out wrong: It's not sorted by the scheduled date. In
> fact, it's not sorted at all, but seems to keep order of
> org-agenda-files.
>

FWIW, it seems to work fine here: I get all the #A items, sorted by
scheduled date, latest one first. Not sure why it's not working for you.

-- 
Nick




Re: [O] [PATCH] ob-coq cleanup

2016-02-10 Thread Alan Schmitt
On 2016-02-10 13:13, Nicolas Goaziou  writes:

>> Here is a small patch cleaning up ob-coq.
>
> Thank you.
>
>>   (org-babel-coq-initiate-session): use `coq-program-name'
>
> Nitpick: missing capital and full stop.
>
> Nothing else to say.

Applied with this change in the commit message.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52


signature.asc
Description: PGP signature


Re: [O] Filling a list of dates in a spreadsheet

2016-02-10 Thread Cameron Horsburgh
Ah, thank you! That's exactly what I'm after!



Cameron Horsburgh


On 4 February 2016 at 18:43, Christian Moe  wrote:

>
> Hi,
>
> S- (Shift-Return) is your friend. After you've entered the first
> two dates, move down to the third row (which needs to be empty), and hit
> S-. You can continue pressing S- without moving down a row
> each time.
>
> Yours,
> Christian
>
>
>
> Cameron Horsburgh writes:
>
> > Hi folks,
> >
> > I'm putting together a spreadsheet in org-mode. This is the general
> format:
> >
> > |--+---+|
> > | Date | Field One | Field Two  |
> > |--+---+|
> > | [2016-02-07 Sun] |   ||
> > | [2016-02-14 Sun] |   ||
> > | [A few lines]|   ||
> > | [A few more lines]   |   ||
> > | [2016-12-25 Sun] |   ||
> > |--+---++
> >
> > The date column needs to have a list of dates for every Sunday this year.
> > In a traditional spreadsheet program there would be a function to 'fill'
> > the series of dates automatically. I can't see anything in org-mode that
> > would do this. Am I missing something, or will I just have to do it
> > manually?
> >
> > Thanks!
> >
> > Cameron Horsburgh
>
>


[O] [PATCH] ob-coq cleanup

2016-02-10 Thread Alan Schmitt
Hello,

Here is a small patch cleaning up ob-coq.

From 4d3a37fbc078541bebb9bef73e6d81e85a95e048 Mon Sep 17 00:00:00 2001
From: Alan Schmitt 
Date: Wed, 10 Feb 2016 09:34:37 +0100
Subject: [PATCH] ox-coq.el: Clean up

* lisp/ob-coq.el: Create a variable `coq-program-name' and remove unused
  `org-babel-coq-eoe'.

  (org-babel-coq-initiate-session): use `coq-program-name'
---
 lisp/ob-coq.el | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/ob-coq.el b/lisp/ob-coq.el
index 4339a52..7aea5a6 100644
--- a/lisp/ob-coq.el
+++ b/lisp/ob-coq.el
@@ -35,11 +35,12 @@
 (declare-function run-coq "ext:coq-inferior.el" (cmd))
 (declare-function coq-proc "ext:coq-inferior.el" ())
 
+(defvar coq-program-name "coqtop"
+  "Name of the coq toplevel to run.")
+
 (defvar org-babel-coq-buffer "*coq*"
   "Buffer in which to evaluate coq code blocks.")
 
-(defvar org-babel-coq-eoe "org-babel-coq-eoe")
-
 (defun org-babel-coq-clean-prompt (string)
   (if (string-match "^[^[:space:]]+ < " string)
   (substring string 0 (match-beginning 0))
@@ -70,7 +71,7 @@ If there is not a current inferior-process-buffer in SESSION then
 create one.  Return the initialized session."
   (unless (fboundp 'run-coq)
 (error "`run-coq' not defined, load coq-inferior.el"))
-  (save-window-excursion (run-coq "coqtop"))
+  (save-window-excursion (run-coq coq-program-name))
   (sit-for 0.1)
   (get-buffer org-babel-coq-buffer))
 
-- 
2.7.0


Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52


signature.asc
Description: PGP signature


[O] org-capture -- optionally add time-of-day as with C-c . ?

2016-02-10 Thread John Magolske
In setting up org-capture, I'd like to have behaviour similar to what
`org-time-stamp` provides, which by default is bound to:

C-c .

That command in org-mode brings up a 3-month calendar and a minibuffer
prompt for entering a date. With nothing entered at the prompt, just a
RET, a timestamp with the current date is inserted like so:

<2016-02-09 Tue>

If a date is picked from the calender, say March 26, then that date
is inserted:

<2016-03-26 Sat>

If, for example, 2pm is entered at the minibuffer prompt and March 8
is picked from the calender, then a timestamp like so gets inserted:

<2016-03-08 Tue 14:00>

I find this to be a very nice, intuitive interface. Time-of-day is
easily added, but only if explicitly input. Otherwise just the date
shows up. I'm having a hard time setting this up for org-capture...
I can get close with something like:

  (setq org-capture-templates
  '(("t" "todo" entry (file+headline "~/org/todo.org" "Tasks")
  "* TODO %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t) 
t)\n")))

But that always inserts a time-of-day into the timestamp, using the
current time if nothing is input at the minibuffer prompt. So if I
just pick March 8 from the calender, that date will be inserted along
with the current time-of-day like so:

** TODO
SCHEDULED: <2016-03-08 Mon 00:53>

Which pretty much always necessitates a manual edit of the time to
either remove it or adjust it to something relevant.

When explicitly adding a time value at the prompt in the minibuffer,
2pm for example, then picking March 8, this would show up:

** TODO
SCHEDULED: <2016-03-08 Tue 14:00>

And that works great. It's just the aforementioned situation where no
time-of-day is entered and the current time-of-day gets associated
with some future-date timestamp rather than just having that date show
up by itself with no time-of-day.

Is there some way to have the `C-c .` behaviour outlined above happen
in org-capture?

TIA for any help,

John

-- 
John Magolske
http://b79.net/contac



Re: [O] problems with org and pabbrev

2016-02-10 Thread orgmode

Thanks very much.  The following line did the trick:

(define-key pabbrev-mode-map [tab] 'pabbrev-expand-maybe)

I set this after loading orgmode.  It seems pabbrev uses \tab and not 
[tab]. or orgmode somehow overrides it, and it has to be set explicitly.




On 2016-02-09 16:50, Eric S Fraga wrote:

On Tuesday,  9 Feb 2016 at 15:43, orgmode wrote:

Hi,

somehow pabbrev mode doesn't work anymore with org, since I use org
from elpa.

after loading org, pabbrev is a minor mode, as indicated in the
modeline.

However  runs the command org-cycle instead of
pabbrev-expand-maybe.


In my case,  seems to work although I do refer to it as [tab] in 
my

initialisation code:

#+begin_src emacs-lisp
  (require 'pabbrev)
  (setq pabbrev-idle-timer-verbose nil
pabbrev-read-only-error nil)
  (define-key pabbrev-mode-map [tab] 'pabbrev-expand-maybe)
  (add-hook 'text-mode-hook (lambda () (pabbrev-mode)))
#+end_src




Re: [O] #+BEGIN_LaTeX deprecated

2016-02-10 Thread Nicolas Goaziou
Hello,

Kaushal Modi  writes:

> Check out this announcement email about the syntax change:
> https://lists.gnu.org/archive/html/emacs-orgmode/2015-12/msg00525.html
>
> It has a snippet to convert the old syntax files to new syntax.

For completeness, the function is included in ORG-NEWS relative to Org
9.0.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] ob-coq cleanup

2016-02-10 Thread Nicolas Goaziou
Hello,

Alan Schmitt  writes:

> Here is a small patch cleaning up ob-coq.

Thank you.

>   (org-babel-coq-initiate-session): use `coq-program-name'

Nitpick: missing capital and full stop.

Nothing else to say.

Regards,

-- 
Nicolas Goaziou



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

2016-02-10 Thread Julien Cubizolles
Nicolas Goaziou  writes:


> I think the simplest solution may be to follow the advice in ORG-NEWS
> and use
>
>   (lambda (file link) (org-pdfview-open file))

It's working, thanks.

Julien.




Re: [O] #+BEGIN_LaTeX deprecated

2016-02-10 Thread Julien Cubizolles
Nicolas Goaziou  writes:

> Hello,
>
> Kaushal Modi  writes:
>
>> Check out this announcement email about the syntax change:
>> https://lists.gnu.org/archive/html/emacs-orgmode/2015-12/msg00525.html
>>
>> It has a snippet to convert the old syntax files to new syntax.
>
> For completeness, the function is included in ORG-NEWS relative to Org
> 9.0.

Thanks, it saved me a lot of manual changes.

Julien.




Re: [O] [ANN] Allow filled inline src blocks and Babel calls

2016-02-10 Thread John Hendy
On Wed, Feb 10, 2016 at 6:26 PM, Nicolas Goaziou  wrote:
> Hello,
>
> It is now possible to fill inline babel calls and inline source blocks.
> Code within an inline source block is always treated as a single line,
> tho.
>

Thanks for the effort on this! I only use in-line for one-liners
anyway (or at least I believe that's the case), so I don't anticipate
an issue with this stipulation.

> This improvement required quite a few internal changes to Babel. Nothing
> bad can happen, right? In any case... please report anything suspicious
> in that area.

I believe I was one of the requesters (complainers?) about this:
- http://thread.gmane.org/gmane.emacs.orgmode/103835

Re-trying that example succeeds with a fresh pull/make. Many thanks
again for taking a look and improving Org for us!


Best regards,
John

>
>
> Regards,
>
> --
> Nicolas Goaziou0x80A93738
>



[O] [BUG] org-return after an empty description list item gives error

2016-02-10 Thread Kaushal Modi
Hi,

I get an error from org-element-context if I have set
org-return-follows-link to t and hit RET after an empty desc list item.
Here is what I mean by that:

= org buffer =
- desc123 ::

=

To better recreate this issue, save the below elisp code to a temp file,
say t.el, and run,

emacs -q -l t.el
(Verify that emacs -q loads the master branch (dev) org-mode version. It
does for me as I install the dev org-mode to "share/emacs/site-lisp/org".)

= t.el =
(setq inhibit-startup-screen t)
(setq org-return-follows-link t) ; Commenting this line with mask this bug
(toggle-debug-on-error)
(pop-to-buffer-same-window (get-buffer-create "*org-temp*"))
(org-mode)
(insert "- desc123 ::\n")
(org-return)
=

On doing so, you should get an error backtrace like below:

=
Debugger entered--Lisp error: (search-failed "desc123")
  search-forward("desc123" 14)
  org-element-context()
  org-return()
=

*I do not get this error if I set org-return-follows-link back to its
default value of nil.*

I am using the following org-mode and emacs versions:

=
Org-mode version 8.3.3 (release_8.3.3-573-ga1d9da @
/home/kmodi/usr_local/apps/6/emacs/emacs-25/share/emacs/site-lisp/org/)

Emacs version: GNU Emacs 25.0.90.1 (x86_64-unknown-linux-gnu, GTK+ Version
2.24.23)
 of 2016-02-10, built using commit 3ad05a0dc46093dd6b8958747a0475b8baba954f.

./configure options:
  --prefix=/home/kmodi/usr_local/apps/6/emacs/emacs-25
'CPPFLAGS=-fgnu89-inline -I/home/kmodi/usr_local/6/include
-I/usr/include/freetype2 -I/usr/include' 'CFLAGS=-ggdb3 -O0'
'CXXFLAGS=-ggdb3 -O0' 'LDFLAGS=-L/home/kmodi/usr_local/6/lib
-L/home/kmodi/usr_local/6/lib64 -ggdb3'

Features:
  XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11
=

Kaushal Modi


Re: [O] Scanning for duplicate IDs of whole buffer when exporting a sub-heading

2016-02-10 Thread Nicolas Goaziou
Hello,

Karl Voit  writes:

>> Does your large file contain some [[id:...]] link? 
>
> Yes.
>
>> Does the sub-heading contains any?
>
> No.
>
>>> This takes very long on my i5 machine, roughly ten minutes. During
>>> this scan, I can't use Emacs any more because it's blocking of
>>> course.
>>
>> Even when using asynchronous export?
>
> Yes.
>
> I am on maint, 75ee067410abf0ebab77b1b05d7dcfe2ddf53f4d.

As Samuel pointed out, this was fixed in master some time ago. 

Meanwhile you could, as a hack, remove all [[id:...]] links from your
document with a function in `org-export-before-processing-hook'.

Regards,

-- 
Nicolas Goaziou



Re: [O] Orgmode slow on windows on startup [8.3.2 (8.3.2-10-g00dacd-elpa @ c:/Users/Michael/AppData/Roaming/.emacs.d/elpa/org-20151005/)]

2016-02-10 Thread Nicolas Goaziou
Hello,

Michael Ziems  writes:

> im using orgmode and emacs on Windows.
> When starting emacs, orgmode is extremely slow.
> Pushing headlines arround, opening headlines and moving columns in
> org-tables is a pain.
> When i archive a big section in my org file through C-c C-x a and
> unarchive it afterwards, then org gets really fast again.
> just to show the issue i added the archiving as a profiler report
> here:

I'm not sure why it gets faster on the second attempt, but
`org-toggle-archive-tag' is needlessly slow. I fixed the slowdown on
maint.

Does it fare better with the fix?


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: not generating iCalendar [8.2.10 (release_8.2.10 @ /usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/)]

2016-02-10 Thread Nicolas Goaziou
Hello,

Jose Hidalgo  writes:

> For some reason my iCalendar files only have the header information, not
> one single event.

You may want to tweak `org-icalendar-use-...' and
`org-icalendar-include-...' variables (in particular
`org-icalendar-use-deadline' and `org-icalendar-use-scheduled').

Regards,

-- 
Nicolas Goaziou



Re: [O] Export org file to pdf: unable to resolve link

2016-02-10 Thread Nicolas Goaziou
Hello,

Sergio Bacelar  writes:

> I am trying with no success to export the most important text from
> Vikas Rawal
> https://github.com/vikasrawal/orgpaper/blob/master/orgpapers.org
>  to
> pdf via LaTeX. I tried C-c C-e l o but I obtain always the error
> message “Unable to resolve link readata-code”.
> This happens because the link readapt-code is not working:
>
>
> Code block [[readdata-code]] is an example of such a code block. Note
> ~:results value silent~ switch used in the  ~#+begin_src~ line.
>
> #+BEGIN_SRC org
>   ,#+NAME: readdata-code
>   ,#+BEGIN_SRC R :results value silent
>
>   read.data("datafile1.csv",sep=",",header=T)->mydata1
>
>
>   ,#+END_SRC
> #+END_SRC
>
> If #+NAME was not inside the SRC block and there was no comma before #+NAME 
> the link should work.
> Does anyone can help me to export this file to pdf?

Couldn't you also copy #+NAME: readdata-code outside of the block?

Regards,

-- 
Nicolas Goaziou



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

2016-02-10 Thread Erik Hetzner
Hi Achim

On Tue, 09 Feb 2016 14:19:25 -0800,
Achim Gratz  wrote:
>
>
> […]
>
> Well, the best solution would be to have an option for git-annex to
> switch off that lockdown thing.  Since that's not going to happen soon
> or anytime, try something like:
>
> $(RMR) $(testdir) || { $(CHMOD) -R u+w $(testdir); $(RMR) $(testdir) }
>
> which of course requires the addition of
>
> CHMOD = chmod
>
> in mk/defaults.mk.

Can you explain how this improves on what I had? The time spent appears to be
the same on my system (tested after clearing the filesystem cache):

$ time /bin/sh -c "if [ -d /tmp/tmp-orgtest/ ] ; then chmod u+w -R 
/tmp/tmp-orgtest/ ; fi ; rm -rf /tmp/orbit-egh/"

real0m0.219s
user0m0.004s
sys 0m0.000s

$ time /bin/sh -c "rm -rf /tmp/tmp-orgtest || { chmod -R u+w /tmp/tmp-orgtest; 
rm -rf /tmp/tmp-orgtest ; }"
rm: cannot remove 
‘/tmp/tmp-orgtest/org-annex-test11629xxf/.git/annex/objects/jm/P2/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447’:
 Permission denied
rm: cannot remove 
‘/tmp/tmp-orgtest/org-annex-test11629knZ/.git/annex/objects/jm/P2/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447/SHA256E-s12--a948904f2f0f479b8f8197694b30184b0d2ed1c1cd2a1ec0fb85d299a192a447’:
 Permission denied

real0m0.240s
user0m0.000s
sys 0m0.012s

> But it seems that direct mode (however deprecated it is) would allow us
> to do exactly the thing we want, so maybe if the tests would put that
> repo in direct mode we wouldn't even need to do that.  But that doesn't
> seem to work in a v6 repo unless annex.thin is set to true.  What version
> are you testing?

git-annex version: 5.20150731-1build1. In any case, direct mode is a rather
different use case, as I understand it.

best, Erik