Re: [O] how to make relative file links?

2013-11-05 Thread David Belohrad
ups, second test. it really works. I have messed up settings on two
computers, one had adaptive and one absolute setting of this variable. 

sorry for the mess.

d..


Nick Dokos  writes:

> David Belohrad  writes:
>
>> Dear all,
>>
>> i've just noticed one annoying thing. When I specify the relative file
>> link by org-insert-link, then I specify 'file:' , then i specify
>> filename with relative path, the function converts the relative path to
>> absolute path. so when i move my org files into another location,
>> well...
>>
>> is there any way how to tell to org-store-link (and as well to %a in
>> org-capture templates) to specify link path relative to the file the
>> link is stored in?
>>
>> respectively: if file contains many links, how can i assure file: links
>> portability when entire org tree changes location?
>>
>> many thanks
>>
>> david
>
> Does this help?
>
> ,
> | org-link-file-path-type is a variable defined in `org.el'.
> | Its value is adaptive
> | 
> | Documentation:
> | How the path name in file links should be stored.
> | Valid values are:
> | 
> | relative  Relative to the current directory, i.e. the directory of the file
> |   into which the link is being inserted.
> | absolute  Absolute path, if possible with ~ for home directory.
> | noabbrev  Absolute path, no abbreviation of home directory.
> | adaptive  Use relative path for files in the current directory and sub-
> |   directories of it.  For other files, use an absolute path.
> | 
> | You can customize this variable.
> | 
> | [back]
> `
>
> Nick



Re: [O] how to make relative file links?

2013-11-05 Thread David Belohrad
i have it set to adaptive, but always finish with absolute paths, even
if the link is into sub-directory of directory, where the current org file is.

Nick Dokos  writes:

> David Belohrad  writes:
>
>> Dear all,
>>
>> i've just noticed one annoying thing. When I specify the relative file
>> link by org-insert-link, then I specify 'file:' , then i specify
>> filename with relative path, the function converts the relative path to
>> absolute path. so when i move my org files into another location,
>> well...
>>
>> is there any way how to tell to org-store-link (and as well to %a in
>> org-capture templates) to specify link path relative to the file the
>> link is stored in?
>>
>> respectively: if file contains many links, how can i assure file: links
>> portability when entire org tree changes location?
>>
>> many thanks
>>
>> david
>
> Does this help?
>
> ,
> | org-link-file-path-type is a variable defined in `org.el'.
> | Its value is adaptive
> | 
> | Documentation:
> | How the path name in file links should be stored.
> | Valid values are:
> | 
> | relative  Relative to the current directory, i.e. the directory of the file
> |   into which the link is being inserted.
> | absolute  Absolute path, if possible with ~ for home directory.
> | noabbrev  Absolute path, no abbreviation of home directory.
> | adaptive  Use relative path for files in the current directory and sub-
> |   directories of it.  For other files, use an absolute path.
> | 
> | You can customize this variable.
> | 
> | [back]
> `
>
> Nick



[O] (no subject)

2013-11-05 Thread Cecil Westerhof
At the moment I get something like this:
* Hours Today
#+BEGIN: clocktable :maxlevel 2 :scope subtree
Clock summary at [2013-11-04 Mon 15:53]

| Headline  | Time   |  |
|---++--|
| *Total time*  | *6:35* |  |
|---++--|
| Hours Today   | 6:35   |  |
| Workshop shell scripting  || 2:12 |
| Security Intake   || 2:39 |
| Internal Project  || 1:44 |
#+END:

*** Workshop shell scripting
CLOCK: [2013-11-04 Mon 13:49]--[2013-11-04 Mon 13:56] =>  0:07
CLOCK: [2013-11-04 Mon 11:03]--[2013-11-04 Mon 11:55] =>  0:52
CLOCK: [2013-11-04 Mon 08:45]--[2013-11-04 Mon 09:58] =>  1:13
*** Security Intake
CLOCK: [2013-11-04 Mon 15:05]--[2013-11-04 Mon 15:45] =>  0:40
CLOCK: [2013-11-04 Mon 13:56]--[2013-11-04 Mon 14:01] =>  0:05
CLOCK: [2013-11-04 Mon 11:55]--[2013-11-04 Mon 13:49] =>  1:54
*** Internal Project
CLOCK: [2013-11-04 Mon 14:26]--[2013-11-04 Mon 15:05] =>  0:39
CLOCK: [2013-11-04 Mon 09:58]--[2013-11-04 Mon 11:03] =>  1:05


But because ‘Hours Today’ already is a summation, I would like to get
something like this:
* Hours Today
#+BEGIN: clocktable :maxlevel 2 :scope subtree
Clock summary at [2013-11-04 Mon 15:53]

|---++--|
| Hours Today   | 6:35   |  |
|---++--|
| Workshop shell scripting  || 2:12 |
| Security Intake   || 2:39 |
| Internal Project  || 1:44 |
|---++--|
#+END:

*** Workshop shell scripting
CLOCK: [2013-11-04 Mon 13:49]--[2013-11-04 Mon 13:56] =>  0:07
CLOCK: [2013-11-04 Mon 11:03]--[2013-11-04 Mon 11:55] =>  0:52
CLOCK: [2013-11-04 Mon 08:45]--[2013-11-04 Mon 09:58] =>  1:13
*** Security Intake
CLOCK: [2013-11-04 Mon 15:05]--[2013-11-04 Mon 15:45] =>  0:40
CLOCK: [2013-11-04 Mon 13:56]--[2013-11-04 Mon 14:01] =>  0:05
CLOCK: [2013-11-04 Mon 11:55]--[2013-11-04 Mon 13:49] =>  1:54
*** Internal Project
CLOCK: [2013-11-04 Mon 14:26]--[2013-11-04 Mon 15:05] =>  0:39
CLOCK: [2013-11-04 Mon 09:58]--[2013-11-04 Mon 11:03] =>  1:05


Is that possible?

-- 
Cecil Westerhof


Re: [O] Arbitrary lisp functions in column-attributes

2013-11-05 Thread Mark Edgington
Hi Bastien,

On Tue, Nov 5, 2013 at 4:06 PM, Bastien  wrote:

> One possible negative effect I can see is that users have to be extra
> careful what type of output such functions will produce, so that this
> output can be used by a summary type.

Wouldn't the output of a function be something mutually exclusive with
summary types?  In other words, a column can be defined to use a
summary type, or it could be defined (with the proposed idea) as the
output of a function, but not both at the same time.

> ... we should try every other ways (like Babel, org-collector, etc.)
> before going down this road -- and someone will have to implement this
> anyway... but that's just not me :)  (I don't want to close a door.)

After playing around some more with org-collector, I found that it can
in fact do some of the things I had previously thought it couldn't do,
like specifying custom values for column headers.  The documentation
on worg for org-collector seems a bit lacking, in that it doesn't
cover all of the available properties you can use on a "#+BEGIN:
propview ..." line.  I had to read through the code to identify some
additional properties I could use.

Nonetheless, it seems that org-collector doesn't make the level of a
headline available as a property, so there isn't a good way to achieve
an equivalent to column-view's :maxlevel property in org-collector.
If this were made possible in org-collector, it would be able to do
(at least) most of what column-view can do.  But, there are also the
:hlines, :vlines, and :skip-empty-rows properties for column-view,
each which don't appear to have an equivalent with org-collector.

One other difference has to do with the "default value" when a
property isn't defined -- org-collector sets the default value to 0,
while for column-view it seems to be an empty string.  I therefore
modified org-collector to make it easier to set this default value
when defining a dynamic block:

--- org-collector.el
+++ org-coll-new.el
@@ -121,6 +121,7 @@
 (scope (plist-get params :scope))
 (noquote (plist-get params :noquote))
 (colnames (plist-get params :colnames))
