Re: [Orgmode] LaTeX habits and org-mode

2009-11-27 Thread Emmanuel Di Pretoro
2009/11/20 Carsten Dominik 

> #+LaTeX: \chapter*{Introduction}
>
> Introduction text
>
> * first headline
>

It takes me a long time to test your solution, sorry.

Unfortunately the footnotes in this introduction are converted as
'1 FOOTNOTE DEFINITION NOT FOUND : fn :1'.

Have a nice day,

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


[Orgmode] Org-remember: How to unambiguously store notes to level-2 and deeper headlines?

2009-11-27 Thread Ryan C. Thompson

Hi,

Is there a way to unambiguously specify non-top-level headers as 
org-remember targets in templates? My specific use case is that I want 
to split my "Tasks" entries list into sublists, and I want to store new 
tasks in Tasks/Unsorted by default. I know I could just specify 
"Unsorted" as the target, but that seems really easy to break, for 
example, if I also had Events/Unsorted in the same file. So, is there a 
good way to specify a level-2 headline as a target in 
org-remember-templates?


-Ryan


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


[Orgmode] Re: org-id-locations

2009-11-27 Thread Bernt Hansen
Ah Thanks!

-Bernt


Carsten Dominik  writes:

> Hi Bernt,
>
> M-x org-id-update-id-locations RET
>
> should do the trick.  This only thin that can go wrong that it will
> miss a file.
>
> It scans:
>
> - agenda files and archives
> - the files in org-id-extra-files
> - all the files that are currently in the id list
> - any live buffers visiting an org-mode file
>
> So in case of doubt, load in all org-files and run the command.
>
> This command will also run automatically if an id cannot be found -  
> assuming that something has been moved behind org's back - which is
> just your case.
>
> HTH
>
> - Carsten
>
> On Nov 27, 2009, at 11:16 PM, Bernt Hansen wrote:
>
>> Hi Carsten,
>>
>> I've recently started using org-ids to find tasks in my org files and
>> org-mode is storing the ids and associated files in
>> ~/.emacs.d/.org-id-locations.
>>
>> Now I've modified or linked to locations on my laptop and on my
>> workstation and these files differ (both are modified differently)
>> so I
>> need to do something magical to bring everything back in sync.
>>
>> Manually merging the contents will be a bit of a pain since the
>> order of
>> the entries are mixed up now.
>>
>> Do bad things happen if I just delete or ignore syncing these files
>> between the laptop and workstation?
>>
>> What's the right way to handle this?
>>
>> Thanks,
>> Bernt
>
> - Carsten
>
>
>
>

-- 
Bernt


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


[Orgmode] Re: org-id-locations

2009-11-27 Thread Carsten Dominik


On Nov 27, 2009, at 11:16 PM, Bernt Hansen wrote:


Hi Carsten,

I've recently started using org-ids to find tasks in my org files and
org-mode is storing the ids and associated files in
~/.emacs.d/.org-id-locations.

Now I've modified or linked to locations on my laptop and on my
workstation and these files differ (both are modified differently)  
so I

need to do something magical to bring everything back in sync.

Manually merging the contents will be a bit of a pain since the  
order of

the entries are mixed up now.

Do bad things happen if I just delete or ignore syncing these files
between the laptop and workstation?


Yes, do not sync them, this will be best.

- Carsten



What's the right way to handle this?

Thanks,
Bernt


- Carsten





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


[Orgmode] Re: org-id-locations

2009-11-27 Thread Carsten Dominik

Hi Bernt,

M-x org-id-update-id-locations RET

should do the trick.  This only thin that can go wrong that it will  
miss a file.


It scans:

- agenda files and archives
- the files in org-id-extra-files
- all the files that are currently in the id list
- any live buffers visiting an org-mode file

So in case of doubt, load in all org-files and run the command.

This command will also run automatically if an id cannot be found -  
assuming that something has been moved behind org's back - which is  
just your case.


HTH

- Carsten

On Nov 27, 2009, at 11:16 PM, Bernt Hansen wrote:


Hi Carsten,

I've recently started using org-ids to find tasks in my org files and
org-mode is storing the ids and associated files in
~/.emacs.d/.org-id-locations.

Now I've modified or linked to locations on my laptop and on my
workstation and these files differ (both are modified differently)  
so I

need to do something magical to bring everything back in sync.

Manually merging the contents will be a bit of a pain since the  
order of

the entries are mixed up now.

Do bad things happen if I just delete or ignore syncing these files
between the laptop and workstation?

What's the right way to handle this?

Thanks,
Bernt


- Carsten





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


[Orgmode] Bug Report: TAB on empty headline cycles through the wrong levels

2009-11-27 Thread Ryan C. Thompson
I have discovered a possible bug with the new 6.33 feature of cycling 
empty headline levels with TAB. IT seems that org will always assume 
that the initial level of the headline is the "base" level. Pressing TAB 
once will always go one level deeper than that, to the "child" level, 
TAB a second time will go one level shallower than the base level, and 
so on.


the problem is that I expect the "base" level to be based on the 
previous headline's level, not on the initial level of the empty 
headline itself. The problem would not usually show itself, because if 
you press meta+RET  at the end of a headline, you get a new empty one at 
the same level as the previous headline. However, if you press meta+RET 
at the *beginning* of a headline (before the stars), you get a new empty 
headline at the same level as the *next* headline, which might not be 
the same level as the previous headline.

Here's a simple test case:

* Head1
** Head2


Put the point at the very beginning of the second heading, and press 
meta+RET, then TAB. You should get this:



* Head1
*** [point is here]
** Head2

The following is what I would *expect* to get:

* Head1
* [point is here]
** Head2


So basically, the base level for depth cycling should be determined from 
the previous headline, not the new blank headline. At least, that's what 
I expected, and I can't think of any reason you would want to put a 
level-3 headline under a level-1 headline.


-Ryan


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


Re: [Orgmode] Setting PROPERTIES in remember templates automatically

2009-11-27 Thread Tassilo Horn
James TD Smith  writes:

Hi James,

>> What I'd like to have is something like the existing
>> 
>>   %^{prop}p   Prompt the user for a value for property `prop'
>> 
>> but more like
>> 
>>   %{prop,escape}p   Insert property `prop' with value taken from escape,
>> if that is non-nil
>> 
>> With this
>> 
>>   "%{created,U} %{link,a}"
>> 
>> in a template would always create a :created: property with an inactive
>> timestamp, and :link: would only be inserted, if there is an annotation
>> for that remember invocation.
>> 
>> What do you think?
>
> I've actually got something like this working, as part of a whole load
> of improvements to remember which I've been working on for ages. If
> you want to take a look it's in the remember-lite branch at
> git://yog-sothoth.mohorovi.cc/org-mode.

Thanks, I'll have a look.

