Re: [O] current head croaks on export since commit Backport commit 3a5f751 from Emacs master branch

2015-08-10 Thread Kyle Meyer
Robert Klein rokl...@roklein.de wrote:
 Hi,

 when I export a file with current org main I get the following error
 (git-bisect-identified commit below):
[...]
  git bisect bad
 ef9637030456b153fd834f4c9202a9264d5ef18d is the first bad commit
 commit ef9637030456b153fd834f4c9202a9264d5ef18d
 Author: Stefan Monnier monn...@iro.umontreal.ca
 Date:   Sat Aug 8 19:41:57 2015 -0400

 Backport commit 3a5f751 from Emacs master branch

Thank you for the report.

 If the changes in the commit are Ok, there should perhaps be a check in
 org-check-agenda-file:

 (defun org-check-agenda-file (file)
   Make sure FILE exists.  If not, ask user what to do.
   (when (not (string-p file))
   do something else...

Based on the backtrace, I think this is another instance like 11e8749
(org-clock: Fix org-agenda-prepare-buffers call, 2015-08-09), where
org-agenda-prepare-buffers was being called with '(nil)' for the list of
files.

The backport changed a '(while (setq VAR (pop LIST)))' to
'(dolist (VAR LIST))', which exposes this, but '(nil)' should not be
passed as a list of files in the first place.

I'll have a closer look.

--
Kyle



Re: [O] Evil-mode text objects

2015-08-10 Thread Eric S Fraga
On Wednesday,  5 Aug 2015 at 15:24, Spencer Boucher wrote:
 Evil mode text objects behave very badly in org-mode (specifically
 paragraphs). Is this a know problem? Is there a fix?

Can you please be more specific?  I use evil and org together all the
time.  Also, what versions of org and evil?

I do re-bind some keys in evil's key maps, specifically ^ and $ but also
some others, org's equivalents.

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



[O] Exporting calender to ical

2015-08-10 Thread Benny Simonsen
Hi
I use org-mode for exporting to ical files, but the new exporter in
org-mode v. 8 gives me problems.

I have used Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
/usr/share/emacs/24.3/lisp/org/). In that version the export of the .org
file listed below works fine.

Using Org-mode version 8.2.10 I have seen those issues:
- All subjects have got the timestamp in the subject
- Duration is the default duration even for even for events with a
time-interval
   - Events with time-interval is show double
 This is a minor issue if I can specify duration in another way
- Location is missing
- UID format changed from starting with UID: TS- to UID:TSnumber-
  - Not an issue, if I remove old events before next export.

Should I format the org-file in another way? - I can't find any examples.

I would like to upgrade to the new org-mode for exporting calendar entries
to get rid of the old org-mode and because there are needed some work
arounds using the old exporter.

I normally uses it for importing into various google calenders. ... maybe I
should do it in another way.

Br,
Benny

Shown below:
- Org-mode file
- ics file exported with 7.9.3f
- ics file exported with 8.2.10

*Org-mode file:*
#+TITLE:Test
#+DESCRIPTION:  Show what worked in org-mode 7.9.3f
#+CATEGORY:Test
#+PROPERTY: LOCATION Default Location that is included in ics events,
Denmark

# Exporting using org-mode 7.9.3f
# ###
# open in emacs -q, Append old org-mode to load path:
# Eval: (add-to-list 'load-path ~/git/
github.com/repo.or.cz/org-mode.release_7.9.3f-17-g7524ef/lisp)
# org-version: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
/usr/share/emacs/24.3/lisp/org/)
# To create .ics file: Type C-c C-e i (2 times to get location info).

# Exporting using org-mode 8.2.10
# ###
# open in emacs -q (no init file),
# org-version: Org-mode version 8.2.10
# To create .ics file: Type C-c C-e c f (tried several times).


* Test
  :PROPERTIES:
  :ID:   9d651619-1322-4619-89bc-4855c769e124
  :END:
** 2015-08-11 12:00 Simple event, default duration
   :PROPERTIES:
   :ID:   71def5c6-2f7e-4560-88d9-f13187bfd9f8
   :END:
** 2015-08-12 12:00-2015-08-12 12:59 Event with specified duration
   :PROPERTIES:
   :ID:   d8056b59-c841-451c-b0b7-bbf8e8695838
   :END:
** 2015-08-13 12:00 Event at non-default location
   :PROPERTIES:
   :LOCATION: My home, Vodskov, Denmark
   :ID:   873a07ed-e059-41f9-8d76-c9c943a6afc6
   :END:
** 2015-08-13 12:00 Event with description
   :PROPERTIES:
   :ID:   3f182ce8-f8e2-4495-8749-e9f84b0a7aa7
   :END:
Some text description

* Local variables
  :PROPERTIES:
  :ID:   deb438aa-d0e5-435b-8fa7-7c7ddc5a85a3
  :END:
# Local Variables:
# org-icalendar-store-UID: t
# org-icalendar-include-body: t
# org-agenda-default-appointment-duration: 180
# End:

*ics file exported with 7.9.3f:*
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Test
PRODID:-//Benny Simonsen//Emacs with Org-mode//EN
X-WR-TIMEZONE:CEST
X-WR-CALDESC:nil
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID: TS-71def5c6-2f7e-4560-88d9-f13187bfd9f8
DTSTART:20150811T12
DTEND:20150811T15
SUMMARY: Simple event\, default duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T12
DTEND:20150812T125900
SUMMARY: Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-873a07ed-e059-41f9-8d76-c9c943a6afc6
DTSTART:20150813T12
DTEND:20150813T15
SUMMARY: Event at non-default location
LOCATION: My home\, Vodskov\, Denmark
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
UID: TS-3f182ce8-f8e2-4495-8749-e9f84b0a7aa7
DTSTART:20150813T12
DTEND:20150813T15
SUMMARY: Event with description
DESCRIPTION: Some text description
CATEGORIES:Test
END:VEVENT
END:VCALENDAR

*ics file exported with 8.2.10:*
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:test
PRODID:-//Benny Simonsen//Emacs with Org mode//EN
X-WR-TIMEZONE:CEST
X-WR-CALDESC:Test
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-71def5c6-2f7e-4560-88d9-f13187bfd9f8
DTSTART:20150811T12
DTEND:20150811T15
SUMMARY:2015-08-11 12:00 Simple event, default duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T12
DTEND:20150812T15
SUMMARY:2015-08-12 12:00-2015-08-12 12:59 Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS2-d8056b59-c841-451c-b0b7-bbf8e8695838
DTSTART:20150812T125900
DTEND:20150812T155900
SUMMARY:2015-08-12 12:00-2015-08-12 12:59 Event with specified duration
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20150810T145939Z
UID:TS1-873a07ed-e059-41f9-8d76-c9c943a6afc6
DTSTART:20150813T12
DTEND:20150813T15
SUMMARY:2015-08-13 12:00 Event at non-default location
LOCATION:My home, Vodskov, Denmark
CATEGORIES:Test
END:VEVENT
BEGIN:VEVENT

Re: [O] Showing Property in headline; generating table from properties; exporting table to CSV

2015-08-10 Thread Eric S Fraga
On Friday,  7 Aug 2015 at 16:41, Pip Cet wrote:

[...]

 Headline properties are simply about setting properties in the
 headline: no properties drawer, potentially nicer syntax (I'm
 currently using :property=value: to emphasize that properties behave

Interesting possible extension to org tags syntax... it would probably
break existing files in some cases but it would be quite nice for the
OP's initial requirement for viewing grades...

Thanks,
eric

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



Re: [O] current head croaks on export since commit Backport commit 3a5f751 from Emacs master branch

2015-08-10 Thread Kyle Meyer
Kyle Meyer k...@kyleam.com wrote:
[...]
 The backport changed a '(while (setq VAR (pop LIST)))' to
 '(dolist (VAR LIST))', which exposes this, but '(nil)' should not be
 passed as a list of files in the first place.

Fixed in 44c8cd7.

-- 
Kyle



Re: [O] Babel error on init with 8.3.1

2015-08-10 Thread Cook, Malcolm
When you “ updated org through the package manager in Emacs,” I believe you 
need to make sure org has not been loaded at all.

My practice is to exec `emacs –Q`, immediately update with package manager, 
then quit and restart emacs without the –Q.

Let us know….

From: emacs-orgmode-bounces+mec=stowers@gnu.org 
[mailto:emacs-orgmode-bounces+mec=stowers@gnu.org] On Behalf Of Ryan 
Schuetzler
Sent: Friday, August 07, 2015 9:41 AM
To: emacs-orgmode@gnu.org
Subject: [O] Babel error on init with 8.3.1

On startup with the latest 8.3 release I now get an error:

  Invalid function: org-babel-header-args-safe-fn

I updated org through the package manager in Emacs, and I'm using it on Windows 
10. Below is my full org configuration, but I've found that when I comment out 
the following section of my init, I don't receive any errors:

(add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)

(setq org-babel-results-keyword results)

(defun bh/display-inline-images ()
  (condition-case nil
  (org-display-inline-images)
(error nil)))

(org-babel-do-load-languages
 (quote org-babel-load-languages)
 (quote ((emacs-lisp . t)
  (latex . t)
  (R . t)
  (dot . t)
  (python . t)
  (org . t

(setq org-confirm-babel-evaluate nil)

FULL Config:

Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
 of 2015-07-11 on KAEL
Package: Org-mode version 8.3.1 (8.3.1-elpa @ 
c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex md odt)
 org-agenda-tags-todo-honor-ignore-options t
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-babel-results-keyword results
 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-confirm-shell-link-function 'yes-or-no-p
 org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode t) 
(htmlize-output-type (quote cc)))
 org-agenda-custom-commands '((N Notes tags NOTE

((org-agenda-overriding-header Notes) (org-tags-match-list-sublevels t)))

   (h Habits tags-todo STYLE=\habit\

((org-agenda-overriding-header Habits)

  (org-agenda-sorting-strategy (quote (todo-state-down effort-up 
category-keep

)

   (  Agenda

((agenda  nil)

  (tags REFILE

  ((org-agenda-overriding-header Tasks to Refile)

   (org-tags-match-list-sublevels nil))

  )

  (tags-todo -CANCELLED/!

  ((org-agenda-overriding-header Stuck Projects)

   (org-agenda-skip-function (quote bh/skip-non-stuck-projects))

   (org-agenda-sorting-strategy (quote (category-keep

  )

  (tags-todo -HOLD-CANCELLED/!

  ((org-agenda-overriding-header Projects)

   (org-agenda-skip-function (quote bh/skip-non-projects))

   (org-tags-match-list-sublevels (quote indented))

   (org-agenda-sorting-strategy (quote (category-keep

  )
 

Re: [O] Cookies on check-boxed plain lists don't get updated

2015-08-10 Thread Gerald Wildgruber

Hi Rasmus,

thanks for your hint, indeed this particular commit changed the
check-box related algorithm; git log gives:

commit a4cc9d82d8069741be64c55f35f9d3ad7e2663d5
Author: Nicolas Goaziou m...@nicolasgoaziou.fr
Date:   Tue Jun 9 17:06:17 2015 +0200

org-list: Fix checkbox update with inlinetasks

* lisp/org-list.el (org-update-checkbox-count): Change algorithm.  Use
  Element parser.

* testing/lisp/test-org-list.el (test-org-list/update-checkbox-count):
  New test.


I then looked at this particular file's git log:

git log lisp/org-list.el

and checked out Nicolas' last revision BEFORE his commit on Tue Jun 9:

git checkout a0c1e490b30cc4c0dd9e9ecdd70c32a52b08a57e lisp/org-list.el

And indeed: everything works again as expected.

Nicolas, can you see what caused this regression and can it be fixed?


Thanks

Gerald.


On Mo, Aug 10 2015, Rasmus ras...@gmx.us wrote:

 Hi,

 I can reproduce.

 Gerald Wildgruber gerald.wildgru...@unibas.ch writes:

 =

 * TODO Heading [0/3]

 - [ ] entry 1
 - [ ] entry 2 [0/0]
 - [ ] sub-entry 1
 - [ ] sub-entry 2
 - [ ] sub-entry 3
 - [ ] entry 3

 =

 I don't have time to attempt to fix it now, but it's introduced in
 a4cc9d82d8069741be64c55f35f9d3ad7e2663d5 if my git bisect foo is correct.

 My guess would be that container goes too far back:

 + (container
 +(org-element-lineage
 + context
 + '(drawer center-block dynamic-block inlinetask 
 plain-list
 +  quote-block special-block verse-block))

 plain-list also includes entry 1, but it should only consider the sublist
 starting with entry 2.

 Rasmus



[O] Link to http://orgmode.org/build-org-pkg.txt is 404 in http://orgmode.org/elpa.html

2015-08-10 Thread Cook, Malcolm
Link to http://orgmode.org/build-org-pkg.txt is 404 in 
http://orgmode.org/elpa.html

~Malcolm




Re: [O] BUG REPORT - problem with org.elc on clocking out

2015-08-10 Thread Kyle Meyer
Sharon Kimble boudic...@skimble.plus.com wrote:
[...]
 Do you still get the error after running 'C-u M-x org-reload'?

 Yes, its still occurring even after closing and restarting emacs.

Just restarting emacs will still use the compiled files.  Did you try
'C-u M-x org-reload' (the C-u prefix loads the *.el files instead of
*.elc)?

--
Kyle



Re: [O] Babel error on init with 8.3.1

2015-08-10 Thread Cook, Malcolm
Hi – here is my more detailed variation that just got upvoted at stackoverflow  
for resolving essentially the same problem:

http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio



From: emacs-orgmode-bounces+mec=stowers@gnu.org 
[mailto:emacs-orgmode-bounces+mec=stowers@gnu.org] On Behalf Of Cook, 
Malcolm
Sent: Monday, August 10, 2015 9:32 AM
To: 'Ryan Schuetzler' rsch...@gmail.com; emacs-orgmode@gnu.org
Subject: Re: [O] Babel error on init with 8.3.1

When you “ updated org through the package manager in Emacs,” I believe you 
need to make sure org has not been loaded at all.

My practice is to exec `emacs –Q`, immediately update with package manager, 
then quit and restart emacs without the –Q.

Let us know….

From: 
emacs-orgmode-bounces+mec=stowers@gnu.orgmailto:emacs-orgmode-bounces+mec=stowers@gnu.org
 [mailto:emacs-orgmode-bounces+mec=stowers@gnu.org] On Behalf Of Ryan 
Schuetzler
Sent: Friday, August 07, 2015 9:41 AM
To: emacs-orgmode@gnu.orgmailto:emacs-orgmode@gnu.org
Subject: [O] Babel error on init with 8.3.1

On startup with the latest 8.3 release I now get an error:

  Invalid function: org-babel-header-args-safe-fn

I updated org through the package manager in Emacs, and I'm using it on Windows 
10. Below is my full org configuration, but I've found that when I comment out 
the following section of my init, I don't receive any errors:

(add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)

(setq org-babel-results-keyword results)

(defun bh/display-inline-images ()
  (condition-case nil
  (org-display-inline-images)
(error nil)))

(org-babel-do-load-languages
 (quote org-babel-load-languages)
 (quote ((emacs-lisp . t)
  (latex . t)
  (R . t)
  (dot . t)
  (python . t)
  (org . t

(setq org-confirm-babel-evaluate nil)

FULL Config:

Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)
 of 2015-07-11 on KAEL
Package: Org-mode version 8.3.1 (8.3.1-elpa @ 
c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)

current state:
==
(setq
 org-export-backends '(ascii html icalendar latex md odt)
 org-agenda-tags-todo-honor-ignore-options t
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-babel-results-keyword results
 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-confirm-shell-link-function 'yes-or-no-p
 org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode t) 
(htmlize-output-type (quote cc)))
 org-agenda-custom-commands '((N Notes tags NOTE

((org-agenda-overriding-header Notes) (org-tags-match-list-sublevels t)))

   (h Habits tags-todo STYLE=\habit\

((org-agenda-overriding-header Habits)

  (org-agenda-sorting-strategy (quote (todo-state-down effort-up 
category-keep

)

   (  Agenda

((agenda  nil)

  (tags REFILE

  ((org-agenda-overriding-header Tasks to Refile)

   (org-tags-match-list-sublevels nil))

  )

  (tags-todo -CANCELLED/!

  ((org-agenda-overriding-header Stuck Projects)

   (org-agenda-skip-function (quote bh/skip-non-stuck-projects))

   (org-agenda-sorting-strategy (quote (category-keep

  )

  (tags-todo -HOLD-CANCELLED/!
  

[O] How to tangle org file with option comments yes in batch mode

2015-08-10 Thread Leandro Henrique Oliveira Fernandes
Hi,

I am trying to tangle a file in batch mode using the script bellow:

emacs.exe  -Q --batch --no-init-file -l init.el --visit file.org -f
org-babel-tangle --kill

== init.el ===

(require 'org)
(require 'org-exp)
(require 'ob)
(require 'ob-tangle)
(require 'ob-R)

(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (latex . t)
   (sh . t)
   (plantuml . t)
   (emacs-lisp . t)
   ))

;; For windows
(setq org-babel-R-command
\C:/Users/XX/Documents/R/R3.2.0/bin/i386/Rterm.exe --ess --slave
--no-save\)

== end file ==

And

== file.org ==

-*- mode: org; mode: auto-fill; fill-column: 76 -*-

# Babel settings
#+PROPERTY: session *R*
#+PROPERTY: comments yes
#+PROPERTY: results output
#+PROPERTY: exports none


* Simple babel block

#+name: setup_block
#+begin_src R :tangle Rcode/setup_block.R :exports none :session

  proj.dir - getwd()
  cat(Proj dir: , proj.dir,\n)

#+end_src

== end file ==

When I set #+PROPERTY: comments no, I am able to tangle the file file.org.
However when I set  #+PROPERTY: comments yes I have got this message:


c:/Program\ Files\ \(x86\)/GNU\ Emacs\ 24.3/bin/emacs.exe -Q --batch
--no-init-file -l init.el --visit file.org -f org-babel-tangle --kill
OVERVIEW
Loading vc-svn...
(No changes need to be saved)
No comment syntax is defined.  Use:


If I just press enter I end up with the error code:


No comment syntax defined
make: *** [tangle] Error 127


The file I want to tangle is a large file with a lot of org-babel blocks. I
understand that the comment is not defined, but I don't know how to set it.

I am running emacs on windows:
GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
Org-mode version 8.3.1

Anyone can help me with that?

Thanks,


emacs-or


Re: [O] BUG REPORT - problem with org.elc on clocking out

2015-08-10 Thread Sharon Kimble
Kyle Meyer k...@kyleam.com writes:

 Hello,

 Sharon Kimble boudic...@skimble.plus.com wrote:
 I'm finding that when I clock out now I get the following error report

 I cannot reproduce this with 'emacs -Q' and the following test.

 Clocking in (C-c C-x C-i) and then out (C-c C-x C-o) on the following
 heading

 * h

 results in

 * h
   :LOGBOOK:
   CLOCK: [2015-08-09 Sun 16:23]--[2015-08-09 Sun 16:23] =  0:00
   :END:

 Do you still get the error after running 'C-u M-x org-reload'?

Yes, its still occurring even after closing and restarting emacs. In
fact I've just done this to check for certain, and this time it threw up
a debugger page, which says -

--8---cut here---start-8---
Debugger entered--Lisp error: (wrong-number-of-arguments #[(pos) 
r\302!\203\303!\202pq\210\212\214~\210b\210\304 \305 
!\306\205=\307\310 \?\205=\307\311\\307\312  
\b\210\313\314x\210\314y\210`|,\207 [pos drawer markerp marker-buffer 
org-element-at-point org-element-type (drawer property-drawer) 
org-element-property :contents-begin :begin :end
 nil] 4 (/home/boudiccas/.emacs.d/elpa/org-plus-contrib-20150805/org.elc . 
462364)] 2)
  org-remove-empty-drawer-at(LOGBOOK 11266)
  (save-excursion (beginning-of-line 0) (org-remove-empty-drawer-at LOGBOOK 
(point)))
  bh/remove-empty-drawer-on-clock-out()
  #[(f)  \207 [f] 1](bh/remove-empty-drawer-on-clock-out)
  mapc(#[(f)  \207 [f] 1] (org-clock-remove-empty-clock-drawer 
bh/remove-empty-drawer-on-clock-out bh/clock-out-maybe))
  byte-code(\306 \204\307\310\  \311 
\210\203\312\313\314\\210\202\315\316!\210\f\2035\317\320r\321!q\210@)\322\314\323%\2027A\324B!\322\211\211\211\211\211CDEFGHIAIJ\212\325
 
q\210\214~\210b\210\326\327!\210\330\331KP!\203~\332\327!L\232\203~\332\333!H\202\216\203\212\312\313\322\\210\202\216\334\335!\210\336\225b\210`\337
 
|\210\340c\210\341M\206\242I\342\343#G\344\345\346\347G!\!\344\345\346\347H!\!ZF\350F\351\245!EFE\351_ZF\350F\352\245!DF\211\352_ZF\353\354\355ED#\261\210N\205\364ED\\\336U\211C\203\326\327!\210`\337
 
|\210\330\356!\203d`TV\203\357\327!\210\322\211\223\210O\322\211\223\210P\2033\360\361\322\211\211\211\362\363\314!\364Q\210Q\203@\365Q!\210\322QR\203M\365R!\210\322R\307\310\
   
A\203\234\212\366\314!\210\314\322ST\367A!\203\205\330U!\210A\332\333!!\211V\203\201\370V!\210)\202\233A\203\233\330W\331A\371R!\204\233\370A!\210+\311
 \210\372\373\374E\352_D\\!\375QGC\203\267\376\202\270\377#\210X\201\\ 
YEY\203\355Y;\204\355\201] 
\203\355Z\201^=\203\355S\203\355\307\201_E\E\201`\201aE\\210*\306 
?\205\322\211[.\n\207 [global-mode-string org-frame-title-format-backup 
frame-title-format fail-quietly switch-to-state org-clock-marker org-clocking-p 
delq org-mode-line-string force-mode-line-update throw exit t user-error No 
active clock completing-read Switch to state:  marker-buffer nil DONE 
org-current-time org-clocking-buffer beginning-of-line 1 looking-at []* 
match-string 2 error Clock start time is gone 0 point-at-eol -- 
org-insert-time-stamp with-hm inactive org-float-time apply encode-time 
org-parse-time-string floor 3600 60  =  format %2d:%02d \n delete-char 
org-add-log-setup clock-out ...] 10)
  org-clock-out()
  org-agenda-clock-out()
  #subr call-interactively(org-agenda-clock-out nil nil)
  ad-Advice-call-interactively(#subr call-interactively org-agenda-clock-out 
nil nil)
  apply(ad-Advice-call-interactively #subr call-interactively 
(org-agenda-clock-out nil nil))
  call-interactively(org-agenda-clock-out nil nil)
  command-execute(org-agenda-clock-out)
--8---cut here---end---8---

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.3


signature.asc
Description: PGP signature


Re: [O] Evil-mode text objects

2015-08-10 Thread Spencer Boucher
Here are two examples of what I am seeing: 
https://www.dropbox.com/sh/ri5x9i9bqm1v6qy/AABFKgHifbut-9sDrrfPn7Nya?dl=0.

This behavior is with a super minimal config: (use-package evil) and 
(use-package org).

Evil version: 20150809.330
Org version: 20150805

Thanks for your help.
On August 10, 2015 at 8:45:05 AM, S Fraga Eric (e.fr...@ucl.ac.uk) wrote:

On Wednesday, 5 Aug 2015 at 15:24, Spencer Boucher wrote: 
 Evil mode text objects behave very badly in org-mode (specifically 
 paragraphs). Is this a know problem? Is there a fix? 

Can you please be more specific? I use evil and org together all the 
time. Also, what versions of org and evil? 

I do re-bind some keys in evil's key maps, specifically ^ and $ but also 
some others, org's equivalents. 

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



Re: [O] BUG REPORT - problem with org.elc on clocking out

2015-08-10 Thread Achim Gratz
Kyle Meyer writes:
 Just restarting emacs will still use the compiled files.  Did you try
 'C-u M-x org-reload' (the C-u prefix loads the *.el files instead of
 *.elc)?

The org-reload uncompiled command is in the Org menu in Emacs under
Refresh/Reload and bound to C-u C-c C-x !.


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

Waldorf MIDI Implementation  additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs




Re: [O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]

2015-08-10 Thread Kyle Meyer
Christoph LANGE math.semantic@gmail.com wrote:
[...]
 Running emacs -q and then (package-initialize) and then opening a
 minimal file like

 * Hello
   CLOCK: [2015-08-07 Fri 10:14]--[2015-08-07 Fri 10:20] =  0:06

 was enough to reproduce the bug.  I.e. C-c ! or C-c . on the second
 timestamp prompted me with the time of the first one.

Yes, I can reproduce this too.  Bisecting indicates e50baa4 (Fix
`org-time-stamp', 2015-02-13) changed this behavior.

I think this is the problematic bit

  (let* ((ts
  (cond ((org-at-date-range-p t)
 (save-excursion
   (goto-char (match-beginning 0))
   (looking-at (if inactive org-ts-regexp-both org-ts-regexp)))
 (match-string 0))
((org-at-timestamp-p t) (match-string 0
 ;; Default time is either the timestamp at point or today.
 ;; When entering a range, only the range start is considered.
 (default-time (if (not ts) (current-time)
 (apply #'encode-time (org-parse-time-string ts

because it jumps to the beginning of a date range match and grabs the
first group as the default.

--
Kyle



Re: [O] BUG REPORT - problem with org.elc on clocking out

2015-08-10 Thread Sharon Kimble
Kyle Meyer k...@kyleam.com writes:

 Sharon Kimble boudic...@skimble.plus.com wrote:
 [...]
 Do you still get the error after running 'C-u M-x org-reload'?

 Yes, its still occurring even after closing and restarting emacs.

 Just restarting emacs will still use the compiled files.  Did you try
 'C-u M-x org-reload' (the C-u prefix loads the *.el files instead of
 *.elc)?

I've just updated org+contrib to todays release, then done reload org
after update from the menu. Then just clocked in on a task, and clocked
out and its still occurred. 

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.3


signature.asc
Description: PGP signature


Re: [O] [bug] canonical context not work in 8.3

2015-08-10 Thread Samuel Wales
On 8/10/15, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 I pushed the new function to code base. However, due to the nature of
 the change, it landed in master. So it will be available in Org 8.4.

thank you.  will it work in 8.3 (maint) if i load it after loading org?



Re: [O] BUG REPORT - problem with org.elc on clocking out

2015-08-10 Thread Nick Dokos
Sharon Kimble boudic...@skimble.plus.com writes:

 Kyle Meyer k...@kyleam.com writes:

 Do you still get the error after running 'C-u M-x org-reload'?

 Yes, its still occurring even after closing and restarting emacs. In
 fact I've just done this to check for certain, and this time it threw up
 a debugger page, which says -


The backtrace *may* be enough for somebody to debug but FYI: C-u M-x org-reload
reloads *uncompiled* org-mode which makes the backtrace much more
informative.

 Debugger entered--Lisp error: (wrong-number-of-arguments #[(pos) 
 r\302!\203\303!\202pq\210\212\214~\210b\210\304 \305 
 !\306\205=\307\310 \?\205=\307\311\\307\312  
 \b\210\313\314x\210\314y\210`|,\207 [pos drawer markerp marker-buffer 
 org-element-at-point org-element-type (drawer property-drawer) 
 org-element-property :contents-begin :begin :end
  nil] 4 (/home/boudiccas/.emacs.d/elpa/org-plus-contrib-20150805/org.elc . 
 462364)] 2)
   org-remove-empty-drawer-at(LOGBOOK 11266)
   (save-excursion (beginning-of-line 0) (org-remove-empty-drawer-at LOGBOOK 
 (point)))
   bh/remove-empty-drawer-on-clock-out()
   #[(f)  \207 [f] 1](bh/remove-empty-drawer-on-clock-out)
   mapc(#[(f)  \207 [f] 1] (org-clock-remove-empty-clock-drawer 
 bh/remove-empty-drawer-on-clock-out bh/clock-out-maybe))
   byte-code(\306 \204\307\310\\311 
 \210\203\312\313\314\\210\202\315\316!\210\f\2035\317\320r\321!q\210@)\322\314\323%\2027A\324B!\322\211\211\211\211\211CDEFGHIAIJ\212\325
  
 q\210\214~\210b\210\326\327!\210\330\331KP!\203~\332\327!L\232\203~\332\333!H\202\216\203\212\312\313\322\\210\202\216\334\335!\210\336\225b\210`\337
  
 |\210\340c\210\341M\206\242I\342\343#G\344\345\346\347G!\!\344\345\346\347H!\!ZF\350F\351\245!EFE\351_ZF\350F\352\245!DF\211\352_ZF\353\354\355ED#\261\210N\205\364ED\\\336U\211C\203\326\327!\210`\337
  
 |\210\330\356!\203d`TV\203\357\327!\210\322\211\223\210O\322\211\223\210P\2033\360\361\322\211\211\211\362\363\314!\364Q\210Q\203@\365Q!\210\322QR\203M\365R!\210\322R\307\310\
   
 A\203\234\212\366\314!\210\314\322ST\367A!\203\205\330U!\210A\332\333!!\211V\203\201\370V!\210)\202\233A\203\233\330W\331A\371R!\204\233\370A!\210+\311
  \210\372\373\374E\352_D\\!\375QGC\203\267\376\202\270\377#\210X\201\\ 
 YEY\203\355Y;\204\355\201] 
 \203\355Z\201^=\203\355S\203\355\307\201_E\E\201`\201aE\\210*\306 
 ?\205\322\211[.\n\207 [global-mode-string org-frame-title-format-backup 
 frame-title-format fail-quietly switch-to-state org-clock-marker 
 org-clocking-p delq org-mode-line-string force-mode-line-update throw exit t 
 user-error No active clock completing-read Switch to state:  
 marker-buffer nil DONE org-current-time org-clocking-buffer 
 beginning-of-line 1 looking-at []* match-string 2 error Clock start 
 time is gone 0 point-at-eol -- org-insert-time-stamp with-hm inactive 
 org-float-time apply encode-time org-parse-time-string floor 3600 60  =  
 format %2d:%02d \n delete-char org-add-log-setup clock-out ...] 10)
   org-clock-out()
   org-agenda-clock-out()
   #subr call-interactively(org-agenda-clock-out nil nil)
   ad-Advice-call-interactively(#subr call-interactively 
 org-agenda-clock-out nil nil)
   apply(ad-Advice-call-interactively #subr call-interactively 
 (org-agenda-clock-out nil nil))
   call-interactively(org-agenda-clock-out nil nil)
   command-execute(org-agenda-clock-out)


A backtrace produced with uncompiled code would have lisp code instead
of the byte-code binary stuff.

Nick




[O] Block level specification for tex code html export method

2015-08-10 Thread Haochen Xie
Hi,

I'm trying to include a diagram drawn with tikz in a document, but
couldn't find an elegant way to conditionally export it as png when
generating HTML output and raw TeX code when generating PDF. It is
possible to use

#+OPTIONS: tex:imagemagick

to have tex blocks in the document exported as PNG in HTML, but since
I have other formulas which will render much better with MathJAX other
than embedded PNGs, i really don't want to do it. What I'm currently
doing is to use something like

#+BEGIN_SRC latex :file diagram.png :results value raw
\begin{tikzpicture}
  \draw (0,0) grid (7,5);
  \draw (0,0) node[below left] {$A$};
  \draw (7,5) node[above right] {$B$};
  \fill (0,0) circle (2pt);
  \fill (7,5) circle (2pt);
\end{tikzpicture}
#+END_SRC

#+RESULTS[da59bc402ce2d1055b5ff471ea7e398c4e0488f5]:
[[file:diagram.png]]

so that the diagram will be include in the HTML file as a png image,
and the pdf file will also include it as a raster image.

But this method is rather a workaround. I'd like to see a vector
diagram in the pdf file, which could be achieved if there is a way to
specify how a block of TeX source code should be handled when exported
to HTML regardless to the global settings. So I propose an extension
to #+BEGIN_LaTeX block so that a new header :html will control how the
specific block will be handled when exporting to HTML. The possible
values might be none, t, dvipng, or imagemagick. none will ignore
the whole block when exporting to HTML, just like the current
behavior; t will try to call MathJAX to interpret this block of TeX
code; and dvipng and imagemagick will call dvipng or
imagemagick to render a png file to be embedded in the HTML page.

If that extension is supported, we could then left the global option
tex:t while inline a tex powered figure with great convenience. For
example, in my use case, I could then just used the following code to
achieve what I want:

#+BEGIN_LaTeX :html imagemagick
\begin{tikzpicture}
  \draw (0,0) grid (7,5);
  \draw (0,0) node[below left] {$A$};
  \draw (7,5) node[above right] {$B$};
  \fill (0,0) circle (2pt);
  \fill (7,5) circle (2pt);
\end{tikzpicture}
#+END_LaTeX

As I'm new to org-mode, I may missed something that I could use
instead (although I searched the internet very hard). Please feel free
to disagree on me and point alternative ways to achieve my goal.

Thanks in advance.

Best regards,

Haochen

--

Mail from Haochen Xie


Re: [O] BUG REPORT - problem with org.elc on clocking out

2015-08-10 Thread Kyle Meyer
Sharon Kimble boudic...@skimble.plus.com wrote:
 Kyle Meyer k...@kyleam.com writes:
[...]
 Just restarting emacs will still use the compiled files.  Did you try
 'C-u M-x org-reload' (the C-u prefix loads the *.el files instead of
 *.elc)?

 I've just updated org+contrib to todays release, then done reload org
 after update from the menu. Then just clocked in on a task, and clocked
 out and its still occurred.

What about when you select the item right under it (Reload Org
uncompiled)?

--
Kyle



Re: [O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]

2015-08-10 Thread Nicolas Goaziou
Kyle Meyer k...@kyleam.com writes:

 Christoph LANGE math.semantic@gmail.com wrote:
 [...]
 Running emacs -q and then (package-initialize) and then opening a
 minimal file like

 * Hello
   CLOCK: [2015-08-07 Fri 10:14]--[2015-08-07 Fri 10:20] =  0:06

 was enough to reproduce the bug.  I.e. C-c ! or C-c . on the second
 timestamp prompted me with the time of the first one.

 Yes, I can reproduce this too.  Bisecting indicates e50baa4 (Fix
 `org-time-stamp', 2015-02-13) changed this behavior.

 I think this is the problematic bit

   (let* ((ts
 (cond ((org-at-date-range-p t)
(save-excursion
  (goto-char (match-beginning 0))
  (looking-at (if inactive org-ts-regexp-both org-ts-regexp)))
(match-string 0))
   ((org-at-timestamp-p t) (match-string 0
;; Default time is either the timestamp at point or today.
;; When entering a range, only the range start is considered.
  (default-time (if (not ts) (current-time)
(apply #'encode-time (org-parse-time-string ts

 because it jumps to the beginning of a date range match and grabs the
 first group as the default.

Correct. Fixed. Thank you to you both.

Regards,



Re: [O] Babel error on init with 8.3.1

2015-08-10 Thread Peter Salazar
I'm trying to do this for my other install of Emacs (which uses Spacemacs)
and now I'm running into problems. I'm using GUI Emacs on Mac OSX
(from brew install --with-cocoa --srgb emacs).

When I do open -a /Applications/Emacs.app --args --no-init --eval (progn
(require 'package) (add-to-list 'package-archives '(\org\ . \
http://orgmode.org/elpa/\;)) (package-initialize)
(package-refresh-contents) (package-install 'org-plus-contrib)) it never
gets pastContacting host: orgmode.org:80. It just shows that message
indefinitely...

When I try eval-ing package.el first, I get package-desc-reqs accessing a
non-package-desc and I can't install org-plus-contrib. Any suggestions?


On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm m...@stowers.org wrote:

 Hi – here is my more detailed variation that just got upvoted at
 stackoverflow  for resolving essentially the same problem:




 http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio







 *From:* emacs-orgmode-bounces+mec=stowers@gnu.org [mailto:
 emacs-orgmode-bounces+mec=stowers@gnu.org] *On Behalf Of *Cook,
 Malcolm
 *Sent:* Monday, August 10, 2015 9:32 AM
 *To:* 'Ryan Schuetzler' rsch...@gmail.com; emacs-orgmode@gnu.org
 *Subject:* Re: [O] Babel error on init with 8.3.1



 When you “ updated org through the package manager in Emacs,” I believe
 you need to make sure org has not been loaded at all.



 My practice is to exec `emacs –Q`, immediately update with package
 manager, then quit and restart emacs without the –Q.



 Let us know….



 *From:* emacs-orgmode-bounces+mec=stowers@gnu.org [
 mailto:emacs-orgmode-bounces+mec=stowers@gnu.org
 emacs-orgmode-bounces+mec=stowers@gnu.org] *On Behalf Of *Ryan
 Schuetzler
 *Sent:* Friday, August 07, 2015 9:41 AM
 *To:* emacs-orgmode@gnu.org
 *Subject:* [O] Babel error on init with 8.3.1



 On startup with the latest 8.3 release I now get an error:



   Invalid function: org-babel-header-args-safe-fn



 I updated org through the package manager in Emacs, and I'm using it on
 Windows 10. Below is my full org configuration, but I've found that when I
 comment out the following section of my init, I don't receive any errors:



 (add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)



 (setq org-babel-results-keyword results)



 (defun bh/display-inline-images ()

   (condition-case nil

   (org-display-inline-images)

 (error nil)))



 (org-babel-do-load-languages

  (quote org-babel-load-languages)

  (quote ((emacs-lisp . t)

   (latex . t)

   (R . t)

   (dot . t)

   (python . t)

   (org . t



 (setq org-confirm-babel-evaluate nil)



 FULL Config:



 Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)

  of 2015-07-11 on KAEL

 Package: Org-mode version 8.3.1 (8.3.1-elpa @
 c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)



 current state:

 ==

 (setq

  org-export-backends '(ascii html icalendar latex md odt)

  org-agenda-tags-todo-honor-ignore-options t

  org-tab-first-hook '(org-hide-block-toggle-maybe
 org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)

  org-babel-results-keyword results

  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-confirm-shell-link-function 'yes-or-no-p

  org-agenda-exporter-settings '((ps-number-of-columns 1)
 (ps-landscape-mode t) (htmlize-output-type (quote cc)))

  org-agenda-custom-commands '((N Notes tags NOTE


   ((org-agenda-overriding-header Notes) (org-tags-match-list-sublevels
 t)))


  (h Habits tags-todo STYLE=\habit\


   ((org-agenda-overriding-header Habits)


 (org-agenda-sorting-strategy (quote (todo-state-down effort-up
 category-keep


   )


  (  Agenda


   ((agenda  nil)


 (tags REFILE


 ((org-agenda-overriding-header Tasks to Refile)


  (org-tags-match-list-sublevels nil))


 )


 (tags-todo -CANCELLED/!


 ((org-agenda-overriding-header Stuck Projects)


  (org-agenda-skip-function (quote bh/skip-non-stuck-projects))


  (org-agenda-sorting-strategy (quote (category-keep


 )


 (tags-todo -HOLD-CANCELLED/!



 ((org-agenda-overriding-header Projects)


  (org-agenda-skip-function (quote bh/skip-non-projects))


  (org-tags-match-list-sublevels (quote indented))


  (org-agenda-sorting-strategy (quote (category-keep


 )


 (tags-todo -CANCELLED/!NEXT


 ((org-agenda-overriding-header


   (concat Project Next Tasks


 (if bh/hide-scheduled-and-waiting-next-tasks 


  (including WAITING and SCHEDULED tasks))


 )


   )


  (org-agenda-skip-function (quote
 bh/skip-projects-and-habits-and-single-tasks))


  (org-tags-match-list-sublevels t)


  (org-agenda-todo-ignore-scheduled
 bh/hide-scheduled-and-waiting-next-tasks)


  (org-agenda-todo-ignore-deadlines
 bh/hide-scheduled-and-waiting-next-tasks)


  

Re: [O] Cookies on check-boxed plain lists don't get updated

2015-08-10 Thread Nicolas Goaziou
Hello,

Gerald Wildgruber gerald.wildgru...@unibas.ch writes:

 Hi Rasmus,

 thanks for your hint, indeed this particular commit changed the
 check-box related algorithm; git log gives:

 commit a4cc9d82d8069741be64c55f35f9d3ad7e2663d5
 Author: Nicolas Goaziou m...@nicolasgoaziou.fr
 Date:   Tue Jun 9 17:06:17 2015 +0200

 org-list: Fix checkbox update with inlinetasks
 
 * lisp/org-list.el (org-update-checkbox-count): Change algorithm.  Use
   Element parser.
 
 * testing/lisp/test-org-list.el (test-org-list/update-checkbox-count):
   New test.


 I then looked at this particular file's git log:

 git log lisp/org-list.el

 and checked out Nicolas' last revision BEFORE his commit on Tue Jun 9:

 git checkout a0c1e490b30cc4c0dd9e9ecdd70c32a52b08a57e lisp/org-list.el

 And indeed: everything works again as expected.

 Nicolas, can you see what caused this regression and can it be fixed?

Fixed. Thanks to Rasmus and you.

Regards,

-- 
Nicolas Goaziou



Re: [O] [bug] canonical context not work in 8.3

2015-08-10 Thread Nicolas Goaziou
Samuel Wales samolog...@gmail.com writes:

 On 8/10/15, Nicolas Goaziou m...@nicolasgoaziou.fr wrote:
 I pushed the new function to code base. However, due to the nature of
 the change, it landed in master. So it will be available in Org 8.4.

 thank you.  will it work in 8.3 (maint) if i load it after loading
 org?

If you don't plan to use outline.el, you can override `show-children'
with the following:

--8---cut here---start-8---
(defun show-children (optional level)
  Show all direct subheadings of this heading.
Prefix arg LEVEL is how many levels below the current level should be shown.
Default is enough to cause the following heading to appear.
  (save-excursion
(org-back-to-heading t)
(let* ((current-level (funcall outline-level))
   (max-level (org-get-valid-level
   current-level (if level (prefix-numeric-value level) 1)))
   (end (save-excursion (org-end-of-subtree t t)))
   (regexp-fmt ^\\*\\{%d,%s\\}\\(?: \\|$\\))
   (past-first-child nil)
   ;; Make sure to skip inlinetasks.
   (re (format regexp-fmt
   current-level
   (cond
((not (featurep 'org-inlinetask)) )
(org-odd-levels-only (- (* 2 org-inlinetask-min-level)
3))
(t (1- org-inlinetask-min-level))
  ;; Display parent heading.
  (outline-flag-region (line-end-position 0) (line-end-position) nil)
  (forward-line)
  ;; Display children.  First child may be deeper than expected
  ;; MAX-LEVEL.  Since we want to display it anyway, adjust
  ;; MAX-LEVEL accordingly.
  (while (re-search-forward re end t)
(unless past-first-child
  (setq re (format regexp-fmt
   current-level
   (max (funcall outline-level) max-level)))
  (setq past-first-child t))
(outline-flag-region (line-end-position 0) (line-end-position) nil)
--8---cut here---end---8---

However, the patch that landed in master implements `org-show-children'
instead.


Regards,



Re: [O] Babel error on init with 8.3.1

2015-08-10 Thread Peter Salazar
Update: the install of org-plus-contrib was eventually successful, but it
seems that my attempt to launch a GUI version Emacs -Q didn't work.

Here's what I did:

$ open -a /Applications/Emacs.app --args --no-init

C-u M-x org-reload

package-list-packages

select and delete org-plus-contrib

package-install org-plus-contrib

But then when I quit and launch Emacs without the --no-init argument, I
still get:

Debugger entered--Lisp error: (void-variable org-planning-line-re)
  org-element--current-element(168330 element planning nil)

...which I think means org-plus-contrib was not successfully upgraded.

Any thoughts? Thanks!



On Mon, Aug 10, 2015 at 4:43 PM, Peter Salazar cycleofs...@gmail.com
wrote:

 I'm trying to do this for my other install of Emacs (which uses Spacemacs)
 and now I'm running into problems. I'm using GUI Emacs on Mac OSX
 (from brew install --with-cocoa --srgb emacs).

 When I do open -a /Applications/Emacs.app --args --no-init --eval (progn
 (require 'package) (add-to-list 'package-archives '(\org\ . \
 http://orgmode.org/elpa/\;)) (package-initialize)
 (package-refresh-contents) (package-install 'org-plus-contrib)) it never
 gets pastContacting host: orgmode.org:80. It just shows that message
 indefinitely...

 When I try eval-ing package.el first, I get package-desc-reqs accessing a
 non-package-desc and I can't install org-plus-contrib. Any suggestions?


 On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm m...@stowers.org wrote:

 Hi – here is my more detailed variation that just got upvoted at
 stackoverflow  for resolving essentially the same problem:




 http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio







 *From:* emacs-orgmode-bounces+mec=stowers@gnu.org [mailto:
 emacs-orgmode-bounces+mec=stowers@gnu.org] *On Behalf Of *Cook,
 Malcolm
 *Sent:* Monday, August 10, 2015 9:32 AM
 *To:* 'Ryan Schuetzler' rsch...@gmail.com; emacs-orgmode@gnu.org
 *Subject:* Re: [O] Babel error on init with 8.3.1



 When you “ updated org through the package manager in Emacs,” I believe
 you need to make sure org has not been loaded at all.



 My practice is to exec `emacs –Q`, immediately update with package
 manager, then quit and restart emacs without the –Q.



 Let us know….



 *From:* emacs-orgmode-bounces+mec=stowers@gnu.org [
 mailto:emacs-orgmode-bounces+mec=stowers@gnu.org
 emacs-orgmode-bounces+mec=stowers@gnu.org] *On Behalf Of *Ryan
 Schuetzler
 *Sent:* Friday, August 07, 2015 9:41 AM
 *To:* emacs-orgmode@gnu.org
 *Subject:* [O] Babel error on init with 8.3.1



 On startup with the latest 8.3 release I now get an error:



   Invalid function: org-babel-header-args-safe-fn



 I updated org through the package manager in Emacs, and I'm using it on
 Windows 10. Below is my full org configuration, but I've found that when I
 comment out the following section of my init, I don't receive any errors:



 (add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)



 (setq org-babel-results-keyword results)



 (defun bh/display-inline-images ()

   (condition-case nil

   (org-display-inline-images)

 (error nil)))



 (org-babel-do-load-languages

  (quote org-babel-load-languages)

  (quote ((emacs-lisp . t)

   (latex . t)

   (R . t)

   (dot . t)

   (python . t)

   (org . t



 (setq org-confirm-babel-evaluate nil)



 FULL Config:



 Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)

  of 2015-07-11 on KAEL

 Package: Org-mode version 8.3.1 (8.3.1-elpa @
 c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)



 current state:

 ==

 (setq

  org-export-backends '(ascii html icalendar latex md odt)

  org-agenda-tags-todo-honor-ignore-options t

  org-tab-first-hook '(org-hide-block-toggle-maybe
 org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)

  org-babel-results-keyword results

  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-confirm-shell-link-function 'yes-or-no-p

  org-agenda-exporter-settings '((ps-number-of-columns 1)
 (ps-landscape-mode t) (htmlize-output-type (quote cc)))

  org-agenda-custom-commands '((N Notes tags NOTE


   ((org-agenda-overriding-header Notes) (org-tags-match-list-sublevels
 t)))


  (h Habits tags-todo STYLE=\habit\


   ((org-agenda-overriding-header Habits)


 (org-agenda-sorting-strategy (quote (todo-state-down effort-up
 category-keep


   )


  (  Agenda


   ((agenda  nil)


 (tags REFILE


 ((org-agenda-overriding-header Tasks to Refile)


  (org-tags-match-list-sublevels nil))


 )


 (tags-todo -CANCELLED/!


 ((org-agenda-overriding-header Stuck Projects)


  (org-agenda-skip-function (quote bh/skip-non-stuck-projects))


  (org-agenda-sorting-strategy (quote (category-keep


 )


 (tags-todo 

Re: [O] How to visit every source block and modify it's NAME property with org-element?

2015-08-10 Thread Grant Rettke
Here is perhaps the final version:
- Go to point-min first
- Do before tangling
- Save buffer

┌
│ (defun help/org-prp-hdln ()
│   Visit every Headline. If it doesn't have an ID property then add one and
│   assign it a UUID. Attribution: URL
`http://article.gmane.org/gmane.emacs.orgmode/99738'
│   (interactive)
│   (goto-char (point-min))
│   (dolist (p (nreverse
│   (org-element-map (org-element-parse-buffer 'headline) 'headline
│ (lambda (headline) (org-element-property :begin headline)
│ (goto-char p)
│ (org-id-get-create))
│   (save-buffer))
│
│ (defun help/org-prp-src-blk ()
│   Visit every Source-Block. If it doesn't have a NAME property then
add one and
│assign it a UUID. Attribution: URL
`http://article.gmane.org/gmane.emacs.orgmode/99740'
│   (interactive)
│   (goto-char (point-min))
│   (let ((case-fold-search t))
│ (while (re-search-forward ^\s*#[+]BEGIN_SRC nil t)
│   (let ((element (org-element-at-point)))
│ (when (eq (org-element-type element) 'src-block)
│   (if (not (org-element-property :name element))
│   (let ((i (org-get-indentation)))
│ (beginning-of-line)
│ (save-excursion (insert #+NAME:  (org-id-new) \n))
│ (indent-to i)
│ (forward-line 2)))
│   (save-buffer))
│ (add-hook #'org-babel-pre-tangle-hook #'help/org-prp-hdln)
│ (add-hook #'org-babel-pre-tangle-hook #'help/org-prp-src-blk)
└



Re: [O] BUG REPORT - problem with org.elc on clocking out

2015-08-10 Thread Nicolas Goaziou
Hello,

Sharon Kimble boudic...@skimble.plus.com writes:

 Yes, its still occurring even after closing and restarting emacs. In
 fact I've just done this to check for certain, and this time it threw up
 a debugger page, which says -

 Debugger entered--Lisp error: (wrong-number-of-arguments #[(pos) 
 r\302!\203\303!\202pq\210\212\214~\210b\210\304 \305 
 !\306\205=\307\310 \?\205=\307\311\\307\312  
 \b\210\313\314x\210\314y\210`|,\207 [pos drawer markerp marker-buffer 
 org-element-at-point org-element-type (drawer property-drawer) 
 org-element-property :contents-begin :begin :end
  nil] 4 (/home/boudiccas/.emacs.d/elpa/org-plus-contrib-20150805/org.elc . 
 462364)] 2)
   org-remove-empty-drawer-at(LOGBOOK 11266)
   (save-excursion (beginning-of-line 0) (org-remove-empty-drawer-at LOGBOOK 
 (point)))
   bh/remove-empty-drawer-on-clock-out()

The function `bh/remove-empty-drawer-on-clock-out' needs to be modified.

It should call 

  (org-remove-empty-drawer-at (point))

instead of

  (org-remove-empty-drawer-at LOGBOOK (point))


Regards,

-- 
Nicolas Goaziou



Re: [O] Block level specification for tex code html export method

2015-08-10 Thread Andreas Leha
Hi Haochen,


Haochen Xie haoc...@xie.name writes:
 Hi,

 I'm trying to include a diagram drawn with tikz in a document, but
 couldn't find an elegant way to conditionally export it as png when
 generating HTML output and raw TeX code when generating PDF. It is
 possible to use

 #+OPTIONS: tex:imagemagick

 to have tex blocks in the document exported as PNG in HTML, but since
 I have other formulas which will render much better with MathJAX other
 than embedded PNGs, i really don't want to do it. What I'm currently
 doing is to use something like

 #+BEGIN_SRC latex :file diagram.png :results value raw
 \begin{tikzpicture}
 \draw (0,0) grid (7,5);
 \draw (0,0) node[below left] {$A$};
 \draw (7,5) node[above right] {$B$};
 \fill (0,0) circle (2pt);
 \fill (7,5) circle (2pt);
 \end{tikzpicture}
 #+END_SRC

 #+RESULTS[da59bc402ce2d1055b5ff471ea7e398c4e0488f5]:
 [[file:diagram.png]]

 so that the diagram will be include in the HTML file as a png image,
 and the pdf file will also include it as a raster image.

 But this method is rather a workaround. I'd like to see a vector
 diagram in the pdf file, which could be achieved if there is a way to
 specify how a block of TeX source code should be handled when exported
 to HTML regardless to the global settings. So I propose an extension
 to #+BEGIN_LaTeX block so that a new header :html will control how the
 specific block will be handled when exporting to HTML. The possible
 values might be none, t, dvipng, or imagemagick. none will ignore
 the whole block when exporting to HTML, just like the current
 behavior; t will try to call MathJAX to interpret this block of TeX
 code; and dvipng and imagemagick will call dvipng or
 imagemagick to render a png file to be embedded in the HTML page.

 If that extension is supported, we could then left the global option
 tex:t while inline a tex powered figure with great convenience. For
 example, in my use case, I could then just used the following code to
 achieve what I want:

 #+BEGIN_LaTeX :html imagemagick
 \begin{tikzpicture}
 \draw (0,0) grid (7,5);
 \draw (0,0) node[below left] {$A$};
 \draw (7,5) node[above right] {$B$};
 \fill (0,0) circle (2pt);
 \fill (7,5) circle (2pt);
 \end{tikzpicture}
 #+END_LaTeX

 As I'm new to org-mode, I may missed something that I could use
 instead (although I searched the internet very hard). Please feel free
 to disagree on me and point alternative ways to achieve my goal.

 Thanks in advance.

 Best regards,

 Haochen


There has been a thread on this list recently on this topic [1].
See [2] for an example and [3] for some further explanations.

Regards,
Andreas

[1] http://comments.gmane.org/gmane.emacs.orgmode/95174

[2] http://permalink.gmane.org/gmane.emacs.orgmode/95197

[3] http://permalink.gmane.org/gmane.emacs.orgmode/95297





Re: [O] Babel error on init with 8.3.1

2015-08-10 Thread Peter Salazar
Thanks. Tried that, but then when I launch regular Emacs with my init file,
I still get this error:
https://gist.github.com/512c4934d5351a47b2a1

Any other ideas?

On Mon, Aug 10, 2015 at 7:18 PM, Cook, Malcolm m...@stowers.org wrote:

 Try that recipe again but without the org-reload.  That is forcing org to
 load.  You don’t WANT org loaded when you build it again inside the package
 manager.



 *From:* Peter Salazar [mailto:cycleofs...@gmail.com]
 *Sent:* Monday, August 10, 2015 4:30 PM
 *To:* Cook, Malcolm m...@stowers.org
 *Cc:* Ryan Schuetzler rsch...@gmail.com; emacs-orgmode@gnu.org

 *Subject:* Re: [O] Babel error on init with 8.3.1



 Update: the install of org-plus-contrib was eventually successful, but it
 seems that my attempt to launch a GUI version Emacs -Q didn't work.



 Here's what I did:



 $ open -a /Applications/Emacs.app --args --no-init



 C-u M-x org-reload



 package-list-packages



 select and delete org-plus-contrib



 package-install org-plus-contrib



 But then when I quit and launch Emacs without the --no-init argument, I
 still get:



 Debugger entered--Lisp error: (void-variable org-planning-line-re)

   org-element--current-element(168330 element planning nil)



 ...which I think means org-plus-contrib was not successfully upgraded.



 Any thoughts? Thanks!







 On Mon, Aug 10, 2015 at 4:43 PM, Peter Salazar cycleofs...@gmail.com
 wrote:

 I'm trying to do this for my other install of Emacs (which uses Spacemacs)
 and now I'm running into problems. I'm using GUI Emacs on Mac OSX
 (from brew install --with-cocoa --srgb emacs).



 When I do open -a /Applications/Emacs.app --args --no-init --eval (progn
 (require 'package) (add-to-list 'package-archives '(\org\ . \
 http://orgmode.org/elpa/\;)) (package-initialize)
 (package-refresh-contents) (package-install 'org-plus-contrib)) it never
 gets pastContacting host: orgmode.org:80. It just shows that message
 indefinitely...



 When I try eval-ing package.el first, I get package-desc-reqs accessing a
 non-package-desc and I can't install org-plus-contrib. Any suggestions?





 On Mon, Aug 10, 2015 at 1:08 PM, Cook, Malcolm m...@stowers.org wrote:

 Hi – here is my more detailed variation that just got upvoted at
 stackoverflow  for resolving essentially the same problem:




 http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio







 *From:* emacs-orgmode-bounces+mec=stowers@gnu.org [mailto:
 emacs-orgmode-bounces+mec=stowers@gnu.org] *On Behalf Of *Cook,
 Malcolm
 *Sent:* Monday, August 10, 2015 9:32 AM
 *To:* 'Ryan Schuetzler' rsch...@gmail.com; emacs-orgmode@gnu.org
 *Subject:* Re: [O] Babel error on init with 8.3.1



 When you “ updated org through the package manager in Emacs,” I believe
 you need to make sure org has not been loaded at all.



 My practice is to exec `emacs –Q`, immediately update with package
 manager, then quit and restart emacs without the –Q.



 Let us know….



 *From:* emacs-orgmode-bounces+mec=stowers@gnu.org [
 mailto:emacs-orgmode-bounces+mec=stowers@gnu.org
 emacs-orgmode-bounces+mec=stowers@gnu.org] *On Behalf Of *Ryan
 Schuetzler
 *Sent:* Friday, August 07, 2015 9:41 AM
 *To:* emacs-orgmode@gnu.org
 *Subject:* [O] Babel error on init with 8.3.1



 On startup with the latest 8.3 release I now get an error:



   Invalid function: org-babel-header-args-safe-fn



 I updated org through the package manager in Emacs, and I'm using it on
 Windows 10. Below is my full org configuration, but I've found that when I
 comment out the following section of my init, I don't receive any errors:



 (add-hook 'org-babel-after-execute-hook 'bh/display-inline-images 'append)



 (setq org-babel-results-keyword results)



 (defun bh/display-inline-images ()

   (condition-case nil

   (org-display-inline-images)

 (error nil)))



 (org-babel-do-load-languages

  (quote org-babel-load-languages)

  (quote ((emacs-lisp . t)

   (latex . t)

   (R . t)

   (dot . t)

   (python . t)

   (org . t



 (setq org-confirm-babel-evaluate nil)



 FULL Config:



 Emacs  : GNU Emacs 25.0.50.1 (x86_64-w64-mingw32)

  of 2015-07-11 on KAEL

 Package: Org-mode version 8.3.1 (8.3.1-elpa @
 c:/Users/Ryan/dotfiles/.emacs.d/elpa/org-20150805/)



 current state:

 ==

 (setq

  org-export-backends '(ascii html icalendar latex md odt)

  org-agenda-tags-todo-honor-ignore-options t

  org-tab-first-hook '(org-hide-block-toggle-maybe
 org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)

  org-babel-results-keyword results

  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-confirm-shell-link-function 'yes-or-no-p

  org-agenda-exporter-settings '((ps-number-of-columns 1)
 (ps-landscape-mode t) 

Re: [O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]

2015-08-10 Thread Christoph LANGE
Nicolas Goaziou on 2015-08-10 22:37:
 Correct. Fixed. Thank you to you both.

Many thanks, @Nicolas, for fixing this so quickly, and @Kyle for
tracking down the source of the problem!

Christoph

-- 
Dr. Christoph Lange, Enterprise Information Systems Department
Applied Computer Science @ University of Bonn; Fraunhofer IAIS
http://langec.wordpress.com/about, Skype duke4701

→ Web Intelligence Summer School “Question Answering with the Web”
  Saint-Étienne, FR.  Apply by 4 July @ https://wiss.univ-st-etienne.fr/




Re: [O] Babel error on init with 8.3.1

2015-08-10 Thread Kyle Meyer

Peter Salazar cycleofs...@gmail.com wrote:
 Maybe the builtin Org is being loaded before your elpa version.  (In the
 backtrace you posted from your startup, I see a find-file call with an
 Org file.)  What does org-version say?
 Did that, same error. When I run $ emacs -Q and then immediately do
 org-version, I get: Org-mode version 8.2.10 (release_8.2.10 @
 /usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/)

Sorry, I meant if you start up normally.  For example, if I

(require 'org)

before

(require 'package)
(add-to-list 'package-archives '(org . http://orgmode.org/elpa/;) t)
(package-initialize)

then org-version reports

Org-mode version 8.2.10 (release_8.2.10 @ /tmp/emacsd/elpa/org-20150810/)

instead of

Org-mode version 8.3.1 (8.3.1-16-gf6aa53-elpa @ 
/tmp/emacsd/elpa/org-20150810/)

 Same thing if I run emacs -Q --eval '(setq user-emacs-directory
 ~/Downloads/tmp/emacsd/)' -l ~/Downloads/tmp/emacsd/scratch.el

 Is this part of the problem, or is that part OK?

Those were just some tests cases where I was trying to reproduce the
compilation issues that occur if installing the ELPA version with 8.2.10
loaded.

--
Kyle



[O] Monthly report

2015-08-10 Thread Norbert

Hi folks,

I have an agenda spread across multiple files, and I would like to see a 
brief report of my worktime per day for one month. Ideally such a report 
would have exactly 28 .. 31 rows with two columns (the date and the 
number of hours and minutes).


I have created a clocktable with stepping 1 day and depth 0, which is 
close, but it still gives me for every day a summary for every file 
separately.


Anybody done a report like I would like to have before?


Thanks and cheers


Norbert





Re: [O] Babel error on init with 8.3.1

2015-08-10 Thread Peter Salazar
Did that, same error. When I run $ emacs -Q and then immediately do
org-version, I get: Org-mode version 8.2.10 (release_8.2.10 @
/usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/)

Same thing if I run emacs -Q --eval '(setq user-emacs-directory
~/Downloads/tmp/emacsd/)' -l ~/Downloads/tmp/emacsd/scratch.el

Is this part of the problem, or is that part OK?



On Mon, Aug 10, 2015 at 9:36 PM, Kyle Meyer k...@kyleam.com wrote:

 Peter Salazar cycleofs...@gmail.com wrote:
  Thanks. Tried that, but then when I launch regular Emacs with my init
 file,
  I still get this error:
  https://gist.github.com/512c4934d5351a47b2a1
 
  Any other ideas?

 Maybe the builtin Org is being loaded before your elpa version.  (In the
 backtrace you posted from your startup, I see a find-file call with an
 Org file.)  What does org-version say?

  On Mon, Aug 10, 2015 at 7:18 PM, Cook, Malcolm m...@stowers.org wrote:
 
  Try that recipe again but without the org-reload.  That is forcing org
 to
  load.  You don’t WANT org loaded when you build it again inside the
 package
  manager.

 Yes, I agree that it is better to install in a clean session without Org
 loaded.  The idea behind the other recipe is that, if an Org install
 with compilation issues is already loaded, it loads the uncompiled files
 from the new Org version.

 This seems to help in my tests.

 1. emacs -Q --eval '(setq user-emacs-directory /tmp/emacsd/)' -l
 /tmp/scratch.el

, /tmp/scratch.el
| (require 'package)
| (add-to-list 'package-archives '(org . http://orgmode.org/elpa/;)
 t)
| (package-initialize)
`

 2. Load the builtin Org.

 3. Go to list-packages and install 'org-20150810'.  This results in many
compilation issues (see end of message).

 4. C-u M-x org-reload

 5. Uninstall and then reinstall with package-list-packages.  This gets
rid of all compilation issues except

 org-gnus.el:305:1:Warning: the following functions might not be
 defined at runtime:
 gnus-summary-goto-subject, gnus-summary-select-article,
 gnus-activate-group, gnus-group-read-group,
 gnus-summary-goto-article, gnus-group-jump-to-group

 If I instead run #1-3, restart Emacs and then run #5, I get

 ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
 ob-C.el:118:34:Warning: `(c cpp)' is a malformed function

 In org-babel-C-val-to-C-type:
 ob-C.el:310:45:Warning: `t' called as a function

 In org-babel-C-utility-header-to-C:
 ob-C.el:387:8:Warning: `(c cpp)' is a malformed function

 In org-babel-C-header-to-C:
 ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
 ob-C.el:413:33:Warning: `(c cpp)' is a malformed function

 In end of data:
 ob-C.el:440:1:Warning: the following functions are not known to be
 defined: case, c, cpp,
 d, t

 in addition to the org-gnus-related message above.

 If I run the same test as above but don't trigger an Org load before
 installing 'org-20150810' (i.e., #1 and then #3), there are no
 compilation issues.

 , Compilation issues when installing 'org-20150810' with 8.2.10 loaded
 | In org-babel-C-execute:
 | ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
 | ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
 |
 | In org-babel-C-val-to-C-type:
 | ob-C.el:310:45:Warning: `t' called as a function
 |
 | In org-babel-C-utility-header-to-C:
 | ob-C.el:387:8:Warning: `(c cpp)' is a malformed function
 |
 | In org-babel-C-header-to-C:
 | ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
 | ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
 |
 | In end of data:
 | ob-C.el:440:1:Warning: the following functions are not known to be
 defined: case, c, cpp,
 | d, t
 | ob-R.el:72:11:Warning: reference to free variable
 `org-babel-safe-header-args'
 |
 | In end of data:
 | ob-R.el:470:1:Warning: the following functions are not known to be
 defined:
 | org-babel-header-args-safe-fn, org-babel-graphical-output-file
 |
 | In org-babel-get-src-block-info:
 | ob-core.el:266:30:Warning: org-babel-named-src-block-regexp-for-name
 called
 | with 0 arguments, but requires 1
 |
 | In org-babel-set-current-result-hash:
 | ob-core.el:1268:8:Warning: function org-babel-set-current-result-hash
 used to
 | take 1 argument, now takes 2
 |
 | In org-babel-exp-src-block:
 | ob-exp.el:133:59:Warning: reference to free variable
 | `org-babel-exp-reference-buffer'
 |
 | In org-babel-exp-process-buffer:
 | ob-exp.el:157:8:Warning: function org-babel-exp-process-buffer used to
 take 0
 | arguments, now takes 1
 |
 | In org-babel-exp-do-export:
 | ob-exp.el:328:50:Warning: org-babel-exp-code called with 2 arguments, but
 | accepts only 1
 | ob-exp.el:331:39:Warning: org-babel-exp-code called with 2 arguments, but
 | accepts only 1
 |
 | In org-babel-exp-code:
 | ob-exp.el:375:8:Warning: function org-babel-exp-code used to take 1
 argument,
 | now takes 2
 | ob-exp.el:383:21:Warning

Re: [O] Babel error on init with 8.3.1

2015-08-10 Thread Kyle Meyer
Peter Salazar cycleofs...@gmail.com wrote:
 Thanks. Tried that, but then when I launch regular Emacs with my init file,
 I still get this error:
 https://gist.github.com/512c4934d5351a47b2a1

 Any other ideas?

Maybe the builtin Org is being loaded before your elpa version.  (In the
backtrace you posted from your startup, I see a find-file call with an
Org file.)  What does org-version say?

 On Mon, Aug 10, 2015 at 7:18 PM, Cook, Malcolm m...@stowers.org wrote:

 Try that recipe again but without the org-reload.  That is forcing org to
 load.  You don’t WANT org loaded when you build it again inside the package
 manager.

Yes, I agree that it is better to install in a clean session without Org
loaded.  The idea behind the other recipe is that, if an Org install
with compilation issues is already loaded, it loads the uncompiled files
from the new Org version.

This seems to help in my tests.

1. emacs -Q --eval '(setq user-emacs-directory /tmp/emacsd/)' -l 
/tmp/scratch.el

   , /tmp/scratch.el
   | (require 'package)
   | (add-to-list 'package-archives '(org . http://orgmode.org/elpa/;) t)
   | (package-initialize)
   `

2. Load the builtin Org.

3. Go to list-packages and install 'org-20150810'.  This results in many
   compilation issues (see end of message).

4. C-u M-x org-reload

5. Uninstall and then reinstall with package-list-packages.  This gets
   rid of all compilation issues except

org-gnus.el:305:1:Warning: the following functions might not be defined at 
runtime:
gnus-summary-goto-subject, gnus-summary-select-article,
gnus-activate-group, gnus-group-read-group,
gnus-summary-goto-article, gnus-group-jump-to-group

If I instead run #1-3, restart Emacs and then run #5, I get

ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
ob-C.el:118:34:Warning: `(c cpp)' is a malformed function

In org-babel-C-val-to-C-type:
ob-C.el:310:45:Warning: `t' called as a function

In org-babel-C-utility-header-to-C:
ob-C.el:387:8:Warning: `(c cpp)' is a malformed function

In org-babel-C-header-to-C:
ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
ob-C.el:413:33:Warning: `(c cpp)' is a malformed function

In end of data:
ob-C.el:440:1:Warning: the following functions are not known to be defined: 
case, c, cpp,
d, t

in addition to the org-gnus-related message above.

If I run the same test as above but don't trigger an Org load before
installing 'org-20150810' (i.e., #1 and then #3), there are no
compilation issues.

, Compilation issues when installing 'org-20150810' with 8.2.10 loaded
| In org-babel-C-execute:
| ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
| ob-C.el:118:34:Warning: `(c cpp)' is a malformed function
|
| In org-babel-C-val-to-C-type:
| ob-C.el:310:45:Warning: `t' called as a function
|
| In org-babel-C-utility-header-to-C:
| ob-C.el:387:8:Warning: `(c cpp)' is a malformed function
|
| In org-babel-C-header-to-C:
| ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
| ob-C.el:413:33:Warning: `(c cpp)' is a malformed function
|
| In end of data:
| ob-C.el:440:1:Warning: the following functions are not known to be defined: 
case, c, cpp,
| d, t
| ob-R.el:72:11:Warning: reference to free variable `org-babel-safe-header-args'
|
| In end of data:
| ob-R.el:470:1:Warning: the following functions are not known to be defined:
| org-babel-header-args-safe-fn, org-babel-graphical-output-file
|
| In org-babel-get-src-block-info:
| ob-core.el:266:30:Warning: org-babel-named-src-block-regexp-for-name called
| with 0 arguments, but requires 1
|
| In org-babel-set-current-result-hash:
| ob-core.el:1268:8:Warning: function org-babel-set-current-result-hash used to
| take 1 argument, now takes 2
|
| In org-babel-exp-src-block:
| ob-exp.el:133:59:Warning: reference to free variable
| `org-babel-exp-reference-buffer'
|
| In org-babel-exp-process-buffer:
| ob-exp.el:157:8:Warning: function org-babel-exp-process-buffer used to take 0
| arguments, now takes 1
|
| In org-babel-exp-do-export:
| ob-exp.el:328:50:Warning: org-babel-exp-code called with 2 arguments, but
| accepts only 1
| ob-exp.el:331:39:Warning: org-babel-exp-code called with 2 arguments, but
| accepts only 1
|
| In org-babel-exp-code:
| ob-exp.el:375:8:Warning: function org-babel-exp-code used to take 1 argument,
| now takes 2
| ob-exp.el:383:21:Warning: reference to free variable
| `org-babel-exp-reference-buffer'
|
| In org-babel-exp-results:
| ob-exp.el:414:27:Warning: reference to free variable
| `org-babel-exp-reference-buffer'
|
| In end of data:
| ob-exp.el:450:1:Warning: the function `org-babel-remove-inline-result' is not
| known to be defined.
|
| In org-babel-lob-execute:
| ob-lob.el:159:35:Warning: org-babel-current-result-hash called with 1
| argument, but accepts only 0
| ob-lob.el:171:12:Warning: org-babel-set-current-result-hash called with 2
| arguments

[O] Cookies on check-boxed plain lists don't get updated

2015-08-10 Thread Gerald Wildgruber

Hi

I'm running org mode on emacs version GNU Emacs 25.0.50.1 (git checkout).

I'm using nested plain lists with check-boxes and cookies; here's a
simple example:

=

* TODO Heading [0/3]

- [ ] entry 1
- [ ] entry 2 [0/0]
- [ ] sub-entry 1
- [ ] sub-entry 2
- [ ] sub-entry 3
- [ ] entry 3

=

Regardless of any edits of sub-entries, the cookie of entry 2 NEVER
gets updated, it always shows a green [0/0] and not the correct
[0/3]; it doesn't work neither with org mode 8.3 stable nor with a git
checkout.

If I delete entry 1, updating the cookie works; so: it only works if
nothing stands before the entry wich has the cookie (that also means:
the nesting itself in NOT the problem).

It DOES work correctly with the org mode package that comes with emacs:
Org-mode version 8.2.10 (release_8.2.10 @ 
/usr/local/share/emacs/25.0.50/lisp/org/)


Thanks for your help

Gerald



[O] Bugs in org-babel comments org property blank spaces and links

2015-08-10 Thread Seamus Tuohy
Hello All,

I have encountered what I believe to be two bugs in the way that org-babel
handles exporting using the org based comments.
I am running on Org-mode version 8.3.1 ( 8.3.1-elpaplus ) as pulled from
Cask.

The first is a bug is related to the handling of commenting links. When
links are commented the entire link is not commented. Only the text is
commented. This creates an uncommented string in the source code. Here is
an example.

---source.org---

#+PROPERTY:comments org

** [[http://orgmode.org/][Header links are broken on export]]
[[http://orgmode.org/][Inline links are broken on export]]

---output.el---

[[http://orgmode.org/][;; Header links are broken on export]]
[[http://orgmode.org/][;; Inline links are broken on export]]

--

The second bug causes an error to occur when exporting source blocks that
do not text between them.


---source.org---

#+BEGIN_SRC emacs-lisp
(message Inline blocks that have no text between them are broken as well.)
#+END_SRC

#+BEGIN_SRC emacs-lisp
(message I am broken.)
#+END_SRC


---output.el---

(message Inline blocks that have no text between them are broken as well.)

--

When toggle-debug-on-error is set the following error occurs.

---*Backtrace*---

Debugger entered--Lisp error: (error Nothing to comment)
  signal(error (Nothing to comment))
  error(Nothing to comment)
  comment-region-default(1 3 nil)
  comment-region(1 3)

 org-babel-spec-to-string((

  org-babel-tangle(nil)



I have put some files I have used to reproduce the bug at the following
gist.

https://gist.github.com/elationfoundation/0238ecb4e26730bdbab1


Best,
s2e


Re: [O] org-lint does not finish on some org-mode buffer

2015-08-10 Thread Nicolas Goaziou
Gregor Zattler telegr...@gmx.net writes:

 You are right.  I bisected the file.  There is a ’’ missing.  At
 least with my configuration the attached file ’bad.org’ freezes
 Emacs with latest org-mode (but it is in most cases possible to
 do a C-G):

 emacs-snapshot -Q -L ~/src/org-mode/lisp/  -nw bad.org

 I consider this a bug.

And a very bad one. This should be fixed. Thank you.

Regards,



Re: [O] org-tag-alist - more tags in one keystroke

2015-08-10 Thread David Belohrad
Hi Bastien,

thanks for this hint. At the end I have re-organised the tags naming
such, that this is not needed any more. Going through the registers is
an option, at the same time I feel that this solution is far less
ergonomic than pressing a single key during tags selection :)

many thanks again

.d.


--
Dr. David Belohrad, Div. BE-BI
C.E.R.N. Site de Prevessin, F-01631 CERN CEDEX
http://www.cern.ch
david.beloh...@cern.ch
Tel +41.22.76.76318  Fax +41.22.76.69056
GSM +41.75.411.3455
--


Bastien Guerry b...@gnu.org writes:

 Hi David,

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

 ^^^ the above does not work. Is there any way how to make it
 working?

 This can't be done the way you tried, but I'd use registers for this:

 (set-register ?a :adam:alice:joe:bill)

 Then call C-x r i a to insert it.

 Or maybe some other mechanism.

 HTH,

 -- 
  Bastien



Re: [O] Emacs sees the directory with the new org-mode version, but loads the old version

2015-08-10 Thread Meir Goldenberg
Ah, I apologize for not posting an update. The problem has been solved:
http://stackoverflow.com/questions/31855904/emacs-sees-the-directory-with-the-new-org-mode-version-but-loads-the-old-versio
Thank you very much for the reply!

On Mon, Aug 10, 2015 at 4:40 AM, Grant Rettke g...@wisdomandwonder.com
wrote:

 Create a init file with only the contents and use that to start EMACS

 (add-to-list 'load-path ~/.emacs.d/org-20150803)
 (require 'org)

 And check the `org-version'. It ought to be what you expect. Did you
 get that from a ZIP? Did you follow the directions to generate the
 autoloads and stuff?

 Depending upon where and how you load 'org, another MELPA package
 could be requiring org-mode transitively, before your load call. It is
 very easy to have that happen.
 Grant Rettke
 --
 g...@wisdomandwonder.com | http://www.wisdomandwonder.com/
 “Wisdom begins in wonder.” --Socrates
 “All creativity is an extended form of a joke.” --Kay
 ((λ (x) (x x)) (λ (x) (x x)))
 “Life has become immeasurably better since I have been forced to stop
 taking it seriously.” --Thompson


 On Thu, Aug 6, 2015 at 7:53 AM, Meir Goldenberg mgolde...@gmail.com
 wrote:
  The version of org-mode that came with my version of Emacs (24.5.2) is
  8.2.10. I have installed version 8.3.1 from ELPA and added this to my
 init
  file:
 
  (add-to-list 'load-path ~/.emacs.d/org-20150803)
  (require 'org)
 
  When I check the version of org in Emacs, it says:
 
  Org-mode version 8.2.10 (release_8.2.10 @
  /home/meir/.emacs.d/elpa/org-20150803/)
 
  That is, it reports the old version and the new directory... (the
 built-in
  version is located in /usr/local/share/emacs/24.5/lisp/org)
 
  Here is the relevant portion of my init file (there is nothing before
 this
  portion):
 
  (require 'cl)
 
  ;; Org-mode that was shipped with Emacs
  (setq load-path (remove-if (lambda (x) (string-match-p org$ x))
  load-path))
  ;; ELPA
  (setq load-path (remove-if (lambda (x) (string-match-p org-20 x))
  load-path))
 
  (add-to-list 'load-path ~/.emacs.d/org-20150803)
 
  (require 'package)
  (add-to-list 'package-archives
   '(melpa . http://melpa.milkbox.net/packages/;) t)
  (package-initialize)
 
  (require 'org)
 
  How do I get Emacs to load the new version of org-mode?



Re: [O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]

2015-08-10 Thread Nicolas Goaziou
Christoph LANGE math.semantic@gmail.com writes:

 Indeed that's what I get in the same *.org file when starting Emacs with
 -q.  So it must depend on my configuration.

 I'm not sure how to investigate this – would you have an idea?

You can bisect your configuration to find out the wrong part. You can
also check what is called by C-c ! with your configuration.


Regards,



[O] current head croaks on export since commit Backport commit 3a5f751 from Emacs master branch

2015-08-10 Thread Robert Klein
Hi,

when I export a file with current org main I get the following error
(git-bisect-identified commit below):


Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-exists-p(nil)
  org-check-agenda-file(nil)
  byte-code(\306!\203\f..   [can't paste]   .b\207 [file pos
org-agenda-ignore-properties org-todo-keywords-for-agenda
org-todo-keywords-1 org-done-keywords-for-agenda bufferp
org-check-agenda-file org-get-agenda-file-buffer
org-set-regexps-and-options tags-only category
org-refresh-category-properties stats org-refresh-stats-properties
effort org-refresh-effort-properties appt org-refresh-properties
APPT_WARNTIME org-appt-warntime append copy-sequence delete-dups
org-uniquify-alist buffer-modified-p t nil ((byte-code  [modified
restore-buffer-modified-p nil] 2)) remove-text-properties
re-search-forward org-at-heading-p add-text-properties point-at-bol
org-end-of-subtree format ^\\* .*\\%s\\ match-data ((byte-code
... [save-match-data-internal set-match-data evaporate] 3))
org-in-commented-heading-p 0 org-done-keywords
org-todo-keyword-alist-for-agenda org-todo-key-alist
org-tag-alist-for-agenda org-tag-alist org-tag-persistent-alist list
res org-group-tags ...] 5)
 org-agenda-prepare-buffers((nil))
  org-map-entries(#[nil \300\301 !\207 [org-reduced-level
 org-current-level] 2])
 
org-export--prepare-file-contents(/home/theorie/kleinrob/Documents/mpipdocs/sysdoc/include/mpip-akte.org
 nil 0 1 1 #s(hash-table size 65 test equal rehash-size 1.5
 rehash-threshold 0.8 data ( ...))) org-export-expand-include-keyword()
 org-export-as(latex nil nil nil (:output-file ./nmrfiler.tex))
 org-export-to-file(latex ./nmrfiler.tex nil nil nil nil nil #[(file)
 \301!\207 [file org-latex-compile] 2]) org-latex-export-to-pdf(nil
 nil nil nil) org-export-dispatch(nil)
 call-interactively(org-export-dispatch nil nil)
 command-execute(org-export-dispatch)

it worked on friday morning; git bisect identifiesd the following
commit:

 git bisect bad
ef9637030456b153fd834f4c9202a9264d5ef18d is the first bad commit
commit ef9637030456b153fd834f4c9202a9264d5ef18d
Author: Stefan Monnier monn...@iro.umontreal.ca
Date:   Sat Aug 8 19:41:57 2015 -0400

Backport commit 3a5f751 from Emacs master branch

* lisp/org.el (org-goto-map, org-assign-fast-keys)
(org-contextualize-keys, org-contextualize-validate-key)
(org-notes-order-reversed-p, org-local-logging, org-map-entries)
(org-find-olp, org-find-exact-heading-in-directory)
(org-cycle-agenda-files, org-release-buffers, org-fill-template)
(org-agenda-prepare-buffers, org-occur-in-agenda-files)
(org-replace-escapes): Use dolist.
(org-mode): Optimize away XEmacs-only code.
(org-refile-get-targets): Remove unused var `f'.
(org-fast-todo-selection): Remove unused var `e'.
(org-make-tags-matcher): Use dolist.  Remove unused var `term'.
(org-fast-tag-selection): Use dolist.  Remove unused var `e'.
(org-format-latex): Use dolist.  Remove unused var `e'.
(org-backward-sentence, org-forward-sentence, org-meta-return)
(org-kill-line): Mark arg as unused.
(org-submit-bug-report): Silence compiler warning.
(org-occur-in-agenda-files): Don't use add-to-list on local vars.
(org-get-cursor-date): Remove unused var `tm'.
(org-comment-or-uncomment-region): Use standard name `_'.
(reftex-docstruct-symbol, reftex-cite-format): Declare to
silence byte-compiler.
(org-reftex-citation): Add `org--' prefix to dynamically scoped
`rds' var.

org.el: Fix up some lexical scoping warnings, and use dolist
3a5f75193ed10ee5fb458e9879340947f31d5e12
Stefan Monnier
Sat Aug 8 19:41:57 2015 -0400

:04 04 19e9e2191b96b7139dd54e2b6682783bfaabb2c4
75f021c6d8d6e92c803e0a2723cd22de5aa2c130 M  lisp


If the changes in the commit are Ok, there should perhaps be a check in
org-check-agenda-file:

(defun org-check-agenda-file (file)
  Make sure FILE exists.  If not, ask user what to do.
  (when (not (string-p file))
  do something else...


Any help is very much apprecieated.

Thank you very much!

Best regards
Robert



Re: [O] new error: byte-code: Capture abort: (void-function button-lock-set-button)

2015-08-10 Thread Xebar Saram
thx john

Z

On Mon, Aug 10, 2015 at 3:02 PM, John Kitchin jkitc...@andrew.cmu.edu
wrote:

 you might be (require 'button-lock) away from working again.

 Xebar Saram writes:

  Ok its not the new release its actually Johns great
  'highlight-email-addresses' function that was giving that error
 
  i disabled it and now everything is back to normal
 
  best
 
  Z
 
  On Mon, Aug 10, 2015 at 8:19 AM, Xebar Saram zelt...@gmail.com wrote:
 
  Hi all
 
  again, i dont know if this is related to the new release but i cant use
  org capture anymore
 
  i get the following error
 
  byte-code: Capture abort: (void-function button-lock-set-button)
 
  sometime this even bring emacs crashing
 
  any clue anyone?
 
  z
 
 

 --
 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] Cookies on check-boxed plain lists don't get updated

2015-08-10 Thread Rasmus
Hi,

I can reproduce.

Gerald Wildgruber gerald.wildgru...@unibas.ch writes:

 =

 * TODO Heading [0/3]

 - [ ] entry 1
 - [ ] entry 2 [0/0]
 - [ ] sub-entry 1
 - [ ] sub-entry 2
 - [ ] sub-entry 3
 - [ ] entry 3

 =

I don't have time to attempt to fix it now, but it's introduced in
a4cc9d82d8069741be64c55f35f9d3ad7e2663d5 if my git bisect foo is correct.

My guess would be that container goes too far back:

+ (container
+(org-element-lineage
+ context
+ '(drawer center-block dynamic-block inlinetask 
plain-list
+  quote-block special-block verse-block))

plain-list also includes entry 1, but it should only consider the sublist
starting with entry 2.

Rasmus

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




Re: [O] [bug] canonical context not work in 8.3

2015-08-10 Thread Nicolas Goaziou
Samuel Wales samolog...@gmail.com writes:

 thank you.  this version is significantly faster.  qualitatively
 improved.

 it has a possibly minor bug.

Yes, this was a draft anyway. 

I pushed the new function to code base. However, due to the nature of
the change, it landed in master. So it will be available in Org 8.4.

Thank you.

Regards,



Re: [O] comment trees in 8.3

2015-08-10 Thread Nicolas Goaziou
Samuel Wales samolog...@gmail.com writes:

 ok, better testcase below.  please ignore last 2 messages.

 complete with code, data, explanation, and steps to reproduce.

Reproduced, and fixed. Thank you.

   comment: 4 d. ago:  TODO COMMENT this one is possibly bad syntax
   comment: 4 d. ago:  COMMENT TODO no this should not show

This is the other way around:

  - TODO COMMENT is a commented task (i.e., a TODO headline)
  - COMMENT TODO is a commented headline whose title happens to start with 
TODO

Regards,



Re: [O] Exporting multiple images in a float (LaTeX)

2015-08-10 Thread Eric S Fraga
On Saturday,  8 Aug 2015 at 21:23, Rasmus wrote:
 But we can insert %\n and in the latex end there's no difference between

 \includegraphics[]{}%
 \includegraphics[]{}%

 And

 \includegraphics[]{}\includegraphics[]{}%

 To the best of my knowledge.

 Rasmus

Indeed but I guess my view is that from the perspective of the org file,
two links on the same line are subtly different from two links on
separate lines.  Whether this matters or not is up for debate of course!

I don't actually mind either way as both of the above are usually what I
would want.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3-3-gb5f5d6



Re: [O] templating with Org?

2015-08-10 Thread John Kitchin
In reviewing these, I discovered I reinvented (and probably not as
well!) the function s-format from s.el
(https://github.com/magnars/s.el). It might be another option for you.


Eric Abrahamsen writes:

 John Kitchin jkitc...@andrew.cmu.edu writes:

 I don't have the impression you would need to hijack the export
 process. It seems like you would need to call a function that gets
 data from some source (e.g the org document) and then populates a
 template with that data, and once that is done, call a regular export
 function. There are a number of template solutions:
 http://www.emacswiki.org/emacs/CategoryTemplates. I am not sure these
 are too easy to adapt to what you describe.

 That's an interesting idea: going from the base Org file to a massaged
 Org buffer, and then exporting that. I'll try that out for a bit. Thanks
 for that, and for the links!

 I played around with some ideas for this here:

 http://kitchingroup.cheme.cmu.edu/blog/2014/01/20/Alternatives-to-long-complex-format-statements-in-emacs-lisp/

 http://kitchingroup.cheme.cmu.edu/blog/2014/01/26/Another-alternative-to-string-templates/


 Something like these could be used to populate a template I think.

 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

 On Sat, Aug 8, 2015 at 12:48 AM, Eric Abrahamsen
 e...@ericabrahamsen.net wrote:


 Exporting org files and subtrees is awfully flexible, given all
 the
 possible customizations, but for a long while I've occasionally
 felt the
 need to come at the export process from the other direction:
 instead
 of customizing the export appearance of a series of headings,
 instead
 starting with a common block of export text, and interpolating
 values
 from the headings into that text -- ie, templating.

 I've felt this need off and on for a couple of years, most
 recently when
 organizing a small literary festival. I really need to keep all
 the
 information about the events in a single place, otherwise I know
 that
 information will go stale right away. But I need the information
 in a
 series of such wildly-varying formats that I can't imagine setting
 up
 (and switching between) export filters in a way that wouldn't make
 me
 cry. Not to mention that the different export use-cases all have
 their
 own per-heading boilerplate text, and there's no way I'm going to
 repeat
 all that different boilerplate under each heading.

 Obviously there's many ways this could be done. I could somehow
 hijack
 the export process -- in many cases it would be nice too make use
 of the
 skeleton document structures that export provides.

 Or maybe dynamic blocks? I've never used them before. Or maybe
 just a
 plain old `org-map-entries', which reads the template text from an
 external file and then steals some of the macro expansion
 functions to
 fill out the values.

 Has anyone wanted to do this before? Has anyone actually done it?
 Any
 thoughts or suggestions would be much appreciated!

 Yours,
 Eric

--
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] new error: byte-code: Capture abort: (void-function button-lock-set-button)

2015-08-10 Thread John Kitchin
you might be (require 'button-lock) away from working again.

Xebar Saram writes:

 Ok its not the new release its actually Johns great
 'highlight-email-addresses' function that was giving that error

 i disabled it and now everything is back to normal

 best

 Z

 On Mon, Aug 10, 2015 at 8:19 AM, Xebar Saram zelt...@gmail.com wrote:

 Hi all

 again, i dont know if this is related to the new release but i cant use
 org capture anymore

 i get the following error

 byte-code: Capture abort: (void-function button-lock-set-button)

 sometime this even bring emacs crashing

 any clue anyone?

 z



--
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] templating with Org?

2015-08-10 Thread John Kitchin
Haha! Yet another function I didn't know about

On Monday, August 10, 2015, Rasmus ras...@gmx.us wrote:

 John Kitchin jkitc...@andrew.cmu.edu javascript:; writes:

  In reviewing these, I discovered I reinvented (and probably not as
  well!) the function s-format from s.el
  (https://github.com/magnars/s.el). It might be another option for you.

 Aside: Skimming the s-format function, it looks like a re-implementation
 of format-spec...

 Rasmus

 --
 The second rule of Fight Club is: You do not talk about Fight Club




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


Re: [O] Subject: Bug: org-time-stamp-inactive on the end of a CLOCK interval edits start time [8.3.1 (8.3.1-elpaplus @ c:/Users/clange/.emacs.d/elpa/org-plus-contrib-20150805/)]

2015-08-10 Thread Christoph LANGE
Hi Nicolas,

Nicolas Goaziou on 2015-08-10 09:29:
 You can bisect your configuration to find out the wrong part. You can
 also check what is called by C-c ! with your configuration.

C-c ! and C-c . call org-time-stamp[-inactive] in my full configuration.

And now I'm sure that I'm _always_ getting the wrong behaviour I
reported initially.

When I said in my previous email that I didn't get the wrong behaviour
with emacs -q this was wrong, because emacs -q doesn't load org-mode
8.3.1, which I installed from elpa, but loads the bundled org-mode 8.2.x.

Running emacs -q and then (package-initialize) and then opening a
minimal file like

* Hello
  CLOCK: [2015-08-07 Fri 10:14]--[2015-08-07 Fri 10:20] =  0:06

was enough to reproduce the bug.  I.e. C-c ! or C-c . on the second
timestamp prompted me with the time of the first one.

Cheers,

Christoph

-- 
Dr. Christoph Lange, Enterprise Information Systems Department
Applied Computer Science @ University of Bonn; Fraunhofer IAIS
http://langec.wordpress.com/about, Skype duke4701

→ Web Intelligence Summer School “Question Answering with the Web”
  Saint-Étienne, FR.  Apply by 4 July @ https://wiss.univ-st-etienne.fr/



Re: [O] Bug: weird interplay between enforce dependencies, stuck projects and previous subtree [8.2.10 (8.2.10-23-g1ec416-elpa @ /home/devesh/.emacs.d/elpa/org-20141208/)]

2015-08-10 Thread Nicolas Goaziou
Hello,

devesh right...@gmail.com writes:

 When org-enforce-todo-dependencies is t, stuck projects definition is
 simply '(+project (NEXT) nil ), and org mode file looks like :

 * A :project:
   :PROPERTIES:
   :ORDERED:  t
   :END:
 ** TODO B
 * C  :project:
 ** TODO D

 Both A and C appear as stuck projects, which is expected behaviour.

 But if A itself becomes TODO, like below:

 * TODO A :project:
   :PROPERTIES:
   :ORDERED:  t
   :END:
 ** TODO B
 * C  :project:
 ** TODO D

 Not only A vanishes from stuck projects, but C also vanishes. No stuck
 projects are shown for the above file.

 One subtree should not affect the next, even if first is ordered and
 org-enforce-todo-dependencies is t.

Could you update Org to latest ELPA version and test it again? It may
have been fixed since then.


Regards,

-- 
Nicolas Goaziou



Re: [O] templating with Org?

2015-08-10 Thread Rasmus
John Kitchin jkitc...@andrew.cmu.edu writes:

 In reviewing these, I discovered I reinvented (and probably not as
 well!) the function s-format from s.el
 (https://github.com/magnars/s.el). It might be another option for you.

Aside: Skimming the s-format function, it looks like a re-implementation
of format-spec...

Rasmus

-- 
The second rule of Fight Club is: You do not talk about Fight Club