Re: [O] Drag images from Firefox to org-mode

2013-10-23 Thread Christian Moe

Torsten Wagner writes:

> Thunderlink (a thunderbird plugin), instead is able to fetch the
> message-id, which is unique and independent on the mail position. If
> there is an interest to extend the drag and drop to emails, I could
> ask the developer of thunderlink if there is a way to change the drag
> and drop url to the message-id e.g. with the help of his plugin.
> Thunderlink itself works already quite well with org-mode. The newest
> version on git-hub allows to create direct org-mode links which one
> could simply copy and paste from the clipboard. Guess only a small
> amount of work would be needed to make it drag and drop ready too.
>

That's interesting. Last year I finally switched to mu4e after many
happy years with Thunderbird, in large part so I could finally store
robust links to messages from Org. If there's a solution for Thunderbird
I imagine many people would be glad to hear about it. (I don't think
I'll go back, though; mu4e rocks.)

Christian



Re: [O] Help on spreadsheet/calc references and improvements

2013-10-23 Thread Carsten Dominik
Applied, thanks.

Michael, would you like to have write access to the git repo?

- Carsten

On 23.10.2013, at 17:12, Michael Brand  wrote:

> Hi Carsten, Bastien and Nicolas
> 
> On Fri, Oct 18, 2013 at 9:07 PM, Michael Brand
>  wrote:
>> On Sun, Oct 6, 2013 at 7:03 PM, Michael Brand>  
>> wrote:
>>> @maintainers:
>>> According to the below I tried to improve the Org manual with the
>>> attached patch, please review and apply.
>> 
>> I would like to remind to review and apply the patch attached on
>> [2013-10-06 Sun] to this thread
>> (0001-Improve-manual-for-table-formulas.patch.txt).
> 
> I would like to remind to review and apply the patch attached on
> [2013-10-06 Sun] to this thread
> (0001-Improve-manual-for-table-formulas.patch.txt).
> 
> Michael




Re: [O] Repeating the customization survey?

2013-10-23 Thread Carsten Dominik

On 23.10.2013, at 21:25, Samuel Wales  wrote:

> Will this use a function that people can run on their files?

Not on files.  Just in an emacs session, I will provide a command to run.

- Carsten

> 
> It /was/ interesting and a good workout for Org.
> 
> Samuel
> 
> -- 
> 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] trying to write a guidebook for students using org , need help with formating

2013-10-23 Thread Eric Abrahamsen
Xebar Saram  writes:

> Thanks again guys
>
> Rick: "But a better approach would be to define your own latex list
> environment for
> program steps and use lists:"
>
> ive never used latex, do you mind expanding on that a bit?
>
> Eric: "I don't think it's cut, is it? I just tried with your example
> and long
> lines are preserved as-is (ie, quite long)"
> this is how it looks in my pdf export:
>
> https://paste.xinu.at/sYsMVz/

Oh I see -- it's latex that cuts those lines off, not the org exporter.
You'll probably want to go the list route then. See this link for how to
create a custom list environment:

http://www.troubleshooters.com/linux/lyx/ownlists.htm

Then do this in org, replacing "bogus" with the name of your new environment:

#+ATTR_LATEX: :environment bogus
- this is a
- list with some
- items in it

Hope that gets you there!

Eric




Re: [O] Problem with automatic recursive adding of org-agenda-files

2013-10-23 Thread Eric Abrahamsen
Nicolas Richard  writes:

> Eric Abrahamsen  writes:
>> FWIW, I don't even have a `find-lisp-find-files' function in my
>> installation (GNU Emacs 24.3.1).
>
> Even if you eval (load-library "find-lisp") ? It's built-in for me on
> GNU Emacs 24.3.1 too.

Ah, no, there it is. I didn't realize it was in a separate library, as
apparently some find-lisp-* prefixed functions outside of that library
were already loaded by default.




[O] help me get started with org-publish?

2013-10-23 Thread Jay Dixit
I'm trying to set up org-publish for HTML export and I keep getting strange
errors related to org-footnote-normalize.
https://gist.github.com/7131173

Anyone have any thoughts? Eventually I'd like to get org-publish working
via tramp and web.

My goal is to create a blog and post updates to it via org-mode. Thanks!


[O] org-slidy and other HTML slideshows in org 8.x?

2013-10-23 Thread Jay Dixit
Hey everyone,

