[Orgmode] [OT] orgmode.org down?

2010-12-14 Thread Marco
Hello dear orgers,
is the site orgmode.org down only for me (since yesterday) or did I
miss something?

Greetings from Germany,
Marco (domanov)

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [OT] orgmode.org down?

2010-12-14 Thread Marco
> http://www.downforeveryoneorjustme.com/ is actually quite handy for this
> moments. And yes, orgmode.org is down.

That's the link I was searching for! Thanks :)=

M

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Arrow keys in agenda view

2009-10-21 Thread Marco
Dear List,

First of all I wanna thank Carsten and all of you contributors for
this amazing tool. Then, my problem ;)

Sometimes I use the agenda view in org-mode, but with at least the new
version when I try C-a a, then I am not able anymore to navigate to
the next/previous day or week using the arrow keys, as it did in the
previous versions. Is this a new feature I missed or a bug somewhere
(not possible that this only hit me!) or again could it be related to
my own configuration (no fancy stuff in my .emacs though)?

I cannot tell when (from which version) it began to behave like this.
I am on GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version
2.16.5), archlinux, with org-mode 6.31a.

Greetings,
Marco


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Arrow keys in agenda view

2009-10-21 Thread Marco
Dear List,

>> Is this a new feature I missed or a bug somewhere

> please see the release notes at
> http://orgmode.org/Changes.html#sec-2.2.2

> You can find an up-to-date list of agenda commands here:
> http://orgmode.org/manual/Agenda-commands.html#Agenda-commands

> This was changed in version 6.30.  Org now uses "f" and "b" to go forward and
> back in time in order to allow cursor motion in the agenda. See this
> http://orgmode.org/Changes.html#sec-2.1

My bad, I did not catch this discussion. Sorry for taking your time.

And thanks a lot again!

M


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] A shorter manual

2010-04-28 Thread Marco
Hello,

> I am wondering if it would be useful to have this as a beginners
> document - or if the existence of this document would lead
> to more confusion than relief.
>
>    http://orgmode.org/orgguide.pdf

This is IMHO a much appreciated relief.

Carsten, many thanks for all your efforts,
Marco


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



Re: [O] The statement on what is orgmode.

2012-12-06 Thread Marco
Hi there,

I had to describe orgmode to a young colleague of mine... and I came
up with something like:

Orgmode is a Free/libre plain-text versatile personal workflow and
information tool for GNU Emacs allowing you to keep and organize
notes, projects, calendars, do literate programming and reproducible
research, and export all your informations and documents to a variety
of cam-ready formats.

the important bit being IMHO "personal workflow and information tool"
(or companion or manager).

Just 2 cents.
Marco



Re: [O] Create course material with org-mode

2013-03-11 Thread Marco
Hi list, and Terry,

> This is more or less precisely the structure I use for managing my work.
> I maintain each project as one Org file, keeping together all related
> text, todo lists, spreadsheets, web pages, letters, and even files like
> SVG files.  This way I can add just one file (per project) to my agenda
> and not miss any tasks, and backing up my critical work is just a matter
> of copying my Org files.  When needed, I also export the individual
> nodes as HTML, PDF, OpenDocument, csv, or whatever.

> I'd be happy to give you more information about how to set up an Org
> file to export to different formats the way I use mine, but really the
> information is very clear in the manual.

I find it would be great, at least for me, to have a "working example"
plus a couple of hints. I will be glad if you can provide a
stripped-down version of your working solution, so that I could just
try the workflow "hands on"!
Greets (and keep up the great work),
Marco



Re: need to increase contrast in all emacs faces for legibility

2019-12-11 Thread Marco
Hello,

> is it possible to programmatically increase foreground contrast
> against their background in all faces?

While I can't answer your question, which is an interesting one (don't
think it's org related, though), I just wanted to ask: can't you just
adjust the temperature of your display with a tool such as redshift
(for linux) or f.lux (windows)?



Re: [O] General advice beyond Org

2018-06-06 Thread Marco
Hey fellow orgers,

I started as post-doc almost 10 years ago, I made a point in having
linux on my desktop and only use software I see fit - and know - such
R, and LaTeX to write papers. The occasional word/excel document I
opened with libreoffice/wps office or more frequently remotely on a
windows server / on a virtualbox, same with the occasional
windows-only piece of software I needed to use.
After 8-9 years of mockery, my whole departement is now switching to
LiNuX/LaTeX/python/R/jupyter, with the exception of a few specialized
softwares which are windows-only and will run on selected
machines/servers. Point is, also the secretary has to migrate, she was
the greatest advocate against the change.
No luck yet with emacs + org with my colleagues, but hey, one step at a time ;)
If your research and daily work involves programming/modelling I
actually don't see any point in staying on windows. Unices have LOTS
of advantages. The best general-purpose research tools nowadays are
free/libre software (since 3D FEM was named: openfoam, moose,
opencascade/salome, code_aster just to name a few... ), that is, if
you are developing something and not just running models, their steep
learning curve pays off immediately. If it's just a matter of running
specific models maybe there are other specialized softwares which may
be more efficient (e.g., avizo for 3D microtomography, eclipse /
petrel for geological modelling and reservoir engineering). In the
realm of statistics/machine learning/AI it's all linux-based free
software (think about keras + tensorflow with R and Python, but loads
and loads of other similar stuff out there).
So in my opinion in a research environment there are 2 kinds of
activities: computational/programming stuff, where unix and free
software have a clear advantage both on desktops and of course on HPC
(of course it depends how it looks like in your domain AND in your
research group), and on the other side wiriting documents and
interacting with others (reports, proposals, data exchange, papers).
You should have 100% control of the first category, but still have to
factor in cooperation with colleagues (i.e.: if everyoen is working on
matlab and you are supposed to extend and re-use their developments...
probably you should too. At least try sci-lab and octave); but you can
definitely compromise on the second.
Cheers and good luck,
domanov



[Orgmode] Templates - newline in string?

2010-09-14 Thread Marco Alberti

Hi all,
when customizing org-capture-templates, how do I insert newlines in  
the template string? I tried RET, C-RET and such, but nothing works,  
and I couldn't find documentation.

Thanks,
Marco




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Templates - newline in string?

2010-09-14 Thread Marco Alberti

On Sep 14, 2010, at 4:58 PM, Giovanni Ridolfi wrote:


C-j ?



Great! Thanks.

Marco




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Templates - newline in string?

2010-09-15 Thread Marco Alberti

On Sep 14, 2010, at 5:14 PM, Sebastian Rose wrote:


just type

  `C-q C-j'

as you would do when searching for a string containing a newline and
similar.



Good! A valuable tip for searches too, I didn't know.
Marco




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-mode <=> Instiki

2010-10-09 Thread Marco Gualtieri
Hello,

I would like to know to what degree and how far we are from interoperability
between my favourite two softwares, instiki and org-mode.

instiki has very nice features for mathematicians and has been carefully
retrofitted as described here
http://golem.ph.utexas.edu/wiki/instiki/show/HomePage

it has several xhtml capable markup options, most useful of  which is
Markdown and itex2MML for the math.  it has a latex export and is being used
for several large collaborative math sites like
http://ncatlab.org/nlab/show/HomePage.

I don't know enough about the architecture of org-mode or Instiki to know
how easy or difficult this would be, but I would like to be able to edit an
orgmode file with my usual latex environments and links and export it to an
instiki, and vice versa.  Essentially you could use the instiki as a
web-viewable and editable orgmode file.  I suspect  that this is probably
almost doable now and would appreciate some insights from the list.

Thanks,
Marco Gualtieri
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] using orgmode links in non-orgmode buffers

2011-01-22 Thread Marco Craveiro
hello orgmoders,

i was wondering if there is a minor mode provided by orgmode that allows
other major modes to understand orgmode links? in particular, i'd like
to be able to put these links in magit commits:

[[file:some_file_in_git_repo]]

and then be able to open that file like I can in orgmode.

many thanks for your time.

marco
-- 
Constraint has encouraged not only economy, but also a certain elegance
of design. -- Dennis Ritchie



signature.asc
Description: This is a digitally signed message part
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Newbie - How to end plain list?

2010-04-28 Thread Marco Alberti

Dear Org users,
I have been using Org for a few days and loving it.
Now I am stuck on a little problem that probably has an obvious  
solution that I'm missing. Suppose I want to type this note:


* Section title
  Some plain text.
  - One item
  - One more item
  Back to plain text.

If the cursor is at the end of the second item line, is there a  
command to resume the plain text indentation on the new line? Return  
and TAB place the cursor below the "O" in the second item line, and  
from there the best I came up with is to backspace twice. I would  
expect some "structure-aware" command, but I couldn't find one.


I am using Aquamacs on Mac OS X. I also tried Emacs 23 on Windows and  
I see no difference.


Thanks,
Marco
--
Marco Alberti






___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] R code not producing expected results

2010-08-12 Thread Blanchette, Marco
Dear all,

Sorry if this is something totally obvious but I am learning to use org-mode 
for my everyday work with R. I just installed the latest stable release of 
org-mode (v7.01g) on top of GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS 
apple-appkit-1038.25). I also installed the CRAN ascii package v0.7 on top of R 
v2.11.1. I am currently working on a MacBook pro with Snow Leopard 10.6.4

Early on today, while reading the org-babel intro, I was able to run the 
following example but somehow, later tonight, it started to break and I spent 
the last few hours scratching my head to understand what change and why it now 
suddenly break. Your help will be greatly appreciated as I am discovering that 
org-mode in collaboration with org-babel have great potential to help us create 
more readable report of our daily analysis, as long as I can get through these 
early hurdles.

Here is the org buffer that now breaks:

* Two examples of R code that worked when I started the tutorial but suddenly 
started to fail...

** some R code that should generate a nice table
 #+BEGIN_SRC R
  library(ascii)
  options(asciiType="org")

  d <- as.data.frame(replicate(4,rnorm(100)))

  ascii(cor(d),include.rownames=T, include.colnames=T,header=T)
#+END_SRC

** Some code straight from 
[[http://orgmode.org/worg/org-contrib/babel/languages/org-babel-doc-R.php][org-babel]]
 #+BEGIN_SRC R
library(ascii)
options(asciiType="org")
ascii(summary(table(1:4, 1:4)))
#+END_SRC


With the following error recover from the *Org-Babel Error* buffer

Loading required package: proto
Error in as.data.frame.default(x[[i]], optional = TRUE) :
  cannot coerce class 'c("ascii", "proto", "environment")' into a data.frame
Calls: write.table ... data.frame -> as.data.frame -> as.data.frame.default
Execution halted

Thanks for the helps.
--
Marco Blanchette, Ph.D.
Assistant Investigator
Stowers Institute for Medical Research
1000 East 50th St.

Kansas City, MO 64110

Tel: 816-926-4071
Cell: 816-726-8419
Fax: 816-926-2018

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Problem whit with code evaluation

2010-08-18 Thread Blanchette, Marco
Sorry again if this is common knowledge, but the road to orgmode power user
is seeded with challenges!

I am trying to write an R function that would take 3 arguments, hopefully
set up in an org table and have a function run every rows, taking every
column as arguments to produce a set of report files... But I am going a bit
ahead of myself as I am stuck quite early in the development...

My problem is quite basic. For some reason, I can¹t seems to be able to
execute the following lines in the org buffer using org-babel-execute-buffer
or to export an html of the files. The code block just don't execute and
return errors.

* Examples take from
[[http://orgmode.org/worg/org-contrib/babel/intro.php#sec-7]]

* The python example
#+source: square(x)
#+begin_src python
x*x
#+end_src

#+call: square(x=6)

* The elisp example of the fibonacci series using a table as argument

#+tblname: fibonacci-inputs
| 1 | 2 | 3 | 4 |  5 |  6 |  7 |  8 |  9 | 10 |
| 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |

#+srcname: fibonacci-seq(fib-inputs=fibonacci-inputs)
#+begin_src emacs-lisp
  (defun fibonacci (n)
(if (or (= n 0) (= n 1))
n
  (+ (fibonacci (- n 1)) (fibonacci (- n 2)
  
  (mapcar (lambda (row)
(mapcar #'fibonacci row)) fib-inputs)
#+end_src

* Then my own trial in R
#+srcname: test(x y)
#+begin_src R
   p <- x*y
#+end_src

#+call test(x=4 y=9)
#+function test(x=3 y=8)

Is there something I am missing?

My current setup is:
GNU Emacs 23.1.50.1
org-mode (v7.01g)
R v2.11.1
XServer running Snow Leopard Server 10.6.4

Thanks for the help
-- 
Marco Blanchette, Ph.D.
Assistant Investigator
Stowers Institute for Medical Research
1000 East 50th St.

Kansas City, MO 64110

Tel: 816-926-4071 
Cell: 816-726-8419 
Fax: 816-926-2018 


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Problem whit with code evaluation

2010-08-18 Thread Blanchette, Marco
Hmm... Thanks Dan.

Do we have a different version of org-mode? I just pasted your code in emacs
and try to execute it with M-x org-babel-execute-buffer RET without success.

The emacs-lisp code works but the python and the R crashes with the
following errors taken from the *Org-Babel Error* Output buffer

Traceback (most recent call last):
  File "", line 5, in 
  File "", line 3, in main
NameError: global name 'x' is not defined
Error in main() : object 'x' not found
Calls: write.table -> is.data.frame -> inherits -> main
Execution halted

The first 4 lines comes from the python script while the last 3 come from
the R script

Here is my .emacs org-mode configs in case you are wondering...

;;Load org-mode and set global keys
(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when
global-font-lock-mode is on
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)
(setq org-startup-indented t)


;; active Babel languages
(org-babel-do-load-languages
 'org-babel-load-languages
 '(
   (R . t)
   (sh .t)
   (python . t)
   (emacs-lisp . t)
   )
 )

Thanks again


On 8/18/10 9:37 PM, "Dan Davison"  wrote:

> * The python example
> #+source: square(x)
> #+begin_src python
> return x*x
> #+end_src
> 
> #+call: square(x=6)
> 
> #+results: square(x=6)
> : 36
> 
> * The elisp example of the fibonacci series using a table as argument
> 
> #+tblname: fibonacci-inputs
> | 1 | 2 | 3 | 4 |  5 |  6 |  7 |  8 |  9 | 10 |
> | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |
> 
> #+srcname: fibonacci-seq(fib-inputs=fibonacci-inputs)
> #+begin_src emacs-lisp
>   (defun fibonacci (n)
> (if (or (= n 0) (= n 1))
> n
>   (+ (fibonacci (- n 1)) (fibonacci (- n 2)
>  
>   (mapcar (lambda (row)
> (mapcar #'fibonacci row)) fib-inputs)
> #+end_src
> 
> #+results: fibonacci-seq
> | 1 | 1 | 2 |  3 |  5 |   8 |  13 |  21 |   34 |   55 |
> | 1 | 3 | 8 | 21 | 55 | 144 | 377 | 987 | 2584 | 6765 |
> 
> * Then my own trial in R
> #+srcname: test(x, y)
> #+begin_src R
>p <- x*y
> #+end_src
> 
> #+call: test(x=4, y=9)
> 
> #+results: test(x=4, y=9)
> : 36
> 
> #+lob: test(x=3, y=8)
> 
> #+results: test(x=3, y=8)
> : 24

--
Marco Blanchette, Ph.D.
Assistant Investigator
Stowers Institute for Medical Research
1000 East 50th St.

Kansas City, MO 64110

Tel: 816-926-4071
Cell: 816-726-8419
Fax: 816-926-2018


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[O] Can't kill in org-mode when in org-indent-mode

2011-07-06 Thread Marco Wahl
Hi,

when I try to kill a region in a org-buffer with org-indent-mode set
(i.e. not so many stars in the headlines) there is an error.

The *Backtrace* shows more or less

Debugger entered--Lisp error: (wrong-number-of-arguments (lambda
(string) "Remove indentations between BEG and END."
(remove-text-properties 0 (length string) (quote (line-prefix nil
wrap-prefix nil)) string) string) 4)
  org-indent-remove-properties-from-string(...)
  apply(org-indent-remove-properties-from-string (...))
  filter-buffer-substring(112 459)
  copy-region-as-kill(112 459)
  kill-ring-save(112 459)
  call-interactively(kill-ring-save nil nil)

I use "GNU Emacs 24.0.50.6 (i686-pc-linux-gnu, X toolkit) of 2011-07-05
on senf".

Looks like an interface change to me.  Or is it just a problem with my
setup?

Any help appreciated.  Ciao,

Marco




[O] Can't kill in org-mode when in org-indent-mode

2011-07-07 Thread Marco Wahl
Hi,

when I try to kill a region in a org-buffer with org-indent-mode set
(i.e. not so many stars in the headlines) there is an error.

The *Backtrace* shows

Debugger entered--Lisp error: (wrong-number-of-arguments (lambda
(string) "Remove indentations between BEG and END."
(remove-text-properties 0 (length string) (quote (line-prefix nil
wrap-prefix nil)) string) string) 4)
  org-indent-remove-properties-from-string(...)
  apply(org-indent-remove-properties-from-string (...))
  filter-buffer-substring(112 459)
  copy-region-as-kill(112 459)
  kill-ring-save(112 459)
  call-interactively(kill-ring-save nil nil)

I use "GNU Emacs 24.0.50.6 (i686-pc-linux-gnu, X toolkit) of 2011-07-05
on senf" and the git version of org-mode.

Looks like an interface change to me.  Or is it just a problem with my
setup?

Any help appreciated.  Ciao,

Marco



Re: [O] Can't kill in org-mode when in org-indent-mode

2011-07-07 Thread Marco Wahl
Bastien  writes:

>>> Looks like an interface change to me.  Or is it just a problem with my
>>> setup?
>>
>> I confirm it's a bug, I'm on it now.
>
> This should be fixed now.  Thanks!

It is fixed.  Great!  Many thanks!

Marco



[O] Publishing - how to disable backup file generation?

2011-03-21 Thread Marco Alberti

Hi all,
since I installed Org 7.5, I noticed that when I publish an html  
project to a local directory, backup copies of the existing html files  
are kept, with a tilde attached to their name. As far as I remember,  
this wasn't happening before. Is there a way to disable it? I couldn't  
find a relevant variable.

Thanks,
Marco








Re: [O] How can I schedule a multiday event

2011-04-25 Thread Marco Wahl

> How can I schedule a multiday event? I mean, for instance there is a
> multiday holiday or a vacation... I don't want to schedule Day 1, Day 2,
> etc.
>
> I've tried entering an interval after C-c C-s, like 2011-05-01 - 05-10 but
> that doesn't work.
>
> How can I do this?

Hi JJ,

'info' is your friend:


8.1 Timestamps, deadlines, and scheduling
=

[...]

TIME/DATE RANGE
 Two timestamps connected by `--' denote a range.  The headline
 will be shown on the first and last day of the range, and on any
 dates that are displayed and fall in the range.  Here is an
 example:

  ** Meeting in Amsterdam
     <2004-08-23 Mon>--<2004-08-26 Thu>