> The first major change is that remember templates are now plists.
> Old-style templates are automatically converted to the new format, but
> if you want to access any of the new features you will need to use the
> new template format, and add your templates to
> org-remember-templates-2.
>
> Properties are now set by adding a :properties property to the
> list. This should be followed by a list containing either:
> - A string. Query the user for the property value.
> - A cons cell. The head should be a string (the property name) and the tail 
> can
>   be either:
>   - Another string: add the property with that string as its value
>   - A variable: add the property with the value of the variable 
>   - A function: call the function to get the property value.
>
> There is also a variable `org-remember-default-properties', for
> properties you want added to all remembered items.
>
> Mine is set like this
>
> (setq org-remember-default-properties
>   '(("CREATED" .
>(lambda () (format-time-string (org-time-stamp-format t t)
>org-remember-current-time)))
>("CONTEXT" .
> (lambda () (if (and (marker-buffer org-clock-marker)
>  (not (eq (marker-buffer org-clock-marker)
>(current-buffer
>(org-substring-no-properties org-clock-heading)
>  "Idle")
>
> which adds two properties to every item I remember, one containing the
> current time as an inactive timestamp and the other containing the
> name of the currently clocked task or 'Idle' if I'm not clocked into
> anything.

What if the function or variable evals to nil?  I'd expect that then the
property is not inserted at all.

> Here's an example template with properties:
>
> (:key ?r :type headline :name "Book"
>   :target "~/Personal/ReadingList.org::Books"
>   :properties ("AUTHOR" "ISBN") :tag t :tagscope file
>   :template "* MEDIA %^{Title} %?")

Looks pretty self-explanatory and logical to me.

> When I remember something using this template, the CREATED and CONTEXT
> properties are added automatically, and I get asked for the values for
> AUTHOR and ISBN.

Nice.

> Anyway, there are lots of other changes, and probably a few bugs, and
> there isn't much in the way of documentation yet :). Let me know how
> you get on.

This looks all very nice.  Do you plan to merge your enhancements back
into Carsten's branch anytime soon?

Bye,
Tassilo


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


[Orgmode] org-id-locations

2009-11-27 Thread Bernt Hansen
Hi Carsten,

I've recently started using org-ids to find tasks in my org files and
org-mode is storing the ids and associated files in
~/.emacs.d/.org-id-locations.

Now I've modified or linked to locations on my laptop and on my
workstation and these files differ (both are modified differently) so I
need to do something magical to bring everything back in sync.

Manually merging the contents will be a bit of a pain since the order of
the entries are mixed up now.

Do bad things happen if I just delete or ignore syncing these files
between the laptop and workstation?

What's the right way to handle this?

Thanks,
Bernt


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


[Orgmode] Bug Report: org-blocker-hook and org-trigger-hook are named incorrectly

2009-11-27 Thread Ryan C. Thompson
I believe it is the emacs convention to distinguish between hooks that 
take no arguments and hooks that do. Since org-blocker-hook and 
org-trigger-hook pass an argument to their functions, they should 
actually be called org-blocker-functions and org-trigger-functions.


From the elisp info, 23.1 Hooks:

   If the hook variable's name does not end with `-hook', that
indicates it is probably an "abnormal hook".  That means the hook
functions are called with arguments, or their return values are used in
some way.  The hook's documentation says how the functions are called.
You can use `add-hook' to add a function to an abnormal hook, but you
must write the function to follow the hook's calling convention.
   By convention, abnormal hook names end in `-functions' or `-hooks'.
If the variable's name ends in `-function', then its value is just a
single function, not a list of functions.

-Ryan


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


[Orgmode] [MobileOrg] Weekly Agenda

2009-11-27 Thread Karl Maihofer

Hi,

I'm making my first steps with MobileOrg. Thank you very must for this 
app, it was one reason for me to chose the iphone.


MobileOrg shows me my custom agenda views, but what about the agenda for 
the current week and day?


Regards,
Karl


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


Re: [Orgmode] org-babel for matlab?

2009-11-27 Thread Eric Schulte
Hi Christopher,

I do not know of anyone working on matlab support for org-babel.  I am
attaching a template file which contains instructions for adding support
for a new language.  Depending on your level of familiarity with elisp
it could take anywhere from a couple of hours to a couple of days.
We're still debugging some of the original language specific files :)

Best of Luck! -- Eric



org-babel-template.el
Description: application/emacs-lisp


Christopher Long  writes:

> Dear All,
>
>Has anyone started on a babel mode for matlab?  Or is anyone else
> interested
> in making it happen?  Or have a suggestion for a good template to
> start from (babel-python? babel-R?)  And anyone has an estimate of how
> time consuming such a project would be?
>
>I'd like it to work on Windows and there isn't a console mode of Matlab
> on windows, but you can evaluate code with EmacsLink and likely direct
> all output to temporary files.
> (I know EmacsLink was dropped in R2009a, but some of us are avoiding
> upgrading
> and hoping that Matlab will return EmacsLink in the future.)
>
>
> Thanks,
>
> Stoph
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Boolean word/regexp search problem

2009-11-27 Thread Matt Lundin
Hi Carsten,

Matthew Lundin  writes:

> Matt Lundin  writes:
>
>> The word/regexp agenda search to work with more than one word or regexp
>> unless the first word or regexp is also preceded by a "+" or "-".

I've investigated this further and beg your permission to offer a few
comments/suggestions.

First, I apologize for missing the change in behavior in the
org-search-view introduced in Org 6.32. Reading the ChangeLog, I now see
the following information:

,
| Agenda Search view: Search for substrings
| 
| The default in search view (C-c a s) is now that the search expression
| is searched for as a substring, i.e. the different words must occur in
| direct sequence, and it may be only part of a word. If you want to
| look for a number of separate keywords with Boolean logic, all words
| must be preceded by + or -.
| 
| This was, more-or-less, requested by John Wiegley.
`

In particular, I see that "all words must be preceded by + or -" for a
boolean search. I've also read the manual section 10.3.5 as well as the
docstring for org-search-view and appreciate that this new behavior can
be turned off with the variable
org-agenda-search-view-search-words-only.

A few comments:

1) I'm wondering whether the substring search should be the default. I
search quite often for two or three words or regexps that I know are in
an entry (regardless of order), while I rarely search for a specific
phrase or sequence of words. Of course, others might disagree.

2) Many web and database search engines use the following convention: a
space between words becomes an automatic AND, while quotation marks
indicate searches for a phrase/substring (i.e., words in sequence).
Having missed the description of the new behavior in the ChangeLog, I
found the new default substring search a bit counter-intuitive. My vote
would be for sloppy boolean searches by default, with quotation marks
reserved for substring searches. But of course, this is not a huge
priority for org-mode development, and I have no idea how difficult it
would be to implement!

3) The new substring search changes the behavior of regexp searches. A
simple regexp search with brackets (e.g, {Carst}) no longer produces any
results unless the brackets are preceded by a +. This is true even if
one is searching only for a single regexp. In other words, regexp
brackets now *must* always be preceded by a plus or a minus. Is this the
intended behavior?

4) Pressing "[" or "]" or "{" or "}" in the agenda buffer adds a "+" or
"-" after the first term in the minibuffer. E.g.,

--8<---cut here---start->8---
[+-]Word/{Regexp} ...: Emacs +
--8<---cut here---end--->8---

But if the user simply adds another term at the cursor (i.e., after the
"+"), the search will fail, since "Emacs" now must also be preceded by a
"+".

Thanks for reading this long email.

- Matt


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


Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Dan Davison
Sébastien Vauban  writes:

> Hi Torsten,
>
> Torsten Wagner wrote:
>> I just tried quickly. I use org-babel with python, up to now never with
>> shell scripting.
>>
>>> --8<---cut here---start->8---
>>> * Prerequisites
>>> 
>>> #+begin_src sh :session ecm
>>> cd ~/Personal
>>> #+end_src
>>> --8<---cut here---end--->8---
>>
>> This works for me (I changed the folder name). There is a error line in my
>> message buffer:
>>
>> executing Shell source code block
>> ~/babel 
>> save-current-buffer: Wrong type argument: char-or-string-p, nil
>>
>> but the relevent part runs ok. My shell buffer depict to the new folder
>> after execution:
>>
>> tors...@gaijin ~ % 
>> cd ~/babel
>> echo 'org_babel_sh_eoe'
>> tors...@gaijin ~ % cd ~/babel
>> tors...@gaijin ~/babel (git)-[master] %

Hi Seb,

I'm also seeing problems with shell session evaluation but having
trouble debugging. My current suspicion is that the prompt characters
are the problem here (something which differs between you and Torsten)
Could you try using a prompt that ends in '% '? E.g. on ubuntu at least
I can set the prompt in emacs shell sessions with a line like

PS1='\w % '

in ~/.emacs_bash.

Also, please pull latest git as we have just fixed an unrelated bug in
 shell session-based evaluation.

Dan





>>
>>
>> I used the same init like you
>>
>>> What am I doing wrong? Or have I set something wrong (or missing) in my
>>> .emacs file?
>>> 
>>> --8<---cut here---start->8---
>>> (require 'org-babel-init)
>>> 
>>> ;; activate a subset of languages
>>> (require 'org-babel-R)
>>> (require 'org-babel-sh)
>>> 
>>> ;; make pre-built helper functions available
>>> (org-babel-load-library-of-babel)
>>> --8<---cut here---end--->8---
>>
>> However I didn't use the (org-babel-load-library-of-babel) function.
>
> I removed it. No change.
>
>
>> Which version of org-mode di you use ?
>
> A version of somewhere last week.
>
>
>> org-babel is young and change still heavily. I guess you have to use the
>> latest git-version of org-mode.
>
> Just did:
>
> git pull
> make clean
> make
>
> No change (after Emacs restart).
>
>
>> Furthermore, does the shell iteself (M-x shell) work in emacs as desired ?
>
> Yep.
>
> Though, there is one blank line in front:
>
>
> [...@mundaneum] ~>
>   ^ cursor blinking here
>
> I don't know if that's worth mentionning...
>
> Tried as well this change:
>
> ;; for single shell commands
> (setq shell-file-name "zsh")
>
> Same problem (after Emacs restart).
>
>
>> Sorry not a big help at least a pointer that it should work...
>
> Thanks anyway. It's helpful to know someone gets it working the same way (at
> least, from a first observation).
>
> Just note that the following works well:
>
> #+begin_src sh
> cd ~/Personal
> ls *.org
> #+end_src
>
> #+results:
> | "Bookmarks.org"   |
> | "Home.org"|
> | "refile.org"  |
> | "Scorpios.org"|
> | "Succession.org"  |
> | "Tickler.org" |
> | "Using-startx-for-Remote-Display.org" |
> | "Voice-over-IP.org"   |
>
> It stops working only when I add `:session "whatever"' after the `sh'
> specification.
>
> That's the only difference between when it works and when it doesn't.
>
> Maybe this can help?
>
> Best regards,
>   Seb


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


Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Eric Schulte
Sébastien Vauban  writes:

>
> It stops working only when I add `:session "whatever"' after the `sh'
> specification.
>
> That's the only difference between when it works and when it doesn't.
>

Hi Sébastien,

You discovered a tricky bug in the session-based evaluation of shell
blocks.  I've just pushed up a fix which fixes this bug and generally
cleans up the code executing sh blocks inside of interactive sessions.
Please try the latest and see if the problem persists.

>
> Maybe this can help?
>

Very much so.

Thanks -- Eric

>
> Best regards,
>   Seb


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


[Orgmode] Radio targets: identification

2009-11-27 Thread Samium Gromoff
Good day folks,

I'd like to be able to specify possible conjugations for non-strict
matching of radio targets, so that:

#+RADIO_CONJUGATION_SET foo fooish
#+RADIO_CONJUGATION_SET bar barry

<<>>

gets targeted by all of:

   - foo bar,
   - fooish bar,
   - foo barry, and
   - fooish barry

Alternatively, as a more predictable, but also less automated way:

#+RADIO_EQUIV "foo bar" "fooish bar" "foo barry" "fooish barry"

I feel that this might make org-generated dictionaries much more useful.


Oh, and by the way -- thanks for an excellent tool!


regards,
  Samium Gromoff
--
 _deepfire-at-feelingofgreen.ru
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org


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


Re: [Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Eric S Fraga
At Fri, 27 Nov 2009 14:48:58 +0100,
Carsten Dominik wrote:
> 
> 
> On Nov 27, 2009, at 10:09 AM, Sébastien Vauban wrote:
> 
> > Hi all,
> >
> > Eric S Fraga wrote:
> >> one thing that would be useful (and which I've mentioned in a reply
> >> to Dan)
> >> is the ability to specify options for the documentclass (e.g. bigger,
> >> handout). This would actually be useful in normal latex export as
> >> well, of
> >> course.
> >
> > Yes, we (would) need such a feature. For example, in our company
> > LaTeX class,
> > we have options like `black' for uncolored output, or `acro' for
> > putting
> > automatically an acronym sections. There are others as well.
> 
> You can now use
> 
> #+LaTeX_CLASS_OPTIONS: [black]
> 
> and also a property if you are exporting a specific subtree.

Excellent!  I now have my three beamer classes (bigger, smaller,
handout) down to one.  Much easier to manage.

Thanks,
eric


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


[Orgmode] Radio targets: HTML export bug

2009-11-27 Thread Samium Gromoff
Good day folks,

When exporting org files containing semantically overlapping radio
entries like this:

<<>> and <<>>

the entry for 'bar' "takes over" and the HTML target for 'foo bar' is
rendered like this:

@foo bar

I.e. it is totally wrecked and the anchors referring to 'foo bar' are
retargetted at some seemingly random section.

Orgmode version is 6.33f/debian, Emacs is GNU Emacs 23.1.1.


regards,
  Samium Gromoff
--
 _deepfire-at-feelingofgreen.ru
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org


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


[Orgmode] Org-mode version 6.30c; plain list termination

2009-11-27 Thread Duane Farnsworth

I enjoy using org mode, but I have found a bug that is very
frustrating.  It appears to be platform independent--I have experienced
it on both windows and ubuntu.

Expected behavior: Setting org-empty-line-terminates-plain-lists to t
means that leaving a blank line terminates all open lists and org mode's
indenting/folding behavior respects this.

Actual behavior:  Leaving a blank line does not terminate the list.
Indentation still occurs at the lowest list level that was opened.  If
plain list folding is enabled, all subsequent text (until the next plain
list or headline) is folded.  Setting this variable has no apparent effect.






Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.30c

current state:
==
(setq
org-empty-line-terminates-plain-lists t
org-log-done 'time
org-file-apps '((auto-mode . emacs) ("\\.x?html?\\'" . "firefox %s")
("\\.pdf\\'" . default))
org-todo-keyword-faces '(("REMINDER" :foreground "purple" :weight bold)
 ("APPOINT" :foreground "blue" :weight bold))
org-startup-align-all-tables t
org-agenda-custom-commands '(("x" "Basic TODO list" todo "TODO" nil)
 ("za" "Show all TODOs as a Block List"
  ((tags-todo
"+CATEGORY=\"blah\"+TODO=\"TODO\"" nil)
   (tags-todo
"+CATEGORY=\"Personal\"+TODO=\"TODO\"" nil)
   (tags-todo "+CATEGORY=\"Math\"+TODO=\"TODO\""
nil)
   (tags-todo
"+CATEGORY=\"foo\" +TODO=\"TODO\"" nil)
   )
  nil)
 ("zm" "Show blah TODOs" tags
  "+CATEGORY=\"blah"+TODO=\"TODO\"" nil)
 ("zw" "Show Math TODOs" tags
  "+CATEGORY=\"Math\"+TODO=\"TODO\"" nil)
 ("zp" "Show Personal TODOs" tags
  "+CATEGORY=\"Personal\"+TODO=\"TODO\"" nil)
 ("z" .
  "Show Todos of type a=all, p=personal, m=blah, w=math ")
 )
org-agenda-files '("~/Computing/job.org" "~/Computing/home.org"
   "~/Computing/math.org" "~/Computing/foo.org"
   "~/Computing/personal.org")
org-blocker-hook '(org-block-todo-from-checkboxes
   org-block-todo-from-children-or-siblings-or-parent)
org-sort-agenda-notime-is-late nil
org-hide-leading-stars t
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-agenda-remove-tags t
org-agenda-todo-ignore-scheduled t
org-archive-location "archive.org::From %s"
org-deadline-warning-days 7
org-agenda-time-grid '((daily today require-timed remove-match)
   "" (800 1000 1200 1400 1600 1800 2000))
org-hide-emphasis-markers t
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-todo-keywords '((sequence "TODO" "DONE")
(type "REMINDER" "APPOINT" "DONE"))
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
 org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