I'm trying to use Dov Grobgeld's org-slidy (https://github.com/dov/org-slidy)
to create HTML-based slideshows using org-mode, but it doesn't seem to be
working. I'm not sure, but I suspect this is because the syntax for org's
HTML export may have changed?

Here are the options used by org-slidy.
https://gist.github.com/7129945

I tried to fix it by taking out the "-export" from the commands, but it
didn't work. Does anyone know the new correct syntax for these options?

I'm having similar issues trying to use Takumi Kinjo's
org-html5presentation (https://github.com/kinjo/org-html5presentation.el)
and org-impress-js (https://github.com/kinjo/org-impress-js.el). I get
errors like "void-variable org-export-html-special-string-regexps," but I
don't know enough to translate the commands into org-8ese. Does anyone know
how to do this?

Finally, are there other HTML-based slideshows that are compatible with org
8 besides s5 and deck.js?

Thanks!


#+OPTIONS: H:1 num:nil toc:nil \n:nil @:t ::t |:t ^:t f:t LaTeX:t
#+BIND: org-export-html-style-include-default nil
#+BIND: org-export-html-style-include-scripts t
#+BIND: org-export-html-auto-preamble nil
#+BIND: org-export-html-auto-postamble nil
#+BIND: org-export-html-style " "
#+BIND: org-export-html-style-extra ""
#+BIND: org-export-html-preamble org-htmlslidy-html-preamble-function
#+BIND: org-export-html-postamble org-htmlslidy-html-postamble-function


Re: [O] org-babel generated images and +ATTR_LATEX

2013-10-23 Thread Mark Edgington
Hi Mike,

That does help -- when testing it, I found that the problem had more to do
with my header options than to do with the presence or absence of a #+NAME
line.  But still, with the header options I gave in my original example,
org-babel's behavior does seem strange (maybe buggy?) to me.  My working
code now looks like:

#+begin_src python :exports results :results file :eval no-export
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
fig=plt.figure(figsize=(3,2))
plt.plot([1,3,2])
fig.tight_layout()
figname = '/tmp/myfig.jpg'
plt.savefig(figname)
return(figname) # return this to org-mode
#+end_src

#+ATTR_LATEX: :float figure :placement [htb!] :width 0.38\textwidth 
#+RESULTS:

Anyhow, something that wasn't clear to me about your example is how you make
the filename which is generated via org-babel-temp-file available for use
within the code-block?

Regards,

Mark




Re: [O] Beamer export: How to handle overlayarea

2013-10-23 Thread James Harkins
On Oct 24, 2013 12:58 AM, "Nicolas Goaziou"  wrote:
> There are two things to consider: what belongs to the manual, and what
> belongs to `org-beamer-environments-extra' docstring.
>
> I think it is reasonable for the manual not to talk about %o, %r... but,
> instead, simply point to the variable name.

OK.

>Headlines also support 'BEAMER_ACT' and 'BEAMER_OPT' properties. The
> former is translated as an overlay/action specification, or a default
> overlay specification when enclosed within square brackets.  The latter
> specifies options for the current frame or block, and will automatically
> be enclosed within square brackets.

That would help.

I'd still like to see something more like a "for-dummies" explanation of
passing options and arguments to LaTeX entities. I'm not saying the
documentation is woefully inadequate (hardly that -- Suvayu's page got me
rather far, and I got stuck on a couple of details). My experience was: it
never would have occurred to me on my own to use the headline text for
LaTeX code, and if there was a hint anywhere in the docs to suggest that
this would be the way to go, I didn't find it. That's a conceptual leap
that passed me by.

FWIW, I often raise a similar point among SuperCollider devs, noting that
we generally do a decent job of documenting class interfaces, but not such
a great job of explaining to people who don't eat, breathe and sleep SC how
to put the pieces together. That leads to questions such as [1] on the
mailing list. Really basic use case, but this competent user is confused...
meaning, the collective docs aren't doing a thorough job.

This sort of doc would be appropriate for worg, but probably not the
manual. If I have time while traveling, I'll draft up a few paragraphs --
but I don't know all the implementation details so I'd certainly need
another pair of eyes.

hjh

[1] http://article.gmane.org/gmane.comp.audio.supercollider.user/102850


Re: [O] trying to write a guidebook for students using org , need help with formating

2013-10-23 Thread Glyn Millington
Xebar Saram  writes:

> Glyn: thx alot for the example. That does work but then i really hate
> manually having to add the '-' at the start of each page and then also
> indenting each line, is there a solution for that?

My problem is that I know a little LaTeX and less lisp!  I would just do
this the hard way.  If I was driven to automate it slightly, then not
being aware of an org-mode solution I would use latex, like this.

1. Make a file, xebar-bullets.tex, which contains this latex snippet

\begin{itemize}
\item Start typing here 
\item This is the next item you can make these lines as long as you like!!
\item
\item
\item
\item
\item
\item
\item
\item
\item
\item
\item
\item
\item
\item
\end{itemize} 

save it somewhere safe, where you store templates etc

2. Write a function in your .emacs or init.el file like this


(defun xebar-bullets ()
"This inserts the LaTeX \itemize environment into a document - LaTeX will
take care of the wrapping of each item for me"
(interactive)
(insert-file-contents "/home/xebar/templates/xebar-bullets.tex"))

Save this. Evaluate it.


3. Add a key-binding, again in .emacs or init.el, to call this where you
want it.  s-d is the Super key plus d, or pick another - again evaluate
it.

(add-hook 'org-mode-hook
  (lambda ()
(local-set-key (kbd "s-d") 'xebar-bullets)))

Then when you want to add a list of instructions as in your sample doc,
just hit s-d and start typing at the first item.  You can make the lines
as long as you like, and when you export, LaTeX will deal with 'em!  If
you need more items, just add them in.

I've spelled this out because you said you didn't know about LaTeX -
forgive me if it is more info than you need. 

atb

Glyn





Re: [O] [PATCH] Re: manual linebreaks in odt

2013-10-23 Thread Andreas Leha
Hi Nicolas and Christian,

Nicolas Goaziou  writes:

> Hello,
>
> Christian Moe  writes:
>
>> Nicolas, Andreas did put the "\\" at the end, but the line must have got
>> wrapped in your email client.
>
> You're right. For some reason, Gnus sometimes eats newline characters
> within scissors markup.
>
>> I confirm the behavior Andreas reported -- spaces are being needlessly
>> added after forced line breaks in ODT export. 
>>
>> A couple of redundant newlines in ox-odt.el seem to be at fault, so I
>> attach one of the simplest patches ever...
>
> Applied. Thank you.

Thank you both for following this up!  And thanks for the quick patch,
Christian.  I can confirm that my issue is solved!

Regards,
Andreas




Re: [O] odt export with 'header'

2013-10-23 Thread Andreas Leha
Hi Christian,

[bringing this back on the list]


>Andreas Leha  writes:
>
>> Christian Moe  writes:
>>
>>> Andreas Leha writes:
>>>
> 3. Give the first page the page style OrgFirstPage. 

 Which I had to create new.  Is that intended?
>>>
>>> No, I get that out of the box on a clean system, so I think you should
>>> see it too. (Along with OrgTitlePage, which is the style I actually used
>>> for testing, and OrgFrontMatter.)
>>>
>>> When modifying a style template for ODT export, the manual strongly
>>> recommends starting from an ODT document that you have already exported
>>> from Org, so it includes the styles provided by the exporter. Are you
>>> sure that's what you did?
>>>
>>
>> Yes.  I just tried with emacs -Q and loading only orgmode (8.2.1
>> (release_8.2.1-120-g5975d7).  Basically, I only required ox-otd prior to
>> exporting my test document.
>>
>> I do get many Orgxxx templates for lists, paragraphs, ... but none for
>> pages.
>>
> It doesn't strictly have to be that style, or an Org-prefixed style at
> all, but it's strange that you don't have them.
> 

Yes, which style is used seems not essential (as it works with my
self-created OrgFirstPage style).  But I guess, that getting (at
one point) orgmode to automatically assign the desired style to
the first page will be only possible, if the intended style is
used.


> Let's see. The Styles-and-formatting window has five tabs, for
> Paragraph, Character, Frame, Page and List Styles. But you have clicked
> the Page Styles icon, then, and not found any Org-prefixed styles there?
> 

Correct, but see below.


> What is the value of the variable `org-odt-styles-file'? If nil, what is
> your `org-odt-styles-dir'? You should find an `OrgOdtStyles.xml' in one
> of those.


That was the correct pointer.  org-odt-styles-file is indeed nil,
and org-odt-styles-dir is pointing to the wrong directory!  I
gather that it is derived from org-odt-styles-dir-list.  That
list contains the correct directory, but only at the third
position.

<--- short excurs on org odt styles 

I install orgmode from git using
$ make up1; make install.

I have in my local.mk
,
| # Where local software is found
| prefix= /home/andreas/local/emacs/org-mode-install
| 
| # Where local lisp files go.
| lispdir= $(prefix)/lisp
| 
| # Where local data files go.
| datadir = $(prefix)/etc/
`

But still the correct folder
/home/andreas/local/emacs/org-mode-install/etc/styles/ is only at
the fourth position in org-odt-styles-dir-list:

,
| org-odt-styles-dir-list is a variable defined in `ox-odt.el'.
| Its value is
| ("/usr/share/emacs/etc/org/styles/" "/usr/share/emacs/etc/org/styles/" 
"/home/andreas/local/emacs/etc/styles/" 
"/home/andreas/local/emacs/org-mode-install/lisp/etc/styles/" 
"/usr/share/emacs/24.3/etc/org/")
`

(The third entry is even a non-existent directory.)

Isn't that supposed to be set automagically during the install process?

I have now a
(setq org-odt-styles-dir 
"/home/andreas/local/emacs/org-mode-install/etc/styles")
in my .emacs
Is that the correct fix here?

 short excurs on org odt styles ->


> If you open it and search for `OrgFirstPage' or
> `OrgTitlePage', what do you find?
> 

In the correct style file I see OrgFirstPage now.  Everything fine.

>> Any idea, what could be wrong here?
>>
 Field values do not behave, as I would like:
 1. I do not get anything in the author field (and would like
the #+AUTHOR value)
>>>
>>> That's what I get, so I don't know why your case differs. I don't
>>> suppose you have turned off inclusion of author information? Please
>>> check your export options, and what you find when you look at
>>> File > Properties in LibreOffice.
>>
>> Sorry, my bad.  I had indeed disabled the author in the export
>> properties of the subtree and did not check there.
>>
> I assume this works, then.

It does, thanks.

>>>
 2. (The same happens for email)
>>>
> And if you enable #+OPTIONS: email:t ...?

Does not seem to change anything here.

>>>
 3. The date always shows the current date, but I'd like to see
the #+DATE: value.
>>>
>>> Yes, this is a little more tricky than I thought.
>>>
>>> Try this: 
>>>
>>> Insert > Fields > Other > Tab:DocInformation > Type:Created, Select:Date
>>>
>>
>> Well, I changed the date in the org file (#+DATE: 2013-10-10) and I do not 
>> know
>> where that value would be set in the odt.  In the standard export it is
>> included as text formatted as OrgSubtitle, so I guess it is not a field
>> value, I could display someplace else?
>>
>> The field you suggest seems to give me what it says:  the creation date.
>>
> 
> Yes, try using a timestamp instead:
> 
> #+DATE: [2013-10-10]
> 

That works, thanks.  I do not always use a real date here (but sometimes
also sth like '3rd meeting of ...').  But that is not a real problem --
I can easily restrict myself to using real dates only.

>> [...]
>>
> 8. If you don't see

Re: [O] underscore escaping

2013-10-23 Thread Andreas Leha
Hi Nicolas,

Nicolas Goaziou  writes:

> Hello,
>
> Andreas Leha  writes:
>
>> According to the manual [fn:1] I expect to see underscores in the
>> exported (to LaTeX) version of this test file:
>>
>> * Underscore\_Escaping_Test
>>
>> Underscore\_Escaping_Test
>
> At the moment, there is no support for escaped characters in the export
> framework. Thus, the manual is inaccurate here.
>

Thanks for the info.

[...]

Regards,
Andreas





Re: [O] org-babel generated images and +ATTR_LATEX

2013-10-23 Thread Michael Gauland
Mark,
I think you want to use named results. My images typically look something
like this:

   #+NAME: architecture
   #+HEADER: :exports results
   #+HEADER: :file (org-babel-temp-file "./figure-" ".eps")
   #+HEADER: :cache yes
   #+BEGIN_SRC plantuml
   ...
   #+END_SRC

   #+NAME: fig-architecture
   #+CAPTION: Overview of mini-me architecture.
   #+ATTR_LaTeX: :width \textwidth :placement [h!bt]
   #+RESULTS: architecture
  
[[file:c:/Users/mgauland/AppData/Local/Temp/babel-5988Tli/figure-5988XRB.eps]]

Does that help?

Kind Regards,
Mike





Re: [O] Drag images from Firefox to org-mode

2013-10-23 Thread Torsten Wagner
Hi,

I have to correct myself, I could use the link created by thunderbird
drag and drop. I simply missed to put the link into quotes.

This works, thunderbird will open the message in a new view.
thunderbird -mails
"imap://user.name%2borganisation@mailsystem.organisation.com:993/fetch>UID>/INBOX>1274"

However, the drawback with this, the url is rather fragile. It relies
on the folder and a simple number. I am not sure how much one could
rely that this number is always the same. Maybe imap or thunderbird
compress the list of emails by time effectively renumbering each email
in a folder. Furthermore, if I move the mail to another folder my
org-mode link would be broken too.

Thunderlink (a thunderbird plugin), instead is able to fetch the
message-id, which is unique and independent on the mail position. If
there is an interest to extend the drag and drop to emails, I could
ask the developer of thunderlink if there is a way to change the drag
and drop url to the message-id e.g. with the help of his plugin.
Thunderlink itself works already quite well with org-mode. The newest
version on git-hub allows to create direct org-mode links which one
could simply copy and paste from the clipboard. Guess only a small
amount of work would be needed to make it drag and drop ready too.

One could also think of saving the email as plain text in the org-mode
folder and create a link to that. However, I frighten this would
require more work. One idea would be to fetch the email by the message
id from the imap server from within emacs. But I guess this would
create a large amount of dependencies to make this working.

Greetings

Torsten



On 23 October 2013 20:59, Torsten Wagner  wrote:
> Hi,
>
> just wonder if we can drag-and-drop images into org-mode could we
> drag-and drop emails from e.g. thunderbird too. There is a plugin for
> thunderbird call thunderlink which allows to generate org-mode
> readable links.
> However, drag and drop an email in a browser gives a address which looks like:
>
> imap://user.name%2borganisation@mailsystem.organisation.com:993/fetch>UID>/INBOX>1274
>
> I tried to use this address to call it with thunderbird
> via
> thunderbird -mail  but it failed.
> with
> permission denied: /INBOX
>
> I guess it would be very attractive for many users if they could
> create links to there email program by drag-and drop.
>
> Just an idea
>
> Torsten
>
>
> On 23 October 2013 20:26, Oleh  wrote:
>> On Wed, Oct 23, 2013 at 7:13 PM, Rick Frankel  wrote:
>>> On 2013-10-20 16:42, Nicolas Richard wrote:

 Oleh  writes:
 This can be fixed with a platform-aware function that checks both the
 clipboard and the cut-buffer.

 I suggest to ask for a string with (read-string "URL: " nil nil default),
 offering the content of the clipboard/kill ring/selections as the DEFAULT.
 I think it's better to be explicit when downloading content, and there
 isn't much overhead in asking for a confirmation.
>>>
>>>
>>> Agreed. Downloading stuff to your local machine should require a
>>> confirmation step.
>>
>> This is already in place.
>>
>>>
 This can be fixed by adding `org-download-max-filename-length`. When
 it
 overflows, just resort to `default-directory' and provide a
 message/option to fix.

 I suggest that the right place for those files is as attachment, and
 that's where customization should happen. The function choosing the
 right place (i.e. org-download--dir) could be turned into a defvar or
 defcustom which could then be set either to #'org-download--dir or
 #'org-attach-dir.
>>>
>>>
>>> Agreed. Also, the current "fix" (two variable and three functions!) is
>>> overly complex.
>> Two variables can change independently in a meaningful way, giving
>> 4 combinations with the possibility to alter just part of the setup on a file
>> local basis. Three functions specify the intent more clearly.
>>
>>> I propose that their be three options in the
>>> defcustom:
>>> - 'org-attach-directory (the default)
>>> - user entered string
>> I don't get this one.
>>
>>> - a function (which could be set to `org-download-dir')
>> This can be an option for `org-download-method'
>>
>>>
>>>
 By the way, which system doesn't allow for spaces in directory names?

 ISTR that MSDOS (except the latest versions) didn't allow spaces in
 filenames :) Anyway, I tend to avoid spaces as much as I can in
 filenames (including dirs)
>>>
>>>
>>> Also, sending files to external command/shell script for processing
>>> often breaks if you have spaces in paths due to quoting issue.
>>>
>>>
 If you want the ability to create arbitrary output directories
 based
 on document context, the customization can be made to accept a
 function (lambda) as a value, which could then return a directory
 prefix.
 This isn't an option for users with no elisp skills.

 It is an option if there are enough examples/built-ins that can be used.

Re: [O] Repeating the customization survey?

2013-10-23 Thread Samuel Wales
Will this use a function that people can run on their files?

It /was/ interesting and a good workout for Org.

Samuel

-- 
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] Repeating the customization survey?

2013-10-23 Thread Marcin Borkowski
Dnia 2013-10-23, o godz. 15:34:09
Carsten Dominik  napisał(a):

> Dear all,
> 
> in 2009, we ran a customization survey, to figure out which variables
> are actually used by active Org-mode users.  The results can be seen
> here:
> 
>http://orgmode.org/worg/org-configs/org-customization-survey.html
> 
> I was wondering if it would be useful to repeats this - the results
> might be instructive.
> 
> It should be much easier this time, because we now have a function
> that will actually list all changed variables - so we would only have
> to ask people to run a simple lisp command and send in the results.
> Of course, then a volunteer would have to collect and analyse the
> output.  Last time Manish and myself did this, and I remember that it
> was interesting and fun.
> 
> Any takers?

1. Does it require in-depth knowledge of Elisp?  (I guess not, but
wanted to ask - I'm not a programmer.)

2. When it should be done?  (I have a negative amount of spare
time now, but a few big commitments of mine finish this or next week.)

3. Is it very much time-consuming?  (More than 4-5 hours might mean I'm
out.)

> - Carsten

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] Drag images from Firefox to org-mode

2013-10-23 Thread Torsten Wagner
Hi,

just wonder if we can drag-and-drop images into org-mode could we
drag-and drop emails from e.g. thunderbird too. There is a plugin for
thunderbird call thunderlink which allows to generate org-mode
readable links.
However, drag and drop an email in a browser gives a address which looks like:

imap://user.name%2borganisation@mailsystem.organisation.com:993/fetch>UID>/INBOX>1274

I tried to use this address to call it with thunderbird
via
thunderbird -mail  but it failed.
with
permission denied: /INBOX

I guess it would be very attractive for many users if they could
create links to there email program by drag-and drop.

Just an idea

Torsten


On 23 October 2013 20:26, Oleh  wrote:
> On Wed, Oct 23, 2013 at 7:13 PM, Rick Frankel  wrote:
>> On 2013-10-20 16:42, Nicolas Richard wrote:
>>>
>>> Oleh  writes:
>>> This can be fixed with a platform-aware function that checks both the
>>> clipboard and the cut-buffer.
>>>
>>> I suggest to ask for a string with (read-string "URL: " nil nil default),
>>> offering the content of the clipboard/kill ring/selections as the DEFAULT.
>>> I think it's better to be explicit when downloading content, and there
>>> isn't much overhead in asking for a confirmation.
>>
>>
>> Agreed. Downloading stuff to your local machine should require a
>> confirmation step.
>
> This is already in place.
>
>>
>>> This can be fixed by adding `org-download-max-filename-length`. When
>>> it
>>> overflows, just resort to `default-directory' and provide a
>>> message/option to fix.
>>>
>>> I suggest that the right place for those files is as attachment, and
>>> that's where customization should happen. The function choosing the
>>> right place (i.e. org-download--dir) could be turned into a defvar or
>>> defcustom which could then be set either to #'org-download--dir or
>>> #'org-attach-dir.
>>
>>
>> Agreed. Also, the current "fix" (two variable and three functions!) is
>> overly complex.
> Two variables can change independently in a meaningful way, giving
> 4 combinations with the possibility to alter just part of the setup on a file
> local basis. Three functions specify the intent more clearly.
>
>> I propose that their be three options in the
>> defcustom:
>> - 'org-attach-directory (the default)
>> - user entered string
> I don't get this one.
>
>> - a function (which could be set to `org-download-dir')
> This can be an option for `org-download-method'
>
>>
>>
>>> By the way, which system doesn't allow for spaces in directory names?
>>>
>>> ISTR that MSDOS (except the latest versions) didn't allow spaces in
>>> filenames :) Anyway, I tend to avoid spaces as much as I can in
>>> filenames (including dirs)
>>
>>
>> Also, sending files to external command/shell script for processing
>> often breaks if you have spaces in paths due to quoting issue.
>>
>>
>>> If you want the ability to create arbitrary output directories
>>> based
>>> on document context, the customization can be made to accept a
>>> function (lambda) as a value, which could then return a directory
>>> prefix.
>>> This isn't an option for users with no elisp skills.
>>>
>>> It is an option if there are enough examples/built-ins that can be used.
>>> e.g. message-send-mail-function can be customized in this way, its
>>> docstring gives a list of meaningful values.
>>
>>
>> Agreed.
>
> There's still two functionality bits that I want to add:
> local files and forwarding to default dnd handlers in the case it's
> not an image.
> But that can be added in later.
> Please make the changes that you think are necessary and commit to org.
>
> regards,
> Oleh
>



[O] org-babel generated images and +ATTR_LATEX

2013-10-23 Thread Mark Edgington
Hello all,

I have noticed that it seems not possible to evaluate a babel block of code
which generates an image, and to have a #+ATTR_LATEX line exist which
immediately precedes the generated link to the image.  In other words, If
there's already a #+ATTR_LATEX line, I need to move it after the block is
evaluated, or else it doesn't immediately precede the generated link.

For example, if I have the following...

#+begin_src python :exports none :results file
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
fig=plt.figure(figsize=(3,2))
plt.plot([1,3,2])
fig.tight_layout()
figname = '/tmp/myfig.jpg'
plt.savefig(figname)
return(figname) # return this to org-mode
#+end_src

#+RESULTS:
#+ATTR_LATEX: :float figure :placement [htb!] :width 0.38\textwidth

... when I evaluate the code-block, the image-link gets inserted directly
after the #+RESULTS line, and before the #+ATTR_LATEX line.  Without the
+ATTR_LATEX line, directly preceding the image-link, no image is inserted
into the PDF which is created when exporting via the latex-exporter.

So, it would be ideal if either:
 (1) #+ATTR_LATEX lines applied to whatever image link which appears next,
even if there are additional lines starting with # that are between the
image-link and the #+ATTR_LATEX line,
OR (2) when evaluating an org-babel block, the results were placed *after*
any #... lines that follow a #+RESULTS line.

Does this make sense, or am I possibly not understanding something about
how to make it so that I don't have to modify my document anywhere else
after I change and evaluate an org-babel block?  (currently I need to
relocate the #+ATTR_LATEX line any time I evaluate an image-generating
block)

I'm using the latest org-mode (8.2.1-117-gaff4f1).

Regards,

Mark


Re: [O] Drag images from Firefox to org-mode

2013-10-23 Thread Oleh
On Wed, Oct 23, 2013 at 7:13 PM, Rick Frankel  wrote:
> On 2013-10-20 16:42, Nicolas Richard wrote:
>>
>> Oleh  writes:
>> This can be fixed with a platform-aware function that checks both the
>> clipboard and the cut-buffer.
>>
>> I suggest to ask for a string with (read-string "URL: " nil nil default),
>> offering the content of the clipboard/kill ring/selections as the DEFAULT.
>> I think it's better to be explicit when downloading content, and there
>> isn't much overhead in asking for a confirmation.
>
>
> Agreed. Downloading stuff to your local machine should require a
> confirmation step.

This is already in place.

>
>> This can be fixed by adding `org-download-max-filename-length`. When
>> it
>> overflows, just resort to `default-directory' and provide a
>> message/option to fix.
>>
>> I suggest that the right place for those files is as attachment, and
>> that's where customization should happen. The function choosing the
>> right place (i.e. org-download--dir) could be turned into a defvar or
>> defcustom which could then be set either to #'org-download--dir or
>> #'org-attach-dir.
>
>
> Agreed. Also, the current "fix" (two variable and three functions!) is
> overly complex.
Two variables can change independently in a meaningful way, giving
4 combinations with the possibility to alter just part of the setup on a file
local basis. Three functions specify the intent more clearly.

> I propose that their be three options in the
> defcustom:
> - 'org-attach-directory (the default)
> - user entered string
I don't get this one.

> - a function (which could be set to `org-download-dir')
This can be an option for `org-download-method'

>
>
>> By the way, which system doesn't allow for spaces in directory names?
>>
>> ISTR that MSDOS (except the latest versions) didn't allow spaces in
>> filenames :) Anyway, I tend to avoid spaces as much as I can in
>> filenames (including dirs)
>
>
> Also, sending files to external command/shell script for processing
> often breaks if you have spaces in paths due to quoting issue.
>
>
>> If you want the ability to create arbitrary output directories
>> based
>> on document context, the customization can be made to accept a
>> function (lambda) as a value, which could then return a directory
>> prefix.
>> This isn't an option for users with no elisp skills.
>>
>> It is an option if there are enough examples/built-ins that can be used.
>> e.g. message-send-mail-function can be customized in this way, its
>> docstring gives a list of meaningful values.
>
>
> Agreed.

There's still two functionality bits that I want to add:
local files and forwarding to default dnd handlers in the case it's
not an image.
But that can be added in later.
Please make the changes that you think are necessary and commit to org.

regards,
Oleh



Re: [O] trying to write a guidebook for students using org , need help with formating

2013-10-23 Thread Xebar Saram
Thanks again guys

Rick: "But a better approach would be to define your own latex list
environment for
program steps and use lists:"

ive never used latex, do you mind expanding on that a bit?

Eric: "I don't think it's cut, is it? I just tried with your example and
long
lines are preserved as-is (ie, quite long)"
this is how it looks in my pdf export:

https://paste.xinu.at/sYsMVz/

i just want all the line to appear in the pdf and not get cut (that is have
it auto wrap when the like nears a paper edge)

Glyn: thx alot for the example. That does work but then i really hate
manually having to add the '-' at the start of each page and then also
indenting each line, is there a solution for that?

i really appreciate all the help, you guys are great help!

z.


On Wed, Oct 23, 2013 at 5:23 PM, Glyn Millington
wrote:

> Xebar Saram  writes:
>
> > Thx again Eric
> >
> > i actually like using the example block but as you mentioned i think the
> text is cut at the end when you export it , is there anyway to
> > make the exporter auto wrap lines inside example blocks?
>
>
> Hi Xebar,
>
> This does seem to be getting rather complicated.  Does the adapted
> version of your file below give you the kind of result you want? It will
> probably get munged in the sending
>
> atb
>
> Glyn
>
>


Re: [O] [RFC] Do not declare drawers to use them

2013-10-23 Thread Nicolas Goaziou
Hello,

Achim Gratz  writes:

> I suggest that completion should still look at configured drawer
> names.

Since the patch removes DRAWER keyword, there is no place left to
configure drawer names.

Using DRAWER keyword only for completion would be confusing, because it
would then behave very differently from similar keywords, e.g. TAGS.

Another option would be to collect drawer names already used throughout
the buffer and offer it as a completion basis. It should be reasonably
fast once parser cache is implemented.


Regards,

-- 
Nicolas Goaziou



Re: [O] Drag images from Firefox to org-mode

2013-10-23 Thread Rick Frankel

On 2013-10-20 16:42, Nicolas Richard wrote:

Oleh  writes:
This can be fixed with a platform-aware function that checks both the
clipboard and the cut-buffer.

I suggest to ask for a string with (read-string "URL: " nil nil 
default),
offering the content of the clipboard/kill ring/selections as the 
DEFAULT.

I think it's better to be explicit when downloading content, and there
isn't much overhead in asking for a confirmation.


Agreed. Downloading stuff to your local machine should require a
confirmation step.


This can be fixed by adding `org-download-max-filename-length`. When
it
overflows, just resort to `default-directory' and provide a
message/option to fix.

I suggest that the right place for those files is as attachment, and
that's where customization should happen. The function choosing the
right place (i.e. org-download--dir) could be turned into a defvar or
defcustom which could then be set either to #'org-download--dir or
#'org-attach-dir.


Agreed. Also, the current "fix" (two variable and three functions!) is
overly complex. I propose that their be three options in the
defcustom:
- 'org-attach-directory (the default)
- user entered string
- a function (which could be set to `org-download-dir')


By the way, which system doesn't allow for spaces in directory names?

ISTR that MSDOS (except the latest versions) didn't allow spaces in
filenames :) Anyway, I tend to avoid spaces as much as I can in
filenames (including dirs)


Also, sending files to external command/shell script for processing
often breaks if you have spaces in paths due to quoting issue.


If you want the ability to create arbitrary output directories
based
on document context, the customization can be made to accept a
function (lambda) as a value, which could then return a directory
prefix.
This isn't an option for users with no elisp skills.

It is an option if there are enough examples/built-ins that can be 
used.

e.g. message-send-mail-function can be customized in this way, its
docstring gives a list of meaningful values.


Agreed.

rick



Re: [O] [PATCH] Re: manual linebreaks in odt

2013-10-23 Thread Nicolas Goaziou
Hello,

Christian Moe  writes:

> Nicolas, Andreas did put the "\\" at the end, but the line must have got
> wrapped in your email client.

You're right. For some reason, Gnus sometimes eats newline characters
within scissors markup.

> I confirm the behavior Andreas reported -- spaces are being needlessly
> added after forced line breaks in ODT export. 
>
> A couple of redundant newlines in ox-odt.el seem to be at fault, so I
> attach one of the simplest patches ever...

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou



[O] [PATCH] Re: manual linebreaks in odt

2013-10-23 Thread Christian Moe

Hi,

Nicolas, Andreas did put the "\\" at the end, but the line must have got
wrapped in your email client.

I confirm the behavior Andreas reported -- spaces are being needlessly
added after forced line breaks in ODT export. 

A couple of redundant newlines in ox-odt.el seem to be at fault, so I
attach one of the simplest patches ever...

Yours,
Christian

>From 187ba51d721ef4e06ca7ae647216ada8800a9c32 Mon Sep 17 00:00:00 2001
From: Christian Moe 
Date: Wed, 23 Oct 2013 18:49:03 +0200
Subject: [PATCH] ODT: Stop adding leading space after line break

* lisp/ox-odt.el (org-odt-line-break): remove newline after line-break
tag
(org-odt-plain-text): ditto.

The exporter was pretty-printing the ODT XML with newlines after
forced line breaks, but LibreOffice would interpret those as
spaces. This led to a leading space after every manual line break.
---
 lisp/ox-odt.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index 57a9b6e..775fe1d 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -2059,7 +2059,7 @@ CONTENTS is nil.  INFO is a plist holding contextual information."
 (defun org-odt-line-break (line-break contents info)
   "Transcode a LINE-BREAK object from Org to ODT.
 CONTENTS is nil.  INFO is a plist holding contextual information."
-  "\n")
+  "")
 
 
  Link
