Re: [Orgmode] Re: Search files in a folder

2010-09-13 Thread 노정태
Suvayu, I read your comment, and googled about what I can't understand.

In Emacs, M-x grep  Filename *  does what I want. Thank you.

And now, I want to make it as one elisp command.

What should I do? Can anybody write a simple script?

Sincerely, Jeongtae.


suvayu ali >
2010/9/13 suvayu ali 
>

> 2010/9/12 노정태 :
> > Thank you everyone.
> >
> > I learned I could do it with grep, but I don't know how to use grep
> > properly.
> >
>
> grep is one of my favourite *nix tools. :)
>
> You can try invoking grep in many ways. these are my most used options,
>
> 1. simply search for a regex and show results.
>grep -nH -E  
> 2. search for results and show results with context
>grep -nHB  -E  
># context lines before matching lines
>grep -nHA  -E  
># context lines after matching lines
>grep -nHC  -E  
># context lines from both before and after matching lines
> 3. You can try `M-x find-grep' if you want more control over what file
> you want to search
>find -type f -name  -print0 | xargs
> -0 grep -nH -E 
>
> Note: find and grep regex are a little different from emacs regex
> because of some quoting differences. 'man grep' is your friend.
>
> GL :)
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
___
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] image size in html export

2010-09-13 Thread Stefan Vollmar
Dear etimecowboy,

you can use a MACRO to create (almost) any HTML code you require.

Put this at the top of your Org file (I prefer to have macros in a separate 
file which I then include like this: "#+setupfile: my-macro-file.org"):

#+macro: my-image #+html: 

Insert the image (here: scaled to a width of 100 pixels) with

{{{my-image()}}}

Here is a more fancy version that takes some image properties as arguments to 
the macro (file name, description, size in pixels):

#+macro: my-image #+html: 

Insert the image with 
{{{my-image(alpha.png, The Alpha character, 87)}}}

CAVEAT: (1) observe that it is alpha.png and not "alpha.png" when used as a 
macro argument, (2) put the call of the macro at the beginning of a new line: 
this type of macro does not work inside a paragraph, as it uses the #+html 
command which needs to start at the beginning of a line.

Warm regards,
 Stefan


On 13.09.2010, at 08:01, etimecowboy wrote:

> Hi everyone,
> 
> Does anybody know how to set the size of an in-line image when exporting 
> html? I know that org can set that when exporting latex (with #+ATTR_LaTeX: 
> width=), but could not find a similar way when exporting html. Thanks for the 
> help.
> 
> -
> 
> etimecow...@gmail.com
> 
>  _.,,._
>.:'`:.
>  .'  `.
> .'`.
> :  :
> `.'`':'`'`/'
>  `.   \  |   /   ,'
>\   \ |  /   /
> `\_..,,.._/'
>  {`'-,_`'-}
>  {`'-,_`'-}
>  {`'-,_`'-}
>   `YY'
> ~^^~
> 
> ___
> 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

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic signature
___
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: Adding entries to Google calendar

2010-09-13 Thread Sven Bretfeld
Hi

Eric S Fraga  writes:

> I haven't found a way to "push" an ics file to google; however, you
> can tell google calendar to add a calendar that is based on a specific
> url pointing to an ics file and google will periodically load that
> file and update the calendar.  

Yes, that works. I've tested this with my mydisk.se account last week
for one or two days.

> The problem with this is that, although it works just fine, the url
> must be generally accessible (no authentication support). Of course,
> you can obfuscate the path to the file so that it won't be found
> easily but this is only security by hiding... It's also not clear how
> often or when google checks that file although it appears, from my
> limited testing, to be at least once a day but not much more often
> than that.

That's right. You can't update the imported files manually. You always
have to wait for a day before the changes in your ics file become
visible in Google. That's why I abandoned this method.

Greetings,

Sven

___
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] image size in html export

2010-09-13 Thread Eric S Fraga
On Mon, 13 Sep 2010 07:01:24 +0100 (BST), etimecowboy 
 wrote:
> 
> Hi everyone,
> 
> Does anybody know how to set the size of an in-line image when
> exporting html? I know that org can set that when exporting latex
> (with #+ATTR_LaTeX: width=), but could not find a similar way when
> exporting html. Thanks for the help.

The following

: #+attr_html: width="50%"
: [[./image.png]]

for instance, works just fine for me.  This is with up-to-date org.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] omitting done TODOs from custom agenda

2010-09-13 Thread Eric Abrahamsen
I'm having a bit of confusion: I've created my own TODO sequences with
org-todo-keywords, in this case (sequence "CONTACT(n)" "REPLY(r)" "|"
"CONTACTED(e@)"). Then I've got a custom agenda defined using
org-agenda-custom-commands, where there's a weekly view on top and some
TODO items below. When I start this agenda view, and mark one of the
TODO items as CONTACTED, it doesn't disappear from the agenda view. It's
very clearly marked as done in the original org file, but it stays in
agenda. I've looked at all the extra variables for a custom agenda
command, and there doesn't seem to be one that say "don't show completed
items".

These items are part of a tag-todo statment, where the selecting regexp
is a tag, not a particular todo keyword, so I wouldn't think I've done
anything to force it to display these todo keywords.

Any advice on this? I'm running Org-mode version 7.01trans
(release_7.01h.493.gece2), on Emacs 24.

Any advice appreciated!

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


Re: [Orgmode] bug in export due to org-list-automatic-rules

2010-09-13 Thread Daniel Clemente

The cause of these errors:

  If you use this:
emacs --batch --load=/w/org-mode/lisp/org.el --visit ~/some.org --funcall 
org-export-as-html-batch

  Then you haven't changed the load-path to your org's directory (/w/org-mode/ 
in my case). But there's a (require 'org-list) in org.el, thus Emacs will want 
to load it from the system installation of org. Which may fail.

  Solution:
emacs --batch --load=/w/org-mode/lisp/org.el 
--load=/w/org-mode/lisp/org-list.el --visit ~/some.org --funcall 
org-export-as-html-batch

  Anyway, Nicolas' patch makes it easier to export to HTML by simply loading 1 
file (org.el), so I think it's useful.


-- Daniel

El Wed, 8 Sep 2010 03:39:20 +0530 Noorul Islam va escriure:
> 
> On Wed, Sep 8, 2010 at 12:49 AM, Daniel Clemente  wrote:
> >
> > Hi.
> >  This change in org.el (commit fd16515b4a88d48362223b19c511c4973cdbc84c, 
> > 2010-08-07 18:31:54):
> >
> >     '("^[ \t]*\\([-+*]\\|[0-9]+[.)][ \t]+\\(?:\...@start:[0-9]+\\][ 
> > \t]*\\)?\\)\\(\\[[- X]\\]\\)"
> >              2 'org-checkbox prepend)
> > -                    (if org-provide-checkbox-statistics
> > +                           (if (cdr (assq 'checkbox 
> > org-list-automatic-rules))
> >                                       
> > '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]"
> >                                                 (0 
> > (org-get-checkbox-statistics-face) t)))
> >
> >
> >  made this command stop working:
> >
> > $ emacs --batch --load=/w/org-mode/lisp/org.el --visit 
> > ~/org-httptest/io.org --funcall org-export-as-html-batch
> > File mode specification error: (void-variable org-list-automatic-rules)
> > Loading vc-git...
> > Exporting...
> > Symbol's value as variable is void: org-list-automatic-rules
> >
> 
> With the following setup
> 
> "Org-mode version 7.01trans (release_7.01h.475.g0bfd.dirty)"
> 
> "GNU Emacs 23.2.2 (i686-pc-linux-gnu)
>  of 2010-06-08 on sajida"
> 
> The following command works. I am not sure whether we need to update the doc.
> 
> noo...@sajida:~/emacs/org-mode/lisp$ emacs --debug-init --batch
> --visit=/tmp/temp.org --funcall org-export-as-html-batch
> OVERVIEW
> Exporting...
> Exporting...
> Exporting...
> Saving file /tmp/temp.html...
> Wrote /tmp/temp.html
> HTML export done, pushed to kill ring and clipboard
> 
> But if I include load option, I get the following which is surprising for me.
> 
> noo...@sajida:~/emacs/org-mode/lisp$ emacs --batch
> --load=/home/noorul/emacs/org-mode/lisp/org.el --visit=/tmp/temp.org
> --funcall org-export-as-html-batch
> Cannot open load file: org-entities
> 
> Thanks and Regards
> Noorul

___
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 in column view with cookie on item line

2010-09-13 Thread Indraneel Majumdar
 With [%] or [/] set to update, the item line gets mangled as soon as 
TODO is changed to DONE from column view.


Here's what it looks like:

** TODO test 1 [/]
:PROPERTIES:
:Effort: 1
:END:

*** T[0/1[0/1[0/1[0/1[0/1[1/1]] <<< MANGLED AGAIN (line was TODO test 1 [/])
:PROPERTIES:
:Effort: 1
:END:

 DONE [0/1[0/1[0/1[0/1[0/1[1/1]/]  MANGLED
 CLOSED: [2010-09-13 Mon 16:20]
 :LOGBOOK:
 - State "DONE"   from "START"  [2010-09-13 Mon 16:20]
 - State "START"  from ""   [2010-09-13 Mon 16:20]
 :END:
:PROPERTIES:
:Effort: 1
:END:

** DONE Test 1
   CLOSED: [2010-09-13 Mon 16:20]
   :LOGBOOK:
   - State "DONE"   from "START"  [2010-09-13 Mon 16:20]
   - State "START"  from "TODO"   [2010-09-13 Mon 16:20]
   :END:
:PROPERTIES:
:Effort: 1
:END:

*[0%[0%[0%[0%[0%[0%[0%]%] < SCHEDULED: <2010-09-15 Wed> CLOSED: 
[2010-09-13 Mon 16:18]

:LOGBOOK:
- State "DONE"   from "START"  [2010-09-13 Mon 16:18]
- State "START"  from "TODO"   [2010-09-13 Mon 16:18]
:END:
:PROPERTIES:
:Effort: 2
:END:
SCHEDULED: <2010-09-13 Mon> DEADLINE: <2010-09-15 Wed>
:PROPERTIES:
:Effort: 1
:END:

** DONE Test 1
SCHEDULED: <2010-09-13 Mon> DEADLINE: <2010-09-14 Tue> CLOSED: 
[2010-09-13 Mon 16:18]

:LOGBOOK:
- State "DONE"   from "START"  [2010-09-13 Mon 16:18]
- State "START"  from "TODO"   [2010-09-13 Mon 16:18]
:END:
:PROPERTIES:
:Effort: 4
:END:

** DONE Test 1
SCHEDULED: <2010-09-13 Mon> DEADLINE: <2010-09-14 Tue> CLOSED: 
[2010-09-13 Mon 16:18]

:LOGBOOK:
- State "DONE"   from "START"  [2010-09-13 Mon 16:18]
- State "START"  from "TODO"   [2010-09-13 Mon 16:18]
- State "START"  from "TODO"   [2010-09-13 Mon 16:00]
- State "START"  from "DONE"   [2010-09-13 Mon 15:57]
- State "DONE"   from "START"  [2010-09-13 Mon 15:57]
- State "START"  from "DONE"   [2010-09-13 Mon 15:57]
- State "DONE"   from "FIND"   [2010-09-13 Mon 15:57]
- State "DONE"   from "START"  [2010-09-13 Mon 15:57]
- State "START"  from "TODO"   [2010-09-13 Mon 15:57]
:END:
:PROPERTIES:
:Effort: 2
:END:



___
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] [Babel] Can't export to LaTeX anymore (args-out-of-range 0 0)

2010-09-13 Thread Sébastien Vauban
Hello,

With latest git pull'ed, I now have such an error when exporting to LaTeX:

--8<---cut here---start->8---
Debugger entered--Lisp error: (args-out-of-range 0 0)
  replace-match("" t t)
  (progn (replace-match replacement t t) (unless preserve-indent 
(indent-code-rigidly ... ... indentation)))
  (if replacement (progn (replace-match replacement t t) (unless 
preserve-indent ...)))
  (when replacement (replace-match replacement t t) (unless preserve-indent 
(indent-code-rigidly ... ... indentation)))
  (let ((replacement ...)) (when replacement (replace-match replacement t t) 
(unless preserve-indent ...)))
  (progn (let (...) (when replacement ... ...)))
  (if (setq func (cadr ...)) (progn (let ... ...)))
  (when (setq func (cadr ...)) (let (...) (when replacement ... ...)))
  (while (re-search-forward "^\\([  ]*\\)#\\+begin_\\(\\S-+\\)[ 
]*\\(.*\\)?[
\n]\\([^]*?\\)[
\n][]*#\\+end_\\S-+.*[
\n]?" nil t) (setq indentation (length ...)) (setq type (intern ...)) (setq 
headers (save-match-data ...)) (setq body (match-string 4)) (setq 
preserve-indent (or org-src-preserve-indentation ...)) (unless preserve-indent 
(setq body ...)) (unless (memq type types) (setq types ...)) (save-match-data 
(interblock start ...)) (when (setq func ...) (let ... ...)) (setq start 
(match-end 0)))
  (progn (fset (quote interblock) (function* ...)) (goto-char (point-min)) 
(setq start (point)) (while (re-search-forward "^\\([
]*\\)#\\+begin_\\(\\S-+\\)[ ]*\\(.*\\)?[
\n]\\([^]*?\\)[
\n][]*#\\+end_\\S-+.*[
\n]?" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq 
body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... 
...) (save-match-data ...) (when ... ...) (setq start ...)) (interblock start 
(point-max)) (run-hooks (quote org-export-blocks-postblock-hook)))
  (unwind-protect (progn (fset ... ...) (goto-char ...) (setq start ...) (while 
... ... ... ... ... ... ... ... ... ... ...) (interblock start ...) (run-hooks 
...)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
  (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect (progn 
... ... ... ... ... ...) (if --cl-letf-bound-- ... ...)))
  (letf ((... ...)) (goto-char (point-min)) (setq start (point)) (while 
(re-search-forward "^\\([   ]*\\)#\\+begin_\\(\\S-+\\)[ ]*\\(.*\\)?[
\n]\\([^]*?\\)[
\n][]*#\\+end_\\S-+.*[
\n]?" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq 
body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... 
...) (save-match-data ...) (when ... ...) (setq start ...)) (interblock start 
(point-max)) (run-hooks (quote org-export-blocks-postblock-hook)))
  (letf* ((... ...)) (goto-char (point-min)) (setq start (point)) (while 
(re-search-forward "^\\([  ]*\\)#\\+begin_\\(\\S-+\\)[ ]*\\(.*\\)?[
\n]\\([^]*?\\)[
\n][]*#\\+end_\\S-+.*[
\n]?" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq 
body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... 
...) (save-match-data ...) (when ... ...) (setq start ...)) (interblock start 
(point-max)) (run-hooks (quote org-export-blocks-postblock-hook)))
  (flet ((interblock ... ...)) (goto-char (point-min)) (setq start (point)) 
(while (re-search-forward "^\\([]*\\)#\\+begin_\\(\\S-+\\)[ ]*\\(.*\\)?[
\n]\\([^]*?\\)[
\n][]*#\\+end_\\S-+.*[
\n]?" nil t) (setq indentation ...) (setq type ...) (setq headers ...) (setq 
body ...) (setq preserve-indent ...) (unless preserve-indent ...) (unless ... 
...) (save-match-data ...) (when ... ...) (setq start ...)) (interblock start 
(point-max)) (run-hooks (quote org-export-blocks-postblock-hook)))
  (let ((case-fold-search t) (types ...) indentation type func start body 
headers preserve-indent progress-marker) (flet (...) (goto-char ...) (setq 
start ...) (while ... ... ... ... ... ... ... ... ... ... ...) (interblock 
start ...) (run-hooks ...)))
  (save-window-excursion (let (... ... indentation type func start body headers 
preserve-indent progress-marker) (flet ... ... ... ... ... ...)))
  org-export-blocks-preprocess()
  run-hooks(org-export-preprocess-after-include-files-hook)
  (save-current-buffer (set-buffer (get-buffer-create " org-mode-tmp")) 
(erase-buffer) (insert string) (setq case-fold-search t) (let (...) 
(remove-text-properties ... ... ...)) (org-export-kill-licensed-text) (let 
(...) (org-mode)) (setq case-fold-search t) (org-install-letbind) (run-hooks 
(quote org-export-preprocess-hook)) (org-export-preprocess-apply-macros) 
(run-hooks (quote org-export-preprocess-after-macros-hook)) (untabify 
(point-min) (point-max)) (org-export-handle-include-files-recurse) (run-hooks 
(quote org-export-preprocess-after-include-files-hook)) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) (org-export-handle-export-tags 
(plist-get parameters :select-tags) (p

[Orgmode] Re: Proposed New Syntax For Calling Code Blocks was: Problem with Babel and sessions

2010-09-13 Thread Christopher Witte
Thanks for reply Eric.

Thanks for the reply.  The reason why I wanted this was because I have
multiple sets of data and I would like to be able to apply the same code
block to the different sets of data and have the results in different pdfs.
Is there anyway to do this with the current version of org?

Cheers,
Chris

On 10 September 2010 20:06, Eric Schulte  wrote:

> Hi Christopher,
>
> Thanks for the well documented example.
>
> The header arguments on the call line, are actually being used by the
> call line itself, not by the R block which is called.  To unpack that,
> on evaluation the call line expands to a trivial emacs-lisp code block
> which is equivalent to
>
> #+begin_src emacs-lisp :var results=chartPolAngle(pol=tableTestBabel)
> :session testBabel:file
>  results
> #+end_src
>
> So the :session header argument is used by the emacs-lisp code block in
> the call line, and never propagates to the R code block which is
> evaluated.  Notice that header arguments like :results silent, will have
> the expected results.
>
> So for now you will have to place the header argument on the actual R
> code block.
>
> That said, I think that we should provide a mechanism for passing header
> arguments through to called code blocks making the original
> functionality you described possible.  I'm not sure how best to do that,
> but currently I think we should expand the syntax used to call code
> blocks to be more similar to inline code blocks, s.t. header arguments
> can be placed inside of an optional square bracket section between the
> name of the code block and the arguments.  Using this new proposed
> syntax your example below would be written as
>
> #+call: chartPolAngle[:session testBabel :file
> testBabel.pdf](pol=tableTestBabel)
>
> I'd be interested to hear what the community thinks of this new syntax.
>
> As an unrelated note, we also need to think of a natural way to allow
> the header argument portion of a code block to span multiple lines.
>
> Best -- Eric
>
> Christopher Witte  writes:
>
> > I'm having a bit of trouble with org bable and R. When I try to execute
> the
> > code below (C-c C-c on the call line), as you can see, I get the results
> > :nil
> >
> > ---
> > #+tblname: tableTestBabel
> > |   0 | 4.40 |
> > |  30 | 4.54 |
> > |  60 | 7.09 |
> > |  90 | 9.40 |
> > | 120 | 9.22 |
> > | 150 | 6.65 |
> > | 180 | 4.22 |
> >
> > #+srcname: chartPolAngle(pol)
> > #+begin_src R
> >   angle <- pol[,1]
> >   energy <- pol[,2]
> >   plot(angle,energy)
> >   energy.model <-  nls (energy ~ a1 + a2 * (sin(pi / a3 *(angle-a4)))^2,
> > start=list(a1=3.0, a2=7.0, a3=180, a4=0.0))
> >   lines(spline(angle, fitted.values(energy.model)), lwd=2)
> >   summary(energy.model)
> > #+end_src
> >
> > #+call: chartPolAngle(pol=tableTestBabel) :session testBabel :file
> testBabel.pdf
> >
> > #+results: chartPolAngle(pol=tableTestBabel)
> > : nil
> > 
> >
> > but If I move the header arguments to the source block, as in the code
> > below, everything works fine. I also get asked "ESS [S(R): R] starting
> data
> > directory? ~/doc/org/" which I don't get with the code above.
> >
> > ---
> > #+tblname: tableTestBabel
> > |   0 | 4.40 |
> > |  30 | 4.54 |
> > |  60 | 7.09 |
> > |  90 | 9.40 |
> > | 120 | 9.22 |
> > | 150 | 6.65 |
> > | 180 | 4.22 |
> >
> > #+call: chartPolAngle(pol=tableTestBabel)
> >
> > #+results: chartPolAngle(pol=tableTestBabel)
> > : testBabel.pdf
> >
> >
> > #+srcname: chartPolAngle(pol)
> > #+begin_src R :session testBabel :file testBabel.pdf
> >   angle <- pol[,1]
> >   energy <- pol[,2]
> >   plot(angle,energy)
> >   energy.model <-  nls (energy ~ a1 + a2 * (sin(pi / a3 *(angle-a4)))^2,
> > start=list(a1=3.0, a2=7.0, a3=180, a4=0.0))
> >   lines(spline(angle, fitted.values(energy.model)), lwd=2)
> >   summary(energy.model)
> > #+end_src
> > ---
> >
> > Org doesn't appear to respect the head arguments on the call. I pulled
> from
> > git a couple days ago. Any ideas why?
> >
> > Cheers
> > Chris Witte
> > ___
> > 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
>



-- 
Postdoctoral Research Fellow
Molecular Imaging Group
 Leibniz-Institut für Molekulare Pharmakologie (FMP)
Campus Berlin-Buch
Robert-Roessle-Str. 10
13125 Berlin, Germany
Phone: 00493094793-279
___
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: org-babel matlab example

2010-09-13 Thread Darlan Cavalcante Moreira

Can I leave a suggestion here?
Maybe a header argument
,
| :return variableName
`
could be interesting in org babel. This would make babel behavior more
uniform in all supported languages and avoid the necessity of adding code
"only to make babel work".

--
Darlan

At Sun, 12 Sep 2010 08:45:40 +0100 (BST),
etimecowboy  wrote:
> 
> From: Dan Davison 
> Subject: Re: org-babel matlab example
> Date: Sat, 11 Sep 2010 12:23:17 -0400
> 
> > Dan Davison  writes:
> > 
> >> etimecowboy  writes:
> >>
> >>> Hi everybody,
> >>>
> >>> I am learning to use org-babel to evaluate in-line Matlab code block,
> >>> but I cannot make it works when I press the "C-c C-c", nor "C-c C-v
> >>> e".
> >>
> >> What happens when you try C-c C-c or C-c C-v e ? There is an issue with
> >> matlab and octave: they return the value of the last /unassigned/
> >> computation
> > 
> > A better way to say this is: they return the value of the special
> > variable "ans". So whatever you do, at the end of the block you need to
> > ensure that "ans" has the value that you want returned.
> > 
> > I've updated the Worg page on Matlab and Octave:
> > 
> > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-octave-matlab.php
> > 
> > Dan
> > 
> > 
> >>, so simply ending the code block with a variable name "x" is
> >> not enough. Could you try one of the following schemes please, and let
> >> us know if that solves it:
> >>
> >> #+begin_src matlab :exports results
> >> n = [1:10];
> >> x = 5*n+4;
> >> ans = x
> >> #+end_src
> >>
> >> #+begin_src matlab :exports results
> >> n = [1:10];
> >> x = 5*n+4;
> >> x + 0
> >> #+end_src
> >>
> >>
> >>> The export of code works, but the results was not there. My in-line code 
> >>> is like this:
> >>
> >> There was a little typo in your original block: the keyword is
> >> ":exports" with an s.
> >>
> >> Dan
> >>
> >>>
> >>> #+begin_src matlab :export results
> >>> n = [1:10];
> >>> x = 5*n+4;
> >>> x
> >>> #+end_src
> >>>
> >>> Is there someone can provide me a working example? Thanks a lot.
> >>>
> >>>
> >>> -
> >>>
> >>> etimecow...@gmail.com
> >>>
> >>>   _.,,._
> >>> .:'`:.
> >>>   .'  `.
> >>>  .'`.
> >>>  :  :
> >>>  `.'`':'`'`/'
> >>>   `.   \  |   /   ,'
> >>> \   \ |  /   /
> >>>  `\_..,,.._/'
> >>>   {`'-,_`'-}
> >>>   {`'-,_`'-}
> >>>   {`'-,_`'-}
> >>>`YY'
> >>>  ~^^~
> >>>
> >>> ___
> >>> 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
> 
> Dear Dan,
> 
> I have checked the Worg page you updated and tried your example. It works! 
> The ans variable is the secret! Thanks a lot. I suggest org should provide 
> some examples in its user's guide, not only on the topic of Babel but also 
> Table, Hyperlink, Picture, and etc.
> 
> -
> 
> etimecow...@gmail.com
> 
>   _.,,._
> .:'`:.
>   .'  `.
>  .'`.
>  :  :
>  `.'`':'`'`/'
>   `.   \  |   /   ,'
> \   \ |  /   /
>  `\_..,,.._/'
>   {`'-,_`'-}
>   {`'-,_`'-}
>   {`'-,_`'-}
>`YY'
>  ~^^~
> 
> ___
> 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: Include files to be used in literate programming

2010-09-13 Thread Dan Davison
Giorgio Valoti  writes:

> Hi all,
> I’ve just switched from OmniFocus and began using Org mode. But I also 
> discovered that it can be used for literate programming and I’d like to ask 
> if is there a way to use an included file in the tangling phase. In other 
> words, I have a file which includes a commons.org file, like this:
>
> === commons.org contents ===
> * Variabili comuni
>   :PROPERTIES:
>   :END:
> #+SRCNAME: entity-name
> #+BEGIN_SRC :noweb yes
> nome_tabella
> #+END_SRC
>
>
> === main.org contents ===
> #+INCLUDE: "commons.org"
>
> * Sezione in SQL
>   :PROPERTIES:
>   :END:
> #+SRCNAME: sql-module
> #+BEGIN_SRC sql :tangle module.sql :noweb yes
>   select *
>   from table <>;
> #+END_SRC
>
> <> should come from the commons but it’s not.
>
> Is there a way to expand values from included files?

Hi Giorgio,

I don't know of a way currently but I agree that it is desirable. It
does seem temtping to want to use #+INCLUDE for this purpose;
however #+INCLUDE is an /export/ construct, and tangling is not
(technically at least) an Org-mode export method. So some options that
come to my mind are:

1. I am overlooking an existing way of doing this.

2. Implement #+INCLUDE when tangling, optionally or by default.

3. Implement a general way of including blocks of code from other files
   in such a way that they behave as 'normal' code blocks. This would
   have several potentially useful consequences.

4. It seems that it should be possible to get what you want by first
   using `org-export-as-org' followed by `org-babel-tangle'. However,
   `org-export-as-org' doesn't currently include #+INCLUDE'd files. I
   wonder if it should. A hack to do what you want is below (You'll be
   prompted for a file name to save the Org export buffer to.):

#+begin_src emacs-lisp
  (defun ded/org-export-as-org-to-buffer ()
(interactive)
(let* ((tmp-file (make-temp-file "org-tangle-with-include"))
   (org-export-preprocess-after-include-files-hook
`((lambda () (let ((s (buffer-string)))
   (with-temp-file ,tmp-file (insert s)))
  (save-window-excursion (org-export-as-html-to-buffer nil))
  (switch-to-buffer
   (get-buffer-create "*Org Org Export*"))
  (insert-file-contents tmp-file))
(org-mode))
  
  (defun ded/tangle-with-include-files ()
(interactive)
(save-window-excursion
  (ded/org-export-as-org-to-buffer)
  (org-babel-tangle)))
#+end_src

Dan


>
> Thank you in advance.
>
> --
> Giorgio Valoti
>
>
> ___
> 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] Change color in fontified html export for strings

2010-09-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

when exporting code blocks to html, strings are exported as yellow
(#00), which is really difficult to read. Is there a possibility to
customize the colors (specifically the one used for strings) used for
the fontification when exporting to html?

Thanks,

Rainer

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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyOIcIACgkQoYgNqgF2egrBHACeIDxvfTQos5zlMgwky+7V8yCq
xwsAnR92wa8TXzLO3QnKnJljFiqII7rk
=ibKq
-END PGP SIGNATURE-

___
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] Customizing agenda line format

2010-09-13 Thread Norbert Zeh
Hi folks,

Is there a way to freely customize the format of lines in the weekly
agenda or todo list.  I know of the different formatting settings I can
use, but they don't do what I want.  Here's a simple use case, but more
complicated ones are possible.

I have a bunch of todo items that have a special todo state, say SPECIAL.
I don't want those included in my weekly agenda, but rather have a block
agenda where one of the blocks lists all todo items with todo state
SPECIAL.  Clearly, since this block includes only items that are
SPECIAL, listing this tag at the beginning of each entry's line is
redundant information.  So I'd like to remove the TODO state.  For
example, the org file entry

* SPECIAL Call mom

should appear simply as

Call mom

in that block of my agenda.  Can this be done?  I'm even willing to
override some fairly low-level line formatting function for this block.
I simply don't know where to start looking.  So any pointer would be
appreciated.

Cheers,
Norbert

-- 

()  ascii ribbon campaign  -  against html e-mail
/\  www.asciiribbon.org-  against proprietary attachments

___
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] Freemind conversion and Notes

2010-09-13 Thread Sven Bretfeld
Hi all

org-freemind.el suggests that notes from a Freemind mindmap become
converted to org by org-freemind-to-org-mode. However, all I get is the
nodes and subnodes structure as orgmode's headings. My various notes
(including many draft sentences of the article I'm about to write, so
the most important thing) are ignored.

Are my settings in Freemind wrong? Do I have to do anything special? I
didn't change the default settings for notes in Freemind 0.9.0 RC 6
(Ubuntu Lucid). My org-version is the current stable version (7.01h).

Greetings,

Sven

___
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: Include files to be used in literate programming

2010-09-13 Thread Giorgio Valoti

Il giorno 13/set/2010, alle ore 14.47, Dan Davison ha scritto:

> Giorgio Valoti  writes:
> […]
>> 
>> Is there a way to expand values from included files?
> 
> Hi Giorgio,
> 
> I don't know of a way currently but I agree that it is desirable. It
> does seem temtping to want to use #+INCLUDE for this purpose;
> however #+INCLUDE is an /export/ construct, and tangling is not
> (technically at least) an Org-mode export method.

Ah, here’s why.

> So some options that
> come to my mind are:
> 
> 1. I am overlooking an existing way of doing this.
> 
> 2. Implement #+INCLUDE when tangling, optionally or by default.
> 
> 3. Implement a general way of including blocks of code from other files
>   in such a way that they behave as 'normal' code blocks. This would
>   have several potentially useful consequences.

What’s the difference between options 2 and 3? I mean, if we #+INCLUDE when 
tangling how is it different from including code blocks? Or do you see option 3 
as a more granular way to refer to external entities, something comparable to a 
programming language import statement?


> 
> 4. It seems that it should be possible to get what you want by first
>   using `org-export-as-org' followed by `org-babel-tangle'. However,
>   `org-export-as-org' doesn't currently include #+INCLUDE'd files. I
>   wonder if it should. A hack to do what you want is below (You'll be
>   prompted for a file name to save the Org export buffer to.):

Thank you, Dan. It could be a good enough interim solution.


Ciao
--
Giorgio Valoti


___
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 Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-13 Thread Matthew Jones
Hey folks, I've released MobileOrg 0.4.1 to the Market (find the link here:
http://wiki.github.com/matburt/mobileorg-android/)

The one big change here is that MobileOrg now supports synchronizing files
that are stored locally on the sdcard (instead of requiring a connection to
a webdav server).  This should also support, at least initially, those of
you who would like to use Dropbox.

Here is an example Dropbox workflow:

* You've pushed your files into a directory called org/ on your Dropbox
share
* With the Dropbox Android client you download your org files (with the
defaults, this would download the files to /sdcard/dropbox/org/)
* Open MobileOrg and in the Settings screen select the SDCard Synchronizer,
then click on the "Configure Synchronizer Settings" option and enter the
path to the index.org file (in this example: /sdcard/dropbox/org/index.org)
* Go back to the main screen and hit "Menu" and then "Sync"

Capturing notes will create a file 'mobileorg.org' in that same directory
for pushing back into emacs

If you just have your emacs configuration push to your sdcard when you have
it mounted then it is even easier, though you'll need to remember to unmount
the sdcard from your computer before synchronizing.

Right now you have to manually type in the path to the index.org file.
 There is a way to integrate starting an external file browser (such as Root
Explorer or OI File Manager) that I will integrate into the next version,
but I wanted to give you folks this feature as early as possible.

I'm still working to integrate the Dropbox API into the application, but it
is a little more involved and requires that they review the application
before I can deploy it.   This would make the Dropbox workflow a lot easier
but I'm still working on integrating this.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net
___
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: Include files to be used in literate programming

2010-09-13 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 13/09/10 14:47, Dan Davison wrote:
> Giorgio Valoti  writes:
> 
>> Hi all,
>> I’ve just switched from OmniFocus and began using Org mode. But I also 
>> discovered that it can be used for literate programming and I’d like to ask 
>> if is there a way to use an included file in the tangling phase. In other 
>> words, I have a file which includes a commons.org file, like this:
>>
>> === commons.org contents ===
>> * Variabili comuni
>>   :PROPERTIES:
>>   :END:
>> #+SRCNAME: entity-name
>> #+BEGIN_SRC :noweb yes
>> nome_tabella
>> #+END_SRC
>>
>>
>> === main.org contents ===
>> #+INCLUDE: "commons.org"
>>
>> * Sezione in SQL
>>   :PROPERTIES:
>>   :END:
>> #+SRCNAME: sql-module
>> #+BEGIN_SRC sql :tangle module.sql :noweb yes
>>   select *
>>   from table <>;
>> #+END_SRC
>>
>> <> should come from the commons but it’s not.
>>
>> Is there a way to expand values from included files?
> 
> Hi Giorgio,
> 
> I don't know of a way currently but I agree that it is desirable. It
> does seem temtping to want to use #+INCLUDE for this purpose;
> however #+INCLUDE is an /export/ construct, and tangling is not
> (technically at least) an Org-mode export method. So some options that
> come to my mind are:
> 
> 1. I am overlooking an existing way of doing this.
> 
> 2. Implement #+INCLUDE when tangling, optionally or by default.

I think that using this option, to include org files using the #INCLUDE
and treat them as if they would be part of the original file would be a
good solution, especially for literate programming - e.g. having often
used code blocks in files, work with "org libraries", ...

The only problem might be header properties defined at the beginning of
the #+INCLUDEd file - they should probably be excluded from the
inclusion. Nevertheless, that could probably be handled by an additional
parameter to #+INCLUDE :

#+INCLUDE externalORGfile.org :headers exclude

where "exclude" is the default.

Rainer

> 
> 3. Implement a general way of including blocks of code from other files
>in such a way that they behave as 'normal' code blocks. This would
>have several potentially useful consequences.
> 
> 4. It seems that it should be possible to get what you want by first
>using `org-export-as-org' followed by `org-babel-tangle'. However,
>`org-export-as-org' doesn't currently include #+INCLUDE'd files. I
>wonder if it should. A hack to do what you want is below (You'll be
>prompted for a file name to save the Org export buffer to.):
> 
> #+begin_src emacs-lisp
>   (defun ded/org-export-as-org-to-buffer ()
> (interactive)
> (let* ((tmp-file (make-temp-file "org-tangle-with-include"))
>(org-export-preprocess-after-include-files-hook
> `((lambda () (let ((s (buffer-string)))
>(with-temp-file ,tmp-file (insert s)))
>   (save-window-excursion (org-export-as-html-to-buffer nil))
>   (switch-to-buffer
>(get-buffer-create "*Org Org Export*"))
>   (insert-file-contents tmp-file))
> (org-mode))
>   
>   (defun ded/tangle-with-include-files ()
> (interactive)
> (save-window-excursion
>   (ded/org-export-as-org-to-buffer)
>   (org-babel-tangle)))
> #+end_src
> 
> Dan
> 
> 
>>
>> Thank you in advance.
>>
>> --
>> Giorgio Valoti
>>
>>
>> ___
>> 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


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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyORcsACgkQoYgNqgF2egoZ0gCfai+D1C/2xCprMdBtUadiSFVs
FLQAn3DPIyem4VMwNglzRJTWeWjn5w/T
=M9XP
-END PGP SIGNATURE-

___
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: bug: babel-* dirs

2010-09-13 Thread Eric Schulte
Hi,

I've temporarily removed the use of the org-babel-temp-directory due to
this problem, and other issues it is causing on shutdown with older
versions of Emacs.

I will revisit this issue next week when I'm back from vacation and have
time to work out a full solution.

Thanks for the reports -- Eric

Shelagh Manton  writes:

> On Sat, 11 Sep 2010 21:00:29 +0200, Achim Gratz wrote:
>
>> Samuel Wales  writes:
>>> In the last 24 hours, org created 436 seemingly empty directories named
>>> similar to "babel-81922AX" in (I think) $TMP.  I do not actively use
>>> babel.
>> 
>> I can confirm this behaviour.
>> 
>> Achim.
>
> I have some babel-XX folders, not many, but yesterday I had to close 
> emacs by individually killing each buffer rather than C-x C-c as emacs 
> complained about not being able to find one of the folders it expected. I 
> do not use babel and do not have any settings for it.
>
> Shelagh
>
>
> ___
> 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] Bug with M-RET on headline with text below it

2010-09-13 Thread Anthony Lander

Hi Nicolas,

On the latest git pull, Org-mode version 7.01trans (release_7.01h. 
500.gbbac.dirty), I encountered a problem with M-RET. When on a  
headline with text below it, M-RET will insert a new heading after the  
current heading, but before the text.


So starting with the following org file, and the cursor at the  
vertical bar:


<-
* Heading 1|
  This is some text under Heading 1
<-

Pressing M-RET results in the following:

<-
* Heading 1
* |
  This is some text under Heading 1
<-

I would have expected

<-
* Heading 1
  This is some text under Heading 1
* |
<-


Thanks,

 - Anthony

___
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: Search files in a folder

2010-09-13 Thread Matt Lundin
노정태  writes:

> Suvayu, I read your comment, and googled about what I can't understand.
>
> In Emacs, M-x grep  Filename *  does what I want. Thank you.
>
> And now, I want to make it as one elisp command.
>
> What should I do? Can anybody write a simple script?

FWIW, here's my elisp function to search all my org files with lgrep:

--8<---cut here---start->8---
  (defun my-org-grep (search &optional context)
"Search for word in org files. 

Prefix argument determines number of lines."
(interactive "sSearch for: \nP")
(let ((grep-find-ignored-files '("#*" ".#*"))
  (grep-template (concat "grep  -i -nH " 
 (when context
   (concat "-C" (number-to-string context)))
 " -e  ")))
  (lgrep search "*org*" "/home/matt/org/")))

  (global-set-key (kbd "") 'my-org-grep)
--8<---cut here---end--->8---

A prefix argument (e.g., C-u 3 ) will change the number of
contextual lines pulled up by the search.

Best,
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] Re: Bug with M-RET on headline with text below it

2010-09-13 Thread Nicolas Goaziou
Hello,

> Anthony Lander writes:

> On the latest git pull, Org-mode version 7.01trans (release_7.01h.
> 500.gbbac.dirty), I encountered a problem with M-RET. When on a
> headline with text below it, M-RET will insert a new heading after
> the current heading, but before the text.

This is the expected behavior for M-RET. What you are looking for is
C-RET (`org-insert-heading-respect-content').


Regards,

-- Nicolas

___
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: Bug with M-RET on headline with text below it

2010-09-13 Thread Anthony Lander


On 10-Sep-13, at 12:46 PM, Nicolas Goaziou wrote:


Hello,


Anthony Lander writes:



On the latest git pull, Org-mode version 7.01trans (release_7.01h.
500.gbbac.dirty), I encountered a problem with M-RET. When on a
headline with text below it, M-RET will insert a new heading after
the current heading, but before the text.


This is the expected behavior for M-RET. What you are looking for is
C-RET (`org-insert-heading-respect-content').


Ah, ok. Thanks for the clarification, and sorry for the  
misunderstanding.


Regards,

  Anthony


___
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 capture with predefined entries from a list?

2010-09-13 Thread Nicolas Goaziou
Hello,

> Miguel Ruiz writes:

> Might I implement an org capture template with predefined entries
> from a list instead of typing the final entry?

> If not, please, whats the minimal code to get a shortkey to launch a
> selection of an item of a list and insert in the buffer?

I am not sure to understand what you are trying to accomplish. Could
you provide an example about it?

Regards,

-- Nicolas

___
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] [OT] Re: Include files to be used in literate programming

2010-09-13 Thread Jambunathan K
Dan Davison  writes:

[Warning: OT]

>  tangling is not (technically at least) an Org-mode export method. 

This is an implementation artefact (as you have noted). 

>From a user-perspective tangling is a specialized form of export.
Exporting as I see it, is indeed an operation that takes some textual
content and transforms it in to some other content and places it in a
specific location. This is irrespective of whether it is done via C-c
C-e.

[Context Switch]

So 

1. Babel macros are (potential) exporters

2. Exporting need not be just limited to publishing to an external file.

   For example, one could export textual content from one Org headline
   to another Org headline and have them edited on day-to-day basis.

   In some sense exporting is something that an Orgmode user would do
   not as a final step of a note-taking workflow but even in the middle
   of or start of it.

Elsewhere, I have argued that Babel could be easily extended to support
the above broader definition of export.

May be in coming days I should be able to make concrete, code-level
suggestions on that would take my prayers further down in your altar
:-).

Meanwhile I invite you to give my posts some thought ... Dan or Eric
could churn out babel code faster and more effectively than I could
possibly could.

Jambunathan K.

___
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] [PATCH] Removed unecessary invocations of org-agenda-show.

2010-09-13 Thread Matt Lundin

lisp/org-agenda.el (org-agenda-set-tags): Remove org-agenda-show to prevent
disrupting windows and changing point in original buffer.
(org-agenda-set-property): Same
(org-agenda-set-effort): Same
(org-agenda-toggle-archive-tag): Same

When setting a tag in the agenda, org-mode displays the corresponding
entry in the original org buffer by calling org-agenda-show. This has
the unwelcome side-effect of disrupting the current window arrangement
and changing the position of the point in the original buffer. This
behavior is inconsistent with the that of org-agenda-todo, which makes
all its changes "silently."

Here is the offending line (6799) in org-agenda-set-tags:

--8<---cut here---start->8---
(org-agenda-show)   ;;; FIXME This is a stupid hack and should not be needed
--8<---cut here---end--->8---

The same line occurs in org-agenda-set-property, org-agenda-set-effort,
and org-agenda-toggle-archive tag.
---
 lisp/org-agenda.el |4 
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 32c65db..784ba6a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6796,7 +6796,6 @@ the same tree node, and the headline of the tree node in 
the Org-mode file."
   (org-agenda-check-no-diary)
   (if (and (org-region-active-p) (interactive-p))
   (call-interactively 'org-change-tag-in-region)
-(org-agenda-show)   ;;; FIXME This is a stupid hack and should not be 
needed
 (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
 (org-agenda-error)))
   (buffer (marker-buffer hdmarker))
@@ -6825,7 +6824,6 @@ the same tree node, and the headline of the tree node in 
the Org-mode file."
   "Set a property for the current headline."
   (interactive)
   (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should not be needed
   (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
   (org-agenda-error)))
 (buffer (marker-buffer hdmarker))
@@ -6848,7 +6846,6 @@ the same tree node, and the headline of the tree node in 
the Org-mode file."
   "Set the effort property for the current headline."
   (interactive)
   (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should not be needed
   (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
   (org-agenda-error)))
 (buffer (marker-buffer hdmarker))
@@ -6872,7 +6869,6 @@ the same tree node, and the headline of the tree node in 
the Org-mode file."
   "Toggle the archive tag for the current entry."
   (interactive)
   (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should not be needed
   (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
(org-agenda-error)))
 (buffer (marker-buffer hdmarker))
-- 
1.7.2.3


___
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] camel.el, for CamelCase links

2010-09-13 Thread Marcelo de Moraes Serpa
Hi guys -- I have pulled the last version from the repo which include
org-wikinodes, but I don't see the line for the org-wikinodes module
when customizing the org-modules variable. What should I do?

Marcelo.

On Sat, Aug 7, 2010 at 1:47 AM, Carsten Dominik
 wrote:
>
> On Aug 3, 2010, at 6:27 PM, Bastien wrote:
>
>> "David O'Toole"  writes:
>>
>>> http://github.com/dto/folio/blob/master/camel.el
>>>
>>> Someone asked about this recently, i have some partially working code.
>>
>> I'm willing to test.
>>
>> Can you provide the handlers so that the code works for Org?
>>
>> I'm not a big fan of CamelCase links because it encourages the habit of
>> creating many files -- but that may be useful for some.
>
> I am not a big fan of CamelCase for two reasons:
>
> 1. as Bastien says, to creates many small files.  Org does work
>   with a number of files - I think it is less than perfect for a very
>   large number of files.  If you want to create many files, David O'Toole's
>   implementation might work for you - also it is not limited to Org files.
>
>
> 2. Using CamelCase does encourage to write stuff in strange, hard to
>   read syntax which conflicts with some words or names that should not
>   be spelled like this, and which also does not look very good on export.
>   THis is why most wikis have either stepped away from CamelCase, or added
>   additional syntax, for example with brackets.
>
> In fact, for Org mode, it seems more natural to use outline nodes for the
> structure of a wiki, not files.  Russel Adams suggested this in another
> thread:
>
>   http://thread.gmane.org/gmane.emacs.orgmode/27442/focus=27465
>
> With the change I just made to make [[..]] links match exact headlines and
> to offer headline creation when no match is found, I do find it simple
> enough to type [[My Heading]] or [[file:xyz.org::My Heading]]
>
> I have toyed with CamelCase in the past though.  And since there seems
> to be at least some interest, I have just wrapped this code into a
> contributed package and linked it properly into the hyperlink and
> export mechanisms in Org.  The modules is called org-wikinodes.el
> and it is documented here:
>
> http://orgmode.org/worg/org-contrib/org-wikinodes.php
>
> - 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
>

___
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: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-13 Thread Matthew Jones
There was one other thing that I forgot to mention... I've re-enabled
installing this application for Android 1.5 phones, you should be able to
see it in the Market now.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Mon, Sep 13, 2010 at 11:33 AM, Matthew Jones wrote:

> Hey folks, I've released MobileOrg 0.4.1 to the Market (find the link
> here: http://wiki.github.com/matburt/mobileorg-android/)
>
> The one big change here is that MobileOrg now supports synchronizing files
> that are stored locally on the sdcard (instead of requiring a connection to
> a webdav server).  This should also support, at least initially, those of
> you who would like to use Dropbox.
>
> Here is an example Dropbox workflow:
>
> * You've pushed your files into a directory called org/ on your Dropbox
> share
> * With the Dropbox Android client you download your org files (with the
> defaults, this would download the files to /sdcard/dropbox/org/)
> * Open MobileOrg and in the Settings screen select the SDCard Synchronizer,
> then click on the "Configure Synchronizer Settings" option and enter the
> path to the index.org file (in this example: /sdcard/dropbox/org/index.org
> )
> * Go back to the main screen and hit "Menu" and then "Sync"
>
> Capturing notes will create a file 'mobileorg.org' in that same directory
> for pushing back into emacs
>
> If you just have your emacs configuration push to your sdcard when you have
> it mounted then it is even easier, though you'll need to remember to unmount
> the sdcard from your computer before synchronizing.
>
> Right now you have to manually type in the path to the index.org file.
>  There is a way to integrate starting an external file browser (such as Root
> Explorer or OI File Manager) that I will integrate into the next version,
> but I wanted to give you folks this feature as early as possible.
>
> I'm still working to integrate the Dropbox API into the application, but it
> is a little more involved and requires that they review the application
> before I can deploy it.   This would make the Dropbox workflow a lot easier
> but I'm still working on integrating this.
>
> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net
>
___
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] Agenda: Hide Sched. Items

2010-09-13 Thread Nathan Neff
Is there a way to hide Scheduled Items in a custom Agenda View?

I have the following custom agenda set up:

("&" "Timeline" ((agenda "" ))
  ((org-agenda-ndays 1)
   (org-agenda-show-log t)
   (org-agenda-clockreport-mode t)
   (org-agenda-log-mode-items '(clock))
  )
)

This custom agenda view comes close, here's an example:

Day-agenda (W37):
Monday 13 September 2010 W37
  10:00.. 
  project1:  11:20-12:33 Clocked:   (1:13) Project Mgmt
  :Mgmt:
  12:00.. 
  project 1: Sched.29x:  TODO Something   <--I want to remove these two
  project 2: Sched.13x:  Something else<-lines

I want to remove "project x: Sched" lines from this view, and
want to show the Clockreport automatically without having to press "R".

I've looked through the org-agenda-* functions/variables, and
found "org-agenda-include-deadlines" -- is there some form of
"org-agenda-include-scheduled" that I can turn off?

Thanks,
--Nate

___
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: Agenda: Hide Sched. Items

2010-09-13 Thread Matt Lundin
Nathan Neff  writes:

> Is there a way to hide Scheduled Items in a custom Agenda View?
>

Yes. You can use the variable org-agenda-entry-types.

> I have the following custom agenda set up:
>
> ("&" "Timeline" ((agenda "" ))
>   ((org-agenda-ndays 1)
>(org-agenda-show-log t)
>(org-agenda-clockreport-mode t)
>  (org-agenda-log-mode-items '(clock))
> )
> )
>

Here's an example:

(setq org-agenda-custom-commands 
  '(("&" "Timeline" ((agenda "" ))
 ((org-agenda-ndays 1)
  (org-agenda-show-log t)
  (org-agenda-clockreport-mode t)
  (org-agenda-log-mode-items '(clock))
  (org-agenda-entry-types '(:timestamp :sexp :deadline)) ;; [1]
  

HTH,
Matt

Footnotes:

[1] Added line. Note the absence of :scheduled.

___
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: Repeating tasks on specific days of the week

2010-09-13 Thread Matt Lundin
Jeff Horn  writes:

> Hi everyone!
>
> I was wondering how to create repeating tasks for, say, Tuesday and
> Thursday at noon. I found this on stack overflow: http://cl.ly/2K8c
>
> Is that really the best answer? Can this not be accomplished with
> symbolic expressions?
>
> Seems like a great feature for academics and students. Surely, I'm
> ignorant, and someone has a better solution than creating multiple
> repeating tasks?

AFAIK, one cannot use complex symbolic expressions with repeating tasks;
the moment a headline with such an expression is marked done, it is
removed from the agenda. The only solution, at the moment, is to create
different entries for each desired day of the week:

--8<---cut here---start->8---
* Tuesday task
  SCHEDULED: <2010-09-14 Tue +1w>

* Thursday task
  SCHEDULED: <2010-09-16 Thu +1w>
--8<---cut here---end--->8---

Best,
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] Re: [OT] Re: Include files to be used in literate programming

2010-09-13 Thread Dan Davison
Jambunathan K  writes:

> Dan Davison  writes:
>
> [Warning: OT]
>
>>  tangling is not (technically at least) an Org-mode export method. 
>
> This is an implementation artefact (as you have noted). 
>
>>From a user-perspective tangling is a specialized form of export.

I think I agree with that. I wonder if it would be helpful to more
formally recognise tangling as a form of export. For example, in one of
the other threads, you were talking about selective tangling. If
tangling were treated as a form of export, presumably that would mean
that tangling would obey the tag-based selective export mechanisms
(variables org-export-select-tags and org-export-exclude-tags), and also
that #+INCLUDE would have the semantics expected by the OP.

[...]

> May be in coming days I should be able to make concrete, code-level
> suggestions on that would take my prayers further down in your altar
> :-).

I've certainly read your recent series of emails and the resulting
discussion. But of course time is the major limiting factor, and I
haven't yet managed to properly get my head round the various ideas that
have been discussed. Would you be able to provide a brief summary of the
series of emails? If you could identify one or a few core proposal(s)
and be explicit about exactly what changes in behaviour you're
suggesting, and whether they would be backwards compatible, that could
be very helpful.

Dan

>
> Meanwhile I invite you to give my posts some thought ... Dan or Eric
> could churn out babel code faster and more effectively than I could
> possibly could.
>
> Jambunathan K.

___
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] [PATCH] silence byte compiler warnings about european-calendar-style

2010-09-13 Thread Achim Gratz
I've investigated further and defvaralias doesn't silence the warnings,
but "with-no-warnings" does.

---
 lisp/org-agenda.el |3 ++-
 lisp/org.el|7 ---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 32c65db..9f94fa6 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7279,7 +7279,8 @@ the resulting entry will not be shown.  When TEXT is 
empty, switch to
   (let ((calendar-date-display-form
 (if (if (boundp 'calendar-date-style)
 (eq calendar-date-style 'european)
-  (org-bound-and-true-p european-calendar-style)) ; Emacs 22
+  (with-no-warnings ;; european-calendar-style is obsolete as 
of version 23.1
+(org-bound-and-true-p european-calendar-style))) ; Emacs 22
 '(day " " month " " year)
   '(month " " day " " year
 
diff --git a/lisp/org.el b/lisp/org.el
index 668d469..70dd482 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -14604,9 +14604,10 @@ user function argument order change dependent on 
argument order."
(list arg2 arg1 arg3))
((eq calendar-date-style 'iso)
(list arg2 arg3 arg1)))
-(if (org-bound-and-true-p european-calendar-style)
-   (list arg2 arg1 arg3)
-  (list arg1 arg2 arg3
+(with-no-warnings ;; european-calendar-style is obsolete as of version 23.1
+  (if (org-bound-and-true-p european-calendar-style)
+ (list arg2 arg1 arg3)
+   (list arg1 arg2 arg3)
 
 (defun org-eval-in-calendar (form &optional keepdate)
   "Eval FORM in the calendar window and return to current window.
-- 
1.7.1



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

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


___
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: omitting done TODOs from custom agenda

2010-09-13 Thread Matt Lundin
Eric Abrahamsen  writes:

> I'm having a bit of confusion: I've created my own TODO sequences with
> org-todo-keywords, in this case (sequence "CONTACT(n)" "REPLY(r)" "|"
> "CONTACTED(e@)"). Then I've got a custom agenda defined using
> org-agenda-custom-commands, where there's a weekly view on top and some
> TODO items below. When I start this agenda view, and mark one of the
> TODO items as CONTACTED, it doesn't disappear from the agenda view. It's
> very clearly marked as done in the original org file, but it stays in
> agenda. I've looked at all the extra variables for a custom agenda
> command, and there doesn't seem to be one that say "don't show completed
> items".

A simple question: Are you refreshing the agenda after marking the item
done (i.e., CONTACTED)? Similarly, do the inactive items (i.e.,
CONTACTED) remain when you invoke the agenda view the again.

Inactive todos do not disappear from the agenda until it is refreshed
(r).

> These items are part of a tag-todo statment, where the selecting regexp
> is a tag, not a particular todo keyword, so I wouldn't think I've done
> anything to force it to display these todo keywords.

Would you mind sharing your custom agenda command?

Best,
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] Re: [PATCH] Re: html-export mangels mailto: links

2010-09-13 Thread Achim Gratz
I've decided to keep my standard load-path. Instead I just put

(setq load-path (cons (expand-file-name "~/lisp/org-mode/user-lisp") load-path))
(setq load-path (cdr load-path))

in the scratch buffer and execute one line or the other whenever I want
to switch and then do a C-c C-x ! in an org-buffer.  That way I can keep
a clean install in site-lisp.  I might make these two lines into
functions I can call directly from org-mode (and bind to keys), but for
now that's working well enough to be no bother.

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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves


___
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: bug ? invoking display-time causes org mode clocking to go bad

2010-09-13 Thread Antony

On 9/2/2010 4:03 AM, Antony wrote:


Start vanilla emacs
type
C-x f ~/foo.org

type
* foo 

type
M-x display-time
modeline shows 7:29 AM
when my PC is showing 1:30AM
They don't match.


no one can reproduce this?
-Antony


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


[Orgmode] Re: [OT] Re: Include files to be used in literate programming

2010-09-13 Thread Jambunathan K
Dan Davison  writes:

>> May be in coming days I should be able to make concrete, code-level
>> suggestions on that would take my prayers further down in your altar
>> :-).
>
> Would you be able to provide a brief summary of the
> series of emails? If you could identify one or a few core proposal(s)
> and be explicit about exactly what changes in behaviour you're
> suggesting, and whether they would be backwards compatible, that could
> be very helpful.

I will definitely do so. 

That said, I have essentially taken an 'example driven approach'. I have
taken user requests that have occurred on this list [1] (which seemed
one-off or export oriented) and asked the following questions -

1. Can I use Babel Src blocks (atleast in theory) to achieve this? What
   changes are required in the Org/Babel core to do it?

2. Can it be expressed in a syntax that is no different from one that
   the org users are already familiar with.

I will followup on my earlier posts with greater clarity ... 

Footnotes :

[1] I have provided links to example user stories in all my earlier
posts. They, IMHO, are potential candidates that could guide one to
expanding Babel in little (if not profound) ways.

Jambunathan K.

___
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] Fwd: Agenda: Hide Sched. Items

2010-09-13 Thread Nathan Neff
-- Forwarded message --
From: Nathan Neff 
Date: Mon, Sep 13, 2010 at 2:06 PM
Subject: Re: Agenda: Hide Sched. Items
To: Matt Lundin 


On Mon, Sep 13, 2010 at 1:07 PM, Matt Lundin  wrote:
> Nathan Neff  writes:
>
>> Is there a way to hide Scheduled Items in a custom Agenda View?
>>
>
> Yes. You can use the variable org-agenda-entry-types.
>
>> I have the following custom agenda set up:
>>
>> ("&" "Timeline" ((agenda "" ))
>>                   ((org-agenda-ndays 1)
>>                    (org-agenda-show-log t)
>>                    (org-agenda-clockreport-mode t)
>>                  (org-agenda-log-mode-items '(clock))
>>                 )
>>                 )
>>
>
> Here's an example:
>
> (setq org-agenda-custom-commands
>      '(("&" "Timeline" ((agenda "" ))
>         ((org-agenda-ndays 1)
>          (org-agenda-show-log t)
>          (org-agenda-clockreport-mode t)
>          (org-agenda-log-mode-items '(clock))
>          (org-agenda-entry-types '(:timestamp :sexp :deadline)) ;; [1]
>          

Thanks! I don't want deadlines, and I think that :timestamp
entries are items like "Marked DONE", or "Marked STARTED".
I also don't really know what :sexp items look like, although I suspect
they're "diary" style headlines that show up when you keep a diary, like this:
* 2010-09 September.

So, I just marked the list as empty (see below), and it works the way
I want.  Thanks again!

> (setq org-agenda-custom-commands
>      '(("&" "Timeline" ((agenda "" ))
>         ((org-agenda-ndays 1)
>          (org-agenda-show-log t)
>          (org-agenda-clockreport-mode t)
>          (org-agenda-log-mode-items '(clock))
         (org-agenda-entry-types '()) ;; [1] <-pass blank list.
>          

Thanks again,
--Nate

> HTH,
> Matt
>
> Footnotes:
>
> [1] Added line. Note the absence of :scheduled.
>

___
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: Customizing agenda line format

2010-09-13 Thread Matt Lundin
Norbert Zeh  writes:

> Is there a way to freely customize the format of lines in the weekly
> agenda or todo list.  
...
> I have a bunch of todo items that have a special todo state, say SPECIAL.
> I don't want those included in my weekly agenda, but rather have a block
> agenda where one of the blocks lists all todo items with todo state
> SPECIAL.  Clearly, since this block includes only items that are
> SPECIAL, listing this tag at the beginning of each entry's line is
> redundant information.  So I'd like to remove the TODO state.  For
> example, the org file entry
>
> * SPECIAL Call mom
>
> should appear simply as
>
> Call mom
>
> in that block of my agenda.  Can this be done?  

Check out the variable org-agenda-todo-keyword-format. 

E.g.,

--8<---cut here---start->8---
(setq org-agenda-custom-commands
  '(("x" "Special" todo "SPECIAL"
  ((org-agenda-todo-keyword-format "")
--8<---cut here---end--->8---

The variable org-agenda-prefix-format might also be of interest.

Best,
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] Re: bug ? invoking display-time causes org mode clocking to go bad

2010-09-13 Thread Antony

Reposting since I think my original message  did not go through

On 9/2/2010 4:03 AM, Antony wrote:

What I have seen is not desirable behavior, but I don't know where the
issue is.

Here are the details to reproduce.

Start vanilla emacs
(removed my .emacs and my .emacs.desktop but not my other stuff like
.emacs-places .emacs.bmk .emacs.d).

Says
This is GNU Emacs 23.2.1 (i686-pc-cygwin, GTK+ Version 2.18.6)

Type
C-x f ~/foo.org
seems to start org mode

type
* foo 

type
C-c C-x C-i
inserts
CLOCK: [2010-09-02 Thu 01:26]
when my windows clock in Win 7 is showing 1:26 AM
They match. My Win 7 is in PST (Pacific) time
So far so good.

Exit emacs

Now do the following

Start vanilla emacs
type
C-x f ~/foo.org

type
* foo 

type
M-x display-time
modeline shows 7:29 AM
when my PC is showing 1:30AM
They don't match.

Type
C-c C-x C-i
inserts
CLOCK: [2010-09-02 Thu 07:30]
Now the clocking in org mode is gone bad.

Basically it looks like usage of the display-time changes something to
affect org clock functionality.
Also, I don't understand where the modeline clock value for display-time
is coming from.
FYI Today is September 2 2010

Org-mode version 6.33x
GNU Emacs 23.2.1 (i686-pc-cygwin, GTK+ Version 2.18.6) of 2010-05-08 on
laptop

I've been using org mode for about a month now and really like and use
the clocking feature. Thanks.
The reason I ran into this was I was investigating using
http://funcall.posterous.com/displaying-a-daily-org-mode-agenda-reminder-i

-Antony




___
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: bug ? invoking display-time causes org mode clocking to go bad

2010-09-13 Thread Matt Lundin
Antony  writes:

> On 9/2/2010 4:03 AM, Antony wrote:
>>
>> Start vanilla emacs
>> type
>> C-x f ~/foo.org
>>
>> type
>> * foo 
>>
>> type
>> M-x display-time
>> modeline shows 7:29 AM
>> when my PC is showing 1:30AM
>> They don't match.
>>
> no one can reproduce this?

This sounds like a general emacs/cygwin question.

What do you get when you evaluate the following--i.e., type C-x C-e
after the closing parenthesis?

(current-time-zone)

Best,
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] Re: bug ? invoking display-time causes org mode clocking to go bad

2010-09-13 Thread Antony

 On 9/13/2010 12:21 PM, Matt Lundin wrote:

Antony  writes:


On 9/2/2010 4:03 AM, Antony wrote:

Start vanilla emacs
type
C-x f ~/foo.org

type
* foo

type
M-x display-time
modeline shows 7:29 AM
when my PC is showing 1:30AM
They don't match.


no one can reproduce this?

This sounds like a general emacs/cygwin question.

What do you get when you evaluate the following--i.e., type C-x C-e
after the closing parenthesis?

(current-time-zone)

Best,
Matt


(-25200 "PDT")
but if i run

M-x display-time

then followup with the above

(current-time-zone)

I get
(-3600 "GMT")

After that I restart my emacs to get out of the mess :)

-Antony

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


[Orgmode] problem exporting region from within a read-only file

2010-09-13 Thread Eric S Fraga
Hello,

For standalone org files that are not part of any larger project, I
often use RCS as my revision control system.  RCS will make a file
read-only when you /check in/ changes, waiting for the user to
/check out/ the file explicitly for further changes.  I like the way
this works.

Org, however, doesn't! ;-)

If I have a read-only file, I can export the whole file (say to HTML)
and it works.  If, however, I select a region and try to export that,
org fails with the error message:

: org-export-get-title-from-subtree: Buffer is read-only: #

This appears to be because of this function adding text properties (a
specific one which I don't understand completely) to the text:

: (org-unmodified
:  (add-text-properties (point) (1+ (point-at-eol))
: (list :org-license-to-kill t)))

(in org-exp.el).  It would be nice if export would work with read-only
files but I have no idea where to start in trying to fix this.

Obviously, this bug (feature?) is *not* a show-stopper!

Thanks,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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: bug ? invoking display-time causes org mode clocking to go bad

2010-09-13 Thread Nick Dokos
Antony  wrote:

> On 9/2/2010 4:03 AM, Antony wrote:
> >
> > Start vanilla emacs
> > type
> > C-x f ~/foo.org
> >
> > type
> > * foo 
> >
> > type
> > M-x display-time
> > modeline shows 7:29 AM
> > when my PC is showing 1:30AM
> > They don't match.
> >
> no one can reproduce this?
> -Antony
> 

Nope.

Timezone settings perhaps? That might explain the gross hour difference,
but not the minute difference: could there be a slight delay between
your reading the two displays that would account for the latter?

Nick


___
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 capture with predefined entries from a list?

2010-09-13 Thread Miguel Ruiz
Thank you for your interest.

First: org.el 7/9/2010, org-capture.el 2/9/2010

Contents of .emacs:

(...)
(setq org-capture-templates
  '(("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks")
 "* TODO %?\n  %i\n  %a")
("j" "Journal" entry (file+datetree "~/org/journal.org")
 "* %?\nEntered on %U\n  %i\n  %a")))
(...)

So, let's start:

1. In any buffer: M-x org-capture
2. Appears a menu saying "Select a capture template". Of course, two options 
[t] and [j], and [C] Customize org-capture-templates and [q] Abort.
3. I press [t] and get a "capture buffer" with "* TODO" inserted, ready to 
accept more info
4. C-c C-c finish and save the entry in ~/org/gtd.org

Ok. That's what I would like:

1. In any buffer: M-x org-capture
2. Appears a menu saying "Select a capture template". Of course, two options 
[t] and [j], and [C] Customize org-capture-templates and [q] Abort.
3. I press [t] and get a "capture buffer" with "* TODO" inserted, ready to 
accept my entry
4. Appears another menu saying "Select task type or whatever": several options: 
[1] Task1 [2] Task2 [3] Task3 ...
5. I press [1] and  "capture buffer" updates with "* TODO Task1" inserted, 
ready to accept more info
6. Ideally appears another menu saying "Select comment or whatever": several 
options: [1] Comment1 [2] Comment2 [3] Comment3 ...
7. I press [1] and  "capture buffer" updates with "* TODO Task1 Comment1" 
inserted, ready to accept more info
8. Ideally steps 6 and 7 would be repeated (well, no more than 4 or 5 times)
4. C-c C-c finish and save the entry in ~/org/gtd.org


In the original post I said that if not possible, I would be happy with a 
shortkey launching a buffer showing the options of step 4, then I would select 
one of them and it would inserted after "* TODO"

I hope now it is more clear.

Miguel





___
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: Customizing agenda line format

2010-09-13 Thread Norbert Zeh
Matt Lundin [2010.09.13 1512 -0400]:
> Norbert Zeh  writes:
> 
> > Is there a way to freely customize the format of lines in the weekly
> > agenda or todo list.  
> ...
> > I have a bunch of todo items that have a special todo state, say SPECIAL.
> > I don't want those included in my weekly agenda, but rather have a block
> > agenda where one of the blocks lists all todo items with todo state
> > SPECIAL.  Clearly, since this block includes only items that are
> > SPECIAL, listing this tag at the beginning of each entry's line is
> > redundant information.  So I'd like to remove the TODO state.  For
> > example, the org file entry
> >
> > * SPECIAL Call mom
> >
> > should appear simply as
> >
> > Call mom
> >
> > in that block of my agenda.  Can this be done?  
> 
> Check out the variable org-agenda-todo-keyword-format. 
> 
> E.g.,
> 
> --8<---cut here---start->8---
> (setq org-agenda-custom-commands
>   '(("x" "Special" todo "SPECIAL"
> ((org-agenda-todo-keyword-format "")
> --8<---cut here---end--->8---
> 
> The variable org-agenda-prefix-format might also be of interest.

Well, I tried setting org-agenda-todo-keyword-format to "%0s", which
didn't work, but I didn't think about the above.  So I tried this now.
It does remove the todo keyword, but it does only that.  In particular,
there is now a space at the beginning of each line, which I assume is
simply the space in the headline that succeeds the todo keyword.  Any
way of getting rid of that?  Thanks for the pointer so far.

- Norbert

___
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] listing org source blocks in LaTeX

2010-09-13 Thread Thomas S. Dye

Aloha all,

Has anyone configured the listings package to recognize org source  
code blocks?


On LaTeX export, I get this:


\lstset{language=org}

org-buffer-color() $\equiv$
\begin{lstlisting}
#+LaTeX_CLASS_OPTIONS: [color]
\end{lstlisting}


The listings package throws an error when it sees language=org.  It  
does just fine with source code blocks in other languages.


All the best,
Tom

___
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: Customizing agenda line format

2010-09-13 Thread Matt Lundin
Norbert Zeh  writes:

> Matt Lundin [2010.09.13 1512 -0400]:
>> Norbert Zeh  writes:
>> 
>> > Is there a way to freely customize the format of lines in the weekly
>> > agenda or todo list.  
>> ...
>> > I have a bunch of todo items that have a special todo state, say SPECIAL.
>> > I don't want those included in my weekly agenda, but rather have a block
>> > agenda where one of the blocks lists all todo items with todo state
>> > SPECIAL.  Clearly, since this block includes only items that are
>> > SPECIAL, listing this tag at the beginning of each entry's line is
>> > redundant information.  So I'd like to remove the TODO state.  For
>> > example, the org file entry
>> >
>> > * SPECIAL Call mom
>> >
>> > should appear simply as
>> >
>> > Call mom
>> >
>> > in that block of my agenda.  Can this be done?  
>> 
>> Check out the variable org-agenda-todo-keyword-format. 
>> 
>> E.g.,
>> 
>> --8<---cut here---start->8---
>> (setq org-agenda-custom-commands
>>   '(("x" "Special" todo "SPECIAL"
>>((org-agenda-todo-keyword-format "")
>> --8<---cut here---end--->8---
>> 
>> The variable org-agenda-prefix-format might also be of interest.
>
> Well, I tried setting org-agenda-todo-keyword-format to "%0s", which
> didn't work, but I didn't think about the above.  So I tried this now.
> It does remove the todo keyword, but it does only that.  In particular,
> there is now a space at the beginning of each line, which I assume is
> simply the space in the headline that succeeds the todo keyword.  Any
> way of getting rid of that?  Thanks for the pointer so far.
>

The information at the beginning of the line is controlled by
org-agenda-prefix-format. What is the value of org-agenda-prefix-format
on your machine?

What happens if you set org-agenda-prefix-format to "" in the command
above?

Best, 
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] #+STYLE: strangeness

2010-09-13 Thread Alan L Tyree
Greetings,
This is a low priority peculiarity. The following line

#+STYLE: 

(All on one line in the files)

Works as intended if in the main file. But if I have in in a #+INCLUDE:
file then it does not find the .css file even though everything else
in the included file (html stuff) works as intended.

I'm not competent to find the problem in the .el files.



-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


___
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] Change color in fontified html export for strings

2010-09-13 Thread Sebastian Rose
Rainer M Krug  writes:
> Hi
>
> when exporting code blocks to html, strings are exported as yellow
> (#00), which is really difficult to read. Is there a possibility to
> customize the colors (specifically the one used for strings) used for
> the fontification when exporting to html?
>
> Thanks,
>
> Rainer


Change the CSS styles for strings using a stylesheet. 

This is the htmlize-related section of my CSS stylesheet:


pre.src .comment {
  color: #77;
  font-style: italic;
}
pre.src .comment-delimiter {
  color: #77;
  font-style: italic;
}
.constant {
  color: #ff4500;
}
.default {
  color: #00;
}
.builtin {
  color: #ff;
}
.function-name {
  color:#ff;
}
.html-tag {
  color: #ff;
}
.keyword {
  color: #a52a2a;
  font-weight: bold;
}
.string {
  color: #006400;
}
.type {
  font-weight:bold;
  color:#238b8b;
}
.preprocessor {
  color:#FF;
}
.variable-name {
  color: #4d4d4d;
  font-weight:bold;
}
.org-meta-line {
  color: #99;
}
.css-selector {
  color: #ff;
  font-weight:bold;
}
.css-property {
  color: #00;
  font-weight:bold;
}
.makefile-targets {
  font-weight:bold;
  color: #ff;
}
pre.src .doc {
  color:#77;
}
/* ENDE htmlize.el */



  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


[Orgmode] todos without timestamp in agenda

2010-09-13 Thread henry atting
When I have some kind of todo items in an *.org file without timestamp they
do not show up in the agenda. I can start the agenda with the
appropriate shortcut then only these items are diplayed. 
But if I am already in org-agenda I have to quit then start again
with the speacial agenda view.
Is there a more comfortable way to simply switch the view when in
org-agenda, or let these todo items show up in the first place (e.g. at
the bottom of the agenda)?

Cheers
henry

-- 
http://literaturlatenight.de


___
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