org-mode-hook '((lambda nil
 (setq org-mouse-context-menu-function
  (quote org-mouse-context-menu))
 (when (memq (quote context-menu) org-mouse-features)
  (define-key org-mouse-map
   (if (featurep (quote xemacs)) [button3] [mouse-3]) nil)
  (define-key org-mode-map [mouse-3]
   (quote org-mouse-show-context-menu))
  )
 (define-key org-mode-map [down-mouse-1]
  (quote org-mouse-down-mouse))
 (when (memq (quote context-menu) org-mouse-features)
  (define-key org-mouse-map [C-drag-mouse-1]
   (quote org-mouse-move-tree))
  (define-key org-mouse-map [C-down-mouse-1]
   (quote org-mouse-move-tree-start))
  )
 (when (memq (quote yank-link) org-mouse-features)
  (define-key org-mode-map [S-mouse-2]
   (quote org-mouse-yank-link))
  (define-key org-mode-map [drag-mouse-3]
   (quote org-mouse-yank-link))
  )
 (when (memq (quote move-tree) org-mouse-features)
  (define-key org-mouse-map [drag-mouse-3]
   (quote org-mouse-move-tree))
  (define-key org-mouse-map [down-mouse-3]
   (quote org-mouse-move-tree-start))
  )
 (when (memq (quote activate-stars) org-mouse-features)
  (font-lock-add-keywords nil
   (\`
(((\, outline-regexp) 0
  (\`
   (face org-link mouse-face highlight keymap
(\, org-mouse-map))
   )
  (quote prepend))
 )
)
   t)
  )
 (when (memq (quot

[Orgmode] Re: Boolean word/regexp search problem

2009-11-27 Thread Matthew Lundin
Matt Lundin  writes:

> The word/regexp agenda search to work with more than one word or regexp
> unless the first word or regexp is also preceded by a "+" or "-".
>
> Take the following example.
>
> * Org-mode
>
> Org mode is a major mode for Emacs written by Carsten Dominik.
>
> Let's say I search for Emacs with "C-a s [RET] Emacs". So far, so good:
> this item appears in the results. But let's say I want to narrow down
> the search. When I press "[" to add a search term, I see the following
> prompt in the minibuffer:
>
> [+-]Word/{Regexp} ...: Emacs +
>
> If I complete the prompt as given ("Emacs +Carsten"), there are no
> results.
>
> The search only succeeds if I add a "+" in front of Emacs as well, i.e.,
> "+Emacs +Carsten". 
>
> The same behavior occurs with exclusion ("-") and with the regexp
> search (i.e., brackets).
>
> Two questions:
>
> 1) Do boolean word/regexp searches require a "+" or "-" symbol before
> the first word/regexp? If so, this is a bit confusing, since tag and
> property searches do not require an initial symbol. (E.g.,
> "emacs+orgmode" works as a tag search.)
>
> 2) If boolean word/regexp do require an initial "+" or "-", could the
> prompt after pressing "[" or "]" or "{" or "}" in the search results
> buffer be amended to add a plus in front of the first search term?
>
> Here is the relevant portion of the manual:
>
> ,[10.5 Commands in the agenda buffer]
> | `[ ] { }'
> | 
> | in search view
> |   add new search words (`[' and `]') or new regular expressions
> |   (`{' and `}') to the query string.  The opening bracket/brace
> |   will add a positive search term prefixed by `+', indicating
> |   that this search term must occur/match in the entry.  The
> |   closing bracket/brace will add a negative search term which
> |   must not occur/match in the entry for it to be selected.
> `

O.K., I just found the variable org-agenda-search-view-search-words-only:

,
| Non-nil means, the search string is interpreted as individual words
| The search then looks for each word separately in each entry and
| selects entries that have matches for all words.
| When nil, matching as loose words will only take place if the first
| word is preceded by + or -.  If that is not the case, the search
| string will just be matched as a substring in the entry, but with
| each space character allowing for any whitespace, including newlines.
`

Please disregard question one above, at least insofar as it applies to
word searches (I'm still trying to work out the regexps). But re:
question two, would it be worthwhile to add a "+" to the beginning of
the search org-agenda-manipulate-query is invoked in a search agenda
buffer?

Thanks,
Matt


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


[Orgmode] Boolean word/regexp search problem

2009-11-27 Thread Matt Lundin
The word/regexp agenda search to work with more than one word or regexp
unless the first word or regexp is also preceded by a "+" or "-".

Take the following example.

--8<---cut here---start->8---
* Org-mode

Org mode is a major mode for Emacs written by Carsten Dominik.
--8<---cut here---end--->8---

Let's say I search for Emacs with "C-a s [RET] Emacs". So far, so good:
this item appears in the results. But let's say I want to narrow down
the search. When I press "[" to add a search term, I see the following
prompt in the minibuffer:

[+-]Word/{Regexp} ...: Emacs +

If I complete the prompt as given ("Emacs +Carsten"), there are no
results.

The search only succeeds if I add a "+" in front of Emacs as well, i.e.,
"+Emacs +Carsten". 

The same behavior occurs with exclusion ("-") and with the regexp
search (i.e., brackets).

Two questions:

1) Do boolean word/regexp searches require a "+" or "-" symbol before
the first word/regexp? If so, this is a bit confusing, since tag and
property searches do not require an initial symbol. (E.g.,
"emacs+orgmode" works as a tag search.)

2) If boolean word/regexp do require an initial "+" or "-", could the
prompt after pressing "[" or "]" or "{" or "}" in the search results
buffer be amended to add a plus in front of the first search term?

Here is the relevant portion of the manual:

,[10.5 Commands in the agenda buffer]
| `[ ] { }'
| 
| in search view
|   add new search words (`[' and `]') or new regular expressions
|   (`{' and `}') to the query string.  The opening bracket/brace
|   will add a positive search term prefixed by `+', indicating
|   that this search term must occur/match in the entry.  The
|   closing bracket/brace will add a negative search term which
|   must not occur/match in the entry for it to be selected.
`

Thanks,
Matt


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


S5 Slideschows / Presentations - was Re: [Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Sebastian Rose
Dan Davison  writes:
> Magnus Henoch  writes:
>
>> Dan Davison  writes:
>>
>>> And it's possible to create something like a slide-show in HTML/CSS --
>>> although I never see anyone doing it.
>>
>> Have a look at S5: http://meyerweb.com/eric/tools/s5/s5-intro.html
>
> Thankyou, that looks really nice. It would be great for org to be able
> to target an XHTML-based slide format like this in addition to beamer,
> wouldn't it? It would require some work, but the XHTML structure below
> seems encouragingly straightforward. Perhaps a relatively effortless
> starting point would be dividing some of the new variables controlling
> beamer export into general-presentation and beamer-specific sets
> (e.g. the location of the slide and slide components in a subtree; I
> know, I already said this...)
>
> I'm pasting some relevant information from the Wikipedia entry below in
> case anyone more knowledgable about org (X)HTML/XOXO export has any
> thoughts.
>
> Dan
>
>>From wikipedia:
>
> ---
> S5 (Simple Standards-Based Slide Show System) is an XHTML-based file
> format for defining slideshows. It was created by Eric Meyer as an
> alternative to the browser-centric Opera Show Format. S5 is not a
> presentation program, but fulfills the same purpose in combination with
> a standards-compliant web browser.
>
> The text of an S5 presentation can be stored in a single XHTML
> file. This file contains several slides which are coded in the following
> way.
>
> 
>  slide title
>  
>the first point
>the second point
>the third point
>  
>  
>   ... additional material that appears
>  on the handout
>  
> 


I'd suggest, to use XSLT to achive this. It's reliable, fast and a good
thing to learn if you want to transform current export.


2.) I'd suggest to use a different thread??

  Sebastian


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


Re: [Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Dan Davison
Magnus Henoch  writes:

> Dan Davison  writes:
>
>> And it's possible to create something like a slide-show in HTML/CSS --
>> although I never see anyone doing it.
>
> Have a look at S5: http://meyerweb.com/eric/tools/s5/s5-intro.html

Thankyou, that looks really nice. It would be great for org to be able
to target an XHTML-based slide format like this in addition to beamer,
wouldn't it? It would require some work, but the XHTML structure below
seems encouragingly straightforward. Perhaps a relatively effortless
starting point would be dividing some of the new variables controlling
beamer export into general-presentation and beamer-specific sets
(e.g. the location of the slide and slide components in a subtree; I
know, I already said this...)

I'm pasting some relevant information from the Wikipedia entry below in
case anyone more knowledgable about org (X)HTML/XOXO export has any
thoughts.

Dan

>From wikipedia:

---
S5 (Simple Standards-Based Slide Show System) is an XHTML-based file
format for defining slideshows. It was created by Eric Meyer as an
alternative to the browser-centric Opera Show Format. S5 is not a
presentation program, but fulfills the same purpose in combination with
a standards-compliant web browser.

The text of an S5 presentation can be stored in a single XHTML
file. This file contains several slides which are coded in the following
way.


 slide title
 
   the first point
   the second point
   the third point
 
 
  ... additional material that appears
 on the handout
 


S5 presentations can be viewed in outline and slideshow mode – Cascading
Style Sheets (CSS) are used to define different layouts for outline,
slideshow and print. Navigation controls, a dynamically generated list
of slides and accesskeys allow browsing back and forth.

A more semantic version of the S5 format is based on the XOXO
microformat and uses  instead of divs for the slides,
as well as  instead of a div for the
overall presentation.
---

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


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


[Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> On Nov 27, 2009, at 10:09 AM, Sébastien Vauban wrote:
>> Eric S Fraga wrote:
>>> one thing that would be useful (and which I've mentioned in a reply to
>>> Dan) is the ability to specify options for the documentclass (e.g. bigger,
>>> handout). This would actually be useful in normal latex export as well, of
>>> course.
>>
>> Yes, we (would) need such a feature. For example, in our company LaTeX
>> class, we have options like `black' for uncolored output, or `acro' for
>> putting automatically an acronym sections. There are others as well.
>
> You can now use
>
> #+LaTeX_CLASS_OPTIONS: [black]
>
> and also a property if you are exporting a specific subtree.

Thanks a lot.

Seb

-- 
Sébastien Vauban



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


Re: [Orgmode] Beamer support in Org-mode

2009-11-27 Thread Stephan Schmitt


Carsten Dominik wrote:
>
> On Nov 26, 2009, at 7:40 PM, Dan  wrote:
>> ... using the heading title to set the column width feels
>> wrong; the natural reaction is to think that that sort of metadata
>> should be in a property.
>
> OK, I hear you all pull the same string, that Org-mode files should be
> beamer presentations as they are, more or less.
>
> ...
> 3. Use meta data to make headlines special, instead of mixing this
>stuff into the.  I first thought this is too hard - but maybe it is
>OK when edited with column view?  Hmm, I am only half-sold on this -
> properties
>are so hard to see when you need them frequently during editing.
>

Hi,

I would also prefer not to use headline content for formatting purposes.

Instead of introducing a new syntax for column widths, I'd rather store them as 
properties and provide dedicated functions to edit these in a convenient way.


Just my 2 cents, though.
Greetings,
Stephan


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


[Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Magnus Henoch
Dan Davison  writes:

> And it's possible to create something like a slide-show in HTML/CSS --
> although I never see anyone doing it.

Have a look at S5: http://meyerweb.com/eric/tools/s5/s5-intro.html

Magnus



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


Re: [Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Carsten Dominik


On Nov 27, 2009, at 10:09 AM, Sébastien Vauban wrote:


Hi all,

Eric S Fraga wrote:
one thing that would be useful (and which I've mentioned in a reply  
to Dan)

is the ability to specify options for the documentclass (e.g. bigger,
handout). This would actually be useful in normal latex export as  
well, of

course.


Yes, we (would) need such a feature. For example, in our company  
LaTeX class,
we have options like `black' for uncolored output, or `acro' for  
putting

automatically an acronym sections. There are others as well.


You can now use

#+LaTeX_CLASS_OPTIONS: [black]

and also a property if you are exporting a specific subtree.

- Carsten



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


Re: [Orgmode] Bug: org-forward-same-level will jump over headline, if it starts with a link [6.33trans (release_6.33f.29.g5064)]

2009-11-27 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Nov 27, 2009, at 2:30 PM, Friedrich Delgado Friedrichs wrote:


I just noticed this, so I'll file a quick report:

In the following example tree, org-forward-same-level will jump over
the second item.

*** foo
*** [[about:][About:]]
*** quz
*** bar [[about:][About:]]
*** baz

Please tell me if you *can't* reproduce this, then I'll re-post my  
settings.


Emacs  : GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu, X toolkit)
of 2009-11-09 on orion
Package: Org-mode version 6.33trans (release_6.33f.29.g5064)

Regards
Friedel
--
   Friedrich Delgado Friedrichs 
TauPan on Ircnet and Freenode ;)


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


- Carsten





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


[Orgmode] Bug: org-forward-same-level will jump over headline, if it starts with a link [6.33trans (release_6.33f.29.g5064)]

2009-11-27 Thread Friedrich Delgado Friedrichs
I just noticed this, so I'll file a quick report:

In the following example tree, org-forward-same-level will jump over
the second item.

*** foo
*** [[about:][About:]]
*** quz
*** bar [[about:][About:]]
*** baz

Please tell me if you *can't* reproduce this, then I'll re-post my settings.

Emacs  : GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu, X toolkit)
 of 2009-11-09 on orion
Package: Org-mode version 6.33trans (release_6.33f.29.g5064)

Regards
Friedel
-- 
Friedrich Delgado Friedrichs 
 TauPan on Ircnet and Freenode ;)


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


Re: [Orgmode] Setting PROPERTIES in remember templates automatically

2009-11-27 Thread James TD Smith
Hi Tassilo,

On 2009-11-27 10:48:06(+0100), Tassilo Horn wrote:


 
> What I'd like to have is something like the existing
> 
>   %^{prop}p   Prompt the user for a value for property `prop'
> 
> but more like
> 
>   %{prop,escape}p   Insert property `prop' with value taken from escape,
> if that is non-nil
> 
> With this
> 
>   "%{created,U} %{link,a}"
> 
> in a template would always create a :created: property with an inactive
> timestamp, and :link: would only be inserted, if there is an annotation
> for that remember invocation.
> 
> What do you think?

I've actually got something like this working, as part of a whole load of
improvements to remember which I've been working on for ages. If you want to
take a look it's in the remember-lite branch at
git://yog-sothoth.mohorovi.cc/org-mode.

The first major change is that remember templates are now plists. Old-style
templates are automatically converted to the new format, but if you want to
access any of the new features you will need to use the new template format, and
add your templates to org-remember-templates-2.

Properties are now set by adding a :properties property to the list. This should
be followed by a list containing either:
- A string. Query the user for the property value.
- A cons cell. The head should be a string (the property name) and the tail can
  be either:
  - Another string: add the property with that string as its value
  - A variable: add the property with the value of the variable 
  - A function: call the function to get the property value.

There is also a variable `org-remember-default-properties', for properties you
want added to all remembered items.

Mine is set like this

--8<---cut here---start->8---
(setq org-remember-default-properties
  '(("CREATED" .
   (lambda () (format-time-string (org-time-stamp-format t t)
   org-remember-current-time)))
   ("CONTEXT" .
(lambda () (if (and (marker-buffer org-clock-marker)
 (not (eq (marker-buffer org-clock-marker)
   (current-buffer
   (org-substring-no-properties org-clock-heading)
 "Idle")
--8<---cut here---end--->8---

which adds two properties to every item I remember, one containing the current
time as an inactive timestamp and the other containing the name of the currently
clocked task or 'Idle' if I'm not clocked into anything.

Here's an example template with properties:

--8<---cut here---start->8---
(:key ?r :type headline :name "Book"
  :target "~/Personal/ReadingList.org::Books"
  :properties ("AUTHOR" "ISBN") :tag t :tagscope file
  :template "* MEDIA %^{Title} %?")
--8<---cut here---end--->8---

When I remember something using this template, the CREATED and CONTEXT
properties are added automatically, and I get asked for the values for AUTHOR
and ISBN.

Anyway, there are lots of other changes, and probably a few bugs, and there
isn't much in the way of documentation yet :). Let me know how you get on.

James 

--
|---|


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


Re: [Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Eric S Fraga
At Fri, 27 Nov 2009 10:15:41 +0100,
Sébastien Vauban wrote:
> 
> Hi,
> 
> Can I bump up this thread?
> 
> 
> > I'm trying to execute code through babel, for the first time -- I did use it
> > for small examples of LP, but not yet for enhanced work.
> >
> > This is my first file:
> >
> > * Prerequisites
> >
> > #+begin_src sh :session ecm
> > cd ~/Personal
> > #+end_src

I have the same problem (emacs hangs) but this works just fine without
the session option so I would suggest that the error relates to this
aspect?

Sorry I can't be of any direct help, however. :(


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


[Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Sébastien Vauban
Hi Torsten,

Torsten Wagner wrote:
> I just tried quickly. I use org-babel with python, up to now never with
> shell scripting.
>
>> --8<---cut here---start->8---
>> * Prerequisites
>> 
>> #+begin_src sh :session ecm
>> cd ~/Personal
>> #+end_src
>> --8<---cut here---end--->8---
>
> This works for me (I changed the folder name). There is a error line in my
> message buffer:
>
> executing Shell source code block
> ~/babel 
> save-current-buffer: Wrong type argument: char-or-string-p, nil
>
> but the relevent part runs ok. My shell buffer depict to the new folder
> after execution:
>
> tors...@gaijin ~ % 
> cd ~/babel
> echo 'org_babel_sh_eoe'
> tors...@gaijin ~ % cd ~/babel
> tors...@gaijin ~/babel (git)-[master] %
>
>
> I used the same init like you
>
>> What am I doing wrong? Or have I set something wrong (or missing) in my
>> .emacs file?
>> 
>> --8<---cut here---start->8---
>> (require 'org-babel-init)
>> 
>> ;; activate a subset of languages
>> (require 'org-babel-R)
>> (require 'org-babel-sh)
>> 
>> ;; make pre-built helper functions available
>> (org-babel-load-library-of-babel)
>> --8<---cut here---end--->8---
>
> However I didn't use the (org-babel-load-library-of-babel) function.

I removed it. No change.


> Which version of org-mode di you use ?

A version of somewhere last week.


> org-babel is young and change still heavily. I guess you have to use the
> latest git-version of org-mode.

Just did:

--8<---cut here---start->8---
git pull
make clean
make
--8<---cut here---end--->8---

No change (after Emacs restart).


> Furthermore, does the shell iteself (M-x shell) work in emacs as desired ?

Yep.

Though, there is one blank line in front:

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

[...@mundaneum] ~>
  ^ cursor blinking here
--8<---cut here---end--->8---

I don't know if that's worth mentionning...

Tried as well this change:

--8<---cut here---start->8---
;; for single shell commands
(setq shell-file-name "zsh")
--8<---cut here---end--->8---

Same problem (after Emacs restart).


> Sorry not a big help at least a pointer that it should work...

Thanks anyway. It's helpful to know someone gets it working the same way (at
least, from a first observation).

Just note that the following works well:

--8<---cut here---start->8---
#+begin_src sh
cd ~/Personal
ls *.org
#+end_src

#+results:
| "Bookmarks.org"   |
| "Home.org"|
| "refile.org"  |
| "Scorpios.org"|
| "Succession.org"  |
| "Tickler.org" |
| "Using-startx-for-Remote-Display.org" |
| "Voice-over-IP.org"   |
--8<---cut here---end--->8---

It stops working only when I add `:session "whatever"' after the `sh'
specification.

That's the only difference between when it works and when it doesn't.

Maybe this can help?

Best regards,
  Seb

-- 
Sébastien Vauban



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


Re: [Orgmode] [babel] Executing sh-code

2009-11-27 Thread Torsten Wagner
Hi Sébastien,

I just tried quickly. I use org-babel with python, up to now never with shell 
scripting.

> 
> --8<---cut here---start->8---
> * Prerequisites
> 
> #+begin_src sh :session ecm
> cd ~/Personal
> #+end_src
> --8<---cut here---end--->8---


This works for me (I changed the folder name). There is a error line in my 
message buffer
--8<---cut here---start->8---
executing Shell source code block
~/babel 
save-current-buffer: Wrong type argument: char-or-string-p, nil
--8<---cut here---end->8---


but the relevent part runs ok. My shell buffer depict to the new folder after 
execution.


--8<---cut here---start->8---
tors...@gaijin ~ % 
cd ~/babel
echo 'org_babel_sh_eoe'
tors...@gaijin ~ % cd ~/babel
tors...@gaijin ~/babel (git)-[master] %
--8<---cut here---end->8---


I used the same init like you

> What am I doing wrong?  Or have I set something wrong (or missing) in my
> .emacs file?
> 
> --8<---cut here---start->8---
> (require 'org-babel-init)
> 
> ;; activate a subset of languages
> (require 'org-babel-R)
> (require 'org-babel-sh)
> 
> ;; make pre-built helper functions available
> (org-babel-load-library-of-babel)
> --8<---cut here---end--->8---

However I didn't use the (org-babel-load-library-of-babel) function.

Which version of org-mode di you use ? org-babel is young and change still 
heavily. I guess you have to use the latest git-version of org-mode.
Furthermore, does the shell iteself (M-x shell) work in emacs as desired ?

Sorry not a big help at least a pointer that it should work...

Bye

Torsten


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


[Orgmode] Setting PROPERTIES in remember templates automatically

2009-11-27 Thread Tassilo Horn
Hi all,

in my remember templates, I'd like to set some PROPERTIES to the value
of some org-remember escape sequences.  Till now, I did that by defining
a template like that:

  ("NORMAL"  ?n "* %?\n  %i\n  :PROPERTIES:\n  :created: %U\n  :END:")

This works, but templates become very large quickly.  And I don't like
that I have to do the indentation on my own.

Ok, now I have a new usecase.  I want to set a property if some escape
sequence is non-nil.  Or more concrete: I want to set a property :link:
if the template escape sequence %a has a value.

Therefore, I tried this template using the %(sexp) escape:

  ("NORMAL"  ?n
   "* %?\n  %i %(org-set-property \"created\" \"%U\")
   %(org-set-property \"annotation\" \"%a\")")

Unfortunately, when I select this template, emacs hangs and I have to
hit C-g.  At that point, I get this expansion in my remember buffer:

--8<---cut here---start->8---
* %?
   %(org-set-property "created" "[2009-11-27 Fri 10:38]")
   %(org-set-property "annotation"
   
"[[file:~/News/drafts/drafts/4::hit%20C%20g][file:~/News/drafts/drafts/4::hit C 
g]]")
--8<---cut here---end--->8---

What I'd like to have is something like the existing

  %^{prop}p   Prompt the user for a value for property `prop'

but more like

  %{prop,escape}p   Insert property `prop' with value taken from escape,
if that is non-nil

With this

  "%{created,U} %{link,a}"

in a template would always create a :created: property with an inactive
timestamp, and :link: would only be inserted, if there is an annotation
for that remember invocation.

What do you think?

Bye,
Tassilo



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


[Orgmode] Re: [babel] Executing sh-code

2009-11-27 Thread Sébastien Vauban
Hi,

Can I bump up this thread?


> I'm trying to execute code through babel, for the first time -- I did use it
> for small examples of LP, but not yet for enhanced work.
>
> This is my first file:
>
> * Prerequisites
>
> #+begin_src sh :session ecm
> cd ~/Personal
> #+end_src
>
> If I C-c on the command, Emacs hangs -- just doing nothing (like waiting for
> something that never comes).
>
> C-g gives this:
>
> Debugger entered--Lisp error: (quit)
>   accept-process-output(#)
>   (while (progn (goto-char comint-last-input-end) (not ...)) 
> (accept-process-output (get-buffer-process buffer)))
>   (progn (unless (org-babel-comint-buffer-livep buffer) (error ...)) 
> (set-buffer buffer) (while (progn ... ...) (accept-process-output ...)))
>   (unwind-protect (progn (unless ... ...) (set-buffer buffer) (while ... 
> ...)) (set-match-data save-match-data-internal (quote evaporate)))
>   (let ((save-match-data-internal ...)) (unwind-protect (progn ... ... ...) 
> (set-match-data save-match-data-internal ...)))
>   (save-match-data (unless (org-babel-comint-buffer-livep buffer) (error 
> ...)) (set-buffer buffer) (while (progn ... ...) (accept-process-output ...)))
>   (save-window-excursion (save-match-data (unless ... ...) (set-buffer 
> buffer) (while ... ...)))
>   (org-babel-comint-in-buffer buffer (while (progn ... ...) 
> (accept-process-output ...)))
>   org-babel-comint-wait-for-output(#)
>   (progn (setq sh-buffer (current-buffer)) (org-babel-comint-wait-for-output 
> sh-buffer))
>   (if newp (progn (setq sh-buffer ...) (org-babel-comint-wait-for-output 
> sh-buffer)))
>   (when newp (setq sh-buffer (current-buffer)) 
> (org-babel-comint-wait-for-output sh-buffer))
>   (let* ((session ...) (sh-buffer ...) (newp ...)) (if (and sh-buffer ... 
> ...) (setq sh-buffer nil)) (shell sh-buffer) (when newp (setq sh-buffer ...) 
> (org-babel-comint-wait-for-output sh-buffer)) (setq org-babel-sh-buffers 
> (cons ... ...)) session)
>   (save-window-excursion (let* (... ... ...) (if ... ...) (shell sh-buffer) 
> (when newp ... ...) (setq org-babel-sh-buffers ...) session))
>   org-babel-sh-initiate-session-by-key("ecm")
>   (org-babel-sh-session-buffer (org-babel-sh-initiate-session-by-key session))
>   (if (string= session "none") nil (org-babel-sh-session-buffer 
> (org-babel-sh-initiate-session-by-key session)))
>   (unless (string= session "none") (org-babel-sh-session-buffer 
> (org-babel-sh-initiate-session-by-key session)))
>   org-babel-sh-initiate-session("ecm")
>   (let* ((processed-params ...) (session ...) (vars ...) (result-type ...) 
> (full-body ...)) (org-babel-sh-evaluate session full-body result-type))
>   org-babel-execute:sh("cd ~/Personal\n" ((:exports . "code") (:nocache) 
> (:results . "replace") (:session . "ecm") (:tangle . "")))
>   funcall(org-babel-execute:sh "cd ~/Personal\n" ((:exports . "code") 
> (:nocache) (:results . "replace") (:session . "ecm") (:tangle . "")))
>   (setq result (funcall cmd body params))
>   (if (and (not arg) new-hash (equal new-hash old-hash)) (save-excursion 
> (goto-char ...) (move-end-of-line 1) (forward-char 1) (setq result ...) 
> (message ...) result) (setq result (funcall cmd body params)) (if (eq 
> result-type ...) (setq result ...)) (org-babel-insert-result result 
> result-params info new-hash) result)
>   (let* ((info ...) (lang ...) (params ...) (new-hash ...) (old-hash ...) 
> (body ...) (result-params ...) (result-type ...) (cmd ...) result) (unless 
> (member lang org-babel-interpreters) (error "Language is not in 
> `org-babel-interpreters': %s" lang)) (if (and ... new-hash ...) 
> (save-excursion ... ... ... ... ... result) (setq result ...) (if ... ...) 
> (org-babel-insert-result result result-params info new-hash) result))
>   org-babel-execute-src-block(nil ("sh" "cd ~/Personal\n" ((:exports . 
> "code") (:nocache) (:results . "replace") (:session . "ecm") (:tangle . "")) 
> ""))
>   (progn (org-babel-execute-src-block current-prefix-arg info) t)
>   (if info (progn (org-babel-execute-src-block current-prefix-arg info) t) 
> nil)
>   (let ((info ...)) (if info (progn ... t) nil))
>   org-babel-execute-src-block-maybe()
>   run-hook-with-args-until-success(org-babel-execute-src-block-maybe)
>   org-ctrl-c-ctrl-c(nil)
>   call-interactively(org-ctrl-c-ctrl-c nil nil)
>
> and I have an empty Shell buffer:
>
>
> [Wed Nov 25 15:13:10]
> [...@mundaneum] ~>
>
> What am I doing wrong?  Or have I set something wrong (or missing) in my
> .emacs file?
>
> (require 'org-babel-init)
>
> ;; activate a subset of languages
> (require 'org-babel-R)
> (require 'org-babel-sh)
>
> ;; make pre-built helper functions available
> (org-babel-load-library-of-babel)
>
> Anything interesting in there?

Is this Emacs config wrong?  Anybody can give me some extract of a working
Babel config (for shell code execution)?


> BTW, my next question will be: can we have an SSH session?  Or, I guess that
> it's the difficult part: is there a way to ask the password and g

[Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> On Nov 26, 2009, at 7:40 PM, Dan  wrote:
>> Also, I do agree with others that to the extent possible we want
>> presentations to emerge naturally out of 'normal' org-files with the help
>> of established org mechanisms such as selective subtree export. E.g. using
>> the heading title to set the column width feels wrong; the natural reaction
>> is to think that that sort of metadata should be in a property.
>
> OK, I hear you all pull the same string, that Org-mode files should be
> beamer presentations as they are, more or less.
>
> Here are some ideas in that direction:
>
> 1. Don't automatically use a specific headline level to create the columns
>environment - at least make that configurable.
>
> 2. Make beamer export force org-export-headline-levels equal
>org-beamer-frame-level, so that headlines below the frame level
>automatically become itemize levels, unless modified by tags or
>properties.
>
> 3. Use meta data to make headlines special, instead of mixing this stuff
>into the. I first thought this is too hard - but maybe it is OK when
>edited with column view? Hmm, I am only half-sold on this - properties
>are so hard to see when you need them frequently during editing.
>
> Thomas asked for the possibility to export a subtree as a presentation, with
> *relative* levels determining functionality. This should be easy - when
> selection a subtree with `C-c @' and then exporting, relative levels are
> already being used now, for any kind of export.

As far as I understand, I perfectly agree with the explained approach, yes!

Thanks for all,
  Seb

-- 
Sébastien Vauban



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


[Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Sébastien Vauban
Hi all,

Eric S Fraga wrote:
> one thing that would be useful (and which I've mentioned in a reply to Dan)
> is the ability to specify options for the documentclass (e.g. bigger,
> handout). This would actually be useful in normal latex export as well, of
> course.

Yes, we (would) need such a feature. For example, in our company LaTeX class,
we have options like `black' for uncolored output, or `acro' for putting
automatically an acronym sections. There are others as well.

The number of combinations can explode quite quickly, so that the smart
workaround of Eric is not usable outside of `beamer' and `beamerhandout'.

Best regards,
  Seb

-- 
Sébastien Vauban



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


Re: [Orgmode] Bug: Infinite loop when org-entry-put is called in buffer not in org-mode [6.33trans]

2009-11-27 Thread Carsten Dominik


On Nov 26, 2009, at 11:04 PM, David Maus wrote:


Hi Carsten,

At Thu, 26 Nov 2009 08:42:09 +0100,
Carsten Dominik wrote:

Hi David,

you cannot reasonably expect that org-mode functions should work
in other modes.  And you cannot expect these functions to check
the mode all the time.

I don't know what you are up to here.  But maybe the function
`org-run-as-in-org-mode' offers a way out?


I stumpled on this infinite loop by accident and simply avoid it by
make my function refuse to work on a buffer not in org-mode.


That is exactly the right course of action.



However, I decided it worth a bugreport as I didn't know the reason
for this and assumed org-mode may enter this loop by itself if the
right conditions are met.


No, this variable (see below) is always set in Org buffers.



After debugging the loop it turns out that the loop occurs in
`org-insert-property-drawer' because `org-keyword-time-regexp' is
buffer local only (calculated when entering org-mode) and defaults to
nil, so when `org-insert-property-drawer' tries to skip SCHEDULED,
DEADLINE etc. lines it tries this by while-re-search-forwarding[1]
with the regexp "^[ \t]*" -- that is what throws Emacs in this loop
(for whatever reason -- I hope I am going to find out).

So the question is: Is it in anyway possible that
`org-keyword-time-regexp' is (re-set to) nil in regular orgmode
operation?


I could do that, but just the same I would have to do that for
many different other variables which only work inside org-mode.

- Carsten



As far as I could see: No, so it should not effect the normal
operations of org-mode.

Regards,

 -- David

[1] i.e.: (while (re-search-forward "^[ \t]*")) causes Emacs to
loop. That means "not beeing in orgmode" not even a sine qua non for
this loop.

--
OpenPGP... 0x316F4BE4670716FD
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


- Carsten





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


Re: [Orgmode] Re: Beamer support in Org-mode

2009-11-27 Thread Eric S Fraga
At Thu, 26 Nov 2009 15:47:53 -0600,
Russell Adams wrote:
> 
> On Thu, Nov 26, 2009 at 10:38:20PM +0100, S??bastien Vauban wrote:
> > I just know ('ve seen it) that Russell Adams (hep!??;-)) uses Prosper, one 
> > of
> > the old alternatives, before Beamer came on the "market". Maybe he could 
> > tell
> > us some interesting things about this planned construction?
> 
> I heard my name *ears burning*.
> 
> I just made my first Beamer presentation in Org recently, and I'm
> *sold* on it.
> 
> http://www.adamsinfoserv.com/AISTWiki/pub/AIS/Presentations/HoustonAIXUsersGroup_ToolsTipsTricks.pdf

On this note, the slides I was preparing and which in some sense
motivated this whole org to beamer debate can be found here
temporarily:

  http://www.homepages.ucl.ac.uk/~ucecesf/tmp/heatandpipes.pdf

See particularly slide 100 for the type of slide I would like to be
able to handle easily in org mode, if at all possible.

> > > Also, I do agree with others that to the extent possible we want
> > > presentations to emerge naturally out of 'normal' org-files
> > 
> > Yes, I do have the same concern. An Org file for Beamer or a standard Org 
> > file
> > should have almost no differences -- except for the class. I think it's even
> > possible for small and standard slides show that there would be no 
> > difference
> > at all, except once again the length of sentence and the numerous headlines.
> 
> I think any Beamer enhancements should be encoded in the headline
> properties (section, transition, etc). Don't introduce new syntax,
> make it work out of the box with reasonable defaults, and then allow
> customization via property drawers for individual headlines, and the
> export options header for global options.

I agree with you.  What I've done so far is leverage the current
capabilities of org without requiring any changes.  All of my slides
were generated by my adding my own interpretation of level 3+
headlines, an interpretation that is indeed beamer specific.  This is
probably not ideal but it worked!

However, I must admit that I'm not too bothered about having a
specific interpretation of headlines in my case because I don't mix
presentations with other org content.  My talks are always standalone
files.  Nevertheless, I know others work differently and I'm sure I
can imagine cases where I would like to have a small set of slides
embedded within a larger org files.



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


Re: [Orgmode] Beamer support in Org-mode

2009-11-27 Thread Eric S Fraga
At Thu, 26 Nov 2009 17:57:29 +0100,
Carsten Dominik wrote:

[...]

> Nothing of this is yet working with the current org.-mode.  I am
> building special support for this, basically the ability to provide a
> function that does the class support, instead of the list you normally
> have to provide in the org-export-latex-classes variable.  And then

Carsten,

one thing that would be useful (and which I've mentioned in a reply to
Dan) is the ability to specify options for the documentclass
(e.g. bigger, handout).  This would actually be useful in normal latex
export as well, of course.



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


Re: [Orgmode] Beamer support in Org-mode

2009-11-27 Thread Eric S Fraga
At Thu, 26 Nov 2009 11:49:49 -0500,
Dan Davison wrote:

[...]

> 
> I'm trying to test out Carsten's example, but I have a question that
> probably just reveals that I haven't understood the discussion: what
> exactly are we supposed to use for the "beamer" entry in
> org-export-latex-classes?  Are we using the version in Eric Fraga's
> original post unmodified? (But that doesn't seem to have the initial
> header-string entry?) [Would someone like to make the start of a Worg
> page where we can keep the documentation and configuration code etc as
> it evolves? I can do it, but only very ignorantly.]

Dan,

sorry I didn't include everything in those earlier posts.  Here is the
full class definition I have been using (and this works with the
current version of org mode prior to Carsten's proposed changes):

--8<---cut here---start->8---
("beamer"
 
"\\documentclass[bigger]{beamer}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{hyperref}\n\\usepackage{verbatim}\n
\\definecolor{verylightgray}{rgb}{0.93,0.93,1.0}
\\mode{\\usetheme{progressbar}}
\\mode{\\usecolortheme[rgb={0.5,0.5,0.5}]{structure}\\usepackage{pgfpages}\\pgfpagesuselayout{4
 on 1}[a4paper,landscape,border shrink=5mm]}
\\usepackage[absolute,overlay]{textpos}\\setlength{\\TPHorizModule}{1mm}\\setlength{\\TPVertModule}{1mm}
"
 ("\\section{%s}" . "\\section*{%s}")
 ("\\begin{frame}\\frametitle{%s}" "\\end{frame}"
  "\\begin{frame}\\frametitle{%s}" "\\end{frame}")
 ("\\begin{columns}%s" "\\end{columns}"
  "\\begin{columns}%s" "\\end{columns}")
 ("\\begin{column}{%s\\textwidth}" "\\end{column}"
  "\\begin{column}{%s\\textwidth}" "\\end{column}")
 ("\\begin{block}{%s}" "\\end{block}"
  "\\begin{block}{%s}" "\\end{block}")
 )
--8<---cut here---end--->8---

You may need to change the beamer theme as I am not sure the progress
bar theme is in the standard beamer distribution (and I've hacked mine
in any case...).

I also have a "beamerhandout" class which looks identical to this one
except that the "handout" option has been passed to the documentclass
statement.  This begs the question: is there any way in org mode to
specify options to the document class?  It would greatly simplify
things!


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


Re: [Orgmode] Bug: org-mobile "Bad file encoding" [6.33trans]

2009-11-27 Thread Eric S Fraga
At Thu, 26 Nov 2009 12:27:06 +0200,
Ben Alexander wrote:
> 
> Well, the problem came back :-(

Sorry to hear that.  Annoying.

> Clearly there is some emacs magic going on here, because I thought of
> trying the £ symbol, but in another, smaller, file, and when I tried
> to save the file, I was told:
> These default coding systems were tried to encode text
> in the buffer `birthdays.org':
>   iso-8859-2-unix
> However, each of them encountered characters it couldn't encode:
>   iso-8859-2-unix cannot encode these: £

The £ symbol is available in 8859-1 but not -2 unfortunately.

> I thought the earlier emacs code specified utf-8 as the default coding
> system

I find the whole coding system in Emacs beyond comprehension, having
been fighting it for a long time now.  With respect to org, although
not necessarily for mobile org, I have solved all my problems by
putting the following line as the first line of every single org file
I have:

   # -*- coding: utf-8; -*-

(not indented)  All my problems have disappeared even though this is
not a recommended solution, from what I understand.

HTH.


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