@@ -2980,7 +2980,7 @@ contextual information."
 ;; Handle break preservation if required.
 (when (plist-get info :preserve-breaks)
   (setq output (replace-regexp-in-string
-		"\\(\\)?[ \t]*\n" "\n" output t)))
+		"\\(\\)?[ \t]*\n" "" output t)))
 ;; Return value.
 output))
 
-- 
1.8.3.2



Nicolas Goaziou writes:

> Hello,
>
> Andreas Leha  writes:
>
>> Here is a MWE:
>> * Test line breaks in odt exports
>>
>> Here is a manual\\ linebreak.
>
> This is not a line break. In Org "\\" string has to appear at the end of
> line.
>
>
> Regards,



Re: [O] Beamer export: How to handle overlayarea

2013-10-23 Thread Nicolas Goaziou
Hello,

James Harkins  writes:

> Under "Block environments and overlay specifications," where it discusses
> custom environments, I would add:
>
> ~~
> - Environment options may be given using the BEAMER_opt property. They will
> be enclosed in square brackets and inserted where %o appears in the
> environment definition.
> (with an example, but I can't think of one now)
>
> - Additional arguments may be written into the environment's headline, and
> inserted into the LaTeX string using %r (raw headline text, no processing).
> ~~

There are two things to consider: what belongs to the manual, and what
belongs to `org-beamer-environments-extra' docstring.

I think it is reasonable for the manual not to talk about %o, %r... but,
instead, simply point to the variable name.

> I think it's important to mention it in the section where it can be used.
> My faulty conclusion was based on the fact that the only mention of _opt is
> in a section about frames.

Then what about changing

 Headlines also support 'BEAMER_ACT' and 'BEAMER_OPT' properties.  The
  former is translated as an overlay/action specification, or a default
  overlay specification when enclosed within square brackets.  The latter
  specifies options for the current frame.

into something like

   Headlines also support 'BEAMER_ACT' and 'BEAMER_OPT' properties. The
former is translated as an overlay/action specification, or a default
overlay specification when enclosed within square brackets.  The latter
specifies options for the current frame or block, and will automatically
be enclosed within square brackets.


Regards,

-- 
Nicolas Goaziou



Re: [O] underscore escaping

2013-10-23 Thread Nicolas Goaziou
Hello,

Andreas Leha  writes:

> According to the manual [fn:1] I expect to see underscores in the
> exported (to LaTeX) version of this test file:
>
> * Underscore\_Escaping_Test
>
> Underscore\_Escaping_Test

At the moment, there is no support for escaped characters in the export
framework. Thus, the manual is inaccurate here.

You can set `org-export-with-sub-superscripts' to '{} and write:

  Underscore_Escaping_{Test}

Note that implementing it back is in my TODO list, but I'd like to
generalize to emphasis markup, too. So, it will have to wait a bit.


Regards,

-- 
Nicolas Goaziou



Re: [O] manual linebreaks in odt

2013-10-23 Thread Nicolas Goaziou
Hello,

Andreas Leha  writes:

> Here is a MWE:
> * Test line breaks in odt exports
>
> Here is a manual\\ linebreak.

This is not a line break. In Org "\\" string has to appear at the end of
line.


Regards,

-- 
Nicolas Goaziou



Re: [O] Problem with automatic recursive adding of org-agenda-files

2013-10-23 Thread Nicolas Richard
Eric Abrahamsen  writes:
> FWIW, I don't even have a `find-lisp-find-files' function in my
> installation (GNU Emacs 24.3.1).

Even if you eval (load-library "find-lisp") ? It's built-in for me on
GNU Emacs 24.3.1 too.

-- 
Nico.



Re: [O] Help on spreadsheet/calc references and improvements

2013-10-23 Thread Michael Brand
Hi Carsten, Bastien and Nicolas

On Fri, Oct 18, 2013 at 9:07 PM, Michael Brand
 wrote:
> On Sun, Oct 6, 2013 at 7:03 PM, Michael Brand>  
> wrote:
>> @maintainers:
>> According to the below I tried to improve the Org manual with the
>> attached patch, please review and apply.
>
> I would like to remind to review and apply the patch attached on
> [2013-10-06 Sun] to this thread
> (0001-Improve-manual-for-table-formulas.patch.txt).

I would like to remind to review and apply the patch attached on
[2013-10-06 Sun] to this thread
(0001-Improve-manual-for-table-formulas.patch.txt).

Michael



Re: [O] trying to write a guidebook for students using org , need help with formating

2013-10-23 Thread Glyn Millington
Xebar Saram  writes:

> Thx again Eric
>
> i actually like using the example block but as you mentioned i think the text 
> is cut at the end when you export it , is there anyway to
> make the exporter auto wrap lines inside example blocks?


Hi Xebar,

This does seem to be getting rather complicated.  Does the adapted
version of your file below give you the kind of result you want? It will
probably get munged in the sending

atb

Glyn



ex_l1.1.org
Description: Lotus Organizer


[O] manual linebreaks in odt

2013-10-23 Thread Andreas Leha
Hi all,

the odt exporter introduces a spurious [space] at the beginning of the
new line after a manual line break enforced by '\\'.

According to the manual [fn:1] '\\' is the intended syntax for
linebreaks.  Thus, this seems to be a bug in the odt exporter.

Here is a MWE:
--8<---cut here---start->8---
* Test line breaks in odt exports

Here is a manual\\
linebreak.
--8<---cut here---end--->8---



Regards,
Andreas

Footnotes:

[fn:1] http://orgmode.org/manual/Paragraphs.html




Re: [O] odt export with 'header'

2013-10-23 Thread Andreas Leha
Christian Moe  writes:

> Andreas Leha writes:
>
>>> 3. Give the first page the page style OrgFirstPage. 
>>
>> Which I had to create new.  Is that intended?
>
> No, I get that out of the box on a clean system, so I think you should
> see it too. (Along with OrgTitlePage, which is the style I actually used
> for testing, and OrgFrontMatter.)
>
> When modifying a style template for ODT export, the manual strongly
> recommends starting from an ODT document that you have already exported
> from Org, so it includes the styles provided by the exporter. Are you
> sure that's what you did?
>

Yes.  I just tried with emacs -Q and loading only orgmode (8.2.1
(release_8.2.1-120-g5975d7).  Basically, I only required ox-otd prior to
exporting my test document.

I do get many Orgxxx templates for lists, paragraphs, ... but none for
pages.

Any idea, what could be wrong here?

>> Field values do not behave, as I would like:
>> 1. I do not get anything in the author field (and would like
>>the #+AUTHOR value)
>
> That's what I get, so I don't know why your case differs. I don't
> suppose you have turned off inclusion of author information? Please
> check your export options, and what you find when you look at
> File > Properties in LibreOffice.

Sorry, my bad.  I had indeed disabled the author in the export
properties of the subtree and did not check there.

>
>> 2. (The same happens for email)
>
> Haven't tested.
>
>> 3. The date always shows the current date, but I'd like to see
>>the #+DATE: value.
>
> Yes, this is a little more tricky than I thought.
>
> Try this: 
>
> Insert > Fields > Other > Tab:DocInformation > Type:Created, Select:Date
>

Well, I changed the date in the org file (#+DATE: 2013-10-10) and I do not know
where that value would be set in the odt.  In the standard export it is
included as text formatted as OrgSubtitle, so I guess it is not a field
value, I could display someplace else?

The field you suggest seems to give me what it says:  the creation date.

[...]

>>> 8. If you don't see your custom header in the exported document, you may
>>>have to put the first page in OrgFirstPage style manually. (Not sure
>>>how to make this happen automatically.)
>>
>> It would be nice to have this happen somehow.
>
> I'll need to get back to you on that.
>

No(t too many) worries here.  I can live with that manual interaction
(for now). ;-)


Thanks a lot for all your help!

Regards,
Andreas




Re: [O] make new links show as figures?

2013-10-23 Thread Rick Frankel

On 2013-10-22 21:53, John Kitchin wrote:
Is it possible to define new links that would be rendered as inline 
images?


I am imagining something like

chemdraw:benzene.png

which would show the benzene.png file inline, but when I click on it
would open a chemdraw file for editing.


unfortunately, it seems that `org-display-inline-images' has a
hardcoded regex which searches only for =file:= links.

Wouldn't a better way be to define =chemdraw= as a babel language?

ob-plantuml, ob-dot and ob-mscgen are all examples of babel languages
which generate images.

rick



Re: [O] [BUG] Exporting to HTML a document with a #+CALL

2013-10-23 Thread Vladimir Lomov
Hello,
** Eric Schulte [2013-10-22 08:44:18 -0600]:

> This issue only manifests with the Emacs compiled from source, and as
> such I can not reproduce it.

> If this bug makes it into a released version of Emacs I can address it
> then.  Until then perhaps this should be reported to the emacs-dev list.

I found which revision introduced this behaviour (114069) but I don't
know how to prepare minimal example which would show incorrect behaviour
and wouldn't use Org syntax. Is that possible at all?

Nevertheless, I'll try to write a bug report based on Org example but
only tomorrow.

P.S. I suppose there must be another problem commit because error
message was changed somewhere between commits 114100 and 114200, I don't
have time right now to dig deeper.

[...]

---
WBR, Vladimir Lomov

-- 
You will lose your present job and have to become a door to door mayonnaise
salesman.



Re: [O] trying to write a guidebook for students using org , need help with formating

2013-10-23 Thread Eric Abrahamsen
Xebar Saram  writes:

> Thx again Eric
>
> i actually like using the example block but as you mentioned i think
> the text is cut at the end when you export it , is there anyway to
> make the exporter auto wrap lines inside example blocks?

I don't think it's cut, is it? I just tried with your example and long
lines are preserved as-is (ie, quite long).

What would you like it to look like, in the end?

E

> On Wed, Oct 23, 2013 at 11:56 AM, Eric Abrahamsen <
> e...@ericabrahamsen.net> wrote:
>
> Xebar Saram  writes:
>
> > Thank you Eric and Rick!
> >
> > Eric:
> > The #+OPTIONS: \n:nil didn't do much here even using the
> default
> > templates for export as suggested
>
> Sorry! Got it backwards -- it's meant to be \n:t
>
> But still, other responders are probably right that what you want
> is
> actually a different kind of text type: a list or an example
> block.
>
> E
>
> > Rick:
> > i think i can live with the  #+BEGIN_EXAMPLE blocks , is there
> a way
> > to define wrapping text in the block? as you said using the
> block
> > currently cuts off text towards the lines end
> >
> > Appreciate all the help from everyone. thanks alot!
> >
> > z.
> >
> >
> > On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen <
> > e...@ericabrahamsen.net> wrote:
> >>
> >> Xebar Saram  writes:
> >>
> >> > Thank you all
> >> >
> >> > "I think `org-export-preserve-breaks' is the option you
> want. Try
> >> > setting it in a single buffer with #+OPTIONS:\n:nil and see
> what
> >> > happens..."
> >> >
> >> > that sounds interesting, but i couldn't understand how to
> use it
> >> > (again im still an org novice:) )
> >> > do i stick this line at the start:
> >> > #+OPTIONS:\n:nil
> >> >
> >> > is that ^^ syntax correct?
> >>
> >> Nearly correct -- we're the victim of unfortunate line
> wrapping. It
> >> should look like:
> >>
> >> #+OPTIONS: \n:nil
> >>
> >> Ie, with an extra space. If you're a novice, as you say, you
> might
> > like
> >> to see the default options template for exporting. In your org
> > buffer,
> >> hit "C-c C-e" to get to the export dispatcher, then hit "#"
> for
> > template
> >> insertion, then pick "default". It will be a lot easier to see
> and
> > edit
> >> existing options than type them all in by hand.
> >>
> >> Yours,
> >> Eric
> >>
> >>
> >> > On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali <
> >> > fatkasuvayu+li...@gmail.com> wrote:
> >> >
> >> >     On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram
> wrote:
> >> >     >
> >> >     > I'm trying to write a simple guidebook for my students
> in a
> > GIS
> >> >     course.
> >> >     > Everything works great apart for the life of me i cant
> get
> > the
> >> >     hang of
> >> >     > formatting and specifically how to insert
> (automatically?)
> > line
> >> >     breaks so
> >> >     > that its discrete lines and not a paragraph. i think
> one
> > can
> >> >     use '\\' to
> >> >     > indicate a line break but since its a guidebook "form"
> > there
> >> >     are almost no
> >> >     > paragraphs and most line are 1 liners, so it seems to
> me
> > crazy
> >> >     to go over
> >> >     > hundred lines of text and attach a \\ at the end. What
> am i
> >> >     missing here?
> >> >     >
> >> >     > i hope i made sense :) any help or documentation links
> > would be
> >> >     really
> >> >     > appreciated!
> >> >     >
> >> >     > I'm attaching a short example of my org file, note
> that
> > where i
> >> >     want single
> >> >     > lines i add a empty space between lines but still in
> the
> >> >     exporter it
> >> >     > creates a paragraph out of these lines
> >> >     >
> >> >
> >> >     I think you are better off trying to do this with a
> > specialised
> >> >     LaTeX
> >> >     class.  A quick search led me to this TeX.SX question:
> >> >     .  You could also
> try
> > using
> >> >     lists,
> >> >     just disable the bullets with an option in an #
> +attr_latex
> > line.
> >> >
> >> >
> >> >     GL,
> >> >
> >> >     --
> >> >     Suvayu
> >> >
> >> >     Open source is the future. It sets us free.
> >> >
> >>
> >>
>
>




Re: [O] Custom forwarding for a scheduled task

2013-10-23 Thread Fletcher Charest
Dear Sébastien,

Thank you for your answer, it is useful. Now I can see that I already
worked on a task even if I reschedule it and don't see the "Sched. 2x"
mention. But I still have to manually reschedule the task to the next week,
which is what I *really* want to avoid, even at the price of not seeing
what I already did either in the form of clocking time or with the "Sched.
2x" mention (maybe this wasn't clear in my first message).

I will try to write something with my very poor level of emacs-lisp. My
reasoning would be something like: "if a task that has this particular
property was scheduled for being done x days ago (with x > 0), and if it is
not marked DONE, then reschedule it (7 - x) days later". I could maybe
include a comment saying that this task was automatically rescheduled, with
a timestamp. I just hope I'm not reinventing the wheel somewhere in that
process.

Best regards


On Mon, Oct 21, 2013 at 9:15 PM, Sebastien Vauban
wrote:

> Hello Fletcher,
>
> Fletcher Charest wrote:
> > First of all, apologies if I'm doing something wrong - I'm not used to
> > posting in mailing lists.
> >
> > I read in the Org manual, about scheduled tasks :
> >
> > "A reminder that the scheduled date has passed will be present in the
> > compilation for today, until the entry is marked DONE, i.e., the task
> will
> > automatically be forwarded until completed."
> >
> > Sometimes, I schedule a task but can only carry out my second day of work
> > on that task one week later (or my first day if I couldn't work on it on
> > the scheduled day). I would like to know if it is possible to schedule a
> > task, for example, on a Sunday, and see it appear in the agenda the next
> > Sunday with the mention "Sched. 2x:  TODO my task". This way I know I
> have
> > to carry out my second day of work on that task on that day.
> >
> > I tried to use delays for this but couldn't obtain anything.
> >
> > I'm sorry if this is standard functionality or if it has been answered
> > somewhere. I usually find all my answers about org-mode online but this
> > time I couldn't find any info.
>
> This hasn't been answered yet, neither is it a common request.
>
> FWIW, I removed such scheduling info (2x, 3x...) because it scared me to
> hell
> when it went over 99 days delay.
>
> But, to answer you, no, I don't think it's doable in the current system.
> Though, you could get more or less the same functionality by clocking time,
> rescheduling your task for the available Sunday, and clock again. On that
> day,
> you would see that you're clocking hours 8 to 15 of your work.
>
> Best regards,
>   Seb
>
> --
> Sebastien Vauban
>
>
>


[O] Repeating the customization survey?

2013-10-23 Thread Carsten Dominik
Dear all,

in 2009, we ran a customization survey, to figure out which variables are 
actually used by active Org-mode users.  The results can be seen here:

   http://orgmode.org/worg/org-configs/org-customization-survey.html

I was wondering if it would be useful to repeats this - the results might be 
instructive.

It should be much easier this time, because we now have a function that will 
actually list all changed variables - so we would only have to ask people to 
run a simple lisp command and send in the results.  Of course, then a volunteer 
would have to collect and analyse the output.  Last time Manish and myself did 
this, and I remember that it was interesting and fun.

Any takers?

- Carsten


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

2013-10-23 Thread Uwe Brauer
Hello 


Please consider the following example of a hebrew text, which is written
in logical form. 

  פרויקט   לשמור  מגדל   פיזה  שעלה  20  מיליון   אירו  השלים  לאחרונה. 

When exported to odt, the first sentence is displayed correctly.
However when I try to put it in a table as the following lines
indicates.

Then this table is displayed L2R.

|  פרויקט|   לשמור|  מגדל|   פיזה|  שעלה|  20|  מיליון |  אירו|  השלים  |
לאחרונה.| 
 

I attach the odt file.

This seems a sort of bug?

Uwe Brauer 



pisa-inter.odt
Description: application/vnd.oasis.opendocument.text


Re: [O] trying to write a guidebook for students using org , need help with formating

2013-10-23 Thread Rick Frankel

On 2013-10-23 02:11, Xebar Saram wrote:

i think i can live with the  #+BEGIN_EXAMPLE blocks , is there a way
to define wrapping text in the block? as you said using the block
currently cuts off text towards the lines end


Well, you can use fill-paragraph manually, but that requires lines
separated by spaces.

You could also map `do-auto-fill' to a keystroke and use that to
justify lines.

But a better approach would be to define your own latex list environment 
for

program steps and use lists:

#+BEGIN_SRC org
* Example steps:

#+ATTR_LATEX :environment step-list

- step 1
- step 2
#+END_SRC

you could also redefine the default list (=itemize=) environment...

rick



Re: [O] [RFC] Change some defcustoms into defcont

2013-10-23 Thread Carsten Dominik
Hi Nicolas, and everyone else.

I have just investigated what actually happens is someone has a
customize setting for a variable in his/her setup, and then the variable
is changed to a defconst  behind his/her back.  The result was very
surprising to me:  customize-set-variables still does set the variable
to the stored value.  Changing a different customize variable
and selecting "apply and change" updates the init file where
customize-set-variables is stored, and interestingly still preserves
the customize setting for the variable that now has become
a defconst.

This surprised me, and it seems to indicate that existing configurations
would not break.

Furthermore, I have looked at the old customization survey
at http://orgmode.org/worg/org-configs/org-customization-survey.html

It turns out that none of the variables Nicolas listed seems to have been
customized by the people participating in this survey.

Tanking these together, I am now inclined to change my view and
to let Nicolas make his proposed change.
What I would like to request is that we try to make Org still work if these
variables do in fact have a different value - but that is what Nicolas
already said.

So:  IF YOU HAVE CUSTOMIZED any of this variables, I'd like to hear about it.
Otherwise, I now think that the proposal is actually good and should move ahead.

- Carsten


On Oct 23, 2013, at 10:56 AM, Nicolas Goaziou  wrote:

> Hello,
> 
> Carsten Dominik writes:
> 
>> can you remind me what the bug was?  The taskjuggler issue?
> 
> Correct. I will fix it today.
> 
>> Yes, as I said, I do see all these problems, but I also feel the 
>> responsibility
>> to break as few as possible existing configurations.
> 
> I understand. Though, almost any serious change breaks some existing
> configuration. It is unfortunate, but I hope it will not prevent us from
> correcting past, and future, mistakes. Without that right to be wrong,
> we'd better plan Org development a very long time ahead and cross
> fingers hoping we will never fail. Don't cross too hard.
> 
>> If you want, I can take a shot at documenting this properly.
> 
> I'm not convinced by that documentation thing, i.e. "we allow you to
> change the string, but we remind you that you shouldn't do it". It even
> goes against my initial suggestion, so I cannot say I "want" anything in
> that area.
> 
> Unless, that is, you're talking about a deprecation warning, e.g. "In
> future releases, this variable will not be customizable anymore, so be
> careful when changing its default value". But, IIUC, that's not what you
> want.
> 
> 
> Regards,
> 
> -- 
> Nicolas Goaziou




[O] [BUG] mention org-after-sorting-entries-or-items-hook

2013-10-23 Thread Andreas Röhler

`org-sort-entries' calls a useful hook

`org-after-sorting-entries-or-items-hook', which isn't mentioned in docstring.

BTW using this to restore empty lines swallowed by sort.

Thanks all,

Andreas



Re: [O] odt export with 'header'

2013-10-23 Thread Christian Moe

Andreas Leha writes:

>> 3. Give the first page the page style OrgFirstPage. 
>
> Which I had to create new.  Is that intended?

No, I get that out of the box on a clean system, so I think you should
see it too. (Along with OrgTitlePage, which is the style I actually used
for testing, and OrgFrontMatter.)

When modifying a style template for ODT export, the manual strongly
recommends starting from an ODT document that you have already exported
from Org, so it includes the styles provided by the exporter. Are you
sure that's what you did?

> Field values do not behave, as I would like:
> 1. I do not get anything in the author field (and would like
>the #+AUTHOR value)

That's what I get, so I don't know why your case differs. I don't
suppose you have turned off inclusion of author information? Please
check your export options, and what you find when you look at
File > Properties in LibreOffice.

> 2. (The same happens for email)

Haven't tested.

> 3. The date always shows the current date, but I'd like to see
>the #+DATE: value.

Yes, this is a little more tricky than I thought.

Try this: 

Insert > Fields > Other > Tab:DocInformation > Type:Created, Select:Date

If you can't get the Author field to work the way I suggested, perhaps
the same recipe with Select:Author will help.

>> 8. If you don't see your custom header in the exported document, you may
>>have to put the first page in OrgFirstPage style manually. (Not sure
>>how to make this happen automatically.)
>
> It would be nice to have this happen somehow.

I'll need to get back to you on that.

Yours,
Christian



[O] underscore escaping

2013-10-23 Thread Andreas Leha
Hi all,

do I miss something wrt underscore escaping?

According to the manual [fn:1] I expect to see underscores in the
exported (to LaTeX) version of this test file:

--8<---cut here---start->8---
* Underscore\_Escaping_Test

Underscore\_Escaping_Test

#+caption: Underscore\_Escaping_Test
#+begin_src latex :exports code
  \latex
#+end_src
--8<---cut here---end--->8---



But instead, I get something with $\backslash$$_$:

--8<---cut here---start->8---
\section{Underscore$\backslash$$_{\text{Escaping}}$$_{\text{Test}}$}
\label{sec-1}

Underscore$\backslash$$_{\text{Escaping}}$$_{\text{Test}}$

\lstset{language=TeX,caption={Underscore$\backslash$$_{\text{Escaping}}$$_{\text{Test}}$},numbers=none}
\begin{lstlisting}
\latex
\end{lstlisting}
--8<---cut here---end--->8---



Is that intended?  And if so, what is the intended way to escape an
underscore?


Regards,
Andreas


Footnotes:

[fn:1] http://orgmode.org/manual/Subscripts-and-superscripts.html




Re: [O] Problem with automatic recursive adding of org-agenda-files

2013-10-23 Thread Nick Dokos
Eric Abrahamsen  writes:

> Tor Eriksson  writes:
>
>> Hello all,
>>
>> I have searched the web without finding a solution to the following
>> problem:
>>
>> I am using this snippet in my .emacs.d (using emacs starterkit) to
>> dynamically and recursively load all org files in the directory
>> "important-directory" and any subdirectory of this directory:
>>
>> (load-library "find-lisp")
>> (setq org-agenda-files (find-lisp-find-files 
>> "/home/user/important-directory" "\.org$"))
>>
>> The snippet comes from http://orgmode.org/worg/org-faq.html
>>
>> This set-up has worked fine for more than two years; every time I add
>> a new subdirectory with an .org file, this file gets picked up for
>> the agenda.
>
> I don't know why that's not working, but I'm doing this:
>
> (setq org-agenda-files '("~/org/"))
>
> And it works out fine. It will pick up all files under that directory
> that match `org-agenda-file-regexp', which defaults as everything ending
> in ".org". You might try that with "/home/user/important-directory/"?
>

IIUC, this does not do a recursive enumeration though...

> FWIW, I don't even have a `find-lisp-find-files' function in my
> installation (GNU Emacs 24.3.1).
>

...whereas this does (I gather - I don't have find-lisp-find-files
either, so it's probably some add-on that the OP installed).

Back to the original problem: does

  (find-lisp-find-files "/home/user/important-directory" "\.org$")

enumerate the "missing" file? What does it return?

-- 
Nick




Re: [O] trying to write a guidebook for students using org , need help with formating

2013-10-23 Thread Xebar Saram
Thx again Eric

i actually like using the example block but as you mentioned i think the
text is cut at the end when you export it , is there anyway to make the
exporter auto wrap lines inside example blocks?

best

z


On Wed, Oct 23, 2013 at 11:56 AM, Eric Abrahamsen
wrote:

> Xebar Saram  writes:
>
> > Thank you Eric and Rick!
> >
> > Eric:
> > The #+OPTIONS: \n:nil didn't do much here even using the default
> > templates for export as suggested
>
> Sorry! Got it backwards -- it's meant to be \n:t
>
> But still, other responders are probably right that what you want is
> actually a different kind of text type: a list or an example block.
>
> E
>
> > Rick:
> > i think i can live with the  #+BEGIN_EXAMPLE blocks , is there a way
> > to define wrapping text in the block? as you said using the block
> > currently cuts off text towards the lines end
> >
> > Appreciate all the help from everyone. thanks alot!
> >
> > z.
> >
> >
> > On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen <
> > e...@ericabrahamsen.net> wrote:
> >>
> >> Xebar Saram  writes:
> >>
> >> > Thank you all
> >> >
> >> > "I think `org-export-preserve-breaks' is the option you want. Try
> >> > setting it in a single buffer with #+OPTIONS:\n:nil and see what
> >> > happens..."
> >> >
> >> > that sounds interesting, but i couldn't understand how to use it
> >> > (again im still an org novice:) )
> >> > do i stick this line at the start:
> >> > #+OPTIONS:\n:nil
> >> >
> >> > is that ^^ syntax correct?
> >>
> >> Nearly correct -- we're the victim of unfortunate line wrapping. It
> >> should look like:
> >>
> >> #+OPTIONS: \n:nil
> >>
> >> Ie, with an extra space. If you're a novice, as you say, you might
> > like
> >> to see the default options template for exporting. In your org
> > buffer,
> >> hit "C-c C-e" to get to the export dispatcher, then hit "#" for
> > template
> >> insertion, then pick "default". It will be a lot easier to see and
> > edit
> >> existing options than type them all in by hand.
> >>
> >> Yours,
> >> Eric
> >>
> >>
> >> > On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali <
> >> > fatkasuvayu+li...@gmail.com> wrote:
> >> >
> >> > On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote:
> >> > >
> >> > > I'm trying to write a simple guidebook for my students in a
> > GIS
> >> > course.
> >> > > Everything works great apart for the life of me i cant get
> > the
> >> > hang of
> >> > > formatting and specifically how to insert (automatically?)
> > line
> >> > breaks so
> >> > > that its discrete lines and not a paragraph. i think one
> > can
> >> > use '\\' to
> >> > > indicate a line break but since its a guidebook "form"
> > there
> >> > are almost no
> >> > > paragraphs and most line are 1 liners, so it seems to me
> > crazy
> >> > to go over
> >> > > hundred lines of text and attach a \\ at the end. What am i
> >> > missing here?
> >> > >
> >> > > i hope i made sense :) any help or documentation links
> > would be
> >> > really
> >> > > appreciated!
> >> > >
> >> > > I'm attaching a short example of my org file, note that
> > where i
> >> > want single
> >> > > lines i add a empty space between lines but still in the
> >> > exporter it
> >> > > creates a paragraph out of these lines
> >> > >
> >> >
> >> > I think you are better off trying to do this with a
> > specialised
> >> > LaTeX
> >> > class.  A quick search led me to this TeX.SX question:
> >> > .  You could also try
> > using
> >> > lists,
> >> > just disable the bullets with an option in an #+attr_latex
> > line.
> >> >
> >> >
> >> > GL,
> >> >
> >> > --
> >> > Suvayu
> >> >
> >> > Open source is the future. It sets us free.
> >> >
> >>
> >>
>
>
>