+(defaultval (plist-get params :defaultval))
 (content-lines (org-split-string (plist-get params :content) "\n"))
 id table line pos)
 (save-excursion
@@ -133,9 +134,10 @@
   (t (error "Cannot find entry with :ID: %s" id
   (unless (eq id 'global) (org-narrow-to-subtree))
   (setq stringformat (if noquote "%s" "%S"))
-  (setq table (org-propview-to-table
+  (let ((org-propview-default-value (if defaultval defaultval
org-propview-default-value)))
+  (setq table (org-propview-to-table
(org-propview-collect cols stringformat conds match
scope inherit
- (if colnames colnames cols)) stringformat))
+ (if colnames colnames cols)) stringformat)))
   (widen))
 (setq pos (point))
 (when content-lines


Regards,

Mark



Re: [O] org-debbugs.el

2013-11-05 Thread Bastien


Hi Michael,

Michael Albinus  writes:

> Did you read the whole thread? My last message on the topic?
>
> 

Nope, I missed this, sorry.  Thanks for resending it!

-- 
 Bastien




Re: [O] how to make relative file links?

2013-11-05 Thread Nick Dokos
David Belohrad  writes:

> Dear all,
>
> i've just noticed one annoying thing. When I specify the relative file
> link by org-insert-link, then I specify 'file:' , then i specify
> filename with relative path, the function converts the relative path to
> absolute path. so when i move my org files into another location,
> well...
>
> is there any way how to tell to org-store-link (and as well to %a in
> org-capture templates) to specify link path relative to the file the
> link is stored in?
>
> respectively: if file contains many links, how can i assure file: links
> portability when entire org tree changes location?
>
> many thanks
>
> david

Does this help?

,
| org-link-file-path-type is a variable defined in `org.el'.
| Its value is adaptive
| 
| Documentation:
| How the path name in file links should be stored.
| Valid values are:
| 
| relative  Relative to the current directory, i.e. the directory of the file
|   into which the link is being inserted.
| absolute  Absolute path, if possible with ~ for home directory.
| noabbrev  Absolute path, no abbreviation of home directory.
| adaptive  Use relative path for files in the current directory and sub-
|   directories of it.  For other files, use an absolute path.
| 
| You can customize this variable.
| 
| [back]
`

Nick




[O] how to make relative file links?

2013-11-05 Thread David Belohrad
Dear all,

i've just noticed one annoying thing. When I specify the relative file
link by org-insert-link, then I specify 'file:' , then i specify
filename with relative path, the function converts the relative path to
absolute path. so when i move my org files into another location,
well...

is there any way how to tell to org-store-link (and as well to %a in
org-capture templates) to specify link path relative to the file the
link is stored in?

respectively: if file contains many links, how can i assure file: links
portability when entire org tree changes location?

many thanks

david




Re: [O] link referencing does not work for headings including dates?

2013-11-05 Thread David Belohrad
great. many thanks. i'll fetch new version then

.d.


Bastien  writes:

> Hi David,
>
> David Belohrad  writes:
>
>> I'd like to use headings, which display dates (live) as well. This seems
>> to be practical when browsing org file. So one can see at first sight
>> when e.g. meeting was held:
>>
>> ** Changelog
>> *** meeting <2013-10-03 Thu 17:41>
>> *** meeting Cristina <2013-09-13 Fri 14:41>
>> *** short meeting after holidays <2013-09-04 Wed 09:09>
>> *** meeting - seems finally OK <2013-06-27 Thu 17:00>
>>
>>
>> Now, the trouble is, that when I invoke org-store-link in any of those
>> headings containing date, only the textual part gets copied. Such link,
>> when pasted, does not work. Instead I get message claiming that link
>> does not exist, and asking whether I want to create a new one
>
> This is now fixed, thanks.
>
> -- 
>  Bastien



Re: [O] [PATCH] hide inline-tasks in 'children visibility state

2013-11-05 Thread Nicolas Goaziou
Hello,

Jonas Hörsch  writes:

> On Thu, Oct 31 2013, Nicolas Goaziou wrote:
>
>> I suggest to use `case' here, but it's really a matter of style.
>
> fine with me. i wasn't sure about the usage convention for cl. i
> switched to the namespaced cl-case variant, for now.

It's better to use `case' as long as we support Emacs 23.

>> I think it is more efficient to directly look for inlinetasks since you
>> can use `org-inlinetask-outline-regexp'.
>
> hmm ... i'm not so sure. as you can see in the attached patch, now i
> have to perform an extra search on each headline to find the boundary
> for the inline task search. it feels to me like this would be faster for
> a situation with more than one inline task per headline in the mean?
> (which i don't think is the likely situation).
>
> well, what do you think?

You're right. Your first implementation is better in that regard. Could
you update that part so I can eventually apply it?

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Arbitrary lisp functions in column-attributes

2013-11-05 Thread Bastien
Hi Mark,

Mark Edgington  writes:

> What about it seems too much?  Or put differently, what do you think would
> be the negative effects of having something like this possible?

One possible negative effect I can see is that users have to be extra
careful what type of output such functions will produce, so that this
output can be used by a summary type.

> From my (obviously biased) point of view, making it available would mean
> that the dynamic column view becomes much more flexible, and it would reduce
> the need in the future for lots of new hard-coded features/functions to be
> added to the related org-mode code.  Instead, features can start out as
> functions which people create and share, and if they become popular enough
> among many people, they can be incorporated as a "built-in" feature that
> comes with org-mode, or as a contributed module.

Yes, I understand this, and my objection is not really technical: this
is just a vague intuition of what traps users may fall in.  But I'd say
that we should try every other ways (like Babel, org-collector, etc.)
before going down this road -- and someone will have to implement this
anyway... but that's just not me :)  (I don't want to close a door.)

Best,

-- 
 Bastien



Re: [O] A weird warning and a test (eager macro expansion) error

2013-11-05 Thread Bastien
Hi Achim,

Achim Gratz  writes:

> This is caused by the following constructs in test-ob.el:
>
> (ert-deftest test-org-babel/inline-src_blk-default-results-replace-line-1 ()
>   (let ((test-line "src_sh{echo 1}"))
> ;; src_ at bol line 1...
> (org-test-with-temp-text
>   test-line
>
> ert-deftest is a macro and when it gets expanded the let binding is not
> yet established, thus the expansion of test-line fails further down in
> the body.  I'm not sure if this is supposed to work or not.  The older
> Emacsen just didn't expand the macro at all so the body was interpreted
> at runtime, Stefan Monnier made this an error a while back in trunk,
> IIRC.  You might ask on emacs-devel for more details.

Thanks -- I remember we had this issue before.  I'm just surprise I'm
the first one to report it, I assume many people use a recent Emacs
with macro expansion done this way.

Can you ask this on emacs-devel and see what could be done?

Or someone else that grok the issue well?

-- 
 Bastien



Re: [O] [PATCH] Add check for assignment to hline relative references in table formulas.

2013-11-05 Thread Bastien
Hi,

Achim Gratz  writes:

> Bastien writes:
>>> * org-table.el (org-table-recalculate): Generate user error if
>>> an hline relative reference is use on the LHS of a formula.
>>
>> Applied, thanks!
>
> Rick is listed as a contributor, so the TINYCHANGE marker is wrong.

Yes, I realized that.

> Besides, that change breaks test-org-table/compare, which for whatever
> reason uses just such a LHS construct.

Rick, can you have a look at this problem?

Thanks,

-- 
 Bastien



Re: [O] link referencing does not work for headings including dates?

2013-11-05 Thread Bastien
Hi David,

David Belohrad  writes:

> I'd like to use headings, which display dates (live) as well. This seems
> to be practical when browsing org file. So one can see at first sight
> when e.g. meeting was held:
>
> ** Changelog
> *** meeting <2013-10-03 Thu 17:41>
> *** meeting Cristina <2013-09-13 Fri 14:41>
> *** short meeting after holidays <2013-09-04 Wed 09:09>
> *** meeting - seems finally OK <2013-06-27 Thu 17:00>
>
>
> Now, the trouble is, that when I invoke org-store-link in any of those
> headings containing date, only the textual part gets copied. Such link,
> when pasted, does not work. Instead I get message claiming that link
> does not exist, and asking whether I want to create a new one

This is now fixed, thanks.

-- 
 Bastien



Re: [O] How to deal with 'contents' in (derived) exporter backend

2013-11-05 Thread Nicolas Goaziou
Hello,

Thorsten Jolitz  writes:


> But when I use something like this in the headline transcode function
>
> #+begin_src emacs-lisp
>   (format "(headline %S %s) "
>   [... return headline string ...]
>   contents)
> #+end_src
>
> I get the parse-tree structure as output instead of elements/object
> in their original Org text syntax as expected:
>
> #+begin_src emacs-lisp
>   (org-data nil "(headline (title-string \"A1\" alt-title-string \"A1\"
>   category \"tmp5\" level 1 priority nil tags nil todo-keyword nil
>   quotedp nil archivedp nil commentedp nil footnote-secion-p nil)
>   (section (#(\"Text *A1* \" 0 5 (:parent (paragraph (:begin 6 :end 16
>   :contents-begin 6 :contents-end 16 :post-blank 0 :post-affiliated 6
>   :parent (section (:begin 6 :end 16 :contents-begin 6 :contents-end 16
>   :post-blank 0 :parent (headline (:raw-value \"A1\" :begin 1 :end 32
>   :pre-blank 0 :contents-begin 6 :contents-end 32 :level 1 :priority nil
>   :tags [...]
> #+end_src

You don't get the parse-tree structure, you get Org syntax within
a propertized string. Try (org-no-properties contents) instead.


Regards,

-- 
Nicolas Goaziou



[O] org-index.el replaces org-favtable.el

2013-11-05 Thread Marc Ihm

Hello,

within the contrib/lisp-directory of org, org-favtable.el has been removed and 
replaced
by its successor org-index.el. I would like to suggest, that anybody who is 
still using
the old package org-favtable.el would make the same switch.

Besides beeing renamed, org-index.el has more features and less bugs than 
org-favtable.el.
A version history is kept as comments in the file org-index.el itself, see:

http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob_plain;f=contrib/lisp/org-index.el;hb=HEAD

The transition should be smooth, because org-index.el is only a new release of 
the program,
albeit with another name.
To switch, simply edit your .emacs and rename the variable org-favtable-id into 
org-index-id.
Please give me note, if there are any problems !


Best regards,
Marc




Re: [O] [PATCH] Add check for assignment to hline relative references in table formulas.

2013-11-05 Thread Achim Gratz
Bastien writes:
>> * org-table.el (org-table-recalculate): Generate user error if
>> an hline relative reference is use on the LHS of a formula.
>
> Applied, thanks!

Rick is listed as a contributor, so the TINYCHANGE marker is wrong.

Besides, that change breaks test-org-table/compare, which for whatever
reason uses just such a LHS construct.


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

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] org-debbugs.el

2013-11-05 Thread Michael Albinus


Bastien  writes:

> Hi Michael,

Hi Bastien,

> Can you resend a patch so that I add this to contrib/?

Did you read the whole thread? My last message on the topic?



> Thanks!

Best regards, Michael.




Re: [O] Most Recent Org Update

2013-11-05 Thread Nicolas Goaziou
Hello,

Sam Flint  writes:

> I pulled org from git just now, restarted Emacs, and got this error:
> Symbol's function definition is void: org-element-chache reset
> Any ideas why?

Thank you for reporting it.

This should now be fixed. Could you confirm it?


Regards,

-- 
Nicolas Goaziou



Re: [O] A weird warning and a test (eager macro expansion) error

2013-11-05 Thread Achim Gratz
Bastien writes:
> | Loading /home/guerry/install/git/org-mode/testing/lisp/test-ob.el 
> (source)...
> | Eager macro-expansion failure: (void-variable test-line)
> | Symbol's value as variable is void: test-line
> | mk/targets.mk:99: recipe for target 'test' failed
> | make: *** [test] Error 255
> `
>
> This is with latest Org and Emacs 24.3.50.1, as compiled from trunk
> yesterday.

This is caused by the following constructs in test-ob.el:

--8<---cut here---start->8---
(ert-deftest test-org-babel/inline-src_blk-default-results-replace-line-1 ()
  (let ((test-line "src_sh{echo 1}"))
;; src_ at bol line 1...
(org-test-with-temp-text
test-line
--8<---cut here---end--->8---

ert-deftest is a macro and when it gets expanded the let binding is not
yet established, thus the expansion of test-line fails further down in
the body.  I'm not sure if this is supposed to work or not.  The older
Emacsen just didn't expand the macro at all so the body was interpreted
at runtime, Stefan Monnier made this an error a while back in trunk,
IIRC.  You might ask on emacs-devel for more details.


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

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




Re: [O] Yet another question about email and org-mode

2013-11-05 Thread Alan E. Davis
I appreciate the input, but did not understand how to make my case work.
Thank you to those who responded so unselfishly.   I thought I would now
dredge up the thread to redirect this, and a couple of other questions
about email.

All I want it a copy of my outgoing email and threads thereof (I use Gmail)
to be present on my system, so I can search easily.   I discovered the
variable "message-send-rename function" which should make it relatively
easy to set something up.  I envision recovering the name of the recipient
from the first lines of the message, or else just using the email address
as a postfix to save the message in a certain directory, easily accessible
from org-mode.

Incidentally, the function "oog" was useful to me for a long time, but for
a long while I have been unable to use it.  Everytime the following message
is typed out in the minibuffer:  Wrong type argument: markerp, nil.

Another recent issue for me was that my message buffer wasn't saved, when
an unusual event happend on my Arch Linux box, using openbox window
manager: emacs locked up, when I was editing a message.  It was a long
letter related to an employment application, and, as far as I've been able
to discover, it was not autosaved at any time duirng the editing of this
message (an your or two.)   Unusual, especially when I not that an autosave
directory has been enabled for messages, by default.

I would like to ask whether someone who understands email can give some
advice about these three issues?

Alan



On Thu, Oct 3, 2013 at 9:05 AM, Eric S Fraga  wrote:

> Suvayu Ali  writes:
>
> > On Wed, Oct 02, 2013 at 11:24:18AM -0700, Josiah Schwab wrote:
> >> Hi Alan,
> >>
> >
> >> > I am happy to use native emacs mail, for sending email.  What I want
> to be
> >> > able to do is keep a copy of my email in an org-mode file.
> >>
> >> Taking a step back, is there a reason that you want to keep a copy of
> >> the email contents in the org file, as opposed to including a link to
> >> the email message?
> >
> > I would ask the same question.  Specially when Org supports so many URI
> > schemes for emails: gnus, mhe, rmail, notmuch, vm, vm-imap, wl.  Even
> > simple file links to maildirs would work too.  If you like the Gmail web
> > interface, linking to that is also possible!
>
> or, to turn it around completely, what about defining an org backend
> for gnus, i.e. nnorg, which stores emails using org format, modelled
> along the nnmbox backend [[info:(gnus) Unix Mail Box]]?  You could then
> use the GCC gnus header.
>
> only partly in jest... ;-)
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.1-7-gaecdf5
>
>
>


Re: [O] Org-agenda: show subtree?

2013-11-05 Thread Boyan Penkov
Hello Bastien,

Thanks for your response!

C-c / T TODO does not do what I’d like — it seems to open a view of the buffer 
that’s similar to the agenda, but unsorted and inferior to using the agenda 
view. (It’s clear, however, why C-c / T … exists — I’m about to make use of it 
for other arguments, and thank you for pointing me towards it).

I’m thinking of writing a custom agenda view for this, that traverses subtrees 
and displays then, and will let you know if I do this.

Thanks!
--
Boyan Penkov
www.boyanpenkov.com

On Nov 5, 2013, at 11:59 AM, Bastien  wrote:

> Hi Boyan,
> 
> Boyan Penkov  writes:
> 
>> I'd like to show the entire subtree -- expanded! -- in the agenda
>> view, instead of just the line that contains the TODO.  Is there a
>> way to do this?
> 
> No.  Maybe C-c / T TODO in the relevant buffer will be more useful?
> 
> HTH,
> 
> -- 
> Bastien




Re: [O] Small bug: No italic face when /italics/ inside a link

2013-11-05 Thread Bastien
Hi William,

William Denton  writes:

> When exported to HTML it is turned into  as it should, so that's
> fine, but shouldn't it show in italics in Emacs?

Maybe it should but that's hard to do, and a corner case IMHO.

I can only suggest to live with it :/

-- 
 Bastien



Re: [O] Bug: Agenda tag filtering with spacebar [8.2 (8.2-4-ga1a0ac-elpa @ /Users/sergue\ ison/.emacs.d/elpa/org-20130923/)]

2013-11-05 Thread Bastien
Hi Serguei,

Serguei Son  writes:

> In the agenda filtering screen after pressing a spacebar I receive no
> entries, as opposed to receiving entries that have no tags. Works
> correctly
> expected in version 7.9

This is now fixed in maint, thanks.

-- 
 Bastien



Re: [O] org-agenda moves point in all org agenda buffers

2013-11-05 Thread Samuel Wales
Thanks, Bastien.

On 11/5/13, Bastien  wrote:
> I don't have time to digg this further but I was able to reproduce
> the bug, this is on my TODO list.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] [PATCH] improve doc for org-use-speed-commands

2013-11-05 Thread Bastien
Oleh  writes:

> Here's the updated patch.

Applied with some minor edits and a ChangeLog, thanks!

-- 
 Bastien



Re: [O] Bug: Can't report org bugs when org-pomodoro is installed [8.2.1 (8.2.1-15-ge5cecc-elpaplus @ /home/cassou/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20131021/)]

2013-11-05 Thread Bastien
Damien Cassou  writes:

> On Tue, Nov 5, 2013 at 5:53 PM, Bastien  wrote:
>>> However, I'm not sure I agree with you.
>>
>> What do you mean exactly?
>
> I'm not sure this is a bug of org-pomodoro. I think org-pomodoro is
> correct in its assumption that `load-file-name' is non-nil. 

Not in all circumstances.  

 -- Macro: defcustom option standard doc [keyword value]…
 This macro declares OPTION as a user option (i.e., a customizable
 variable).  You should not quote OPTION.

 The argument STANDARD is an expression that specifies the standard
 value for OPTION.  Evaluating the ‘defcustom’ form evaluates
 STANDARD, but does not necessarily install the standard value.  If
 OPTION already has a default value, ‘defcustom’ does not change it.
 If the user has saved a customization for OPTION, ‘defcustom’
 installs the user’s customized value as OPTION’s default value.  If
 neither of those cases applies, ‘defcustom’ installs the result of
 evaluating STANDARD as the default value.

 The expression STANDARD can be evaluated at various other times,
 too—whenever the customization facility needs to know OPTION’s
 standard value.  So be sure to use an expression which is harmless
 to evaluate at any time.

The last sentence is the one important here.

Maybe org-pomodoro should use something like this:

(defcustom org-pomodoro-sound
  "/resources/bell.wav"
  "The path to a sound file that´s to be played when a pomodoro was finished."
  :group 'org-pomodoro
  :initialize 'custom-initialize-set
  :set (lambda (var val)
 (if load-file-name
 (set-default
  var (concat (file-name-directory load-file-name) 
"/resources/bell.wav"))
   "/resources/bell.wav"))
  :type 'file)

That way (get 'org-pomodoro-sound 'standard-value) would *always*
return something, which is the whole point.

Feel free to point to this suggestion when following up on github.

Best,

-- 
 Bastien



Re: [O] Capture templates with "function" type

2013-11-05 Thread Brett Viren
Hi Bastien,

Bastien  writes:

> You may try this (not tested myself):
>
> (defun bv-daily-log-file ()
>   (save-window-excursion
> (find-file (concat "~/org/web/notes/" 
>  (format-time-string "%Y-%m-%d") ".org"))
> (goto-char (point-max))
> (newline 2)))
>
> The trick is to use `save-window-excursion'.

Thanks for the pointer but it looks like this macro runs afoul of the
capture process somehow.  I redefined my function as you have above and
did C-xC-e to reload it and then initiated a capture from a window
showing my GNUS summary.  It fails with:

byte-code: Capture abort: (buffer-read-only #)

I then tried another capture staring from a read-write buffer.  The
capture succeeds but the captured text is inserted into this starting
buffer instead of the one found by the bv-daily-log-file function.

The Elisp manual mentions that save-selected-window is sometimes a
better alternative but that gives the same behavior.  

Do you maybe have further ideas I could try?  

Thanks,
-Brett.


pgpmfnukccpMQ.pgp
Description: PGP signature


Re: [O] Can't export two figures in one document to odt

2013-11-05 Thread Christian Moe

Hi,

I cannot reproduce this bug. I copy-pasted the below code, exported from
Org 8.2.1 and opened the expected two-figure document in LibreOffice
4.0.4.2.
 
Does this happen with emacs -Q ?

What do you see if you open up the content.xml of the .odt document?

Yours,
Christian Moe


Tyler Smith writes:

> Hi,
>
> I'm new to org-babel, and having trouble with exporting to .odt. The
> following file works. I can export to .odt no problem, the figure
> shows up as expected:
>
> +---
> #+PROPERTY: header-args:R  :session rTest
>
> #+BEGIN_SRC R :results graphics :file test1.jpg :exports both
>
>   plot(1:10)
>
> #+END_SRC
>
> #+RESULTS:
> [[file:test1.jpg]]
> +---
>
> But if I add a second figure, and try to export to .odt, I get a
> "Read-Error. Error reading file." error from LibreOffice. I can export
> to pdf no problem. Here's the problem file:
>
> +---
> #+PROPERTY: header-args:R  :session rTest
>
> #+BEGIN_SRC R :results graphics :file test1.jpg :exports both
>
>   plot(1:10)
>
> #+END_SRC
>
> #+RESULTS:
> [[file:test1.jpg]]
>
> #+BEGIN_SRC R :results graphics :file test2.jpg :exports both
>
> plot(10:1)
>
> #+END_SRC
>
> #+RESULTS:
> [[file:test2.jpg]]
>
> +--
>
> Thanks,
>
> Tyler
>
> Emacs 24.3.50.1
> Org-mode 8.2.1
> Debian Linux
> LibreOffice 4.1.3.2




Re: [O] [PATCH] improve doc for org-use-speed-commands

2013-11-05 Thread Oleh
Hi Bastien,

Here's the updated patch.

regards,
Oleh

On Tue, Nov 5, 2013 at 5:34 PM, Bastien  wrote:
> Hi Oleh,
>
> Oleh  writes:
>
>> I have my headings abbreviated to one star and often
>> instead of executing org-speed-command, I get a letter inserted
>> because the point isn't exactly at the beginning of line.
>>
>> Problem is solved by setting `org-use-speed-commands' to an appropriate
>> lambda. I attach a patch to add this lambda to the docstring.
>
> I think having an example is fine, but it'd be nice to tell the users
> what the lambda is exactly doing.  Can you add a line about this and
> resend the patch?
>
> Thanks!
>
> --
>  Bastien
From d57aa803e80995b0f74c9aba63903447a6df7382 Mon Sep 17 00:00:00 2001
From: Oleh Krehel 
Date: Wed, 23 Oct 2013 11:00:53 +0200
Subject: [PATCH] lisp/org.el: add an example for `org-use-speed-commands'
 docstring.

---
 lisp/org.el | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 647ed33..04f12de 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1010,7 +1010,13 @@ new-frameMake a new frame each time.  Note that in this case
 (defcustom org-use-speed-commands nil
   "Non-nil means activate single letter commands at beginning of a headline.
 This may also be a function to test for appropriate locations where speed
-commands should be active."
+commands should be active.
+
+For example, to make the speed commands active whenever point is on
+any star which is part of the headline:
+
+  (setq org-use-speed-commands
+  (lambda () (and (looking-at org-outline-regexp) (looking-back \"^\\**\""
   :group 'org-structure
   :type '(choice
 	  (const :tag "Never" nil)
-- 
1.8.4



Re: [O] Capture templates with "function" type

2013-11-05 Thread Bastien
Hi Brett,

Brett Viren  writes:

> (defun bv-daily-log-file ()
>   (find-file (concat "~/org/web/notes/" 
>   (format-time-string "%Y-%m-%d") ".org"))
>   (goto-char (point-max))
>   (newline 2)
> )

You may try this (not tested myself):

(defun bv-daily-log-file ()
  (save-window-excursion
(find-file (concat "~/org/web/notes/" 
   (format-time-string "%Y-%m-%d") ".org"))
(goto-char (point-max))
(newline 2)))

The trick is to use `save-window-excursion'.

-- 
 Bastien



Re: [O] Clocking in on non-org files

2013-11-05 Thread Bastien
Hi Marcin,

Marcin Borkowski  writes:

> I have a bunch of TODO items connected with LaTeX files (in general:
> projects) I'm working on.  I was wondering whether it might be possible
> and/or wise to set things up so that I could clock in (C-c C-x C-i) in
> a buffer containing such a file.

I have this capture template :

(setq org-capture-templates
  '(

("IC" "Information read (keep clocking)" entry
 (file+headline "~/org/garden.org" "Infos")
 "* TODO %?%a :Read:\n  :PROPERTIES:\n  :CAPTURED: %U\n  :END:\n\n%i"
 :prepend t :clock-in t :immediate-finish t :clock-keep t 
:jump-to-captured t)

   ))

which I use in such cases: capturing does not take longer than
clocking in, and I have both the capture and the running clock.

Hope this helps,

-- 
 Bastien



Re: [O] C-S-up and C-S-down throws an error

2013-11-05 Thread Bastien
Hi Oleh,

Oleh  writes:

> I think a way out of this is either enabling
> `org-support-shift-select' by default,
> or not to bind these key chords. But that's just my opinion.

I agree `org-support-shift-select' should be `t' by default,
maybe Mike's survey will help deciding what's useful.

-- 
 Bastien



Re: [O] Bug: Can't report org bugs when org-pomodoro is installed [8.2.1 (8.2.1-15-ge5cecc-elpaplus @ /home/cassou/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20131021/)]

2013-11-05 Thread Damien Cassou
On Tue, Nov 5, 2013 at 5:53 PM, Bastien  wrote:
>> However, I'm not sure I agree with you.
>
> What do you mean exactly?


I'm not sure this is a bug of org-pomodoro. I think org-pomodoro is
correct in its assumption that `load-file-name' is non-nil. Maybe it
is `org-submit-bug-report' that should pay attention to what it is
doing.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill



Re: [O] Org-agenda: show subtree?

2013-11-05 Thread Bastien
Hi Boyan,

Boyan Penkov  writes:

> I'd like to show the entire subtree -- expanded! -- in the agenda
> view, instead of just the line that contains the TODO.  Is there a
> way to do this?

No.  Maybe C-c / T TODO in the relevant buffer will be more useful?

HTH,

-- 
 Bastien



Re: [O] patch for support of oracle/sqlplus - please review

2013-11-05 Thread Bastien
Hi Subhan,

Subhan Tindall  writes:

> This patch adds support for oracle databases in code blocks using sqlplus.
> Strictly speaking all that is necessary is the addition of the .sql
> extension to in-file-name, however I also included header line
> specification of dbuser, dbpassword, and dbhost

The patch got scrambled because the email was sent in HTML.
Can you resend it in plain text, with the patch as an attachment?
This will raise the odds for being reviewed ;)

-- 
 Bastien



Re: [O] Bug: Can't report org bugs when org-pomodoro is installed [8.2.1 (8.2.1-15-ge5cecc-elpaplus @ /home/cassou/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20131021/)]

2013-11-05 Thread Bastien
Hi Damien,

Damien Cassou  writes:

> On Tue, Nov 5, 2013 at 5:30 PM, Bastien  wrote:
>> This is a bug in org-pomodoro.el, better to report it to the author:
>> https://github.com/lolownia/org-pomodoro
>
>
> I've just did: https://github.com/lolownia/org-pomodoro/issues/6
>
> However, I'm not sure I agree with you.

What do you mean exactly?

-- 
 Bastien



Re: [O] Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)]

2013-11-05 Thread Bastien
Hi Derek,

Derek Feichtinger  writes:

> When exporting a document containing a table and using the :rel-width
> modifier (as documented in [info:org#Tables in ODT export]), an error
> is returned:

This is fixed now, thanks.

-- 
 Bastien



Re: [O] Bug: Can't report org bugs when org-pomodoro is installed [8.2.1 (8.2.1-15-ge5cecc-elpaplus @ /home/cassou/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20131021/)]

2013-11-05 Thread Bastien
Hi Damien,

Damien Cassou  writes:

>
> If you download and install org-pomodoro in your `org-modules' list, you
> won't be able to report bugs with `org-submit-bug-report' anymore. The
> problematic line in org-pomodoro is
>
>   (concat (file-name-directory load-file-name)
>   "/resources/bell.wav")

This is a bug in org-pomodoro.el, better to report it to the author:
https://github.com/lolownia/org-pomodoro

Best,

-- 
 Bastien



Re: [O] Show TODO item in table of contents

2013-11-05 Thread Bastien
Hi Rainser,

Rainer Stengele  writes:

> I have that one set to t.
> What I want is to see the todo state words in the table of contents.
> I see them in the contents but not in the table of contents.

Mhh... then I think you can't, sorry.

-- 
 Bastien



Re: [O] Bug: Can't report org bugs when org-pomodoro is installed [8.2.1 (8.2.1-15-ge5cecc-elpaplus @ /home/cassou/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20131021/)]

2013-11-05 Thread Damien Cassou
On Tue, Nov 5, 2013 at 5:30 PM, Bastien  wrote:
> This is a bug in org-pomodoro.el, better to report it to the author:
> https://github.com/lolownia/org-pomodoro


I've just did: https://github.com/lolownia/org-pomodoro/issues/6

However, I'm not sure I agree with you.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill



Re: [O] [PATCH] improve doc for org-use-speed-commands

2013-11-05 Thread Bastien
Hi Oleh,

Oleh  writes:

> I have my headings abbreviated to one star and often
> instead of executing org-speed-command, I get a letter inserted
> because the point isn't exactly at the beginning of line.
>
> Problem is solved by setting `org-use-speed-commands' to an appropriate
> lambda. I attach a patch to add this lambda to the docstring.

I think having an example is fine, but it'd be nice to tell the users
what the lambda is exactly doing.  Can you add a line about this and
resend the patch?

Thanks!

-- 
 Bastien



Re: [O] function?

2013-11-05 Thread Bastien
Hi Uwe,

Uwe Brauer  writes:

> what's about a small function doing this, like 
>
>
> (defun org-table-rotate-table  ()
>   "Small hack to rotate a table."
>   (interactive)
>   (if (or (and (boundp 'zmacs-region-active-p) zmacs-region-active-p)
> (and (boundp 'transient-mark-mode) transient-mark-mode 
> mark-active))
>   (save-restriction
> (save-excursion
>   (narrow-to-region (point) (mark))
>   (goto-char (point-min))
> (reverse-region (point) (mark))
> (org-table-transpose-table-at-point)
>
> Or?
>
> (defun org-table-rotating-table (beg end)  
>   "Small hack to rotate a table."
>   (interactive "r")
>   (save-excursion
>   (goto-char beg)
>   (reverse-region beg end)
>   (org-table-transpose-table-at-point)))

Don't forget to add such useful functions to 
http://orgmode.org/worg/org-hacks.html

Thanks!

-- 
 Bastien



Re: [O] org-debbugs.el

2013-11-05 Thread Bastien


Hi Michael,

Michael Albinus  writes:

> I have produced a very first shot of org-debbugs.el. 

Can you resend a patch so that I add this to contrib/?

Thanks!

-- 
 Bastien




[O] Can't export two figures in one document to odt

2013-11-05 Thread Tyler Smith
Hi,

I'm new to org-babel, and having trouble with exporting to .odt. The
following file works. I can export to .odt no problem, the figure
shows up as expected:

+---
#+PROPERTY: header-args:R  :session rTest

#+BEGIN_SRC R :results graphics :file test1.jpg :exports both

  plot(1:10)

#+END_SRC

#+RESULTS:
[[file:test1.jpg]]
+---

But if I add a second figure, and try to export to .odt, I get a
"Read-Error. Error reading file." error from LibreOffice. I can export
to pdf no problem. Here's the problem file:

+---
#+PROPERTY: header-args:R  :session rTest

#+BEGIN_SRC R :results graphics :file test1.jpg :exports both

  plot(1:10)

#+END_SRC

#+RESULTS:
[[file:test1.jpg]]

#+BEGIN_SRC R :results graphics :file test2.jpg :exports both

plot(10:1)

#+END_SRC

#+RESULTS:
[[file:test2.jpg]]

+--

Thanks,

Tyler

Emacs 24.3.50.1
Org-mode 8.2.1
Debian Linux
LibreOffice 4.1.3.2



Re: [O] freemind export

2013-11-05 Thread Jambunathan K
Brian Keats  writes:

> OK, thanks anyway. I'd love to help, but I'm not a programmer.

Freemind exporter is based upon HTML exporter.  If you tell me precisely
what markups you need i.e., circulate an Org file and the desired mm
file you want produced I can do further investigation.



Re: [O] Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)]

2013-11-05 Thread Jambunathan K

Please use ox-odt.el from here.  The version in my private repo has the
fix.  

http://repo.or.cz/w/org-mode/org-kjn.git

NB: Just download the file.  Don't do a git checkout (Because I keep
rebasing it)

Derek Feichtinger  writes:

> Dear developers
>
> When exporting a document containing a table and using the :rel-width
> modifier (as documented in [info:org#Tables in ODT export]), an error
> is returned:
>
> #+ATTR_ODT: :rel-width 50
> | Area/Month | Jan | Feb | Mar | Sum |
> |---+---+---+---+---|
> | / | < | | | < |
> |  |  |  |  |  |
> | North America | 1 | 21 | 926 | 948 |
> | Middle East | 6 | 75 | 844 | 925 |
> | Asia Pacific | 9 | 27 | 790 | 826 |
> |---+---+---+---+---|
> | Sum | 16 | 123 | 2560 | 2699 |
>
> OpenDocument export failed: Format specifier doesn't match argument
> type
>
> Reason is that the plist-get in line 1458 of ox-odt.el returns a
> string
> reprensentation "50" of the :rel-width number, but the
> org-odt-table-style-format
> variable contains a %d conversion string for this parameter.
>
> (loop for (style-name props) in
> (plist-get org-odt-automatic-styles 'Table) do
> (when (setq props (or (plist-get props :rel-width) 96))
> (insert (format org-odt-table-style-format style-name props
>
> Either the conversion string should be changed to a %s or the
> plist-get
> obtained value should get converted to a string.
>
> Emacs : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
> of 2013-10-03 on hamsa, modified by Debian
> Package: Org-mode version 8.2.1 (8.2.1-30-g757f00-elpaplus @
> /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)
>
> Best regards
> Derek



Re: [O] freemind export?

2013-11-05 Thread Jambunathan K
Christof Spitz  writes:

> 1. could you send me the variable settings of the exporter in your .
> emacs? 

No customization at my end.

emacs -Q -l ~/.emacs-minimal


--8<---cut here---start->8---
kjambunathan@debian-6:~$ cat .emacs-minimal

(add-to-list 'load-path "~/src/org-mode/lisp/")
(require 'org-loaddefs)

(add-to-list 'load-path "~/src/org-mode/contrib/lisp/")
(require 'ox-freemind)

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

C-c C-e f f

> 2. could you send me / or point me to the latest version of
> ox-freemind.el that you are using?

I am using whatever that comes with Org-mode right now, with only change:
Do a add (require 'cl).

My version: 
http://repo.or.cz/w/org-mode/org-kjn.git

http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/01db56d04ad8842da74c358ae6e27fe8147f6808:/contrib/lisp/ox-freemind.el


Org-mode version: 

http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-freemind.el;hb=HEAD



Re: [O] problem with titles in odt export

2013-11-05 Thread Jambunathan K
Jambunathan K  writes:

> In a day or two, I will queue up a fix in my private repo.
>
> http://repo.or.cz/w/org-mode/org-kjn.git

Fix for spanish - iso-latin-1 - export is now available.  Feel free to
download ox-odt.el from the above link.



Re: [O] RLT (hebrew) tables and org-odt-export-to-odt problems

2013-11-05 Thread Jambunathan K

Uwe 

> r2ltableorg.org is the org file and displays the text as
> intended. However not all of the text was written in logical order by
> GNU emacs, but copied from some other sources.

I am venturing in to the wild here and it will take multiple iterations
for me to even get a "feel" for what needs to be happen.  I am not even
sure what is right or wrong here.  Anyways...



Further to our exchange on the emacs-devel list,

http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00134.html

I see that the file you passed me has no bi-directional markers
whatsoever.  I think presence of markers would affect how libreoffice
would layout the table.

I suggest that you pass me an Org file, that has the right
bidi-paragraph-direction (as a local variable) and has the right set of
bidi markers.

(Furthermore, explicitly mark the org file as utf-8 coded.  I am not
sure what coding system the attachment is coded to.  When I view the
attachment in Gnus, I only see the latin characters.)



As for getting the table cells laid right, try this out.

1. Export a hebrew.org file to hebrew.odt
2. Open the .odt file in LibreOffice.

   F11->Page Style->Default Page Style->Page->Text Direction->Set it to
   "Right to Left".

   I think that this would set the predominant direction of your
   document.  I believe, it would correspond to bidi-paragraph-direction
   setting.

3. File->Save as->somefile.ott

   Now in your hebrew.org file, add this directive

   #+ODT_STYLES_FILE: "hebrew.ott"

   This will make the exported document an R2L document.

4. Export again.  See what happens



(The process is the same for setting your preferred font.)



Re: [O] freemind export?

2013-11-05 Thread Jambunathan K
Christof Spitz  writes:

> #+TITLE: SUBJEKT
> #+AUTHOR: Christof
> #+OPTIONS: H:4
>
> * Headline 1
>
> ** Sub 1.1
> ** Sub 1.2
>
> * Headline 2
>
> ** Sub 2.1
> ** Sub 2.2
>
> Branch "Headline 2" should be place to the left of the central SUBJECT
> in Freemind.

It is getting placed rightly.

Here is the screenshot of what I get (with no additional customizations
at my end).  I use freeplane, btw.

As for styles, you need to customize your styles in Freemind exporter
and move over the XML to ox-freemind.el.  If you have a specific
question wrt style, I can help.  But I need to be convinced that you are
using the right exporter i.e., no installation issues etc etc etc.

<>

Re: [O] Line breaks in org-mode having version control in mind

2013-11-05 Thread Jambunathan K

If you have really l...o...n...g lines you need to turn on some sort of
caching so that Emacs display doesn't start sucking.  

I believe the variable you need is this.  Just double check.  I use
development version of Emacs so the details could differ for your
specific version.

cache-long-scans
  Variable: Non-nil means that Emacs should use caches in attempt to
speedup buffer scans.

** `cache-long-line-scans' has been renamed to `cache-long-scans'
because it affects caching of paragraph scanning results as well.



Org files in sense paragraph oriented and not line-oriented.  There was
some work on Org Merge Driver.  (Search for it in the list).  I had also
pointed out this LibreOffice GSoC project earlier -
http://gsoc-tzvetelina.blogspot.in/ - the ideas discussed therein could
be of some relevance to building a Org merge driver.

Dror Atariah  writes:

> I am trying to extend my usage of org, and one of the things I want to
> integrate is version controlling of my org files. This is obviously
> straight forward, but I am wondering about the best line breaking
> approach to use. In my LaTeX docs I maintain one physical line per
> sentence [1]. This way, when I change one word in a paragraph, it
> affects only one line, and looking for differences between versions is
> easy. Otherwise, when using fill-paragraph for instance, one gets
> messy changes of the file, as the one word change can influence the
> whole paragraph.
>
> Therefore, as I mentioned, in LaTeX I use visual-line-mode and I
> insert manually line breaks at the end of sentences (or where *I* find
> appropriate). What would be the best practice for org? I understand
> that visual-line-mode has some problems when it comes to
> tables... What other issues are there? What do you do when you keep
> your org file under VC?
>
> Thanks in advance,
> Dror
>
> [1] http://tex.stackexchange.com/a/4378/412



Re: [O] freemind export?

2013-11-05 Thread Jambunathan K
Christof Spitz  writes:

> Hello,
>
> seems the freemind export is no longer supported in org.mode. 

Not true.  The exporter is available over the new export framework.

> Though I found the ox-freemind.el somewhere on the net, 

You are looking for Jesus in a mosque.  The right place would
org-plus-contrib elpa distribution or a git checkout.

> I am desperately looking for a documentation. 

M-x find-library RET ox-freemind RET

Just look at English strings there.  That should give you a pretty good
idea of what you can do.

You can also search for the string - left or right - and you know that
the exporter already has some trick up it's sleeve.

> I want to position nodes on the left, for example, but I don't know
> how to pass optional parameters to the converter.

Unless you give an example, it is difficult for me to understand what
you want to achieve.  How does your Org file look like and what node you
want to position left.

> Thanks 
> Christof



Re: [O] freemind export?

2013-11-05 Thread Jambunathan K

See the attachment.

You can search for right and left in the XML produced.  First headline
goes right, second headline goes left, third one goes right, so on and
so forth.

If you could locate the bug I am willing to circulate a fix.



freemind.mm
Description: freemind.mm

Christof Spitz  writes:

> Does freeplane do the placing or is it due to a POSITION switch in the
> mm-file? Could you post the exported mm-file please for comparison,
> please?
>
> Thanks
> Von: Jambunathan K
> Gesendet: 04.11.2013 07:37
> An: Christof Spitz
> Cc: emacs-orgmode@gnu.org
> Betreff: Re: freemind export?


Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?

2013-11-05 Thread Jambunathan K
Xebar Saram  writes:

> Jambunathan: hi-lock-mode looks interesting and i will investigate it
> soon, is it per file settings, or can you define a word/fg-bg rule
> that will apply to all files?

IIRC, The patterns are per-file.  There are some 6 or so hi-lock faces
that you can customize.  

If you are running development version of Emacs you can further
customize `hi-lock-auto-select-face'.





[O] Bug: odt table exporter bug with rel-width [8.2.1 (8.2.1-30-g757f00-elpaplus @ /home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)]

2013-11-05 Thread Derek Feichtinger
Dear developers

When exporting a document containing a table and using the :rel-width
modifier (as documented in [info:org#Tables in ODT export]), an error is
returned:

 #+ATTR_ODT: :rel-width 50
 | Area/Month|   Jan |   Feb |   Mar |   Sum |
 |---+---+---+---+---|
 | / | < |   |   | < |
 |  |   |   |   |   |
 | North America | 1 |21 |   926 |   948 |
 | Middle East   | 6 |75 |   844 |   925 |
 | Asia Pacific  | 9 |27 |   790 |   826 |
 |---+---+---+---+---|
 | Sum   |16 |   123 |  2560 |  2699 |

OpenDocument export failed: Format specifier doesn't match argument type

Reason is that the plist-get in line 1458 of ox-odt.el returns a string
reprensentation "50" of the :rel-width number, but the
org-odt-table-style-format
variable contains a %d conversion string for this parameter.

  (loop for (style-name props) in
(plist-get org-odt-automatic-styles 'Table) do
(when (setq props (or (plist-get props :rel-width) 96))
  (insert (format org-odt-table-style-format style-name props

Either the conversion string should be changed to a %s or the plist-get
obtained value should get converted to a string.

Emacs  : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2013-10-03 on hamsa, modified by Debian
Package: Org-mode version 8.2.1 (8.2.1-30-g757f00-elpaplus @
/home/dfeich/.emacs.d/elpa/org-plus-contrib-20131104/)

Best regards
Derek


[O] LaTeX Radio Tables

2013-11-05 Thread Zephy

Hi everyone,

I am trying to use orgtbl radio tables in LaTeX. Setting them up works 
just fine.
However when trying to convert the table to TeX format, it behaves 
weirdly in
regards to special characters such as _ or ^. It escapes the character 
with \ and

attaches two brackets {} to it.

The following code is an example of what I mean.

% BEGIN RECEIVE ORGTBL tlratiosys
\hline
$p\_{}{\text{T, jet}}$ \\
\hline
% END RECEIVE ORGTBL tlratiosys

\begin{comment}
#+ORGTBL: SEND tlratiosys orgtbl-to-latex :splice t
|--|
| $p_{\text{T, jet}}$ |
|--|
\end{comment}

I looked for possible solutions and found the otption :noescape t, which 
sadly does

not do anything at all.


Thanks for your help,

Zephy



[O] Bug: Can't report org bugs when org-pomodoro is installed [8.2.1 (8.2.1-15-ge5cecc-elpaplus @ /home/cassou/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20131021/)]

2013-11-05 Thread Damien Cassou

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

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

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


If you download and install org-pomodoro in your `org-modules' list, you
won't be able to report bugs with `org-submit-bug-report' anymore. The
problematic line in org-pomodoro is

  (concat (file-name-directory load-file-name)
  "/resources/bell.wav")

This line appears twice in org-pomodoro.el. It looks like the
`load-file-name' variable is nil in the context of
`org-submit-bug-report'.

Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.4)
 of 2013-10-03 on menkib, modified by Debian
Package: Org-mode version 8.2.1 (8.2.1-15-ge5cecc-elpaplus @ 
/home/cassou/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20131021/)

current state:
==
(setq
 org-hide-leading-stars t
 org-clock-clocked-in-display nil
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-imenu-depth 1
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-log-done 'time
 org-confirm-shell-link-function 'yes-or-no-p
 org-special-ctrl-a/e t
 org-default-notes-file "tasks.org"
 org-todo-keyword-faces '(("NEXT" :foreground "orange" :weight bold) 
("CANCELLED" :foreground "forest green"))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook 
change-major-mode-hook org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207" [org-add-hook 
change-major-mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-refile-targets '(("tasks.org" :maxlevel . 2) ("someday.org" :maxlevel . 2) 
("repeating.org" :level . 1))
 org-fontify-done-headline t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-directory "~/Documents/configuration/org"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-todo-keywords '((sequence "TODO(t)" "|" "DONE(d)" "CANCELLED(c)") 
(sequence "APPT(p)" "|" "DONE(d)" "CANCELED(c)")
 (sequence "WAITING(w)" "|" "DONE(d)"))
 org-time-stamp-rounding-minutes '(10 10)
 org-modules '(org-bbdb org-bibtex org-docview org-gnus org-habit org-info 
org-jsinfo org-habit org-irc org-mew org-mhe org-protocol
   org-rmail org-vm org-wl org-w3m org-bookmark org-publish)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-completion-use-ido t
 org-agenda-files '("~/Documents/configuration/org/tasks.org" 
"~/Documents/configuration/org/someday.org"
"~/Documents/configuration/org/repeating.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )



Re: [O] Customization Survey 2013

2013-11-05 Thread Alexander Vorobiev
Hi Bastien,

org-require-autoloaded-modules is the function that produced the error.

http://repo.or.cz/w/org-mode.git/commit/6c48056b2bc46038f123e275ec44af384785e886

Thanks for the fix, I will try re-running the survey as soon as I get the
updated org-plus-contrib.

Alex



On Tue, Nov 5, 2013 at 1:43 AM, Bastien  wrote:

> Hi Alexander,
>
> Alexander Vorobiev  writes:
>
> > I tried running the function but got an error:
>
> Maybe you are setting variables about org-remember while not having
> org-remember.el in your load-path anymore ?  (It is not part of recent
> Org.)
>
> HTH,
>
> --
>  Bastien
>


Re: [O] org-submit-bug-report is missing org-remember [Re: Bug: org-remember.el is not in git repo]

2013-11-05 Thread Bastien
Hi Christoph,

Christoph LANGE  writes:

> I just wanted to submit a bug report via org-submit-bug-report, but it
> said "Cannot open load file: org-remember".  Indeed org.el of version
> 8.2 still makes some references to org-remember.

I've now removed useless references in maint, thanks.

-- 
 Bastien



Re: [O] [PATCH] Add check for assignment to hline relative references in table formulas.

2013-11-05 Thread Bastien
Hi Rick,

Rick Frankel  writes:

> * org-table.el (org-table-recalculate): Generate user error if
> an hline relative reference is use on the LHS of a formula.

Applied, thanks!

-- 
 Bastien



Re: [O] org-agenda moves point in all org agenda buffers

2013-11-05 Thread Bastien
Hi Samuel,

Samuel Wales  writes:

> Is anybody familiar enough with the code to have guesses why this
> bug occurs?

I don't have time to digg this further but I was able to reproduce
the bug, this is on my TODO list.

-- 
 Bastien



Re: [O] Difficulties Accessing git Repository

2013-11-05 Thread Bastien
Hi Susan,

Susan Cragin  writes:

> I get this:
>
> $ git clone orgm...@orgmode.org:org-mode.git
> Cloning into 'org-mode'...
> Permission denied (publickey).
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.

PLease try this instead: 

~$ git clone git://orgmode.org/org-mode.git

-- 
 Bastien



Re: [O] maintaining Org

2013-11-05 Thread Bastien
Hi David,

Carsten Dominik  writes:

> do you have FSF papers?  If so, write to Jason Dunsmore and send him your 
> public key.
> Thanks you!

I think org-license.el and org-effectiveness.el belong to contrib/
so you don't need to sign the FSF papers for this.  

-- 
 Bastien



Re: [O] [RFC] [export] synctex support for ox-latex

2013-11-05 Thread Bastien
Hi Aaron,

Aaron Ecay  writes:

> Some months ago, I proposed a patch to implement synctex support for the
> latex exporter.  Following feedback from Nicolas, I was working on
> converting that code to use hooks and advice, without modifying core
> org-mode functions.  It was a frustrating but very educational task, and
> it is now complete.  I attach the patch (which consists only of a single
> file addition to the contrib directory) to this message.

Please feel free to add this to the contrib/ directory or ask for
someone to do it.

Thanks!

-- 
 Bastien



Re: [O] org-mode in the wild

2013-11-05 Thread Julian M. Burgos
Thank you very much John!!! Your document contains a wealth of information on 
how to
use org-mode for reproducible research!  I really like the idea of
embedding the supporting documents (bibliography, additional analysis) into the
document. Very nice.

Perhaps it would be good to have a repository of practices and examples
for reproducible research, maybe a section in Worg?

All the best,

Julian

John Kitchin writes:

> Hi everyone,
>
> We had another manuscript written in org-mode accepted in Topics in
> Catalysis (http://link.springer.com/article/10.1007%2Fs11244-013-0166-3)!
> Check out references 14, 39 and 40 ;)
>
> The supporting information seems to be freely available (
> http://link.springer.com/content/esm/art:10.1007/s11244-013-0166-3/file/MediaObjects/11244_2013_166_MOESM1_ESM.pdf)
> was also prepared in org-mode. It is probably best read with the Adobe PDF
> reader. This file is an interesting hybrid of data sharing methods. Some of
> the data is in the pdf, some of it is embedded in the pdf, including the
> org-mode files for the manuscript and the supporting information file
> itself. Anyone interested in seeing how we did it can check it out.
>
> John
>
> ---
> John Kitchin
> Associate Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> http://kitchingroup.cheme.cmu.edu


-- 
Julian Mariano Burgos, PhD
Hafrannsóknastofnun/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is



Re: [O] Adding and subtracting from clocked entries.

2013-11-05 Thread Cecil Westerhof
2013/11/5 Cecil Westerhof 

> 2013/11/4 Bastien 
>
>> > For example I am working on project A from 09:00 until 13:00. But
>> > during this period I also worked for fifteen minutes on project B. I
>> > would like to subtract those fifteen minutes from project A and add
>> > them to project B. Can this be done?
>>
>> I assume you stopped the clock on A, then started it on B, then
>> stopped it on B, then restarted it on A.
>>
>> In this case, go to the end of the B clock timestamp, put the point
>> on the HH:MM string, and hit S-M- three times, so that the clock
>> sum for B is zero, and the clock sum for A is added 15 minutes.
>>
>
It works, but it gives pollution. It take the last minutes from B and put
them to A. (And it was somewhere in the middle I spend the time.) Also when
I have worked on two other projects while working on the project, it does
not work of-course.

Adding can be done by something like:
CLOCK: [2013-11-05 Tue 00:00]--[2013-11-05 Tue 00:15] =>  0:15
CLOCK: [2013-11-05 Tue 00:00]--[2013-11-05 Tue 00:15] =>  0:15

This works, two times 15 minutes is added, but sadly this does not work:
CLOCK: [2013-11-05 Tue 00:15]--[2013-11-05 Tue 00:00] => -0:15

-- 
Cecil Westerhof


Re: [O] org-writers-room sort of works! just in time for NaNoWriMo

2013-11-05 Thread Matt Price
On Mon, Nov 4, 2013 at 12:33 PM, Thorsten Jolitz  wrote:
> Matt Price  writes:
>
> Hi Matt,
>
>> Hi Thorsten,
>>
>> Wow, navi-mode really is incredibly cool.
>
> thanks. why not write this on the mailing list - a bit of publicity
> can't hurt ;)
>
oh shoot, sorry!  my mistake!

>> I had not tried it before because it failed to load properly on al of
>> hte org files I tested it with. I suspected that I was not following
>> some important convention in the way I structure those files, but now
>> that doesn't seem to be the case. On further investigation, something
>> very strange is going on; the buffers work fine when I close and then
>> reopen them, but anything that has been open for a long time seems to
>> fail to load navi-mode. Have you seen anything like this before?
>
> not really, but I have a very useful command
>
> ,
> | nuke-and-eval is an interactive Lisp function in `nukneval.el'.
> |
> | (nuke-and-eval)
> |
> | Attempt to cleanly reevaluate a buffer of elisp code.
> `
>
> and when I do this in an outshine buffer, things get messed up sometimes
> ...
>
>> When I run (navi-search-and-switch) in ny test files, I get en error.
>> The issue seems to be (I think!) on line 1247 of navi.el, where
>> "split-string" is passed "headline-string"; but for some reason
>> headline-string is nil.  Reading the code, I do not see immediately
>> what the problem could be, but I suspect that some variable has been
>> set by *something* I do in the course of my daily work, and doesn't
>> get reset properly.  If you have an idea I'd really appreciate it!
>
> I bet C-h v outline-promotion-headings is nil when you do it in your
> org-mode test file, it should be:
>
> ,
> | outline-promotion-headings is a variable defined in `outshine.el'.
> | Its value is shown below.
> |
> |   Automatically becomes buffer-local when set.
> |
> | Documentation:
> | A sorted list of headings used for promotion/demotion commands.
> | Set this to a list of headings as they are matched by `outline-regexp',
> | top-level heading first.  If a mode or document needs several sets of
> | outline headings (for example numbered and unnumbered sections), list
> | them set by set, separated by a nil element.  See the example for
> | `texinfo-mode' in the file commentary.
> |
> | For more information check the manuals.
> |
> |
> |
> | Value:
> |  (("* " . 1)
> |  ("** " . 2)
> |  ("*** " . 3)
> |  (" " . 4)
> |  ("* " . 5)
> |  ("** " . 6)
> |  ("*** " . 7)
> |  (" " . 8))
> |
> | Local in buffer `tmp5.org'; global value is nil
> `
>
> I think this is all related to Emacs internals and loading, if you make
> sure outshine-mode is installed properly, especially with this line:
>
> ,
> | (add-hook 'outline-minor-mode-hook 'outshine-hook-function)
> `
>
> thinks should work. Maybe you should just restart your Emacs with the
> lines for installing outshine/outorg/navi in you init file and see if
> it works then? Otherwise reverting a buffer (M-x revert-buffer) might
> help in special cases ...

Yes, this is the problem of course.  I just copy-pasted the setup code
into my .emacs without looking at it  Foolish!
Busy today and likely tomorrow but I'm going to try to rewrite
writers-room as an extension of navi-mode.  The navi-mode buffer is so
much superior to my navigation guide, I don't see how I can use mine
anymore...

Thanks!
mtt
>
> Thanks for your report, let me know if it works. I use navi all the time
> with emacs-lisp-mode, picolisp-mode, org-mode and R-mode and did not
> have any problems for a long time now...
>
> --
> cheers,
> Thorsten



Re: [O] Most Recent Org Update

2013-11-05 Thread Vladimir Lomov
Hello,
** Dov Grobgeld [2013-11-05 09:24:24 +0200]:

> I had the same problem after pulling from git yesterday and worked around
> it by doing:

> ; This is a bug work around
> (defun org-element-cache-reset (&optional all) (interactive))

> before requiring org.

I noticed that 'org-element-cache-reset' function is "defined" in
'org.el' (actually it is "declare-function" as many others) and used in
2 placed in that file.

At 1/5 of 'org.el' file there is (require 'org-footnote) and in that
file there only one "call" to org-element-cache-reset function *without*
defining it (no 'declare-function'). That "call" is in function
'org-footnote-section' and has form

  :initialize 'custom-initialize-set
  :set (lambda (var val) (set var val) (org-element-cache-reset 'all))

As I understand, the chain: (require 'org) [in .emacs] which it turns
(require 'org-footnote) which has 'initialize' and call to
'org-element-cache-reset' leads to this issue.

(As I said earlier I don't know Emacs Lisp well enough so use quoted
terms).

I tried to put 'declare-function' into 'org-footnote.el' but without
luck (other error message), so I came up to my workaround (I noticed
that there is a line in 'org.el' which do something with
'org-footnote-section' and set it to nil).

---
WBR, Vladimir Lomov


-- 
Fourth Law of Applied Terror:
The night before the English History mid-term, your Biology
instructor will assign 200 pages on planaria.

Corollary:
Every instructor assumes that you have nothing else to do except
study for that instructor's course.



Re: [O] How to display the image for links whose description is an image?

2013-11-05 Thread Alan Schmitt
Hi Bastien,

b...@gnu.org writes:

> Hi Alan,
>
> Alan Schmitt  writes:
>
>> Is there a way to display images for links whose description is an
>> image? If I have a link of the form:
>>
>> [[http://www.google.com/][file:images/Google_Logo.png]]
>>
>> and when I try to "org-display-inline-images" on it, it tells me there
>> is no image to display.
>
> I tried with M-x org-toggle-inline-images RET and it seems to work:
>
>   https://vimeo.com/78580390

Yes, it was changed with commit cebf7d012dd17f58650f9867dd41ee99735c7fb5
(on October 31st).

Alan



Re: [O] Customization Survey 2013

2013-11-05 Thread David Belohrad
hmm, I get error:


reporter-submit-bug-report: Wrong number of arguments: #[(&optional here) ".
.Æ.ÇÈÉ!!ÊP.ËÌÍ.\"!ƒS.ÎÏ!ƒS.ЎÑ.!ˆÒÓ!Ô=ƒR.rÕqˆebˆ`Ö
{.)×ØÙÚ$ˆÛÜÝÞ!\"ƒL.ßP.àáR.)âã\".%ƒ`.cˆä!,‡"
[default-directory origin org-version version git-version dir nil
file-name-directory locate-library "org" ...] 5
("/usr/share/emacs23/site-lisp/org-mode/org.elc" . 4395) "P"], 2





Bastien  writes:

> Hi Alexander,
>
> Alexander Vorobiev  writes:
>
>> I tried running the function but got an error:
>
> Maybe you are setting variables about org-remember while not having
> org-remember.el in your load-path anymore ?  (It is not part of recent
> Org.)
>
> HTH,
>
> -- 
>  Bastien



Re: [O] Show TODO item in table of contents

2013-11-05 Thread Rainer Stengele
Am 04.11.2013 22:48, schrieb Bastien:
> Hi Rainer,
>
> Rainer Stengele  writes:
>
>> I couldn't find a way to show the TODO items in the table of econtents of an 
>> exported html of an org file.
>> I do not mean org-export-mark-todo-in-toc.
>> Please help me find a variable!
> org-export-with-tasks ?
>
Hi Bastien,

I have that one set to t.
What I want is to see the todo state words in the table of contents.
I see them in the contents but not in the table of contents.

Thanks,
Rainer