[Orgmode] Blog posts about Org-mode

2010-01-26 Thread Carsten Dominik

Hi everyone,

I have started a new page on Worg which aggregates
links to Blog posts about Org-mode:

   http://orgmode.org/worg/org-blog-articles.php

There is a lot of interesting stuff in these posts.
If you know other Blog posts which are interesting
in this context, please add them or at least tell us
about them so that someone can add them.

- 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] Blog posts about Org-mode

2010-01-26 Thread Giovanni Ridolfi
Carsten Dominik carsten.domi...@gmail.com writes:

 links to Blog posts about Org-mode:

Manoj Srivastava

[[http://www.golden-gryphon.com/blog/manoj/blog/2008/06/08/Using_org-mode_with_Ikiwiki/][Using
 org-mode with Ikiwiki]]

Giovanni

P.S.(joke)
on Tue Nov 3 08:12:42 2009 Stefano Zacchiroli wrote:
in my GTD implementation, I also have now an integration between Mutt
and Emacs' Org mode  that enables me to put from Org notes links to Mutt
emails.  I'll blog about that separately, [...]
I've already posted the relevant code to the Org mode mailing list.

Stefano, we're waiting ;-) 



___
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] Blog posts about Org-mode

2010-01-26 Thread Carsten Dominik


On Jan 26, 2010, at 11:42 AM, Giovanni Ridolfi wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


links to Blog posts about Org-mode:


Manoj Srivastava

[[http://www.golden-gryphon.com/blog/manoj/blog/2008/06/08/Using_org-mode_with_Ikiwiki/ 
][Using org-mode with Ikiwiki]]


Giovanni


Will you add this to WOrg?

- Carsten



P.S.(joke)
on Tue Nov 3 08:12:42 2009 Stefano Zacchiroli wrote:
in my GTD implementation, I also have now an integration between Mutt
and Emacs' Org mode  that enables me to put from Org notes links to  
Mutt

emails.  I'll blog about that separately, [...]
I've already posted the relevant code to the Org mode mailing list.

Stefano, we're waiting ;-)



- 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] org-indent-mode + word wrap

2010-01-26 Thread Carsten Dominik

Hi Christer,

On Jan 25, 2010, at 11:05 AM, Christer Enfors wrote:

I'm having problems with word wrapping when using org-indent-mode  
and word wrapping. The text is wrapped beyond the right side of my  
80-column window, once I get a few levels of indentation.


This is right, this is one of the draw-back currently in using org- 
indent-mode.

I am solving it by making my window a bit wider... :-)



So I checked the manual to make sure I was doing everything  
correctly, and the manual says I need emacs version 23.1.50.6 or  
newer for org-indent-mode. Apparently, I'm using (GNU) emacs version  
23.1.3, so I guess my emacs is too old. But when I check the GNU ftp  
server, I see nothing newer than emacs 23.1. What's going on? Is  
23.1.50.6 a beta version, or something?


Indeed, there is no Emacs *release* where org-indent-mode runs  
stably.  It will run stably in 23.2.


Emacs before the given version will actually *crash* when using org- 
indent-mode and folding everything up.  This is unrelated to the  
wrapping problem you mentioned.


HTH

- 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] org-clock mode-line format configuration

2010-01-26 Thread Kiwon Um
Dear orgmode dev team:

When the clock is started on an item, the item is shown on the mode
line. But the string on the mode line just shows the raw string of the
item, so sometimes it looks ugly when it contains a link.

So I suggest to make it customizable, or to vanish the link string, e.g.
using
 (replace-regexp-in-string \\[\\[.*\\]\\[\\(.*\\)\\]\\] \\1 str)

Sincerely,

Kiwon Um


___
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] Make archived headers unavailable as refile targets?

2010-01-26 Thread Carsten Dominik


On Jan 25, 2010, at 11:32 AM, Paul Mead wrote:


Hi

Is there any way of excluding archived headers as refile targets?

I'd like to restrict refiling to those projects which are current.