Re: [O] odt export with 'header'

2013-10-23 Thread Andreas Leha
Hi Christian,

Christian Moe  writes:

> Hi, Andreas,
>
> Did this work for you? I'll write it up on Worg if it seems useful.

It is definitely useful and I think it should be documented somewhere.
Very nicely written as well.

Worg seems appropriate.  I guess other people will need this as well.
And maybe there are more people around with little enough office
experience to figure this out themselves.

I do, however, still have some issues with it (see my answer to your
first response [fn:1]).
But even so, I'd love to see this in Worg.

Best,
Andreas


Footnotes:

[fn:1] http://permalink.gmane.org/gmane.emacs.orgmode/77916




Re: [O] odt export with 'header'

2013-10-23 Thread Andreas Leha
Hi Christian,

thanks a lot for this.  It was definitely helpful.  Sorry, I did not get
back to this earlier.

I do have some issues with this, still -- see my inline comments below.

Christian Moe  writes:

> Hi,
>
> Andreas Leha writes:
>
>> I'd like to have a 'header' on the first page of a odt exported document
>
> Here is a fiddly way to do it. There may be easier and/or more correct
> ways. And perhaps the ODT exporter could use a preamble option like
> the HTML exporter has. But this should work, more or less.

I do not find this fiddly.  This really works as I would expect.  At
least, if I get past the issues below.