Ciao

Marco

-- 

Marco Wahl




[O] Problems exporting org-babel to HTML

2011-12-29 Thread Marco Craveiro
Hi Org-Moders,

I've got a problem with org-babel HTML exports and I wonder if you can
help me. I'm using an up-to-date debian "emacs-snapshot" as follows:

- GNU Emacs 24.0.92.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.3) of
2011-12-27 on zelenka, modified by Debian
- Org-mode version 7.7

The problem manifests itself when exporting in batch mode (please see
below for source org file):


$ /usr/bin/emacs-snapshot --batch --visit=test.org --funcall
org-export-as-html-batch
Loading 00debian-vars...
Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Loading /etc/emacs/site-start.d/50cmake-data.el (source)...
Loading /etc/emacs/site-start.d/50devhelp.el (source)...
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Skipping dictionaries-common setup for emacs-snapshot
Loading /etc/emacs/site-start.d/50global.el (source)...
Loading /etc/emacs/site-start.d/50gtk-doc-tools.el (source)...
Loading /etc/emacs/site-start.d/50psvn.el (source)...
Exporting...
Symbol's function definition is void: copy-seq


This error is very similar to what is described here:

- http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg01203.html
- #634695: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634695

However, from reading that thread it appears I should already have this
fix. Can you please confirm if this is the case? Also, if v7.7 does not
have the fix, is there a workaround? 

The org-file i'm using is as follows:


#+tblname: test_chart
| Day | Expected | Actual |
|-+--+|
|   0 |8 |  8 |
|   1 |7 |  8 |
|   2 |6 |  8 |
| |  ||
#+begin_src gnuplot :var data=test_chart :file test.png :exports both
reset
set termoption dash
set terminal png font
"/usr/share/fonts/truetype/inconsolata/Inconsolata.otf" 14
set title "Test Chart"
set auto x
set border linewidth 1.5
set style line 1 linecolor rgb "red" linetype 2 linewidth 3 pointtype 1
set style line 2 linecolor rgb "orange" linetype 2 linewidth 3 pointtype
1
set ylabel "Story Points"
set yrange [0:10]
set ytics 0,1,10
set xlabel "Time"
set xrange [0:15]
set xtics 0,1,15
plot data using 1 title 'Expected' linestyle 1 with lines, \
data using 2 title 'Actual' linestyle 2 with lines
#+end_src
#+results:
[[file:test_chart.png]]


Thanks for a wonderful piece of software and for your time.

marco




Re: [O] Problems exporting org-babel to HTML

2011-12-29 Thread Marco Craveiro
Hi Eric,

Thanks for the prompt reply. I was trying hard to avoid dependencies on
anything other than vanilla debian actually. If there is no other way
around it, I'll try and use git latest...

Thanks

Marco

On Thu, 2011-12-29 at 14:10 -0700, Eric Schulte wrote:
> Hi Marco,
> 
> Please update to the latest version of Org-mode available from git at
> http://orgmode.org/org-mode-download.html and let us know if the problem
> persists.
> 
> Cheers,
> 
> Marco Craveiro  writes:
> 
> > Hi Org-Moders,
> >
> > I've got a problem with org-babel HTML exports and I wonder if you can
> > help me. I'm using an up-to-date debian "emacs-snapshot" as follows:
> >
> > - GNU Emacs 24.0.92.1 (x86_64-pc-linux-gnu, GTK+ Version 3.2.3) of
> > 2011-12-27 on zelenka, modified by Debian
> > - Org-mode version 7.7
> >
> > The problem manifests itself when exporting in batch mode (please see
> > below for source org file):
> >
> > 
> > $ /usr/bin/emacs-snapshot --batch --visit=test.org --funcall
> > org-export-as-html-batch
> > Loading 00debian-vars...
> > Loading /etc/emacs/site-start.d/50autoconf.el (source)...
> > Loading /etc/emacs/site-start.d/50cmake-data.el (source)...
> > Loading /etc/emacs/site-start.d/50devhelp.el (source)...
> > Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
> > Skipping dictionaries-common setup for emacs-snapshot
> > Loading /etc/emacs/site-start.d/50global.el (source)...
> > Loading /etc/emacs/site-start.d/50gtk-doc-tools.el (source)...
> > Loading /etc/emacs/site-start.d/50psvn.el (source)...
> > Exporting...
> > Symbol's function definition is void: copy-seq
> > 
> >
> > This error is very similar to what is described here:
> >
> > - http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg01203.html
> > - #634695: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634695
> >
> > However, from reading that thread it appears I should already have this
> > fix. Can you please confirm if this is the case? Also, if v7.7 does not
> > have the fix, is there a workaround? 
> >
> > The org-file i'm using is as follows:
> >
> > 
> > #+tblname: test_chart
> > | Day | Expected | Actual |
> > |-+--+|
> > |   0 |8 |  8 |
> > |   1 |7 |  8 |
> > |   2 |6 |  8 |
> > | |  ||
> > #+begin_src gnuplot :var data=test_chart :file test.png :exports both
> > reset
> > set termoption dash
> > set terminal png font
> > "/usr/share/fonts/truetype/inconsolata/Inconsolata.otf" 14
> > set title "Test Chart"
> > set auto x
> > set border linewidth 1.5
> > set style line 1 linecolor rgb "red" linetype 2 linewidth 3 pointtype 1
> > set style line 2 linecolor rgb "orange" linetype 2 linewidth 3 pointtype
> > 1
> > set ylabel "Story Points"
> > set yrange [0:10]
> > set ytics 0,1,10
> > set xlabel "Time"
> > set xrange [0:15]
> > set xtics 0,1,15
> > plot data using 1 title 'Expected' linestyle 1 with lines, \
> > data using 2 title 'Actual' linestyle 2 with lines
> > #+end_src
> > #+results:
> > [[file:test_chart.png]]
> > 
> >
> > Thanks for a wonderful piece of software and for your time.
> >
> > marco
> >
> >
> 





[O] Generating burndown charts using org mode

2011-12-30 Thread Marco Craveiro
Hi Org-Moders,

I've been using Org-Mode quite a bit, but I'm afraid I'm not an advanced
user. I'm trying to generate burndown charts [1] which basically follow
coding progress over a bounded period of time (an iteration).

I started by generating a file for each iteration:


* Tasks in iteration
- [[file:list_1.org]]
- [[file:list_2.org]]

#+tblname: test_chart
| Day | Expected | Actual |
|-+--+|
|   0 |4 |  4 |
|   1 |3 |  4 |
|   2 |2 |  1 |
|   3 |1 |  0 |
|   4 |0 |  0 |


list_1.org and list_2.org contain a total of 4 tasks for this time
period (tagged with :iteration1:). The table is updated manually at
present. "Day" is an index to the days in the time period, with work
always starting on day 1; "Expected" is the number of tasks expected to
be remaining on that day; "Actual" is the number of tasks actually
remaining. I then use org-babel/gnuplot to plot the chart as explained
on a previous post [2].

It seemed logical to try to generate the table automatically. I can use
org-mode's spreadsheet's facilities for generating all the days in the
table and I can even use date arithmetic to get dates for a day index.
As you can imagine, the bit I'm really stuck with is how to populate the
"Actual" and "Expected" columns. 

I've read a little bit about agenda views, and they seem to do a lot of
what I want, but unfortunately the lisp is not entirely obvious for a
newbie such as me. My questions are:

- is there an org-mode function that computes the total number of tasks
marked with a given tag in this file and any other files it includes?
- is there an org-mode function that computes the total number of tasks
marked with a given tag and marked as CLOSED on a given day in this file
and any other files it includes?

I was wondering if you could give me some pointers on how to go about
finding or even creating these functions as I failed to find anything
obvious. Even a "give up, its not trivial" would do, so I can at least
stop searching.

Many thanks for your time.

Marco

[1] http://en.wikipedia.org/wiki/Burn_down_chart
[2]
http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00813.html




Re: [O] Problems exporting org-babel to HTML

2012-01-01 Thread Marco Craveiro
On Thu, 2011-12-29 at 14:10 -0700, Eric Schulte wrote:
> Please update to the latest version of Org-mode available from git at
> http://orgmode.org/org-mode-download.html and let us know if the problem
> persists.

Eric, git latest did solve the problem - thanks. For google posterity,
if you are running emacs 23 or 24 (at the time of this writing with org
mode v7.7) and if you bump into the following error while batch
exporting from gnuplot:

Symbol's function definition is void: copy-seq

You will need to obtain a later version of org-mode, which contains the
fix described here:

http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg01203.html

Many thanks for your help

Marco




Re: [O] [patchattached] Store link to url of eww

2014-09-24 Thread Marco Wahl
Aaron Ecay  writes:

> 2014ko irailak 23an, Rasmus-ek idatzi zuen:
>> I think he did:
>> 
>> Patch:
>>> From: Marco Wahl 
>> 
>> Worg:
>>> 14. Marco Wahl
>
> ...that’s in the section for tinychange contributors without papers on
> file though.

I just initiated the assignment process according to your hint.  AFAICS
it's time for some patience now.  I will tell you when it's done.


Thanks,  Marco
-- 
http://www.wahlzone.de
PGP: 0x0A3AE6F2




Re: [O] [patchattached] Store link to url of eww

2014-10-01 Thread Marco Wahl
Hi!

Marco Wahl  writes:
> Aaron Ecay  writes:
>> 2014ko irailak 23an, Rasmus-ek idatzi zuen:
>> ...that’s in the section for tinychange contributors without papers on
>> file though.
>
> I just initiated the assignment process according to your hint.  AFAICS
> it's time for some patience now.  I will tell you when it's done.

The assignment process is complete.  The id is 946878.


All the best,  Marco
-- 
http://www.wahlzone.de
PGP: 0x0A3AE6F2




Re: [O] [patchattached] Store link to url of eww

2014-10-02 Thread Marco Wahl
Hi Aaron,

> [...] I have pushed your patch to the master branch of the org-mode
> repo.  If you want commit access, you can follow the instructions in the
> wiki: <http://orgmode.org/worg/org-contribute.html#devs>.

Thank you for your action and the hint about committing.  For my next
contribution (which hopefully will come to existence) I'll try out the
push access.


Best regards,  Marco
-- 
http://www.wahlzone.de
PGP: 0x0A3AE6F2




Re: [O] [patchattached] Store link to url of eww

2014-10-02 Thread Marco Wahl
Hi Bastien,

> I added you to the list of contributors here:
> http://orgmode.org/worg/org-contribute.html#contributors_with_fsf_papers
>
> Thanks for contributing!

Thanks for adding me!


Best wishes,  Marco
-- 
http://www.wahlzone.de
PGP: 0x0A3AE6F2




[O] [PATCH] Kill in eww and keep the links for org

2014-10-07 Thread Marco Wahl
Hi,

to kill in a w3m-buffer and yank into an org-mode-buffer by keeping the
links is a long known feature in org-module org-w3m.  The patch below
provides this functionality for eww.  Note that the code is very similar
to the code for the w3m case.

What do you think?  Shall I try to push the code?


Ciao,  Marco

>From 5f03c47861a828b7a75d890e05121c028a003296 Mon Sep 17 00:00:00 2001
From: Marco Wahl 
Date: Thu, 2 Oct 2014 23:09:11 +0200
Subject: [PATCH] org-eww.el: Special kill in eww for Org for keeping the links

* contrib/lisp/org-eww.el(org-eww-copy-for-org-mode): Realization of
  the kill.
  (org-eww-goto-next-url-property-change,
  org-eww-no-next-link-p, org-eww-url-below-point,
  org-eww-url-below-point-p): Auxiliaries for accessing a eww buffer

The code has emerged from the very similar org-w3m.el.
---
 contrib/lisp/org-eww.el | 107 +---
 1 file changed, 101 insertions(+), 6 deletions(-)

diff --git a/contrib/lisp/org-eww.el b/contrib/lisp/org-eww.el
index c25057d..3aae37a 100644
--- a/contrib/lisp/org-eww.el
+++ b/contrib/lisp/org-eww.el
@@ -1,4 +1,4 @@
-;;; org-eww.el --- Storing link in eww-mode for Org-mode
+;;; org-eww.el --- Store url and kill from eww-mode for Org
 
 ;; Copyright (C) 2014 Free Software Foundation, Inc.
 
@@ -27,17 +27,25 @@
 ;; When this module is active `org-store-link' (often on key C-c l) in
 ;; a eww buffer stores a link to the current url of the eww buffer.
 
-;; `org-eww-store-link' below is almost the same as
-;; `org-w3m-store-link' of the org-w3m module.
+;; In an eww buffer function `org-eww-copy-for-org-mode' kills either
+;; a region or the whole buffer if no region is set and transforms the
+;; text on the fly so that it can be pasted into an org-mode buffer
+;; with hot links.
 
-;; Hint: There are further features in module org-w3m which might be
-;; interesting for org-eww also.
+;; C-c C-x C-w and C-c C-x M-w trigger `org-eww-copy-for-org-mode'.
+
+;; Hint: A lot of code of this module comes from module org-w3m which
+;; has been written by Andy Steward.  Thanks!
+
+;; Potential: Since the code for w3m and eww is so similar one could
+;; try to refactor.
 
 
 ;;; Code:
-
 (require 'org)
 
+
+;; Store Org-link in eww-mode buffer
 (add-hook 'org-store-link-functions 'org-eww-store-link)
 (defun org-eww-store-link ()
   "Store a link to the url of a eww buffer."
@@ -49,6 +57,93 @@
  :description (or eww-current-title eww-current-url
 
 
+;; Some auxiliary functions concerning links in eww buffers
+(defun org-eww-goto-next-url-property-change ()
+  "Move cursor to the start of next link if exists.  Else no
+move.  Return point."
+  (goto-char
+   (or (next-single-property-change (point) 'shr-url)
+   (point
+
+(defun org-eww-no-next-link-p ()
+  "Whether there is no next link after the cursor.
+Return t if there is no next link; otherwise, return nil."
+  (save-excursion
+(equal (point) (org-eww-goto-next-url-property-change
+
+(defun org-eww-url-below-point-p ()
+  "Return t if below point there is a url; otherwise, return nil."
+  (not (eq nil (org-eww-url-below-point
+
+(defun org-eww-url-below-point ()
+  "Return the url below point if there is an url; otherwise, return nil."
+  (get-text-property (point) 'shr-url))
+
+
+(defun org-eww-copy-for-org-mode ()
+  "Copy current buffer content or active region with `org-mode' style links.
+This will encode `link-title' and `link-location' with
+`org-make-link-string', and insert the transformed test into the kill ring,
+so that it can be yanked into an Org-mode buffer with links working correctly."
+  (interactive)
+  (let* ((regionp (org-region-active-p))
+ (transform-start (point-min))
+ (transform-end (point-max))
+ return-content
+ link-location link-title
+ temp-position out-bound)
+(when regionp
+  (setq transform-start (region-beginning))
+  (setq transform-end (region-end))
+  ;; Deactivate mark if current mark is activate.
+  (if (fboundp 'deactivate-mark) (deactivate-mark)))
+(message "Transforming links...")
+(save-excursion
+  (goto-char transform-start)
+  (while (and (not out-bound) ; still inside region to copy
+  (not (org-eww-no-next-link-p))) ; there is a next link
+;; store current point before jump next anchor
+(setq temp-position (point))
+;; move to next anchor when current point is not at anchor
+(or (org-eww-url-below-point-p)
+	(org-eww-goto-next-url-property-change))
+	(assert (org-eww-url-below-point-p) t
+"program logic error: point must have an url below but it hasn't")
+	(if (<= (point) transform-end)  ; if point is inside transform bound
+	(progn
+	  ;; get conten

Re: [O] [PATCH] Kill in eww and keep the links for org

2014-10-07 Thread Marco Wahl
Hi!

Nicolas Goaziou  writes:

> Since the file is in contrib and you're its author, you can obviously
> push the code.

Thanks for making that clear.

> Some minor comments follow.
>
>> +;;; org-eww.el --- Store url and kill from eww-mode for Org
>
> Eww mode
>
>> +(equal (point) (org-eww-goto-next-url-property-change
>
>   (eq (point) (org-eww-goto-next-url-property-change))
>
>> +  (not (eq nil (org-eww-url-below-point
>
>   (org-eww-url-below-point)
>
> or, if you insist on returning t,
>
>   (and (org-eww-url-below-point) t)

I insist ;)

Thanks for your hints.  Applied and pushed.


Best regards,  Marco
-- 
http://www.wahlzone.de
PGP: 0x0A3AE6F2




Re: [O] [Org-Drill] Latex Images are removed in sessions

2014-10-09 Thread Marco Wahl
Hi Thomas,

> first of all thanks for the great piece of software.

Totally agreed.

> 
> * Einheitliche Kreisbewegung  :drill:
>
> Zentripetale Beschleunigung bei gegebener Geschwindigkeit $v$ und
> Radius $r$.
>
> ** Antwort
>
> #+BEGIN_LATEX
>   \begin{equation}
> \label{eq:1}
> a = \frac{v^2}{r}.
>   \end{equation}
> #+END_LATEX
>
> 
>
> What I usually do is to generate latex fragments of the whole tree by
> going to the beginning of the buffer and executing
> `org-toggle-latex-fragment' (C-c C-x C-l). After that I execute `M-x
> org-drill'. This usually works rather fine. Although there are a few
> issues:
>
> [...issues...]
>
> Can you give me a hint on how to investigate this problem further?
> org-mode is on version 8.3beta (installed via el-get) and org-drill
> seems to be at 2.4.1 at least it says so in org-drill.el.

Obviously there already is some logic in org-drill.org to handle latex
fragments.  See the lines containing (org-preview-latex-fragment).
Looks like the logic for displaying the fragments is somehow broken.

A pragmatic patch to keep you going with physics drills could be to
comment out all those lines containing (org-preview-latex-fragment) in
org-drill.org.


HTH,  Marco
-- 
http://www.wahlzone.de
PGP: 0x0A3AE6F2