Take a look at the variable `org-refile-target-verify-function'.

HTH

- 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] Blog posts about Org-mode

2010-01-26 Thread Giovanni Ridolfi
Carsten Dominik carsten.domi...@gmail.com writes:

 On Jan 26, 2010, at 11:42 AM, Giovanni Ridolfi wrote:

 Carsten Dominik carsten.domi...@gmail.com writes:

 links to Blog posts about Org-mode:

 Manoj Srivastava

 [[http://www.golden-gryphon.com/blog/manoj/blog/2008/06/08/Using_org-mode_with_Ikiwiki/
 ][Using org-mode with Ikiwiki]]

 Giovanni

 Will you add this to WOrg?
Carsten,
I can't: I haven't my account on worg, yet;
   and also I haven't installed git, yes  :-/

cheers,
Giovanni


___
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] Blog posts about Org-mode

2010-01-26 Thread Stefano Zacchiroli
On Tue, Jan 26, 2010 at 12:02:48PM +0100, Carsten Dominik wrote:
 P.S.(joke)
 on Tue Nov 3 08:12:42 2009 Stefano Zacchiroli wrote:
 in my GTD implementation, I also have now an integration between Mutt
 and Emacs' Org mode  that enables me to put from Org notes links
 to Mutt
 emails.  I'll blog about that separately, [...]
 I've already posted the relevant code to the Org mode mailing list.
 
 Stefano, we're waiting ;-)

Eh, I know :-)

But recently I've stumbled upon a dumb environment issue that I haven't
been able to solve yet. Namely if I run my main Emacs (server) inside
GNOME, but *not* from a terminal, I got a stripped down environment
which misses some variables that are needed to make Mutt work as I
need. It all works well if I run my main Emacs server from a terminal,
but that is a suboptimal solution.

There are still some aspects that I need to flesh out before being able
to blog about that. But don't worry, I haven't given up :)

Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
z...@{upsilon.cc,pps.jussieu.fr,debian.org} -- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...| ..: | Je dis tu à tous ceux que j'aime


___
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] Blog posts about Org-mode

2010-01-26 Thread Manish
On Tue, Jan 26, 2010 at 5:45 PM, Giovanni Ridolfi wrote:
 Carsten Dominik writes:

 On Jan 26, 2010, at 11:42 AM, Giovanni Ridolfi wrote:

 Carsten Dominik writes:

 links to Blog posts about Org-mode:

 Manoj Srivastava

 [[http://www.golden-gryphon.com/blog/manoj/blog/2008/06/08/Using_org-mode_with_Ikiwiki/
 ][Using org-mode with Ikiwiki]]

 Giovanni

 Will you add this to WOrg?
 Carsten,
 I can't: I haven't my account on worg, yet;
   and also I haven't installed git, yes  :-/


no problem.  i added the link to worg.

thanks
-- 
manish


___
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-clock mode-line format configuration

2010-01-26 Thread Manish
+1

On Tue, Jan 26, 2010 at 3:30 PM, Kiwon Um wrote:
 Dear orgmode dev team:

 When the clock is started on an item, the item is shown on the mode
 line. But the string on the mode line just shows the raw string of the
 item, so sometimes it looks ugly when it contains a link.

 So I suggest to make it customizable, or to vanish the link string, e.g.
 using
  (replace-regexp-in-string \\[\\[.*\\]\\[\\(.*\\)\\]\\] \\1 str)

 Sincerely,

 Kiwon Um


 ___
 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] List number resetting when using anchor tag in exported HTML

2010-01-26 Thread Jere McDevitt
I came across an odd behavior while using org-mode to create some web pages
where list numbers get reset if you insert anchor tags.  Consider the
following example document:

* This is the first header line

  1. This is line number 1
  2. This is line number 2
  3. This is line number 3
#Anchor1
  1. This should be line number 4, but is reset by the anchor tag
  2. This should be line number 5.

* This is the second header line

  1. This is line number 1
  2. This is line number 2
  3. This is line number 3
#+BEGIN_HTML
a name='anchor2'
#+END_HTML
  1. This stays line number 4
  2. This stays line number 5

The numbers associated with the list items are the numbers created as new
items are added automatically with ALT-ENTER.  After the #Anchor1 entry
and the #+END_HTML, doing the Alt-Enter starts the list number back at 1.
However, when this is exported to HTML, something else occurs.  In the case
of the #Anchor1 entry, the HTML also restarts the list number, whereas
with the #+BEGIN_HTML it does not.  The generated HTML looks like the
below.  Notice in the first section the ol tag is closed and the anchor is
wrapped with paragraph tags, then ol reopens, so there is a space as well
as re-starting number, but in the second case the anchor tag is inline.
Further down is the actual generated HTML text.

Shouldn't #anchor tags be treated in the same way as
BEGIN_HTML/END_HTML?


Table of Contents

   - 1 This is the first header line file:///tmp/burl31927GCc.html#sec-1
   - 2 This is the second header line file:///tmp/burl31927GCc.html#sec-2

  1 This is the first header line

   1. This is line number 1
   2. This is line number 2
   3. This is line number 3


   1. This should be line number 4, but is reset by the anchor tag
   2. This should be line number 5.

  2 This is the second header line

   1. This is line number 1
   2. This is line number 2
   3. This is line number 3
   4. This stays line number 4
   5. This stays line number 5






div id=outline-container-1 class=outline-2
h2 id=sec-1span class=section-number-21/span This is the first
header line /h2
div class=outline-text-2 id=text-1


ol
li
This is line number 1

/li
li
This is line number 2

/li
li
This is line number 3
/li
/ol

pa name=Anchor1 id=Anchor1/a
/pol
li
This should be line number 4, but is reset by the anchor tag

/li
li
This should be line number 5.

ol
/ol
/li
/ol
/div

/div

div id=outline-container-2 class=outline-2
h2 id=sec-2span class=section-number-22/span This is the second
header line /h2
div class=outline-text-2 id=text-2


ol
li
This is line number 1

/li
li
This is line number 2

/li
li
This is line number 3
a name='anchor2'
/li
li
This stays line number 4

/li
li
This stays line number 5
/li
/ol
/div
/div
___
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-beamer] \alert

2010-01-26 Thread Sébastien Vauban
Hi Eric and Sven,

Eric S Fraga wrote:
 (mistakenly sent this only to the OP... resending to list as well)

 At 24 Jan 2010 20:10:03 +0100,
 Sven Bretfeld wrote:
 
 Is there any Symbol in org-beamer for \alert{Text}? In presentations \alert
 is recommended instead of italics. We could even think of translating text
 enclosed in slashes / ... / to \alert{} by default in the beamer class.

 Essentially, you can add this functionality yourself:

 (setq org-emphasis-alist (quote ((* bold b /b) 
(/ italic i /i)
(_ underline span 
 style=\text-decoration:underline;\ /span)
(= org-code code /code 
 verbatim)
(~ org-verbatim code /code 
 verbatim)
(+ (:strike-through t) del 
 /del)
(@ org-warning b /b)))
   org-export-latex-emphasis-alist (quote 
  ((* \\textbf{%s} nil)
   (/ \\emph{%s} nil) 
   (_ \\underline{%s} nil)
   (+ \\texttt{%s} nil)
   (= \\verb=%s= nil)
   (~ \\verb~%s~ t)
   (@ \\alert{%s} nil


That's what I'm using as well, but the problem is that it's not compatible
anymore with non-beamer LaTeX, the alert macro being unknown.

Would there be a way to conditionally translate @...@ to alert (if beamer) or
to emph (if not-beamer), so that we can still easily compile a document to one
or the other LaTeX back-end, without having to customize variables in Emacs,
prior to a compilation to the other back-end?

I must admit I do not have clear specifications on how to tell Org about such
a config...

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] Make archived headers unavailable as refile targets?

2010-01-26 Thread Paul Mead
2010/1/26 Carsten Dominik carsten.domi...@gmail.com:


 Take a look at the variable `org-refile-target-verify-function'.

 HTH

 - Carsten