>
> The trick is to put your header in an actual header in the style
> template, a page header that will only be shown on the first page. This
> works because header contents are included with the page style. So try
> making a style template again:
>
> 1. Export your document and open in Open-/LibreOffice.
>
> 2. Modify the styles to your heart's content.  Hint: You may want to
>make the Title and Subtitle styles hidden (Modify Paragraph Style >
>Font Effects tab > check Hidden). Or you may skip this step for now
>and come back later.

I'll come back later 

>
> 3. Give the first page the page style OrgFirstPage. 

Which I had to create new.  Is that intended?

>
> 4. Do Insert > Header > OrgFirstPage.
>
> 5. Put the content you want in the header,
>inserting the appropriate fields:
>
> #+begin_example
>> ,
>> | Some fixed text here   +--+
>> || [Insert>Picture] |
>> |+--+
>> | 
>> | Some fixed text
>> |   [Insert>Field>Author]
>> |Some more fixed text
>> | 
>> | [Insert>Field>Date]
>> | 
>> |   [Insert>Field>Title]
>> | Some Subtitle
>> |
>> `
> #+end_example
>

Field values do not behave, as I would like:
1. I do not get anything in the author field (and would like
   the #+AUTHOR value)
2. (The same happens for email)
3. The date always shows the current date, but I'd like to see
   the #+DATE: value.

> 6. Save the template.
>
> 7. Try exporting with the path to the template in ODT_STYLES_FILE.
>(Actually, if you're going to include a logo or other picture, it
>gets a little more involved. You will need to include both the path
>to the template and the relative paths to "styles.xml" and the image
>file inside it, as described in the manual.)

I haven't tried that yet.  But I will.

>
> 8. If you don't see your custom header in the exported document, you may
>have to put the first page in OrgFirstPage style manually. (Not sure
>how to make this happen automatically.)

It would be nice to have this happen somehow.

>
> 9. Following the header, you will still have the usual preamble with
>title, date, and if you haven't turned it off, the authorname. If you
>have made the Title and Subtitle styles hidden (step 2 above), they
>will be invisible in print. If not, you will need to delete them
>manually.
>
> Hope this helps?

It helps a lot already thanks so much!

If there is a possibility to get the fields automatically filled with
the orgmode values, then the only manual intervention (in therory)
should be to switch the first page into OrgFirstPage style.

Regards,
Andreas




[O] org-mode and long lines alerting

2013-10-23 Thread Adam Spiers
Hi all,

I recently configured my emacs with visual alerts for lines longer
than (say) 80 columns.  I used two mechanisms for this:

  1. the built-in `whitespace-mode', with `whitespace-style' including
 the 'lines-tail symbol

  2. the fill-column-indicator package, which draws a vertical line
 at the 80th column

