John Kitchin | 1 Apr 22:07 2015

getting an hline in a python generated table

Hi everyone,

In emacs-lisp, I can get a table as output that has a horizontal line
in it like this:

(append '((name scopus-id h-index n-docs n-citations))
        (some expression that generates a list))

The first row is header names, then a horizontal line, followed by a row
for each thing of interest. This seems to work because the result is an
emacs-lisp "array".

I cannot figure out if this is possible in a Python block though. So far
my experiments have failed because I don't know how to make an hline
symbol in a Python array. Any kind of string just shows as a row. Any
thoughts on if this is possible?


Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
 <at> johnkitchin

(Continue reading)

John Hendy | 1 Apr 19:20 2015

Standard agenda views don't show file name after update (replaced by "???:")

I just pulled for the first time in a while and found I get question
marks in my agenda view instead of the former use of the file name
(see attached). I did a bunch of git pulling/make cleaning/making, and
traced it to this commit from Nicholas:
- 80bccca4e249cbb5812963863ccffbdcf4b25edd

Commit c1a744659d2b44c067ecb195b3e5d51e837bddd is working properly.

I verified with a minimal config containing only:

(add-to-list 'load-path "~/.elisp/org.git/lisp/")

My test file contained:

* TODO something

* TODO something else

- emacs -Q
- M-x load-file [RET] /path/to/min-config
- M-x org-agenda-file-to-front
- M-x org-agenda [RET] t

I get the attached view.

Thanks for any suggestions,
(Continue reading)

Rasmus | 1 Apr 15:50 2015

[ox-html, patch] Viewport


I think ox-html should insert a viewport to make it mobile friendly.  I
think it's not a W3 standard, though, but it's also just an additional
meta tag.  I'd like to hear from somebody who knows about html.

This patch adds this tag by default.



m-mm-mmm-mmmm bacon!
Toomas Rosin | 30 Mar 21:35 2015

moving into another time zone?


Is it possible to create timestamps (SCHEDULED:) for TODOs with respect to one timezone, but have Agenda
view show them for another zone — so that when I move to another timezone, all I have to do is tell org-mode
(via environment?) in which timezone I happen to be at the moment, to have the Agenda view display all times
according to that zone, without me having to change anything in the .org file itself?

And if it is not possible (which I suspect, not having found anything promising by grepping for "zone" in
org-mode sources and docs, and by looking at `org-time-string-to-time' and `org-ts-regexp0'), what
exactly would it take to make it possible?

With best wishes,


Bug: clockreport in org-agenda-list - table misaligned if org-descriptive-links is nil


Steps to reproduce:
- if org-descriptive-links is non-nil, invoke M-x org-toggle-link-display
- org-descriptive-links is now expected to be nil
- M-x org-agenda-list
- M-x org-agenda-clockreport-mode (or short: v R)

Observation (given that there is at least some data being shown in the clockreport):
1) clockreport table is misaligned
2) clockreport table contains descriptive links even though org-descriptive-links is nil