Thanks Carsten, I've had a look at the variable and the customize
option for it and I'm afraid I don't understand how to use it for my
task. I'm afraid my elisp skills aren't up to much. Do I enter the
name of a function and defun it somewhere else?

I'm assuming that I write a function which tests whether a headline
has an ARCHIVE tag and return nil if that's the case - is that right?

Paul


___
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] Make archived headers unavailable as refile targets?

2010-01-26 Thread David Maus
Hi Paul,

At Tue, 26 Jan 2010 15:18:47 +,
Paul Mead wrote:

 2010/1/26 Carsten Dominik carsten.domi...@gmail.com:

 
  Take a look at the variable `org-refile-target-verify-function'.
 
  HTH
 
  - Carsten
 
 
 Thanks Carsten, I've had a look at the variable and the customize
 option for it and I'm afraid I don't understand how to use it for my
 task. I'm afraid my elisp skills aren't up to much. Do I enter the
 name of a function and defun it somewhere else?

Yes, or you use the anonymous lambda declaration. Something like this:

(setq org-refile-target-verify-function
  '(lambda ()
 (if (member org-archive-tag (split-string (or (org-entry-get (point) 
ALLTAGS) ) :))
 nil t)))
HTH

 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com


pgpr1NVwsWmBp.pgp
Description: 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] [Worg] Addition to org-hacks: Remove redundant tags

2010-01-26 Thread David Maus
At Tue, 26 Jan 2010 11:04:06 +0530,
Manish wrote:

 Applied to Worg.

 Thanks

Ooops, attached patch fixes a small glitch in this function that
prevented it working on headlines without tags.

 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com


0001-fix-small-glitch-in-dmj-org-remove-redundant-tags.patch
Description: Binary data


pgpRgobgRhal7.pgp
Description: 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] Re: Make archived headers unavailable as refile targets?

2010-01-26 Thread Richard Riley
Paul Mead paul.d.m...@googlemail.com writes:

 2010/1/26 Carsten Dominik carsten.domi...@gmail.com:


 Take a look at the variable `org-refile-target-verify-function'.

 HTH

 - Carsten


 Thanks Carsten, I've had a look at the variable and the customize
 option for it and I'm afraid I don't understand how to use it for my
 task. I'm afraid my elisp skills aren't up to much. Do I enter the
 name of a function and defun it somewhere else?

 I'm assuming that I write a function which tests whether a headline
 has an ARCHIVE tag and return nil if that's the case - is that right?

There might be easier ways, but as I'm familiarising myself more with
elisp, here's one solution:

,
| (defun org-contains-tag (tag)
|   (interactive)
|   (let* ((tagslist (org-split-string (org-get-tags-string) :)))
| (if tagslist (or (member tag tagslist) (member (upcase tag) tagslist)) 
nil)))
| 
| (defun org-not-archived () (not (org-contains-tag archive)))
| 
| (setq org-refile-target-verify-function 'org-not-archived)
| 
| ;; (global-set-key (kbd C-c p) (lambda()(interactive)(message Tag contains 
%s : %s archive (if (org-contains-tag archive)yes no
`


regards

r.




 Paul

 ___
 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


-- 
Google Talk : rileyrg...@googlemail.com  http://www.google.com/talk
ASCII ribbon campaign ( )
 - against HTML email  X
  vCards / \



___
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] [Worg] Addition to org-hacks: Remove redundant tags

2010-01-26 Thread Manish
On Tue, Jan 26, 2010 at 9:52 PM, David Maus wrote:
 At Tue, 26 Jan 2010 11:04:06 +0530,
 Manish wrote:

 Applied to Worg.

 Thanks

 Ooops, attached patch fixes a small glitch in this function that
 prevented it working on headlines without tags.

Applied to Worg.

Thanks
-- 
Manish


___
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: Make archived headers unavailable as refile targets?

2010-01-26 Thread Richard Riley
Richard Riley rileyrg...@gmail.com writes:

 There might be easier ways, but as I'm familiarising myself more with
 elisp, here's one solution:


Having seen David's solution, I realised the org-archive-tag in your
case is better rather than the more general solution I aimed for. So
maintaining the general org-contains-tag solution but using the correct
tag variable:

,
| (defun org-not-archived () (not (org-contains-tag org-archive-tag)))
`


r.





___
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] Moving to babel the whole configuration

2010-01-26 Thread Manish
On Thu, Jan 21, 2010 at 10:15 PM, Dan Davison wrote:
 andrea writes:

 I'm really tempted to move all my emacs configuration in only
 one big file.  This would also help me to make it more
 consistent and readable.

 But I'm afraid to mess up something, in theory I just need: -
 a simple org and babel loader - one big file containing
 everything


 Hi Andrea,

 I've used a single org mode file to keep all my emacs
 configuration code for the last 5 months or so and I have not
 had any problems at all. I highly recommend it.  I am using a
 simple set up:

 My ~/.emacs contains

 --
 (add-to-list 'load-path /usr/local/src/org-mode/lisp)
 (add-to-list 'load-path /usr/local/src/org-mode/contrib/lisp)
 (require 'org-install) (require 'org-babel-init)
 (org-babel-load-file
 ~/config/emacs/emacs.org) 
 --

 and all the rest of my emacs config code is in
 ~/config/emacs/emacs.org


This works very nicely.  Thank you.

I am thinking about making my config a little leaner while I
reorganize without affecting functionality I have gotten used to by
preventing sections of config from loading.  I thought setting :tangle
to `no' should help but the default is already `no' and all my config
is loaded.  How would one go about marking a section of configuration
so that it remains in the configuration file but does not get tangled
while Emacs boots?

Thanks
-- 
Manish


___
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-beamer] \alert

2010-01-26 Thread Eric S Fraga
At Tue, 26 Jan 2010 16:06:27 +0100,
Sébastien Vauban wrote:
 Eric S Fraga wrote:
  At 24 Jan 2010 20:10:03 +0100,
  Sven Bretfeld wrote:
  
  Is there any Symbol in org-beamer for \alert{Text}? In presentations \alert

[...]

org-export-latex-emphasis-alist (quote 
 ((* \\textbf{%s} nil)
  (/ \\emph{%s} nil) 
  (_ \\underline{%s} nil)
  (+ \\texttt{%s} nil)
  (= \\verb=%s= nil)
  (~ \\verb~%s~ t)
  (@ \\alert{%s} nil
 
 
 That's what I'm using as well, but the problem is that it's not compatible
 anymore with non-beamer LaTeX, the alert macro being unknown.

Very true.  I've never thought about this as my presentations are for
presentation only etc.  However, it would definitely be nice to have a
more general solution.

 Would there be a way to conditionally translate @...@ to alert (if beamer) or
 to emph (if not-beamer), so that we can still easily compile a document to one
 or the other LaTeX back-end, without having to customize variables in Emacs,
 prior to a compilation to the other back-end?

The alist structure doesn't allow for embedded lisp code, as far as I
can tell.  It would obviously be easier if this structure could be
evaluated on the fly.

 I must admit I do not have clear specifications on how to tell Org about such
 a config...

The only suggestion I can come up with would be to modify this
variable using, for instance, the org-export-later-after-initial-vars-hook?

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] List number resetting when using anchor tag in exported HTML

2010-01-26 Thread Eric S Fraga
At Tue, 26 Jan 2010 08:59:37 -0500,
Jere McDevitt wrote:
 I came across an odd behavior while using org-mode to create some web pages
 where list numbers get reset if you insert anchor tags.  Consider the
 following example document:
 
 * This is the first header line
 
   1. This is line number 1
   2. This is line number 2
   3. This is line number 3
 #Anchor1
   1. This should be line number 4, but is reset by the anchor tag
   2. This should be line number 5.

[...]

The following works just fine (at least for HTML export, not sure about 
anything else):

--8---cut here---start-8---
* This is the first header line

  1. This is line number 1
  2. This is line number 2
  3. This is line number 3
 Anchor1
  1. This should be line number 4, but is reset by the anchor tag
  2. This should be line number 5.
--8---cut here---end---8---

Note the indentation in particular.

HTH,
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] [babel] Moving to babel the whole configuration

2010-01-26 Thread Eric Schulte
Manish mailtomanish.sha...@gmail.com writes:

 On Thu, Jan 21, 2010 at 10:15 PM, Dan Davison wrote:
 andrea writes:

 I'm really tempted to move all my emacs configuration in only
 one big file.  This would also help me to make it more
 consistent and readable.

 But I'm afraid to mess up something, in theory I just need: -
 a simple org and babel loader - one big file containing
 everything


 Hi Andrea,

 I've used a single org mode file to keep all my emacs
 configuration code for the last 5 months or so and I have not
 had any problems at all. I highly recommend it.  I am using a
 simple set up:

 My ~/.emacs contains

 --
 (add-to-list 'load-path /usr/local/src/org-mode/lisp)
 (add-to-list 'load-path /usr/local/src/org-mode/contrib/lisp)
 (require 'org-install) (require 'org-babel-init)
 (org-babel-load-file
 ~/config/emacs/emacs.org) 
 --

 and all the rest of my emacs config code is in
 ~/config/emacs/emacs.org


 This works very nicely.  Thank you.

 I am thinking about making my config a little leaner while I
 reorganize without affecting functionality I have gotten used to by
 preventing sections of config from loading.  I thought setting :tangle
 to `no' should help but the default is already `no' and all my config
 is loaded.  How would one go about marking a section of configuration
 so that it remains in the configuration file but does not get tangled
 while Emacs boots?


Hi Manish,

I think this will require a little development/bug-fixing on my part
before it works easily.  As I recall the elisp tangling in
`org-babel-load-file' is fairly aggressive and may not respect tangle
header arguments.  But the method you described above (setting the
tangle header argument to no -- either in a subtree property or by
block) is certainly the correct approach.

I'll let you know when I find some time to look into this.

Best -- Eric


 Thanks


___
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 and emacs init

2010-01-26 Thread Eric Schulte
Hi Richard,

Richard Riley rileyrg...@gmail.com writes:

 What approach have you taken to loading multiple files using the
 org-babel method?

 The example on the babel page searches out all org files and then
 untangles the elisp snippets and rewrites files with a .el extensions
 loading them as it goes.

 But how to order  this or how best to load /decode/execute at run time
 in say an autoload or eval after load? Simply call org-babel-load-file
 instead of require? 


Currently the only option is `org-babel-load-file'.  Off the top of my
head I don't see why an analogous `org-babel-require' function would not
work, and it seems that it would satisfy this need for conditional
loading.


 e.g say I wanted to keep my (typically large) .gnus.el file as an org
 file. How best to deal with that? Currently I have an eval after load
 with all the code in that used to be in my .gnus.el in my
 emacs-init.org. Other approaches?


again, maybe using something like the eventually-to-be-implemented
org-babel-require would work here?


 Would there be a way to get the load system to check for an org file
 first and call org-babel-load-file?


I'm not sure exactly what you mean here.


 Should possibly writing the org file auto create the .el file? Or is
 that best left to load time?


I think this will be more reliable if it is left as a load-time
operation, rather than as a save-hook or something.  Also, since the
file is only re-tangled when the .org file is newer than the .el file it
should not be a noticeable startup performance hit.

Thanks -- Eric


 Any opinions or discussions/pointers appreciated.

 regards,

 r.




 ___
 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


Re: [Orgmode] Make archived headers unavailable as refile targets?

2010-01-26 Thread Paul Mead
Thanks David, I'm going to have to check out the elisp reference and
try to understand what you did there!

Paul

2010/1/26 David Maus maus.da...@gmail.com:
 Hi Paul,

 At Tue, 26 Jan 2010 15:18:47 +,
 Paul Mead wrote:

 2010/1/26 Carsten Dominik carsten.domi...@gmail.com:

 
  Take a look at the variable `org-refile-target-verify-function'.
 
  HTH
 
  - Carsten
 
 
 Thanks Carsten, I've had a look at the variable and the customize
 option for it and I'm afraid I don't understand how to use it for my
 task. I'm afraid my elisp skills aren't up to much. Do I enter the
 name of a function and defun it somewhere else?

 Yes, or you use the anonymous lambda declaration. Something like this:

 (setq org-refile-target-verify-function
      '(lambda ()
         (if (member org-archive-tag (split-string (or (org-entry-get (point) 
 ALLTAGS) ) :))
             nil t)))
 HTH

  -- David

 --
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmj...@jabber.org
 Email. maus.da...@gmail.com



___
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-babel and emacs init

2010-01-26 Thread Richard Riley
Eric Schulte schulte.e...@gmail.com writes:

 Hi Richard,

 Richard Riley rileyrg...@gmail.com writes:

 What approach have you taken to loading multiple files using the
 org-babel method?

 The example on the babel page searches out all org files and then
 untangles the elisp snippets and rewrites files with a .el extensions
 loading them as it goes.

 But how to order  this or how best to load /decode/execute at run time
 in say an autoload or eval after load? Simply call org-babel-load-file
 instead of require? 


 Currently the only option is `org-babel-load-file'.  Off the top of my
 head I don't see why an analogous `org-babel-require' function would not
 work, and it seems that it would satisfy this need for conditional
 loading.


 e.g say I wanted to keep my (typically large) .gnus.el file as an org
 file. How best to deal with that? Currently I have an eval after load
 with all the code in that used to be in my .gnus.el in my
 emacs-init.org. Other approaches?


 again, maybe using something like the eventually-to-be-implemented
 org-babel-require would work here?


 Would there be a way to get the load system to check for an org file
 first and call org-babel-load-file?


 I'm not sure exactly what you mean here.

I was thinking of (require 'xyz) somehow being overloaded to first check
for org files. Fuzzy thinking most likely ;) If I eval a block such as
(require 'mylib) it would be nice if it could detect the org has changed
and so re-create the el etc.  see below 



 Should possibly writing the org file auto create the .el file? Or is
 that best left to load time?


 I think this will be more reliable if it is left as a load-time
 operation, rather than as a save-hook or something.  Also, since the
 file is only re-tangled when the .org file is newer than the .el file it
 should not be a noticeable startup performance hit.

It's true about the overhead being small but if you edit the org file
then the elisp file should, I think, always be up to date and not out of
sync until the next emacs startup. Especially for those of us who might
use the daemon and restarts are few and far between. Imagine I alter a
tangled block in the my org file and save and later want to email some
lisp to a friend - as happened to today I might forget the updated org
and instead copy from the .el file - oops! 


 Thanks -- Eric


Thanks for your reply. I really like org-babel. The only things I would
say about the current implementation, and being totally selfish as I
only use it for elisp at the moment ;), is that C-c C-c should use the
org-ctl-cl-ctl-c functionality to edit the code block as the default
instead of the harder to key C-'. Would it be hard to make the default
org-file or src type configurable? On that note it would be wonderful if
somehow nxhtml would work with this so we could actually edit in place
in emacs-lisp mode. Is there anything in that direction?

Great stuff,

regard

r.



 Any opinions or discussions/pointers appreciated.

 regards,

 r.




 ___
 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


-- 
Google Talk : rileyrg...@googlemail.com  http://www.google.com/talk
ASCII ribbon campaign ( )
 - against HTML email  X
  vCards / \



___
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] Moving to babel the whole configuration

2010-01-26 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes:

 Manish mailtomanish.sha...@gmail.com writes:

 On Thu, Jan 21, 2010 at 10:15 PM, Dan Davison wrote:
 andrea writes:

 I'm really tempted to move all my emacs configuration in only
 one big file.  This would also help me to make it more
 consistent and readable.

 But I'm afraid to mess up something, in theory I just need: -
 a simple org and babel loader - one big file containing
 everything


 Hi Andrea,

 I've used a single org mode file to keep all my emacs
 configuration code for the last 5 months or so and I have not
 had any problems at all. I highly recommend it.  I am using a
 simple set up:

 My ~/.emacs contains

 --
 (add-to-list 'load-path /usr/local/src/org-mode/lisp)
 (add-to-list 'load-path /usr/local/src/org-mode/contrib/lisp)
 (require 'org-install) (require 'org-babel-init)
 (org-babel-load-file
 ~/config/emacs/emacs.org) 
 --

 and all the rest of my emacs config code is in
 ~/config/emacs/emacs.org


 This works very nicely.  Thank you.

 I am thinking about making my config a little leaner while I
 reorganize without affecting functionality I have gotten used to by
 preventing sections of config from loading.  I thought setting :tangle
 to `no' should help but the default is already `no' and all my config
 is loaded.  How would one go about marking a section of configuration
 so that it remains in the configuration file but does not get tangled
 while Emacs boots?


 Hi Manish,

 I think this will require a little development/bug-fixing on my part
 before it works easily.  As I recall the elisp tangling in
 `org-babel-load-file' is fairly aggressive and may not respect tangle
 header arguments.  But the method you described above (setting the
 tangle header argument to no -- either in a subtree property or by
 block) is certainly the correct approach.

Hi Eric -- I believe you already have it working in exactly this way :)

Manish -- could you double check please? I use :tangle no to exclude
blocks of elisp from my emacs init file, and it is working.

Dan


 I'll let you know when I find some time to look into this.

 Best -- Eric


 Thanks


 ___
 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] [org-beamer] inline slides?

2010-01-26 Thread Austin Frank
Carsten and other beamerers--

Thanks for the excellent extension to org.  I've used it for one
presentation already and found it quite useful.

I have an idea that doesn't yet qualify as a feature request, more like
an idea for discussion.  What do people think about the idea of adding
the capability to write inline slides, akin to the way we can currently
write inline TODO items?

The parallels between the two applications seem pretty significant to
me.  Sometimes you're in the middle of a long block of text or an
outline tree where you don't want to disrupt the structure, and you want
to add a different kind of content alongside the current material.

The application I have in mind has to do with writing my doctoral
thesis.  I know that I'll be writing long chapters; I also know that
I'll have to prepare slides for my public defense.  Ideally, during the
writing process I'll be able to notice a series of important points and
drop into an inline slide to jot them down for the talk.  Similarly, I
could see wanting to start a section with an overview slide, but not
wanting to alter the structure of the section.

Since slides are mostly just headlines with special tags and properties,
at the end of the process I could easily selectively export just the
text of the dissertation or just the embedded slides.

Early on in the process of developing org-beamer, a suggestion was made
that footnotes could serve as a way of entering \note{} elements into
beamer slides.  That proposal sees notes as ways of annotating slides.
I'm interested in sort of flipping that idea around, so that slides are
basically short annotations of the major points in my thesis.

Do people think that an inline-slides interface akin to the inline-tasks
interface would be a useful way of incorporating beamer slides into org
documents?

Thanks,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpJzCvq8EDZf.pgp
Description: 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] How to combine the analogue (Moleskine) world with digital (org-mode) world ?

2010-01-26 Thread Daniel Martins
I use a small notebook with small pen as shown in

http://www.upgradeinfoshop.com.br/admin/produtos/8186.jpg


or

http://www.livrariagraf.com.br/ecommerce_produtos_ver_foto.php?id=989


BTW I have to thank Eric for his (always excellent) post!!!


Daniel


2010/1/25 Eric S Fraga ucec...@ucl.ac.uk

 At Sun, 24 Jan 2010 23:09:27 +0900,
 Torsten Wagner wrote:
  However, not all my work is just in front of a computer. And the world

 [...]

  My question is now. What would be the best way to combine the
  moleskine and org-mode ? Does someone have experience  with a paper

 [...]

  Any ideas and experience would be welcome.

 In the olden days (as my son says), I used to run a mixed system
 (well beore org-mode days, mind you).  The best working scenario for
 me was the following:

 - every Sunday, I would go through my paper diary, a Filofax (tm), and
  transfer any new/changed items to my electronic version.
 - I would then print off the next month's calendar in week per two
  pages form compatible my Filofax.
 - during the week, I would tend to work only on paper if I wasn't at
  my desk but, even at the desk, I would update both paper and
  computer simultaneously with new/changed entries.  Any such entries
  would be ticked on the paper so that I knew that I had already
  incorporated them into the computer version.

 Eventually, I gave up and bought a Psion 3 (the original incarnation,
 then a 3a and finally a 3mx) which I carried with me all the time!  My
 3mx died early this century and I have been struggling ever since.
 The Psion was absolutely fantastic, an example of engineering (both
 hardware and software) at its best!

 I now have org-mode which is fantastic in terms of the software end
 (and in many ways is reminiscent of the Psion) but the hardware end is
 lagging [1].  I now use a combination of systems: desktop PCs at work
 and home, netbook (Asus EEE) on the move with a Nokia internet tablet
 (N810) for those times when the netbook is too inconvenient
 (e.g. impromptu lunchtime meetings).  Everything is synchronised using
 git.

 This all works well enough but I still would like a single pocketable
 computer that I could use in all scenarios.  The Nokia's keyboard and
 screen are just a little too small, especially the keyboard.  I am
 hopeful that a more usable system will come out this year as many
 mobile internet devices [MID] and ultra-mobile PCs (UMPC) were
 announced last year.  The UMID co. look promising.  Maybe the
 Pandora!  Possibly one of the Android phones but probably not.

 I won't get an iPhone as I don't like the proprietary nature of the
 software [2].  I want Linux or equivalent with org-mode!

 HTH,
 eric


 Footnotes:
 [1]  and this is *not* Carsten's fault ;-)

 [2]  yes, the Psion ran proprietary software as well but, partly
 because of being orphaned by them, I no longer am willing to end
 up beholden to a single company's system!



 ___
 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: A bug of org-freemind.el in org-mode package 3.34c

2010-01-26 Thread Lennart Borgman
On Tue, Jan 26, 2010 at 11:31 PM, Yu Shen (MCBU) yus...@utstar.com wrote:
 It seems in the function of org-freemind-write-mm-buffer, in the following
 code segment, the treatment of sub-node level may have some problem. If the
 level is one level more than its parent’s level, the function will abort,
 abandoning the expert. I’d wish that it would be more robust to do the
 export regardless the unusual level number, and just give clearer warning.





 (when ( next-level current-level)

   (if (not (and org-odd-levels-only

     (/= (mod current-level 2) 0)

     (= next-level (+ 2 current-level

   (setq skipping-odd nil)

     (setq skipping-odd t)

     (setq skipped-odd (1+ skipped-odd)))

   (unless (or (= next-level (1+ current-level))

   skipping-odd)

     (if (or org-odd-levels-only

     (/= next-level (+ 2 current-level)))

     (error Next level step  +1 for node ending at line
 %s (line-number-at-pos))

   (error Next level step = +2 for node ending at line
 %s, forgot org-odd-levels-only?

  (line-number-at-pos)))

     ))



 Attached is an example to demonstrate the problem.



 I’d like to know the author’s (Lennart Borgman) intension before I attempt
 to modify it.


Hi Yu,

My intention was just to help the user find errors. If the subnode
level is not just node level+1 then I expect that there is some
trouble with the org file (if not org-odd-levels-only).

If you think it is useful with bigger level steps then perhaps you
could make the check optional with a defcustom?

Kind regards,
L


 Yu Shen

 yubrs...@gmail.com
___
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] Deadline question, must be making a mistake

2010-01-26 Thread David A. Gershman

Hi All,

Rather than changing the config variable, I'd like to change the number
of warning days on a deadline date.  I put the following:

  DEADLINE: 2010-02-14 Sun -14d

But when I view the agenda, I'm not getting my warning days.  I only see
the warning if *today* is within the time frame, not if I'm just
*viewing* the time frame.  

Any way to have the warning show regardless of what day it is?


David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
It's all about the path! --d. gershman


___
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] Refile to top or bottom of list on demand

2010-01-26 Thread David A. Gershman

When I refile a heading, there is a variable that can be set to send the
refiled headings to the front or back of the destination list.

Is there a way to do that on demand, i.e. without setting a variable?

Thanks!


David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
It's all about the path! --d. gershman


___
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] Moving to babel the whole configuration

2010-01-26 Thread Thomas S. Dye


On Jan 26, 2010, at 10:34 AM, Dan Davison wrote:


Eric Schulte schulte.e...@gmail.com writes:


Manish mailtomanish.sha...@gmail.com writes:


On Thu, Jan 21, 2010 at 10:15 PM, Dan Davison wrote:

andrea writes:


I'm really tempted to move all my emacs configuration in only
one big file.  This would also help me to make it more
consistent and readable.

But I'm afraid to mess up something, in theory I just need: -
a simple org and babel loader - one big file containing
everything



Hi Andrea,

I've used a single org mode file to keep all my emacs
configuration code for the last 5 months or so and I have not
had any problems at all. I highly recommend it.  I am using a
simple set up:

My ~/.emacs contains

--
(add-to-list 'load-path /usr/local/src/org-mode/lisp)
(add-to-list 'load-path /usr/local/src/org-mode/contrib/lisp)
(require 'org-install) (require 'org-babel-init)
(org-babel-load-file
~/config/emacs/emacs.org)  
--


and all the rest of my emacs config code is in
~/config/emacs/emacs.org



This works very nicely.  Thank you.

I am thinking about making my config a little leaner while I
reorganize without affecting functionality I have gotten used to by
preventing sections of config from loading.  I thought  
setting :tangle
to `no' should help but the default is already `no' and all my  
config
is loaded.  How would one go about marking a section of  
configuration
so that it remains in the configuration file but does not get  
tangled

while Emacs boots?



Hi Manish,

I think this will require a little development/bug-fixing on my part
before it works easily.  As I recall the elisp tangling in
`org-babel-load-file' is fairly aggressive and may not respect tangle
header arguments.  But the method you described above (setting the
tangle header argument to no -- either in a subtree property or by
block) is certainly the correct approach.


Hi Eric -- I believe you already have it working in exactly this  
way :)


Manish -- could you double check please? I use :tangle no to exclude
blocks of elisp from my emacs init file, and it is working.

Dan



I'll let you know when I find some time to look into this.

Best -- Eric


Hi all,

I'm having the same experience as Dan.  :tangle no keeps code blocks  
in my .org file from showing up in my .el file.


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] refiling : limiting the destination refile targets

2010-01-26 Thread Richard Riley

Here is a slight extension of the previously discussed ability to
restrict what are considered valid refile targets. You can simply modify the
restricted list org-no-refile-targets (which can be a list as below or
simply a string tag such as norefile.

,
| (defun org-contains-tags (tags)
|   returns t if the currnt org item is tagged with tags wher tags can be a 
single tag or a list of tags
|   (interactive)
|   (let ((matched nil)
| (tagslist (org-split-string (org-get-tags-string) :)))
| (when tagslist
|   (if (nlistp tags)
|   (setq matched (member tags tagslist))
| (catch 'break
|   (dolist(tag tags)
| (if(member tag tagslist)
|   (progn (setq matched t)
|  (throw 'break t)))
| matched))
| 
| (defvar org-no-refile-tags `(NOTE ,org-archive-tag) org items
| containing one of these tags will not be considered for refile targets)
| (setq org-refile-target-verify-function `(lambda()(not(org-contains-tags 
org-no-refile-tags
`

As an elisp beginner, it pains me to tell you it took me about 2 hours
to get the right quoting sequences for the org-archive-tag to evaluate
properly  I have significantly less hair now ... ;)

r.



___
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: Deadline question, must be making a mistake

2010-01-26 Thread Bernt Hansen
David A. Gershman dagershman_...@dagertech.net writes:

 Hi All,

 Rather than changing the config variable, I'd like to change the number
 of warning days on a deadline date.  I put the following:

   DEADLINE: 2010-02-14 Sun -14d

 But when I view the agenda, I'm not getting my warning days.  I only see
 the warning if *today* is within the time frame, not if I'm just
 *viewing* the time frame.  

 Any way to have the warning show regardless of what day it is?

I think what you are seeing is the intended behaviour.  If you set a
deadline warning day it only shows up in your agenda when 'today' is
within the warning period (ie. you're less than 14 days away from the
deadline date).

I don't think you can set a deadline for 6 months in the future with
-14d and expect to see the warning when you view the calendar a week
before that deadline since the deadline is still 6 months away from
today.

-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: How to combine the analogue (Moleskine) world with digital (org-mode)

2010-01-26 Thread Rustom Mody
Torstens question is also mine:

Still... maybe you want to try out ideas at http://www.diyplanner.com/ ?

As for the view
everything-digital-is-better-than-everything-analogue, it would be
good to look at Andy Hunt's Refactor your Wetware.
Now Andy as the author of the pragmatic programmer, signatory of the
agile alliance etc is hardly a luddite but he insists on the
importance of handwriting.

And of course orgmode promises to be that sweet-interface between me
-- an analogue device -- with an ever increasingly digital world.
However there are still roadblocks


___
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] Moving to babel the whole configuration

2010-01-26 Thread Manish
On Wed, Jan 27, 2010 at 2:04 AM, Dan Davison wrote:
 Eric Schulte writes:

 Manish writes:

 On Thu, Jan 21, 2010 at 10:15 PM, Dan Davison wrote:
 andrea writes:

 I'm really tempted to move all my emacs configuration in
 only one big file.  This would also help me to make it more
 consistent and readable.

 But I'm afraid to mess up something, in theory I just need:
 - a simple org and babel loader - one big file containing
 everything


 Hi Andrea,

 I've used a single org mode file to keep all my emacs
 configuration code for the last 5 months or so and I have
 not had any problems at all. I highly recommend it.  I am
 using a simple set up:

 My ~/.emacs contains

 --
 (add-to-list 'load-path /usr/local/src/org-mode/lisp)
 (add-to-list 'load-path
 /usr/local/src/org-mode/contrib/lisp) (require
 'org-install) (require 'org-babel-init) (org-babel-load-file
 ~/config/emacs/emacs.org)
 --

 and all the rest of my emacs config code is in
 ~/config/emacs/emacs.org


 This works very nicely.  Thank you.

 I am thinking about making my config a little leaner while I
 reorganize without affecting functionality I have gotten used
 to by preventing sections of config from loading.  I thought
 setting :tangle to `no' should help but the default is
 already `no' and all my config is loaded.  How would one go
 about marking a section of configuration so that it remains
 in the configuration file but does not get tangled while
 Emacs boots?


 Hi Manish,

 I think this will require a little development/bug-fixing on
 my part before it works easily.  As I recall the elisp
 tangling in `org-babel-load-file' is fairly aggressive and may
 not respect tangle header arguments.  But the method you
 described above (setting the tangle header argument to no --
 either in a subtree property or by block) is certainly the
 correct approach.

 Hi Eric -- I believe you already have it working in exactly
 this way :)

 Manish -- could you double check please? I use :tangle no to
 exclude blocks of elisp from my emacs init file, and it is
 working.


You are right.  I just did not try it at all after reading that
:tangle no was the default.  My apologies.

I ran some tests and here are the results.

| SET AS| VALUE | RESULT  |
|---+---+-|
| not set   | n/a   | tangled |
| property :TANGLE:   | no| not tangled |
| property :TANGLE:   | yes   | backtrace   |
| header argument :tangle | no| not tangled |
| header argument :tangle | yes   | backtrace   |

--8---cut here---start-8---
Debugger entered--Lisp error: (void-variable compilation-mode-map)
  (define-key compilation-mode-map (kbd n) (quote compilation-next-error))
  eval-buffer(#buffer  *load*2 nil d:/home/zms/.emacs.d/emacs.el
nil t)  ; Reading at buffer position 3862
  load-with-code-conversion(d:/home/zms/.emacs.d/emacs.el
d:/home/zms/.emacs.d/emacs.el nil nil)
  load(d:/home/zms/.emacs.d/emacs.el nil nil t)
  load-file(~/.emacs.d/emacs.el)
  (let* ((base-name ...) (exported-file ...)) (unless (and ... ...)
(org-babel-tangle-file file base-name emacs-lisp)) (load-file
exported-file) (message loaded %s exported-file))
  (progn (fset (quote age) (function* ...)) (let* (... ...) (unless
... ...) (load-file exported-file) (message loaded %s
exported-file)))
  (unwind-protect (progn (fset ... ...) (let* ... ... ... ...)) (if
--cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...)))
  (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...))
(unwind-protect (progn ... ...) (if --cl-letf-bound-- ... ...)))
  (letf ((... ...)) (let* (... ...) (unless ... ...) (load-file
exported-file) (message loaded %s exported-file)))
  (letf* ((... ...)) (let* (... ...) (unless ... ...) (load-file
exported-file) (message loaded %s exported-file)))
  (flet ((age ... ...)) (let* (... ...) (unless ... ...) (load-file
exported-file) (message loaded %s exported-file)))
  org-babel-load-file(~/.emacs.d/emacs.org)
  eval-buffer(#buffer  *load* nil d:/home/zms/.emacs.d/init.el nil
t)  ; Reading at buffer position 1576
  load-with-code-conversion(d:/home/zms/.emacs.d/init.el
d:/home/zms/.emacs.d/init.el t t)
  load(d:/home/zms/.emacs.d/init t t)
  #[nil 
--8---cut here---end---8---

Thanks
-- 
Manish


___
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] how to print agenda with entry text

2010-01-26 Thread Manish
hello!

is there a way one can print/save agenda /with/ the entry text exposed
by `E' in agenda?

thanks
-- 
manish


___
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