Unfortunately, neither work well with org-mode:

  1. `whitespace-mode' isn't smart enough to realise that a hyperlink
 [[http://foo][bar]] only occupies 3 columns of visual display, so
 it counts every character as occupying a column, leading to the
 `whitespace-line' face being used to highlight more of the end of
 the line than it should.

  2. fill-column-indicator only displays the vertical line for
 fully visible subtrees

I don't know how the display magic in org-mode works, so unfortunately
I've no idea how to address this.  Any help gratefully received!

Thanks,

Adam



[O] broken names

2013-10-23 Thread Andreas Röhler

Hi all,

as I have to deal with different Emacs versions,

notice several name-changes, which break my code.

Are you sure `org-forward-same-level' needed be renamed 
`org-forward-heading-same-level' for example?

Please stay as conservative as possible WRT to this,
please consider providing an alias in these cases,

just to moan a little bit :),

Andreas



Re: [O] Babel issue after upgrade to Org 8?

2013-10-23 Thread Rasmus
SabreWolfy  gmail.com> writes:

> 
> I've recently updated my Debian unstable installation and Emacs now 
reports
> this on startup:
> 
> Symbol's function definition is void: org-babel-do-load-language
> 
> My .emacs includes:
> 
> (org-babel-do-load-languages 'org-babel-load-languages '((R . t)))
> 
> I've searched for a solution and read the notes about upgrading to Org 8
> (which may have occurred during the update?), but have not found a 
solution.
> Can someone point me in the right direction, please? Thanks.
> 
> 