a) *org-agenda-list* /calls/ *org-agenda-prepare* which in turn /calls/ *org-agenda-mode*
b) *org-agenda-mode* /calls/ (add-to-invisibility-spec '(org-link))
   In contrast, *org-mode* /calls/ (if org-descriptive-links (add-to-invisibility-spec
'(org-link))), hence makes adding org-link to the invisibility spec dependent on org-descriptive-links.
c) the clockreport in the agenda list is constructed in *org-clock-get-clocktable* using a
with-temp-buffer in whose context (org-mode) is called. The clockreport table will therefore be
aligned based on the invisibility spec of org-mode which is different if org-descriptive-links was set
to nil at the time *org-agenda-list* was called.

1.1) Inherit org-link invisibility spec in *org-clock-get-clocktable* from the "outer" mode (i.e. org-agenda-mode):
     (let ((descriptive-links (org-in-invisibility-spec-p '(org-link))))
         (if descriptive-links
             (add-to-invisibility-spec '(org-link))
(Continue reading)

Christoph LANGE | 31 Mar 18:59 2015

Function that splits a CLOCK interval

Dear org-mode community,

I use org's clocking facility to clock all my working time.  I 
frequently find myself clocking time for a task T1, but later realise 
that I actually spent part of this time on some other task T2.  In such 
a situation I go to the corresponding CLOCK: line for T1, split the 
interval clocked, e.g. from

    CLOCK: [2015-03-30 Mon 16:27]--[2015-03-30 Mon 16:30] =>  0:03


    CLOCK: [2015-03-30 Mon 16:28]--[2015-03-30 Mon 16:30] =>  0:02
    CLOCK: [2015-03-30 Mon 16:27]--[2015-03-30 Mon 16:28] =>  0:01

and move one of the two lines to the LOGBOOK of task T2.

The following function now automates the task of splitting:

--- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< ---
(defun org-clock-split-current-interval ()
   "If this is a CLOCK line, split its clock time interval into two.
t the current time interval be A--C; then this function interactively 
prompts for a time B (suggesting A as a default), and then replaces A--C 
by B--C and A--B.  The point is left on the line B--C, so that this line 
can, e.g., be moved to another entry."
     ;; Part of the following code is copied from 
(Continue reading)

Christoph LANGE | 31 Mar 18:36 2015

Function that jumps to an entry with a certain CUSTOM_ID

Hi all,

the following function has served me well for a few years, so I thought 
I'd share it.  I would even be happy to contribute it to the codebase of 
org-mode (core or contrib); however in this case someone would have to 
point me to a fool-proof guide for how to do this.  I know that for 
contributing code I will have to sign some FSF copyright forms, and I 
know how to use git, but I don't know the exact org-mode specific steps 
of doing so.

--- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< ---
(defun org-jump-to-id ()
   "Asks for an identifier and searches for the first entry in the 
current file that has this identifier as a CUSTOM_ID property."
   (let* ((property "CUSTOM_ID")
          (custom-id (org-icompleting-read "CUSTOM_ID of entry: "
                                           (mapcar 'list 
(org-property-values property)))))
       (org-link-search (concat "#" custom-id))))

(define-key org-mode-map (kbd "\C-cj") 'org-jump-to-id)
--- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< ---

This implementation works efficiently in a 4 MB org file with 100 IDs. 
Together with ido or helm I find it a very user-friendly way of jumping 
to frequently used headlines.

I noticed that org-babel-ref-goto-headline-id does something similar, so 
maybe some code could be shared among the two functions.
(Continue reading)

Ken Mankoff | 31 Mar 16:02 2015

Custom agenda starting tomorrow

I have a custom agenda view that includes the today view:

 (agenda "" ((org-agenda-ndays 1)
             (org-agenda-overriding-header "Scheduled Today")
             (org-deadline-warning-days 0)))

And the next week:

  (agenda "" ((org-agenda-overriding-header "Scheduled")
              (org-deadline-warning-days 0)))

Is there any way to have an agenda view that does not include today? "today" gets repeated here, and for the
second agenda view I'd like to have it start tomorrow and show the next ndays from then.



Rainer M Krug | 31 Mar 14:44 2015

tabbar and editing code with C-c '


I am using tabbar (I know - I am one of the strant=ge folk=s who use the
mouse...) and whenever I edit code, the tabbar is overwritten by the top
bar which says "Edit, then exit with ..." (I'll just call it the "info bar").

Here is a screenshot which shows on the right window the tabbar, and on
the left windor=w the "info bar" [1]

Is there any way of seeing both, e.g. having the "info bar" being
displayed below the tabbar?





Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

(Continue reading)

Sebastien Vauban | 31 Mar 12:28 2015

Performance of table computing


In one of my Org files, I have 20 small tables. Among them, 11 have
a line of formula's (TBLFM), mainly for computing a total (sum), so
that's in essence relatively standard and simple.

The file in itself is quite big (11,000 lines), but I did not expect to
see that re-applying formulas to all of them would take 30 seconds... at
every save... since I did add the following to my `.emacs' file:

--8<---------------cut here---------------start------------->8---
  (defmacro measure-time (message &rest body)
    "Measure the time it takes to evaluate BODY."
    `(let ((time (current-time)))
       , <at> body
       (message "__%s (in %.02f s)___________________________"
                ,message (float-time (time-since time)))))

  (defun my/org-update-buffer ()
    "Update all dynamic blocks and all tables in the buffer."
    (when (derived-mode-p 'org-mode)
      (message "(Info) Update Org buffer %s"
               (file-name-nondirectory (buffer-file-name)))
      (sit-for 1.5)
      (let ((flyspell-mode-before-save flyspell-mode))
        (flyspell-mode -1)              ; Temporarily disable Flyspell to
                                        ; avoid checking the following
                                        ; modifications of the buffer.
        (measure-time "Updated all dynamic blocks"
(Continue reading)

Sharon Kimble | 31 Mar 12:26 2015

org-mode to latex, again!

I am attempting again to write a latex document with org-mode. The
org-mode part is no problem, but the latex part is awkward. This is
the first few line of my org-mode document -

--8<---------------cut here---------------start------------->8---
#+TITLE:     The history of custard pies.
#+AUTHOR:    Sharon Kimble
#+EMAIL:     boudiccas <at>
#+DATE:      01-04-2015
#+LATEX:     \usepackage{~/texmf/tex/latex/commonstuff/mysty}
# #+Latex_Class: mysty

* Blargh
--8<---------------cut here---------------end--------------->8---

The latex file "mysty" is actually "mysty.sty" and contains all the
latex files that I want to use, but it doesn't appear to be loading,
and I can't see why? My idea of having *all* the latex packages in
one file is so that I hope to be able to have it in its own
directory and then symlink it to each projects main org-mode file so
that I would have a known working setup, right from the start!

The first few lines of "mysty.sty" are

--8<---------------cut here---------------start------------->8---
(Continue reading)