[O] [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

2014-10-10 Thread Marco Wahl
Hi,

it has just been reported on the emacs devel list that
'fancy-diary-display' has been replaced by 'diary-fancy-display' in
Emacs 25.

This breaks diary inclusion into the agenda.

I think the appropriate fix is to choose the display function
dependending on the Emacs version.  See the patch below.  Comments are
welcome.


Best regards,  Marco
>From ebf45bd1c6d7435a8f9f991c6466bf704f223ce9 Mon Sep 17 00:00:00 2001
From: Marco Wahl 
Date: Fri, 10 Oct 2014 15:49:38 +0200
Subject: [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

* lisp/org-agenda.el (org-get-entries-from-diary): Choose display
  function depending on version

`fancy-diary-display' is `diary-fancy-display' in Emacs 25.
---
 lisp/org-agenda.el | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index da7993c..5fd9fbc 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5112,8 +5112,10 @@ of what a project is and how to check if it stuck, customize the variable
   "Get the (Emacs Calendar) diary entries for DATE."
   (require 'diary-lib)
   (let* ((diary-fancy-buffer "*temporary-fancy-diary-buffer*")
-	 (diary-display-hook '(fancy-diary-display))
-	 (diary-display-function 'fancy-diary-display)
+	 (diary-display-function (if (version< emacs-version "25")
+ 'fancy-diary-display
+   'diary-fancy-display))
+	 (diary-display-hook '(diary-display-function))
 	 (pop-up-frames nil)
 	 (diary-list-entries-hook
 	  (cons 'org-diary-default-entry diary-list-entries-hook))
-- 
2.1.2

-- 
http://www.wahlzone.de
PGP: 0x0A3AE6F2


Re: [O] [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

2014-10-11 Thread Marco Wahl
Hi Aaron,

Aaron Ecay  writes:
> 2014ko urriak 10an, Marco Wahl-ek idatzi zuen:
>> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
>> index da7993c..5fd9fbc 100644
>> --- a/lisp/org-agenda.el
>> +++ b/lisp/org-agenda.el
>> @@ -5112,8 +5112,10 @@ of what a project is and how to check if it stuck, 
>> customize the variable
>>"Get the (Emacs Calendar) diary entries for DATE."
>>(require 'diary-lib)
>>(let* ((diary-fancy-buffer "*temporary-fancy-diary-buffer*")
>> - (diary-display-hook '(fancy-diary-display))
>> - (diary-display-function 'fancy-diary-display)
>> + (diary-display-function (if (version< emacs-version "25")
>> + 'fancy-diary-display
>> +   'diary-fancy-display))
>
> The rule of thumb is that Org should support the current major version
> of emacs and one previous.

Just to be sure: Are 23.1 and 25.0 major versions of emacs?

> These functions have been aliased for a
> while, with fancy-diary-display marked as deprecated.  The commit that
> removed them from emacs
> <http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/118057> says this
> is at least since v 23.1, so it’s safe to just use the new name
> unconditionally.

Thanks for pointing that out.

>> + (diary-display-hook '(diary-display-function))
>
> This puts the symbol ‘diary-display-function’ in the list, which may
> or may not be correct (it’s different than the old behavior, which
> effectively put the value of that variable).  Maybe you want ‘(list
> diary-display-function)’ instead?

I would have wanted the latter.  Thanks again for the clarification.
But actually it does not matter since diary-display-hook has been marked
obsolete some versions ago.  See the emacs ChangeLog entry

2014-10-06  Glenn Morris  
Remove calendar code obsolete since at least version 23.1.
...diary-display-hook...fancy-diary-display...

The patch has shrunk considerably and hopefully is worth for the push
now.


Best regards,  Marco
>From 3bc2837ebad7d6a6ffdceb53d4f95c260c1ee342 Mon Sep 17 00:00:00 2001
From: Marco Wahl 
Date: Sat, 11 Oct 2014 11:39:02 +0200
Subject: [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

* lisp/org-agenda.el (org-get-entries-from-diary): Use the suitable
  display function.  Drop the usage of the obsolete diary-display-hook.

fancy-diary-display has been dropped in Emacs 25.  diary-fancy-display
is the long known replacement of fancy-diary-display.

diary-display-hook has been marked obsolete before Emacs 23.2.
---
 lisp/org-agenda.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index da7993c..fd99bc9 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5112,8 +5112,7 @@ of what a project is and how to check if it stuck, customize the variable
   "Get the (Emacs Calendar) diary entries for DATE."
   (require 'diary-lib)
   (let* ((diary-fancy-buffer "*temporary-fancy-diary-buffer*")
-	 (diary-display-hook '(fancy-diary-display))
-	 (diary-display-function 'fancy-diary-display)
+	 (diary-display-function 'diary-fancy-display)
 	 (pop-up-frames nil)
 	 (diary-list-entries-hook
 	  (cons 'org-diary-default-entry diary-list-entries-hook))
-- 
2.1.2

-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2


Re: [O] [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

2014-10-11 Thread Marco Wahl
Bastien  writes:

>> The patch has shrunk considerably and hopefully is worth for the push
>> now.
>
> The patch looks good, please go ahead.  Thanks!

Patch pushed!


Thanks and regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

2014-10-13 Thread Marco Wahl
Hi Achim,

Thanks for your corrections and hints.

>> Patch pushed!
>
> It looks like that patch should have gone to maint rather than master

Sorry for that.  I was not aware that fixes should go to maint.  I just
naively took the first best branch (which was master) for applying the
change.  BTW: It looks like a good soul already merged the patch into
the maint branch.

> and please use a properly formatted commit message in the future:
>
> - The first line of the commit has been taken from the subject of your
>   post rather than being in the form that Org uses.
> - The commit description itself will be shortened to unintelligible
>   gibberish in the Emacs Changelog since the text before the first blank
>   line doesn't actually tell what the change has been about.

A formal error plus unintelligible gibberish.  Hard to imagine how a
commit message could be worse.  I try to be more careful the next time.


Thanks again,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] [PATCH] Fix: Emacs 25 fancy diary inclusion in agenda

2014-10-13 Thread Marco Wahl
Aaron Ecay  writes:

> 2014ko urriak 11an, Achim Gratz-ek idatzi zuen:
>> It looks like that patch should have gone to maint rather than master
>> and please use a properly formatted commit message in the future:
>
> For reference, this link describes what Achim means about commit messages:
> <http://orgmode.org/worg/org-contribute.html#unnumbered-10>.

Thanks for the link.

I just wonder if the text about line 1 is correct.

--8<---cut here---start->8---
Generally, it starts with the filename that has been changed, followed
by a column.
 ^^
--8<---cut here---end--->8---

Shouldn't this be 'colon'?


Best,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




[O] [PATCH] contrib/lisp/org-velocity: Fix failure for big window

2014-10-14 Thread Marco Wahl
Hi list, hi Paul,

thanks for your org-velocity contribution!  I just discovered
org-velocity and immediately liked it.

I found a bug which might not have occurred in the past since the
monitors were smaller.  The bug shows up when the number of lines of the
match window exceeds the number of available indexes (which is 61).  I
think the patch (which is just a switch from 'greater than' to 'smaller
than') in the attachment is a way to go.

Please let me know what you think.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2
>From c867eda9b60736b0d3ae50d5a5f889e80cf25a81 Mon Sep 17 00:00:00 2001
From: Marco Wahl 
Date: Tue, 14 Oct 2014 20:07:31 +0200
Subject: [PATCH] contrib/lisp/org-velocity: Fix failure for big window

* contrib/lisp/org-velocity.el (org-velocity-incremental-read): Reversed
  the estimation against window-height.
---
 contrib/lisp/org-velocity.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/lisp/org-velocity.el b/contrib/lisp/org-velocity.el
index 3631a59..e6788c6 100644
--- a/contrib/lisp/org-velocity.el
+++ b/contrib/lisp/org-velocity.el
@@ -671,7 +671,7 @@ Stop searching once there are more matches than can be displayed."
  ;; Truncate the index to the size of the buffer to be
  ;; displayed.
  (with-selected-window match-window
-   (if (> (window-height) (length org-velocity-index))
+   (if (< (window-height) (length org-velocity-index))
;; (subseq org-velocity-index 0 (window-height))
(let ((hints (copy-sequence org-velocity-index)))
  (setcdr (nthcdr (window-height) hints) nil)
-- 
2.1.2



Re: [O] Internal links not working?

2014-10-15 Thread Marco Wahl
Hi Marcin,

> I have this test file:
>
> 
>
> #+TITLE: Link testing
>
> * Heading
> :PROPERTIES:
> :CUSTOM_ID: link-target
> :END:
>
> * Second heading
> <>
> * Third heading
> * Fourth heading
> Testing linking to precise targets, not headings:
> <>
> * Links
> [[#link-target]]
> [[target]]
> [[Second heading]]
> [[Third heading]]
> 
>
> When I C-c C-o (or mouse-1) on any of the links under the last heading,
> I am being asked for a TAGS table.

All those links work as expected here.

C-h k C-c C-o says

--8<---cut here---start->8---
C-c C-o runs the command org-open-at-point (found in org-mode-map),
which is an interactive compiled Lisp function in `org.el'.
--8<---cut here---end--->8---

What does C-h k C-c C-o say in your case?  Possibly you managed to
shadow the binding somehow.



Ciao,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] Internal links not working?

2014-10-15 Thread Marco Wahl
>> #+TITLE: Link testing
>>
>> * Heading
>> :PROPERTIES:
>> :CUSTOM_ID: link-target
>> :END:
>>
>> * Second heading
>> <>
>> * Third heading
>> * Fourth heading
>> Testing linking to precise targets, not headings:
>> <>
>> * Links
>> [[#link-target]]
>> [[target]]
>> [[Second heading]]
>> [[Third heading]]

>> When I C-c C-o (or mouse-1) on any of the links under the last heading,
>> I am being asked for a TAGS table.

> I instrumented for Edebug the org-open-at-point function, and I found
> the culprit: the value of org-open-link-functions is
>
> (org-ctags-find-tag org-ctags-ask-rebuild-tags-file-then-find-tag
> org-ctags-ask-append-topic)

Looks like this setting goes back to Org module org-ctags.  Possibly you
want just switch off the ctags module via

M-x customize-variable org-modules

Of course you could also study org-ctags and try to understand its
benefits.


Regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] electric-indent-mode in Emacs 25 not indenting in Org

2014-10-16 Thread Marco Wahl
Hello William,

> I got tired of waiting for prettify-symbols-mode so I compiled Emacs
> from source, which gives me version 25.0.50.1 (25 being next after
> 24.4).

This looks like a nice mode.  Thanks for the hint.

> I noticed something odd with electric-indent-mode, which I had
> enabled, and which is on by default in 24.4.
>
> If I run Emacs 24.3 (my Ubuntu system default) as emacs -Q, then run
> M-x 
> electric-indent-mode to enable the mode, open foo.org, and type
>
> * Heading
>
> then when I hit return the cursor ends up under the H.  That is one of
> the things electric-indent-mode does.
>
> But when I run Emacs 25 with emacs -Q, check to make sure
> electric-indent-mode is enabled and see that it is because that's the
> default, open foo.org, and type
>
> * Heading
>
> then when I hit return the cursor ends up under the *!

I have the same behavior here.  You may try C-j which yields a cursor
under the H for me.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




[O] [PATCH] org.el: Fix bindings of < and > for calendar scrolling

2014-10-20 Thread Marco Wahl
Dear list,

Find a fix for the bindings of < and > for calendar scrolling for Emacs
25.  The fix is necessary because Emacs 25 dropped some aliases in the
calendar lib, in particular those that have been bound to < and >.

Since the fix is small and clear (AFAICT) and the tests pass I try to
push it directly to maint.


Regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2
>From 8b63dc950302dad862b9e03bda3854d7d351cac4 Mon Sep 17 00:00:00 2001
From: Marco Wahl 
Date: Mon, 20 Oct 2014 21:47:42 +0200
Subject: [PATCH] org.el: Fix bindings of < and > for calendar scrolling

* lisp/org.el (org-read-date-minibuffer-local-map): Switch to the
  current calendar API for scrolling the calendar.
---
 lisp/org.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 2b5603c..7f4be6b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16285,10 +16285,10 @@ So these are more for recording a certain time/date."
   (message "")))
 (org-defkey map ">"
 (lambda () (interactive)
-  (org-eval-in-calendar '(scroll-calendar-left 1
+  (org-eval-in-calendar '(calendar-scroll-left 1
 (org-defkey map "<"
 (lambda () (interactive)
-  (org-eval-in-calendar '(scroll-calendar-right 1
+  (org-eval-in-calendar '(calendar-scroll-right 1
 (org-defkey map "\C-v"
 (lambda () (interactive)
   (org-eval-in-calendar
-- 
2.1.2



Re: [O] Small bug? Strange behaviour of

2014-10-20 Thread Marco Wahl
Hi Igor,

> I have: org 8.2.10 on emacs 24.3.
>
> PS: BTW is there a command to insert org-version and emacs version 
> in a emails automatically? 

What about using

(signature (concat "Org " (org-version) ", " (emacs-version)))

in gnus-posting-styles?


Best regards,  Marco
-- 
Org 8.2.10, GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
 of 2014-10-14 on tm6592




Re: [O] [PATCH] org.el: Fix bindings of < and > for calendar scrolling

2014-10-21 Thread Marco Wahl
Hello Sebastien,

Sebastien Vauban 
writes:

> Marco Wahl wrote:
>> Find a fix for the bindings of < and > for calendar scrolling for Emacs
>> 25.  The fix is necessary because Emacs 25 dropped some aliases in the
>> calendar lib, in particular those that have been bound to < and >.
>>
>> diff --git a/lisp/org.el b/lisp/org.el
>> index 2b5603c..7f4be6b 100644
>> --- a/lisp/org.el
>> +++ b/lisp/org.el
>> @@ -16285,10 +16285,10 @@ So these are more for recording a certain 
>> time/date."
>>(message "")))
>>  (org-defkey map ">"
>>  (lambda () (interactive)
>> -  (org-eval-in-calendar '(scroll-calendar-left 1
>> +  (org-eval-in-calendar '(calendar-scroll-left 1
>
> Can't you simply write 'calendar-scroll-left ?

No.  This is because org-eval-in-calendar expects a form and not just a
variable.

Your idea to simplyfy the call by dropping the '1' --- i.e. writing
'(calendar-scroll-left) --- sounds good to me.  OTOH there are many
similar lines in org-read-date-minibuffer-local-map which all use the
'1' explicitly.  So I think it would be rather irritating to drop the
'1' in just two locations.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] [PATCH] org.el: Fix bindings of < and > for calendar scrolling

2014-10-24 Thread Marco Wahl
Achim Gratz  writes:

> Marco Wahl writes:
>> Since the fix is small and clear (AFAICT) and the tests pass I try to
>> push it directly to maint.
>
> Please keep maint merged into master.

Ahh, okay, thanks.  I thought the maintainers would do those merges
automatically.

I just saw that you already did the merge for the commit above.  Thanks!


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2



Re: [O] org-capture/remember in Emacs 24.4.1?

2014-10-27 Thread Marco Wahl
Hi Benjamin,

Benjamin Slade  writes:

> I had the following snippets in my .emacs which allowed me to call up a
> mini-emacsclient frame to quickly add notes and TODOs etc.  It doesn't
> seem to work anymore (it comes up, but as soon as I choose [t], [n]
> etc. it disappears).  Is there an updated recommendation on how to do
> this?
>
> ###
> (defcustom remember-frame-alist nil
> "Additional frame parameters for dedicated remember frame."
> :type 'alist
> :group 'remember)
>
> (defadvice remember (around remember-frame-parameters activate)
> "Set some frame parameters for the remember frame."
> (let ((default-frame-alist (append remember-frame-alist default-frame-alist)))
> ad-do-it))
>
> ;;;
>
> (defun make-remember-frame ()
>   "turn the current frame into a small popup frame for remember mode;
>  this is meant to be called with 
>   emacsclient -c -e '(make-remember-frame)'"
>   (modify-frame-parameters nil
>  '( (name . "*Remember*") ;; must be same as in 
> mode-hook below  
> (width .  80)
> (height . 20)
> (vertical-scroll-bars . nil)
> (menu-bar-lines . nil)
> (tool-bar-lines . nil)))
>   (set-frame-parameter (selected-frame) 'alpha '(85 50))
>   (org-capture)
>   (when (fboundp 'x-focus-frame) (x-focus-frame nil)) ;; X only
>   (delete-other-windows)
>   ) 
>
> ;; when we're in such a remember-frame, close it when done. (doesn't work 
> when cancelled...)
> (add-hook 'org-capture-mode-hook
> (lambda()
>   (define-key org-capture-mode-map (kbd "C-c C-c")
> '(lambda()(interactive)
>(let ((capture-frame-p 
>   (string= (frame-parameter nil 'name) "*Remember*")))
>  (when capture-frame-p (make-frame-invisible))  ;; hide 
> quickly
>  (org-capture-finalize)
>  (when capture-frame-p (delete-frame)))
>
>
> (setq org-capture-templates
>   '(("t" "Todo" entry (file+headline "~/Documents/Org/ToDo.org" "Captured 
> Tasks")
>"* TODO %?\n  %i\n  %a")
> ("n" "Notes" entry (file+headline "~/Documents/Org/Notes.org" 
> "Captured Notes")
>"* %?\nEntered on %U\n  %i\n  %a")
>   ("m" "Meetings" entry (file "~/Documents/Org/Meetings.org" )
>"* %?\n %i\n  %a")
>   ("c" "Clipboard" entry (file+headline "~/Documents/Org/Notes.org" 
> "Captured Notes")
>"* %x %?\nEntered on %U\n  %i\n  %a")))

Your code works for me (Emacs 25 with a current Org from the git
repo).

Just guessing: Do you have installed a further hook for deleting frames
in certain situations which might be the wrongdoer?


HTH,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] org-capture/remember in Emacs 24.4.1? (Marco Wahl)

2014-10-28 Thread Marco Wahl
Benjamin Slade  writes:

>>Your code works for me (Emacs 25 with a current Org from the git
>> repo).
>> 
>> Just guessing: Do you have installed a further hook for deleting frames
>> in certain situations which might be the wrongdoer?
>
> I don't seem to. I can't find anything else which seems to do anything
> with deleting frames.
>
> (side stepping the problem:) Perhaps there's a simpler way to set up a
> remember-frame like this in 24.4?

I played some with the 24.4 and now can confirm your report.  Emacs
crashed every time after C-c C-c in the caption buffer.

Unfortunately I could not understand what's going on.

Being pragmatic you could comment the line

 (when capture-frame-p (make-frame-invisible))  ;; hide quickly

This line looks like cosmetics and commenting out this line worked as a
side stepping for me.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] org-capture/remember in Emacs 24.4.1? (Marco Wahl)

2014-10-29 Thread Marco Wahl
Benjamin Slade  writes:

> I figured it out - in updating, I had lost the cdlatex package, and
> org-capture wants this for some reason, that's why it was crashing for
> me.

Library confusion sounds indeed like a probable source of the crashes.
Great, that you figured that out!


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] [PATCH] New version of org-velocity

2014-10-31 Thread Marco Wahl
Hello Paul,

Paul Rodriguez  writes:

> This is a new version of org-velocity. Principally it differs in using
> cl-lib and lexical binding, but there are also some minor bugfixes for
> presenting results on very large screens and compatibility with
> evil-mode.

Thanks for sharing.

Is there any reason not bringing your new version into the master
branch?


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2



Re: [O] [PATCH] New version of org-velocity

2014-10-31 Thread Marco Wahl
Paul Rodriguez  writes:

> I'm afraid I don't understand the question. Is there a problem with the
> patch?

AFAICS there is no problem with your patch.

I just wonder about how your patch could be applied to the repository.
Can you do this?


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2



[O] [PATCH] org-agenda: Switch to current API for two calendar calls

2014-11-04 Thread Marco Wahl
Hi Orgers,

I updated two occurances of calls to calendar functions.  One
replacement fixes the functionality of the 'h' key in the agenda for
emacs 25.


Best regards,  Marco

>From 43b3944e1d5fea709bb713ed818d725e9dc2a0af Mon Sep 17 00:00:00 2001
From: Marco Wahl 
Date: Tue, 4 Nov 2014 10:37:22 +0100
Subject: [PATCH] org-agenda: Switch to current API for two calendar calls

* lisp/org-agenda.el (org-agenda-phases-of-moon, org-agenda-holidays):
  Update to use the current API

This commit fixes the display of holidays in the agenda for emacs 25.

Further for getting the lunar phases the usage of an obsolete alias
has been replaced by the current name.
---
 lisp/org-agenda.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index fd99bc9..97970a6 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -9583,12 +9583,12 @@ entries in that Org-mode file."
 (defun org-agenda-phases-of-moon ()
   "Display the phases of the moon for the 3 months around the cursor date."
   (interactive)
-  (org-agenda-execute-calendar-command 'calendar-phases-of-moon))
+  (org-agenda-execute-calendar-command 'calendar-lunar-phases))
 
 (defun org-agenda-holidays ()
   "Display the holidays for the 3 months around the cursor date."
   (interactive)
-  (org-agenda-execute-calendar-command 'list-calendar-holidays))
+  (org-agenda-execute-calendar-command 'calendar-list-holidays))
 
 (defvar calendar-longitude)  ; defined in calendar.el
 (defvar calendar-latitude)   ; defined in calendar.el
-- 
2.1.3


-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2


Re: [O] [PATCH] New version of org-velocity

2014-11-04 Thread Marco Wahl
Hi Paul!

Paul Rodriguez  writes:

> I am not a committer. Previously I've always sent in new versions of
> org-velocity as patches, following the procedure on the Org wiki. I
> don't usually follow the mailing list, so perhaps the procedure for
> handling contributions has changed without my noticing. If so I'm
> happy to adjust.

Have you seen the post of Achim about the lexical binding issue?
http://permalink.gmane.org/gmane.emacs.orgmode/92261

What do you think?


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] A file with 'org-mode rot'?

2014-11-11 Thread Marco Wahl
Hi Karl,

Karl Voit  writes:

> In the recent weeks I had the issue that LOGBOOK drawers were
> moved before PROPERTIES drawers ending up in double PROPERTIES
> drawers where the second one is ignored (habit, ...) or just one
> LOGBOOK drawer followed by one ignored PROPERTIES drawer:
>
> * example heading with two PROPERTIES drawers
> :PROPERTIES:
> :CREATED:  [2014-08-02 Sat 11:37]
> :END:
> :LOGBOOK:...
> :PROPERTIES:
> :CREATED:  [2014-07-16 Mon 14:42]
> :STYLE: habit
> :END:
>
> * example heading with LOGBOOK before PROPERTIES and thus being ignored
> :LOGBOOK:...
> :PROPERTIES:
> :CREATED:  [2014-07-16 Mon 14:42]
> :STYLE: habit
> :END:
>
> (I am using (org-expiry-insinuate) to automatically create the
> PROPERTIES drawer with the CREATED line if this matters here.)
>
> This results in a big mess on my agenda and I had to fix those
> headings semi-manually. Very annoying!
>
> I don't have a clue, what causes this behavior since there is only a
> (large) sub-set of my headings that got this mix-up.

There has been an incompatible change for 8.3 about a month ago.  Since
then property drawers need "to be located right after a headline and its
planning line, when applicable."  See file etc/ORG-NEWS and commit
1aad53b.  Note also the org-repair-property-drawers function there.


HTH,  Marco
-- 
http://www.wahlzone.de
GPG: 0x0A3AE6F2




Re: [O] pdf images in html export

2014-11-12 Thread Marco Wahl
Andreas Leha  writes:

> how would I export an org file containing
>
>   [[file:./myimage.pdf]]
>
> to html so that a say png version myimage.pdf is inlined in the html
> which links to the pdf?
>
> I guess it should be possible to run imagemagick on all pdf links during
> export somehow.
 
You could introduce a relation of the pdf-filenames to the respective
thumb-filenames e.g. by using the suffix '_thumb'.  Before the export
the conversion tool would create the thumbs.

The org-file could reference the data as

[[file:./myimage.pdf][file:myimage_thumb.png]]

See the info page (info "(org)Images in HTML export")?

Untested.  I just accidentially browsed that info page yesterday.


HTH,  Marco




[O] [PATCH] org-eww.el: Fix org-store-link for eww-mode

2014-11-26 Thread Marco Wahl
Hello!

Find a small fix to keep up with the eww evolvement.

I'll try to push the patch immediately since it is so small, resides in
contrib and already helps me.


But of course any comments are welcome, as always, thanks.
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2
>From 00500afb8ced99ccaf9334ca183bc572bb6ae29a Mon Sep 17 00:00:00 2001
From: Marco Wahl 
Date: Wed, 26 Nov 2014 10:38:43 +0100
Subject: [PATCH] org-eww.el: Fix org-store-link for eww-mode

* contrib/lisp/org-eww.el (org-eww-store-link): Depending on the Emacs
  version use the appropriate interface to store the url of an
  eww-mode buffer.

This patch fixes the org-store-link feature for eww-mode buffers for
Emacs 25.
---
 contrib/lisp/org-eww.el | 9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/org-eww.el b/contrib/lisp/org-eww.el
index 26a1e09..08dac11 100644
--- a/contrib/lisp/org-eww.el
+++ b/contrib/lisp/org-eww.el
@@ -54,9 +54,14 @@
   (when (eq major-mode 'eww-mode)
 (org-store-link-props
  :type "eww"
- :link eww-current-url
+ :link (if (< emacs-major-version 25)
+	   eww-current-url
+	 (eww-current-url))
  :url (url-view-url t)
- :description (or eww-current-title eww-current-url
+ :description (if (< emacs-major-version 25)
+		  (or eww-current-title eww-current-url)
+		(or (plist-get eww-data :title)
+			  (eww-current-url))
 
 
 ;; Some auxiliary functions concerning links in eww buffers
-- 
2.1.3



Re: [O] (org-agenda-to-appt) with sexp org-diary-class entry?

2014-12-05 Thread Marco Wahl
Hi Benjamin,

> None of my events which are scheduled with org-diary-class sexp entries
> seem to get pushed with (org-agenda-to-appt) (for triggering alarms
> etc.).  Is this simply a limitation of sexp org-diary-class?  Is there
> are workaround, or would it be better to simply schedule such events as
> (infinitely) repeating?

out of curiosity I tried out that org-diary-class thing.  (Org-mode
version 8.3beta)

The doc says about org-diary-class:

#v+
This function is obsolete since ;
use `org-class' instead.
#v-

So I used org-class.  I don't know if this really matters.  If not then
please just take it as a side note.

With the subtree

#v+
* org-class appointment
  <%%(org-class 2014 12 1 2014 12 23 5 )>
#v-

in one of my agenda-files I get the respective line

#v+
  appts:  org-class appointment
#v-

in the agenda.

Does this help?


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] (org-agenda-to-appt) with sexp org-diary-class entry?

2014-12-08 Thread Marco Wahl
Hi Benjamin,

> Thanks, Marco. Well, it at least helps to update me to a non-obsolete
> sexp method.
>
> I have no idea how to check what's actually been pushed to `appt` to see
> whether the updated org-class really behaves differently to
> org-diary-class in this respect.  (So I'll have to see tomorrow how
> `appt` behaves.)

You can use

M-x appt-delete

for scanning through your current appointments.  For each appointment
you will be asked for deletion.  Saying 'no' just keeps the appointment.

You might even look at variable `appt-time-msg-list' or use the
following function to see a list of your current appointments.

#v+
(defun mw-appt-display-list ()
  "List the current appointments.

  This is an amendment to the appt-family of functions.  Sometimes
  you might want to know the upcoming appts."
  (interactive)
  (if (not (boundp 'appt-time-msg-list))
  (message "`appt-time-msg-list' not even bound.  Consider M-x 
org-agenda-to-appt.")
(if appt-time-msg-list
(let ((tmp-msg-list appt-time-msg-list)
  (message-string ""))
  (dolist (element tmp-msg-list)
(setq message-string
  (concat message-string
  (prin1-to-string
   (substring-no-properties (cadr element) 0))
  "\n")))
  (if (< 0 (length message-string))
  (message (substring message-string 0 -1
  (message "No appts scheduled for today."
#v-


Best wishes,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Bug: org-dblock-update expects function calendar-absolute-from-iso, which no longer exists

2015-01-12 Thread Marco Wahl
Christoph LANGE  writes:

> Hi all,
>
> I'm using clocktables to compute my working hours per calendar week,
> e.g.
>
> #+NAME: T2014-W50
> #+BEGIN: clocktable :block 2014-W50 :maxlevel 0 :scope ("default.org") 
>
> :indent
>
> #+CAPTION: Clock summary at [2015-01-12 Mon 09:47], for week 2014-W50.
> | File| Headline | Time|
>
> |-+--+-|
> | | ALL *Total time* | *47:28* |
> |-+--+-|
> | default.org | *File time*  | *47:28* |
> #+END:
>
> For a while I haven't been able to run org-dblock-update on these tables
> because the clocktable code calls the calendar-absolute-from-iso
> function, which seems to have been abolished in preparation of Emacs 25.
>
> The following workaround helps:
>
> (defalias 'calendar-absolute-from-iso 'calendar-iso-to-absolute)

Thanks for your report and the workaround.

I had a similar issue some days ago.  The reson for these issues is that
the Emacs guys finally dropped some functions in the calendar which have
been marked obsolete for a long time.

I try to fix the concrete issue immediately.

If I find time I try to fix all similar issues.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Bug: org-dblock-update expects function calendar-absolute-from-iso, which no longer exists

2015-01-12 Thread Marco Wahl
Marco Wahl  writes:

> Christoph LANGE  writes:
>>[...]

>> The following workaround helps:
>>
>> (defalias 'calendar-absolute-from-iso 'calendar-iso-to-absolute)

> [...]
>
> I try to fix the concrete issue immediately.

Fixed, I think.  The workaround should be not necessary any more for the
current head version.


Ciao
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Order of drawers will be checked i nnew org version

2015-01-12 Thread Marco Wahl
Hi!

"Stefan-W. Hahn"  writes:

> I tried current version of org-mode:
>
>   commit 10954832e5168c301e4c0d266089a5f77062212b
>   Author: Nicolas Goaziou 
>   Date:   Thu Jan 1 21:37:35 2015 +0100
>
> and got the problem that most of my drawers are now regarded as
> misformatted and I'm asked for repair.
>
> Adding a new property to a task checks if the :PROPERTIES: drawer is the
> first drawer after the task headline. In my case this is in most cases not
> the case, because most of my task have a :LOGBOOK: oder :CLOCK: drawer at
> first after headline.
>
> Is this intended?

Yes.  See http://permalink.gmane.org/gmane.emacs.orgmode/91752 for a
relevant thread.

> I didn't found anything in the code or documentation.  [...]

See etc/ORG-NEWS or
http://orgmode.org/cgit.cgi/org-mode.git/plain/etc/ORG-NEWS.  Find there
also a repair function (thanks to Nicolas.)

> In any case this breaks nearly all my org-files.


HTH,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




[O] [Bug] org-drill leeches

2015-01-13 Thread Marco Wahl
Hi group and Paul,

some of my drill items have become tagged as leech.  This causes the
next drill session to fail.

I fixed this like so:

#v+
1 file changed, 1 insertion(+), 1 deletion(-)
 contrib/lisp/org-drill.el | 2 +-

Modified   contrib/lisp/org-drill.el
diff --git a/contrib/lisp/org-drill.el b/contrib/lisp/org-drill.el
index 93c37e3..2fe6243 100644
--- a/contrib/lisp/org-drill.el
+++ b/contrib/lisp/org-drill.el
@@ -2439,7 +2439,7 @@ that many days)."
  (timestamp
   (- (org-time-stamp-to-now timestamp)))
  (use-last-interval-p
-  (+ (org-drill-entry-days-overdue)
+  (+ (or (org-drill-entry-days-overdue) 0)
  (read (or (org-entry-get (point) "DRILL_LAST_INTERVAL") "0"
  (t nil
#v-

On the code level the bug occurs when '(org-drill-entry-days-overdue)'
returns nil.

I'm not sure if this is a sane fix.  Could you give it a glance, please?


Best regards, Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




[O] Following a date in a drawer fails

2015-01-20 Thread Marco Wahl
Hi,

I just started to use appointment entries like

* Angela Merkel   :breakfast:
  :PROPERTIES:
  :APPT_DATE: <2015-01-21 Wed 09:00>
  :APPT_LOCA: Berlin
  :END:

I would have expected to be able to follow the link to the date with M-x
org-open-at-point (as always.)  But this is not the case.

Message: org-open-at-point: Wrong type argument: char-or-string-p, nil

Is this behavior intentional?  Am I missing something?


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Following a date in a drawer fails

2015-01-20 Thread Marco Wahl
Nicolas Goaziou  writes:
> Marco Wahl  writes:
>
>> I just started to use appointment entries like
>>
>> * Angela Merkel   :breakfast:
>>   :PROPERTIES:
>>   :APPT_DATE: <2015-01-21 Wed 09:00>
>>   :APPT_LOCA: Berlin
>>   :END:
>>
>> I would have expected to be able to follow the link to the date with M-x
>> org-open-at-point (as always.)  But this is not the case.
>>
>> Message: org-open-at-point: Wrong type argument: char-or-string-p, nil
>
> Fixed.

Thanks!

>> Is this behavior intentional?  Am I missing something?
>
> Actually, this is an ambiguous situation. As a convenient feature,
> `org-open-link' is sloppy and can follow links and timestamps in
> comments and properties drawers.
>
> However, syntax doesn't allow timestamps in properties drawers, so
> behaviour is undefined if you expect to use it for anything else (e.g.,
> adding the entry in the agenda).

Ahh, good to know.  Actually I counted on those entries appearing in the
agenda.  So it's time to change my appointment notations.


Ciao,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Wanderlust and org-capture

2015-01-23 Thread Marco Wahl
Hi,

Cédric Chépied  writes:

> I'm using wanderlust to read and write emails in emacs. I wanted to use
> org-capture to add TODOs in my org files.
>
> In org-capture-templates documentation there is a line talking about 
> wanderlust
> (I think):
>
> vm, wl, mh, mew, rmail, |  %:type %:subject %:message-id
>
> But I was unable to use %:type or %:whatever in my template to capture
> wanderlust messages.
>
> I found an org-rmail.el file in org-mode sources but I couldn't find org-wl.el
> and I assumed this is the reason why I can't use org-capture.

There is ./contrib/lisp/org-wl.el at least in the current master branch.

See (info "(org)Installation") for setting the load-path.  Then you can
activate module org-wl using M-x customize-variable org-modules.

> I wrote an
> org-wl.el file based on org-rmail. you can find sources here:
> https://github.com/chep/org-wl
> Feel free to comment it and to use it if you want.

A comparison with the existing org-wl could be interesting.


HTH and best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Wanderlust and org-capture

2015-01-26 Thread Marco Wahl
>> ... ./contrib/lisp/org-wl.el at least in the current master branch.
>
> This file is not in my org files integrated in emacs. That's why I didn't find
> it. Are there many differences between integrated org (emacs git repo), elpa
> package and git repository?

I think one can regard the contrib directory as a source of extra
modules.  With this view the difference between git orgmode and the elpa
orgmode package (and also the orgmode that comes with Emacs) is the
development that lies between the versions.  AFAICS the orgmode elpa
package is very close to the HEAD in the orgmode git repo.

IIRC the contrib directory is a place for experimentation.  The
modules might need further testing before they find their way into a
release.  Further there might be licensing issues.

BTW I just found http://orgmode.org/worg/org-contrib/ which has a list
of modules of the contrib directory.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] org-clock-select-task: how does it work?

2015-01-28 Thread Marco Wahl
Hi!

torys.ander...@gmail.com (Tory S. Anderson) writes:

> 2) As Peter originally mentioned, I see only five tasks on the list; I
> have more than that each week. Can this be expanded with some
> variable?

AFAICS this is variable org-clock-history-length.

> Having looked into problem 2 by going to `org-clock-select-task` in
> 'org-clock.el', I found the following which is mostly beyond my
> current elisp capabilities:
>
>   (insert (org-add-props "Recent Tasks\n" nil 'face 'bold))
>   (mapc
>(lambda (m)
>  (when (marker-buffer m)
>(setq i (1+ i)
>  s (org-clock-insert-selection-line
> (if (< i 10)
> (+ i ?0)
>   (+ i (- ?A 10))) m))
>(if (fboundp 'int-to-char) (setf (car s) (int-to-char (car s
>(push s sel-list)))
>och)
>
> While I'd love it if someone could explain to me what the "?" operator
> means with "?0" and "?A", one thing I get out of this is that a list
> length of something less than 10 seems hardcoded (right?). What would
> it take to be able customize this with a variable?

?0 is the integer representing character "0" see (info "(elisp)Basic
Char Syntax").  The above is a possibility to map the numbers 0, 1,...,
9, 10, ... onto the characters '1', '2', ..., 'A', 'B',  AFAICS.

The letters should come into play when you have more than 9 items in the
clock-history.


HTH,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] http://orgmode.org/worg/code/org-info-js/ broken

2015-01-29 Thread Marco Wahl
Hi Svjatoslav,

> Button "Show Org source" on page
> http://orgmode.org/worg/code/org-info-js/ 
> does not work.

my first thought was that the issue could be an outdated compressed
version the javascript file.  This thought was a bit esoteric and
actually the compression was not to blame.

> When I click it, some text quickly flashes and disappears.
> Tried on recent Google Chrome and Opera browsers.

Same for conkeror.

I think the most important question here is what to expect from pressing
the button.  AFAICS the Org source is
http://orgmode.org/worg/code/org-info-js/index.org.

Hopefully someone will explain which action the button is supposed to
trigger.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Table: Insert Cell

2015-01-29 Thread Marco Wahl
jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes:
> Tory S. Anderson writes:
>
>> Does anyone know a solution for the surely common case of needing to
>> insert a cell (not a column or row) into an orgmode table?
>> Spreadsheet programs allow the option of pushing the column down or
>> pushing the cells right in this case. How can this be achieved in
>> orgmode? 
>
> I do not think that there is a command for that. For pushing the row,
> it is trivial just write the new cell
>
> | 1 | 2 | 3 |
> | 4 | 5 | 6 |
> | 7 | 8 | 9 |
>
> | 1 | 2 | 3 |
> | 4 | here|5 | 6 |
> | 7 | 8 | 9 |
>
> [...]
>
> For pushing the column, you can use kill-rectangle after inserting
> another row
>
> | 1 | 2 | 3 |
> | 4 | 5 | 6 |
> | 7 | 8 | 9 |
>
> TAB on the 9 cell
>[...]
> Finally, C-c C-c, gives you what you want
>
> | 1 | 2 | 3 |
> | 4 |   | 6 |
> | 7 | 5 | 9 |
> |   | 8 |   |

This could be the day of org-table-transpose-table-at-point.

 | 1 | 2 | 3 |
 | 4 | 5 | 6 |
 | 7 | 8 | 9 |

org-table-transpose-table-at-point

 | 1 | 4 | 7 |
 | 2 | 5 | 8 |
 | 3 | 6 | 9 |

 | 1 | 4 | 7 |
 | 2 || 5 | 8 |
 | 3 | 6 | 9 |

C-c C-c

 | 1 | 4 | 7 |   |
 | 2 |   | 5 | 8 |
 | 3 | 6 | 9 |   |

org-table-transpose-table-at-point

 | 1 | 2 | 3 |
 | 4 |   | 6 |
 | 7 | 5 | 9 |
 |   | 8 |   |


Regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] http://orgmode.org/worg/code/org-info-js/ broken

2015-01-30 Thread Marco Wahl
Svjatoslav Agejenko  writes:

> Button "Show Org source" on page
> http://orgmode.org/worg/code/org-info-js/ 
> does not work.

You could try the explicit
http://orgmode.org/worg/code/org-info-js/index.html instead.  The
button's action depends on the concrete form of the URL in particular
the substring "html".


HTH,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] http://orgmode.org/worg/code/org-info-js/ broken

2015-02-02 Thread Marco Wahl
Hello!

>> Svjatoslav Agejenko  writes:
>> 
>> > Button "Show Org source" on page
>> > http://orgmode.org/worg/code/org-info-js/ 
>> > does not work.
>> 
>> You could try the explicit
>> http://orgmode.org/worg/code/org-info-js/index.html instead.  The
>> button's action depends on the concrete form of the URL in particular
>> the substring "html".
>
> That last link with explicit index.html seems to work. Still when
> searching Google for org-mode related things it directed me there:
> http://orgmode.org/worg/code/org-info-js/
>
> And this URL looks valid by itself. No hints anywhere that I shall use
> index.html suffix.

BTW also many other pages on worg have this button also
e.g. http://orgmode.org/worg/.  The relevant code in those pages is

#v+

function rpl(expr,a,b) {
  var i=0
  while (i!=-1) {
 i=expr.indexOf(a,i);
 if (i>=0) {
expr=expr.substring(0,i)+b+expr.substring(i+a.length);
i+=b.length;
 }
  }
  return expr
}

function show_org_source(){
   document.location.href = rpl(document.location.href,"html","org.html");
}

#v-

and it looks like a template.  A reasonable fix to make the button work
for URLs without suffix 'index.html' might be to change this code
accordingly.

Unfortunately my finding-fu was not enough to find the source of that
code.

> I hope whoever is responsible will fix this.

It's the community AFAICS.  Let's hope she will do something.


Best regards,  Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2




Re: [O] Multiple capture templates in file

2015-10-06 Thread Marco Wahl
Hi!

"tenspd137 ."  writes:

> I am trying to figure out how to store multiple capture templates in a
> file, have several files of related templates, and then load all the
> files stored in a directory.  For example, lets say I have two
> projects at work WorkProject1 and WorkProject2.  Then I have two files
> in a directory org-templates called WorkProj1Templates.el and
> WorkTemplates2.el.  How can I append the templates in these files to
> or capture templates?  In my main .emacs, I have:
>
> (setq org-capture-templates
>   '(("t" "Todo" entry (file+headline (concat org-directory
> "/default.org") "Tasks")
>  "* TODO %?")
> ("j" "Journal" entry (file+datetree (concat org-directory
> "/journal.org"))
>  "* %?\nEntered on %U\n")))
>
> I would like to then load the template files in org-templates.  That
> way, when a project ends, I can just yank the templates.  I have
> experimentally tried using add-to-list with org-capture-templates
> without success.  Either that can't be done or my syntax was wrong?

How could anyone tell if you don't show your attempt?

> Does anyone have any ideas?

What about this?

WorkProj1Templates.el:

#v+
(push '("1" "Todo" entry
(file+headline
 (concat org-directory "/WorkProj1.org")
 "Tasks")
"* TODO %?")
  org-capture-templates)
#v-

-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] PROPERTIES and LOGBOOK order

2015-10-10 Thread Marco Wahl
Hello John,

John J Foerch  writes:

> After a recent upgrade to org 8.3.2 (elpa 20150929) some of my org files
> were broken with respect to drawers.  They include headlines that have
> both attachments in a PROPERTIES drawer, and a LOGBOOK drawer.
> Sometimes the LOGBOOK was before PROPERTIES, and sometimes the other way
> around.
>
> In cases where LOGBOOK was before PROPERTIES, the command to view the
> attachments directory (C-c C-a f) would not recognize the existing
> PROPERTIES drawer, and create a new one instead with a new ID and a new
> empty attachments directory.  After I manually changed the order of the
> drawers so that PROPERTIES was first, the existing PROPERTIES drawer was
> again recognized and it worked as expected.

AFAICS you found an incompatible change of org 8.3.  See
http://orgmode.org/Changes.html or in etc/ORG-NEWS of a respective org
source tree.

-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] using org-agenda-view-columns-initially option, needs double quit to leave agenda?

2015-10-12 Thread Marco Wahl
Hi,

Xebar Saram  writes:

> Hi all
>
> i discovered today  the 'org-agenda-view-columns-initially' option and
> really like it. one annoying issue is that after i launch my agenda view ,
> in order to exit the agenda view i need to press 'q' twice. once to leave
> the column view which gets me back to the agenda view (non column) and then
> another 'q' to leave the agenda view

'q' is a way to switch from column view to non-column view.  I think
that's reasonable.

> is there anyway around this where 'q' in the agenda column view will close
> down the agenda view altogether?

If you really want you can advice 'org-agenda-quit' (which is bound to
'q' in the agenda) to always quit column view before all other action.

#v+
(advice-add
 'org-agenda-quit
 :before
 (lambda () (if org-agenda-columns-active (org-columns-quit
#v-

Another possibility would be to advice 'Q' like

#v+
(advice-add
 'org-agenda-Quit
 :before
 (lambda () (if org-agenda-columns-active (org-columns-quit
#v-

All not so well tested.

-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] bug in org-habits

2015-11-03 Thread Marco Wahl
"Mark A. Hershberger"  writes:

> org-habit.el is sensitive to the ordering PROPERTIES and SCHEDULED
> and expects them /in only/ the following order:
>
>  * TODO habit name
>  SCHEDULED: <2015-11-03 Tue 07:00 .+1d>
>  :PROPERTIES:
>  :LAST_REPEAT: [2015-11-02 Mon 07:54]
>  :STYLE: habit
>  :END:
>
> Any other ordering, or doubling of PROPERTIES (e.g. STYLE in one, LAST
> REPEAT in another) and the habit will show up as a simple scheduled item
> and not a habit in the agenda view.
>
> org-version: 8.3.2

Actually there has been introduced a constraint on the ordering planning
lines and property drawers in 8.3.  See http://orgmode.org/Changes.html.

This at least invalidates to use PROPERTIES before SCHEDULED afaics.


HTH
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] bug in org-habits

2015-11-03 Thread Marco Wahl
John Wiegley  writes:

>>>>>> Puneeth Chaganti  writes:
>
>>> Actually there has been introduced a constraint on the ordering planning
>>> lines and property drawers in 8.3. See http://orgmode.org/Changes.html.>
>>> This at least invalidates to use PROPERTIES before SCHEDULED afaics.
>
>> Yes, that is correct and you can use the `org-repair-property-drawers`
>> utility function provided to fix your org trees.
>
> I would very much like to see this constraint removed from 8.3. I have always
> preferred having SCHEDULED before PROPERTIES, as this is how all my Org files
> are arranged.

Actually what you describe _is_ the expected order for the 8.3 files.

> In fact, this one aspect of 8.3 has kept me at 8.2. I do not understand the
> need for such an abitrary restriction.

So this constraint on the order should not hold you back to move on to
8.3.

I can report that in my personal org practice this constraint never got
in my way.  Further I can't imagine a use case when the user can benefit
of a SCHEDULE line below a property drawer, but this might be a bit
personal.

I can say nothing about the technical view of having that constraint.


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Problems with org-drill

2015-12-02 Thread Marco Wahl
Sven Bretfeld  writes:

> I don't know how many of you guys use org-drill as vocabulary learning
> software. I have started some weeks ago to learn Norwegian. The concept
> and flexibility of the extension (contrib) are great. But there is a
> problem (bug?).
>
> During drill-sessions empty cards continue to show up. About 30-40% of
> the questions show an empty screen. These empty screens are fully
> counted as cards in the mini-buffer counter. I use to skip those "cards"
> with "s" but I have the feeling that this skips real questions which
> just are not displayed properly. This would mean I'm creating
> knowledge-gaps in each session.
>
> Editing these cards with "e" doesn't seems to work. It only stops the
> drill-session with the point in the line where I started. There seems to
> be no rule involved in those "empty screens" showing up. (But I have the
> feeling they often occur after I give a card score (0-5) differing from
> the score of the last question.) Neither can I see that there are
> malformed entries which could explain the phenomenon.
>
> Does anyone else have this problem and know how to fix it?

Yes and you can remove the line

(set-window-start nil window-start)

from defun org-toggle-latex-fragment in org.el for a fix.  I use this
fix for a while and have not seen any (unwanted) side effects yet.

The real issue may be somewhere else though.


HTH,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] [PATCH] New version of org-velocity

2015-12-15 Thread Marco Wahl
Hi Paul,

FWIW I like your package!  And thanks!

Paul Rodriguez  writes:

> This updates the version of org-velocity in contrib to the latest version.
>
> The new version supports an Ido-like style of refining searches
> interactively, and changes the default behavior to better accommodate users
> who use org-velocity for navigation instead of note-taking.
>
> Paul Rodriguez
>
> This updates the version of org-velocity in contrib to the latest version.
>
> The new version supports an Ido-like style of refining searches
> interactively, and changes the default behavior to better accommodate
> users who use org-velocity for navigation instead of note-taking.

May I update your package in the repo?


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] [PATCH] New version of org-velocity

2015-12-15 Thread Marco Wahl
Hi Paul,

> This updates the version of org-velocity in contrib to the latest
> version.
>
> The new version supports an Ido-like style of refining searches
> interactively, and changes the default behavior to better accommodate
> users who use org-velocity for navigation instead of note-taking.

I just pushed org-velocity 4.1 to maint and to master.


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] [Show Org source] button does not work

2016-01-13 Thread Marco Wahl
Nick Dokos  writes:

> Kynn Jones  writes:
>
>> The [Show Org source] button at the bottom of pages such as
>>
>> http://orgmode.org/worg/
>>
>> does not work.  Nothing happens when one clicks on it.  It's supposed
>> to execute the statement `show_org_source()`, but as far as I can
>> tell, the function `show_org_source` is not to be found in the page's
>> JS.
>>
>
> I can see the following (lines 63-79 of the page source):
>
> 
> function rpl(expr,a,b) {
>   var i=0
>   while (i!=-1) {
>  i=expr.indexOf(a,i);
>  if (i>=0) {
> expr=expr.substring(0,i)+b+expr.substring(i+a.length);
> i+=b.length;
>  }
>   }
>   return expr
> }
>
> function show_org_source(){
>document.location.href = rpl(document.location.href,"html","org.html");
> }
> 
>
>
> Try clicking the button on the following page:
>
>http://orgmode.org/worg/org-tutorials/org-outside-org.html
>
> It changes the location to
>
>http://orgmode.org/worg/org-tutorials/org-outside-org.org.html
>
> and loads it.
>
> http://orgmode.org/worg/ does not have a .html suffix so the rpl()
> function leaves it alone.
>
> This is with FF 43.0.3 on Fedora 22.

The desired behaviour of the [Show Org source] button for
http://orgmode.org/worg/ can be found at
http://orgmode.org/worg/index.html.


My 2 ct,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Seeing Actual Emphasis in Orgmode Buffer

2016-01-13 Thread Marco Wahl
Hi!

Kenneth Jacker  writes:

>> Are you sure you have a font that supports italic or boldface variants?
>>
>
> ​Hmmm ... not sure I know how to check that ...
>
> Might you suggest a "variable", "function"  or "menu item" that would​
>
> ​indicate whether the needed "font support" was there/enabled?
> ​
>
>> It works out of the box on my Emacs, but I didn't mess up with the
>> default font.
>
>
> ​I don't *think* I did anything with the "default font" either ...
>
> So you actually see the "bold" rendering in the "buffer" corresponding to
> the  ".org" file ​?
>
> ​If so, there is "hope" for me  ;-)​

Sure, always!  ;)

Maybe you get some insight if you do e.g. 'M-x customize-face italic'
and play with settings.


HTH
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Org Clock Error

2016-01-14 Thread Marco Wahl
Nick Dokos  writes:

> Mike McLean  writes:
>
>> Hello
>>
>> In the last few days I started getting an error when moving tasks to the 
>> DONE state.
>>
>> I have ~(setq org-clock-out-when-done t)~ in my Emacs configuration. 
>>
>> I get the following back trace when I mark a task as done:
>>
>> Debugger entered--Lisp error: (void-variable org-state)
>>   (member org-state org-done-keywords)
>>   ...
>>   org-clock-out-if-current()
>>   run-hooks(org-after-todo-state-change-hook)
>>   ...
>>   org-todo(nil)
>
> This is probably a lexical binding problem: org-state is supposed to be
> dynamically bound by org-todo and then used by org-clock-out-if-current,
> but it seems that the communication is lost.
>
> I'm not sure what the solution is (I haven't really followed the
> upstream discussion), but I wonder if adding
>
> (defvar org-state)
>
> in org.el, just before the
>
> (defun org-todo ...
>
> line is enough to resolve the problem (basically letting org-todo know
> that org-state is dynamically bound).
>
> Untested and possibly wrong.

Manually tested your suggestion and it fixes the issue of '(void-variable
org-state)'.

Technically I'm not sure what a reliable fix looks like.  There is
e.g. already the line

(defvar org-state) ;; dynamically scoped into this function

in org-clock.el.


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Org Clock Error

2016-01-15 Thread Marco Wahl

>>> I have ~(setq org-clock-out-when-done t)~ in my Emacs configuration.
>>> 
>>> I get the following back trace when I mark a task as done:
>>> 
>>> Debugger entered--Lisp error: (void-variable org-state)
>>>
...
> OK - here's some actual research for a change. I was wondering what
>
> (defvar org-state)
>
> actually does, so I looked at the source code for defvar. It contains
> this comment:
>
> ,
> |   else if (!NILP (Vinternal_interpreter_environment)
> |&& !XSYMBOL (sym)->declared_special)
> | /* A simple (defvar foo) with lexical scoping does "nothing" except
> |declare that var to be dynamically scoped *locally* (i.e. within
> |the current file or let-block).  */
> | Vinternal_interpreter_environment
> |   = Fcons (sym, Vinternal_interpreter_environment);
> |   else
> `
>
> so it seems to be only active *for that file*: you need "(defvar org-state)" 
> in
> each file that uses the variable.

Thanks for sharing your insights!  This looks good to me.  I just
committed your suggestion.


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Recurring todos gets closed and not re-scheduled

2016-01-15 Thread Marco Wahl
Hi!

Karl Voit  writes:

> I recently updated Org to d85ff34086e5398b7c83cf66694f3f7d09695ce8
> (git).
>
> When I mark following recurring todos as done, all of them gets
> marked as DONE and CLOSED.
>
> ,[ examples before being marked as DONE ]
> | *** NEXT Test task with scheduled
> | SCHEDULED: <2016-01-17 Sun +1w>
> | :PROPERTIES:
> | :CREATED:  [2016-01-15 Fri 15:06]
> | :END:
> |
> | *** NEXT Test task with deadline

[...]

>
> ,[ examples after being marked as DONE ]
> | *** DONE Test task with scheduled
> | CLOSED: [2016-01-15 Fri 15:15] SCHEDULED: <2016-01-17 Sun +1w>
> | :PROPERTIES:
> | :CREATED:  [2016-01-15 Fri 15:06]
> | :END:
> | :LOGBOOK:
> | - State "DONE"   from "NEXT"   [2016-01-15 Fri 15:15]
> | :END:
> |
> | *** DONE Test task with deadline

[...]

> The previous behavior was different: recurring todos got
> re-scheduled for the next iteration. I need this behavior back
> otherwise recurring todos are of no use to me.

[...]

Possibly you faced the same issue as stated in
http://permalink.gmane.org/gmane.emacs.orgmode/104179.

This issue is fixed in the current git-version AFAICT.  It was an issue
with the change to lexical-scoping.  I recommend you to try the new
version.


Bye,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Weirdness with Agenda and "C-u r"

2016-01-16 Thread Marco Wahl
Eric Abrahamsen  writes:

> Something seems to have gone off with the `org-tags-view' Agenda view:
> if I hit "C-u r" to search with another string, I get this traceback:
>
> Debugger entered--Lisp error: (invalid-function 4)
>   (4)
>   (org-tags-view (4) (if current-prefix-arg nil "publishing"))
>   (let nil (org-tags-view (4) (if current-prefix-arg nil "publishing")))
>   eval((let nil (org-tags-view (4) (if current-prefix-arg nil "publishing"
>   org-let(nil (org-tags-view (4) (if current-prefix-arg nil "publishing")))
>   org-agenda-redo((4))
>   funcall-interactively(org-agenda-redo (4))
>   call-interactively(org-agenda-redo nil nil)
>   command-execute(org-agenda-redo)
>
> I tried e-debugging `org-agenda-redo', but something magic happens when
> it gets to the org-let, and no light was shed.

> I seem to remember there have been some changes to the tag matching code
> recently -- maybe that's it? Happy to bisect if necessary.

FWIW I cannot reproduce the behavior you describe with commit 164555b4
having some files in `org-agenda-files' with some tags.

Concretely with file

#v+
* One  :tag1:

One.

* Two  :tag2:

Two.
#v-

in `org-agenda-files' and the actions

#v+
M-x org-tags-view tag1
C-u r tag2
#v-

the agenda

#v+
Headlines with TAGS match: tag2
Press ‘C-u r’ to search again with new search string
  tmp:Two :tag2:
#v-

appears.


HTH,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Scope issue: "SCHEDULED/DEADLINE" in blocks are being evaluated

2016-01-17 Thread Marco Wahl
Hi Karl!

>> Karl Voit  writes:

[...]

> Unfortunately, this fix (or any other commit?) prevents my
> non-recurring tasks to be completed when I got "DEADLINE" or
> "SCHEDULED" in the body text within blocks or comments.

> It's an edge-case but it should be fixed. When I do mark the following three
> example headers as done ...
>
> *** NEXT test with quote
>
> #+BEGIN_QUOTE
> ,[ examples ]
> | DEADLINE: <2016-01-31 Sun +1w>
> `
> #+END_QUOTE
>
>
> *** NEXT test with example
>
> #+BEGIN_EXAMPLE
> ,[ examples ]
> | DEADLINE: <2016-01-31 Sun +1w>
> `
> #+END_EXAMPLE
>
>
> *** NEXT test with :
>
> : ,[ examples ]
> : | DEADLINE: <2016-01-31 Sun +1w>
> : `

I can reproduce your statement.  Even the subtree containing just a
repeater without string DEADLINE or SCHEDULED does not get completed.

--8<---cut here---start->8---

* TODO Thing

#+BEGIN_QUOTE
<2016-01-01 Sun +1w>
#+END_QUOTE

--8<---cut here---end--->8---

I agree with you that this behavior is unfortunate.

AFAICS there is nothing yet in the documentation about this case.  This
means we can define a behavior.  What about the requirement:

Do neither touch nor take into account any date contained in any block
of an item for progressing the item.

I think this requirement could be discussed, corrected, refined and
finally be implemented.

Meanwhile you need to take care of such items and rewrite the todo
keyword manually.  Org files are still text files. ;)

BTW the documentation of `org-todo' has: "With a numeric prefix arg of
-1, cancel repeater to allow marking as DONE."

> So I guess the new scope is too generous.

I bet that this issue has been there all the time.


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Losing trust in Org: stable org-mode releases and unit tests for basic functionality

2016-01-17 Thread Marco Wahl
Karl Voit  writes:

> So: what should I do to get reliable Org-mode in future to minimize
> the chances of losing tasks or my trust in Org?

I think Achim says the right things.

Further I think you can improve Org's reliability (and your perception
on it) by investing more energy into Org.  Obviously you already do
invest energy into Org as your contributions on this list show.  You
cold go ahead and start reading Org's code, writing tests, etc.  Each
action would give you more confidence with Org.


My 2 ct,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Scope issue: "SCHEDULED/DEADLINE" in blocks are being evaluated

2016-01-17 Thread Marco Wahl
Rasmus  writes:

> Karl Voit  writes:
>
>> Unfortunately, this fix (or any other commit?) prevents my
>> non-recurring tasks to be completed when I got "DEADLINE" or
>> "SCHEDULED" in the body text within blocks or comments.
>
> Isn't this the this feature?  The Org syntax¹ specifies:
> Footnotes: 
> ¹   
> http://orgmode.org/worg/dev/org-syntax.html#Clock,_Diary_Sexp_and_Planning

IIUC the issue here is solely for dates contained within a block.

The behavior of Org for those dates (in particular when a repeater like
'+1w' is involved) on progressing the todo is unspecified AFAICS.


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Losing trust in Org: stable org-mode releases and unit tests for basic functionality

2016-01-19 Thread Marco Wahl
Hi Karl,

> * Marco Wahl  wrote:
>>
>> Further I think you can improve Org's reliability (and your perception
>> on it) by investing more energy into Org.  Obviously you already do
>> invest energy into Org as your contributions on this list show.  You
>> cold go ahead and start reading Org's code, writing tests, etc.  Each
>> action would give you more confidence with Org.
>
> I can follow your thoughts here.

> Unfortunately, my elisp knowledge is still to basic to think of
> writing ERT tests for my typical use-cases and add them to
> org-mode/testing/list/* :-(

Hopefully you will find time to dig into elisp!

> I was not able to even locate a simple "mark a simple recurring todo
> as done"-test in the current testset. Is it true, that there is no
> such test so far?

I also could not find such test.  This means potential for more tests.


Best wishes,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] org-attach-commit optional

2016-02-11 Thread Marco Wahl
Hi!

John J Foerch  writes:

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

I think this is a good idea since it extends the user's possibility.

Further it looks natural to me to do *one* commit for a note which has
attached some fresh files.


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] org-bbdb-anniversaries, bbdb v3

2016-03-08 Thread Marco Wahl
Hi,

> should I expect org-bbdb-anniversaries to work with bbdb v3? There was a
> bit of discussion a couple of years ago and in org-bbdb.el are some
> references to bbdb v3.

Currently I happily use (bbdb-version)"BBDB version 3.1.2" to store
anniversaries which appear in my agenda with (org-version)"8.3.3".

BTW I use `org-bbdb-anniversaries-future'.  See section "Anniversaries
from BBDB" in the info documentation (info "(org) Weekly/daily agenda").


Best regards,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] seeking advice on use of drawers vs blocks

2016-04-07 Thread Marco Wahl
Christian Wittern  writes:

>> On the third hand, have you considered wrapping a block in a drawer?

> No, I had not considered this.  Let me play around with that idea for a
> while. Is this syntactically allowed? I remember there was a document
> discussed a while ago that would define org syntax, but I can't remember now
> where this document is.  Does anybody remember?

http://orgmode.org/worg/dev/org-syntax.html See "Drawers and Property
Drawers".


HTH,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] Export to OpenDocument text doesn't work in org-mode 8.3.4

2016-04-21 Thread Marco Wahl
Lohan G  writes:

> I am running org-mode version 8.3.4 with Emacs 24.5.1. I believe this is
> the latest stable version of org-mode. I want to export some of my org
> files to Open Document format. But it does not show the option to export
> to Open Document ("export as OpenDocument Text")
>
> BUT, I got another machine that runs org-mode 7.9.3f with Emacs 24.3.1
> and it shows this option among several other exports including Doc Book
> and LaTex.
>
> What should I do to enable this option in the latest version of org-mode?

Quick guess: You want to look at
http://comments.gmane.org/gmane.emacs.orgmode/106198.


Regards,
-- 
Marco




Re: [O] feature proposal. Kill and yank columns

2016-04-28 Thread Marco Wahl
Hi!

> I know that I can delete columns but I miss a function which would
> *kill* a column,  put it in the some ring (or register) and paste it.
>
> I do this my marking the content of a column and use kill-rectangle and
> yank-rectangle but I find such a solution which needs the mark,
> cumbersome.

> It also seems a subject which comes up regularly. Is this so difficult
> to implement?

Some time ago I wrote this function:

(defun mw-org-table-mark-column ()
  "Mark the column containing point.
This works only in org tables.

For tables with horizontal lines this function can fail."
  (interactive)
  (unless (org-at-table-p) (user-error "Not at a table"))
  (org-table-find-dataline)
  (org-table-check-inside-data-field)
  (let* ((col (org-table-current-column))
 (beg (org-table-begin))
 (end (org-table-end)))
(goto-char beg)
(org-table-goto-column col)
(re-search-backward "|" nil t)
(push-mark)
(goto-char (1- end))
(org-table-goto-column (1+ col))
(re-search-backward "|" nil t)
(exchange-point-and-mark)))

If you do M-x mw-org-table-mark-column followed by C-x SPACE in a
table-cell you (hopefully) the column gets marked.

This might be a start.


HTH,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] looking for a variable which allows formatting the agenda clock report

2016-05-11 Thread Marco Wahl
Hi!

> I could not find a variable which allows formatting the clock report
> that is created in the org agenda by "v R".
> Any quick pointer to such one or other ideas?

org-agenda-clockreport-parameter-plist


Quick,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] looking for a variable which allows formatting the agenda clock report

2016-05-11 Thread Marco Wahl
Hi Rainer,

>>> I could not find a variable which allows formatting the clock report
>>> that is created in the org agenda by "v R".
>>> Any quick pointer to such one or other ideas?
>>
>> org-agenda-clockreport-parameter-plist

> Thanks Marco,
>
> now my question is how can I extract the category of a clock entry and
> display it in the report? I tried a bit with properties but have no
> real clue. Can somebody help here?

You can filter a certain category for the clock report afaics.

E.g.

org-agenda-clockreport-parameter-plist value

(:link t :maxlevel 2 :tags "+CATEGORY=\"busi\"")

only takes the clockings from items in category "busi" for the
org-agenda-clockreport.


HTH,
-- 
Marco Wahl
GPG: 0x49010A040A3AE6F2




Re: [O] org-notify: Need to get notifications at the start time of the task (in addition to the deadline)

2016-06-05 Thread Marco Wahl
Hi Amit,

> I need a way to get notifications at the time of starting a task or at
> the start of the meeting (i.e. the SCHEDULED timestamp). Currently I
> know of only getting notifications for the DEADLINE timestamp. However,
> it will be more productive for me to get notification to tell me to
> start working on a task (or attend a meeting).

Have you tried "Appointment reminders"?  See (info "(org) Weekly/daily
agenda").


HTH,
-- 
http://pgp.mit.edu/pks/lookup?search=0x49010A040A3AE6F2





Re: [O] org-notify: Need to get notifications at the start time of the task (in addition to the deadline)

2016-06-06 Thread Marco Wahl
>>> I need a way to get notifications at the time of starting a task or at
>>> the start of the meeting (i.e. the SCHEDULED timestamp). Currently I
>>> know of only getting notifications for the DEADLINE timestamp. However,
>>> it will be more productive for me to get notification to tell me to
>>> start working on a task (or attend a meeting).
>>
>> Have you tried "Appointment reminders"?  See (info "(org) Weekly/daily
>> agenda").
>
> Thanks Marco. Yes, appointment reminders will work for me. Any idea how to
> configure them in such a way that I get popups? Popups are helpful
> especially when my focus is not on Emacs. Or even when I am connected to
> a remote desktop (say through Citrix).

http://emacs-fu.blogspot.de/2009/11/showing-pop-ups.html
looks promising.


hth,
-- 
http://pgp.mit.edu/pks/lookup?search=0x49010A040A3AE6F2




Re: [O] org-get-tags-at

2016-06-09 Thread Marco Wahl
Hi Fabrice,

> I'm trying to program some stuff of my own and
> either I misunderstand the documentation or something is wrong
> with  #'org-get-tags-at.
>
> I have a heading:
>
> * Bar   :foo:bar:baz:
>
> (org-get-tags-at)
> while on the heading returns ("baz")
> I would expect ("foo" "bar" "baz")
>
> What is the reason for tat result?

That was a bug and has been fixed now AFAICT.


Thanks for caring, best regards,
-- 
Marco Wahl -- Freelancer
GPG: 0x49010A040A3AE6F2




  1   2   3   4   5   >