I just had this problem after upgrading from Ubuntu 13.04 to 13.10. I have 
not changed my .emacs file, and the part which loads babel in my .emacs file 
reads

(org-babel-do-load-languages
 'org-babel-load-languages
 '((python . t)
   ))

The error I get reads, 
"Symbol's function definition is void: org-babel-do-load-languages"

I'm on org-mode 8.0.6 (Ubuntu package: 
https://launchpad.net/ubuntu/+source/org-mode/8.0.6-3 ), and I believe this 
package is straight from the Debian packages. Did this problem ever get 
resolved? Needless to say, everything worked before the upgrade.

Thanks,
Rasmus




Re: [O] Problem with automatic recursive adding of org-agenda-files

2013-10-23 Thread Eric Abrahamsen
Tor Eriksson  writes:

> Hello all,
>
> I have searched the web without finding a solution to the following
> problem:
>
> I am using this snippet in my .emacs.d (using emacs starterkit) to
> dynamically and recursively load all org files in the directory
> "important-directory" and any subdirectory of this directory:
>
> (load-library "find-lisp")
> (setq org-agenda-files (find-lisp-find-files "/home/user/important-directory" 
> "\.org$"))
>
> The snippet comes from http://orgmode.org/worg/org-faq.html
>
> This set-up has worked fine for more than two years; every time I add
> a new subdirectory with an .org file, this file gets picked up for
> the agenda.

I don't know why that's not working, but I'm doing this:

(setq org-agenda-files '("~/org/"))

And it works out fine. It will pick up all files under that directory
that match `org-agenda-file-regexp', which defaults as everything ending
in ".org". You might try that with "/home/user/important-directory/"?

FWIW, I don't even have a `find-lisp-find-files' function in my
installation (GNU Emacs 24.3.1).

HTH,
Eric




[O] Problem with automatic recursive adding of org-agenda-files

2013-10-23 Thread Tor Eriksson
Hello all,

I have searched the web without finding a solution to the following
problem:

I am using this snippet in my .emacs.d (using emacs starterkit) to
dynamically and recursively load all org files in the directory
"important-directory" and any subdirectory of this directory:

(load-library "find-lisp")
(setq org-agenda-files (find-lisp-find-files
"/home/user/important-directory" "\.org$"))

The snippet comes from http://orgmode.org/worg/org-faq.html

This set-up has worked fine for more than two years; every time I add a new
subdirectory with an .org file, this file gets picked up for the agenda.

My problem is that now suddenly, one subdirectory with an .org file does
not get picked up and I can not for the world figure out what is wrong.

I had a file important-directory/sd/file.org that was picked up by the
snippet. Then, without restarting, I changed the name to file-2.org. When
refreshing the agenda with "g" it complains that the file is missing:
"Non-existent agenda file /file.org. [R]emove from list or [A]bort?".

I chose Remove, thinking that restarting emacs with the snippet would pick
up the new file name instead.

However, what happens is that the new file name is not picked up. If I
restart/run snippet, org-agenda-files is built but without the new file.

I tested to see if some other code were responsible by commenting out the
snippet with ;;
Upon restart org-agenda-files was not built/created as expected.
Uncommenting the snippet and org-agenda-files was back but still without
the new file file2.org.

In fact, now I can not get the snippet to pick up *any *new .org file in
the directory .../important-directory or subdiretory! Even when the new
.org file sits adjacent to a file that is picked up by the snippet.

Also, if I do the same procedure again to another file that is picked up by
the snippet by: changing the name of the file, updating agenda with g and
pressing [R]emove. Then this file is also not picked up any more; not under
the new name or, if I change the name back, under it's old name.

This is causing serious trouble to me, since I use this system to keep
track of deadlines that are really important.

Does anybody have any ideas?

Kind regards,

Tor


[O] "Symbol's function definition is void: org-export-dispatch"; don't forget to "make autoloads"

2013-10-23 Thread George Jones
This may be obvious, but don't forget to do "make autoloads" after a
"git clone": http://orgmode.org/manual/Installation.html

I was getting:

  "Symbol's function definition is void: org-export-dispatch"

and wasted time trying to figure this out. This posting is to document
it the mailing list so others experiencing the same symptom can find 
the solution, even it it is "well, duh"/RTFM.

---George Jones





Re: [O] odt export with 'header'

2013-10-23 Thread Christian Moe

Hi, Andreas,

Did this work for you? I'll write it up on Worg if it seems useful.

Yours,
Christian

Christian Moe writes:

> Hi,
>
> Andreas Leha writes:
>
>> I'd like to have a 'header' on the first page of a odt exported document
>
> Here is a fiddly way to do it. (...) The trick is to put your header in an 
> actual header in the style
> template (...)



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

2013-10-23 Thread Oleh
Hi all,

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.

regards
Oleh


0001-lisp-org.el-add-an-example-for-org-use-speed-command.patch
Description: Binary data


Re: [O] [RFC] Change some defcustoms into defcont

2013-10-23 Thread Nicolas Goaziou
Hello,

Carsten Dominik  writes:

> can you remind me what the bug was?  The taskjuggler issue?

Correct. I will fix it today.

> Yes, as I said, I do see all these problems, but I also feel the 
> responsibility
> to break as few as possible existing configurations.

I understand. Though, almost any serious change breaks some existing
configuration. It is unfortunate, but I hope it will not prevent us from
correcting past, and future, mistakes. Without that right to be wrong,
we'd better plan Org development a very long time ahead and cross
fingers hoping we will never fail. Don't cross too hard.

> If you want, I can take a shot at documenting this properly.

I'm not convinced by that documentation thing, i.e. "we allow you to
change the string, but we remind you that you shouldn't do it". It even
goes against my initial suggestion, so I cannot say I "want" anything in
that area.

Unless, that is, you're talking about a deprecation warning, e.g. "In
future releases, this variable will not be customizable anymore, so be
careful when changing its default value". But, IIUC, that's not what you
want.


Regards,

-- 
Nicolas Goaziou



Re: [O] trying to write a guidebook for students using org , need help with formating

2013-10-23 Thread Eric Abrahamsen
Xebar Saram  writes:

> Thank you Eric and Rick!
>
> Eric:
> The #+OPTIONS: \n:nil didn't do much here even using the default
> templates for export as suggested

Sorry! Got it backwards -- it's meant to be \n:t

But still, other responders are probably right that what you want is
actually a different kind of text type: a list or an example block.

E

> Rick:
> i think i can live with the  #+BEGIN_EXAMPLE blocks , is there a way
> to define wrapping text in the block? as you said using the block
> currently cuts off text towards the lines end
>
> Appreciate all the help from everyone. thanks alot!
>
> z.
>
>
> On Wed, Oct 23, 2013 at 4:00 AM, Eric Abrahamsen <
> e...@ericabrahamsen.net> wrote:
>>
>> Xebar Saram  writes:
>>
>> > Thank you all
>> >
>> > "I think `org-export-preserve-breaks' is the option you want. Try
>> > setting it in a single buffer with #+OPTIONS:\n:nil and see what
>> > happens..."
>> >
>> > that sounds interesting, but i couldn't understand how to use it
>> > (again im still an org novice:) )
>> > do i stick this line at the start:
>> > #+OPTIONS:\n:nil
>> >
>> > is that ^^ syntax correct?
>>
>> Nearly correct -- we're the victim of unfortunate line wrapping. It
>> should look like:
>>
>> #+OPTIONS: \n:nil
>>
>> Ie, with an extra space. If you're a novice, as you say, you might
> like
>> to see the default options template for exporting. In your org
> buffer,
>> hit "C-c C-e" to get to the export dispatcher, then hit "#" for
> template
>> insertion, then pick "default". It will be a lot easier to see and
> edit
>> existing options than type them all in by hand.
>>
>> Yours,
>> Eric
>>
>>
>> > On Tue, Oct 22, 2013 at 12:39 PM, Suvayu Ali <
>> > fatkasuvayu+li...@gmail.com> wrote:
>> >
>> >     On Tue, Oct 22, 2013 at 09:55:12AM +0200, Xebar Saram wrote:
>> >     >
>> >     > I'm trying to write a simple guidebook for my students in a
> GIS
>> >     course.
>> >     > Everything works great apart for the life of me i cant get
> the
>> >     hang of
>> >     > formatting and specifically how to insert (automatically?)
> line
>> >     breaks so
>> >     > that its discrete lines and not a paragraph. i think one
> can
>> >     use '\\' to
>> >     > indicate a line break but since its a guidebook "form"
> there
>> >     are almost no
>> >     > paragraphs and most line are 1 liners, so it seems to me
> crazy
>> >     to go over
>> >     > hundred lines of text and attach a \\ at the end. What am i
>> >     missing here?
>> >     >
>> >     > i hope i made sense :) any help or documentation links
> would be
>> >     really
>> >     > appreciated!
>> >     >
>> >     > I'm attaching a short example of my org file, note that
> where i
>> >     want single
>> >     > lines i add a empty space between lines but still in the
>> >     exporter it
>> >     > creates a paragraph out of these lines
>> >     >
>> >
>> >     I think you are better off trying to do this with a
> specialised
>> >     LaTeX
>> >     class.  A quick search led me to this TeX.SX question:
>> >     .  You could also try
> using
>> >     lists,
>> >     just disable the bullets with an option in an #+attr_latex
> line.
>> >
>> >
>> >     GL,
>> >
>> >     --
>> >     Suvayu
>> >
>> >     Open source is the future. It sets us free.
>> >
>>
>>




Re: [O] exclude certain tags from inheritance

2013-10-23 Thread David Belohrad

YS! This works as a charm. Many thanks guys.

d.



Nick Dokos  writes:

> David Belohrad  writes:
>
>> Hi Christinan,
>> thanks for hint. That one i've tested as first. doing
>>
>> (setq org-use-tag-inheritance "^[@#]")
>>
>
> That should probably be
>
> (setq org-use-tag-inheritance "^[^@#]")
>
> (i.e. anything *not* starting with @ or #).
>
> Untested.
>
> Nick
>
>
>> surprisingly, it does not do the expected stuff and all @xxx tags are
>> still exported to the branches, where they are not supposed to be.
>>
>> At the same time I've tested this:
>>
>>   (setq org-tags-exclude-from-inheritance '(
>> "@Adrian""@LiShu""@Martin"))
>>
>> and this one perfectly does the job when org-use-tag-inheritance is set
>> to true. Trouble with this one is, that @ is basically followed by a
>> name, and with every new name I have to for the moment manually add an
>> item into exclude 
>>
>> .d.
>>
>>
>>
>> Christian Moe  writes:
>>
>>> Hi,
>>>
>>> Try setting org-use-tag-inheritance to "^[@#]"
>>>
>>> Yours,
>>> Christian
>>>
>>> David Belohrad writes:
>>>
 Could someone help me to construct the expression such, that all tags
 starting with @ or # will be excluded from inheritance?

 many thanks

 .d.
>>
>>
>
> -- 
> Nick



[O] [RFC] defcustom sorting-type

2013-10-23 Thread Andreas Röhler

In docstring of `org-sort-entries' it's told

"The command prompts for the sorting type unless it has been given to the
function through the SORTING-TYPE argument, which needs to be a character,
\(?n ?N ?a ?A ?t ?T ?s ?S ?d ?D ?p ?P ?o ?O ?r ?R ?f ?F)."

Suggest to extend it somehow like that way

"... through the SORTING-TYPE argument, resp. customized `sorting-type',..."


Which means `sorting-type' would need a defcustom.

Thus the user isn't prompted every time any more.

Thanks,

Andreas