[Orgmode] Re: Orgmodeorg-export-generic gives an error

2009-07-23 Thread Bastien
Wes Hardaker wjhns...@hardakers.net writes:

 On Wed, 22 Jul 2009 01:59:12 +0200, Bastien 
 bastiengue...@googlemail.com said:

 B Those two functions come from alist.el which is included in Apel:

 So does that mean it's safe to leave the functions in use within
 org-export generic, 

AFAIK `set-alist' is not defined in vanilla Emacs. So no, it's not safe
to leave this function in use in org-export-generic.el.

 or should I replace it with a locally defined
 slightly-different-named version?

Either do that or advertize the need for the Apel package, or integrate
what set-alist does without even creating a function.  Up to you :)

-- 
 Bastien


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


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Bastien
Markus Heller helle...@gmail.com writes:

 THankBastien wrote:
 Markus Heller helle...@gmail.com writes:

 how would I go about setting a background color to my org headline
 faces?  I'm an emacs/org newbie ...

 Go on a headline and M-x customize-face RET - then you can customize
 the background color of this face.


 Thanks. And where do I find ‘org-set-font-lock-defaults’?  It's not in
 my .emacs, and M-x customize-variable Ret doesn't know it either ...

It's in org.el

C-h f org-set-font-lock-defaults RET will give you the location of the
function, you can just follow the link in the help buffer.

 I apologize if I'm asking stupid questions here ...

  If you ask questions, you might look stupid.  But if you don't ask
   questions, you'll stupid forever. 

  -- I-can't-remember-who

-- 
 Bastien


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


Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error

2009-07-23 Thread Bastien
Shelagh Manton shelagh.man...@gmail.com writes:

 On Wed, 22 Jul 2009 08:13:53 -0700, Wes Hardaker wrote:

 On Wed, 22 Jul 2009 01:59:12 +0200, Bastien
 bastiengue...@googlemail.com said:
 
 B Those two functions come from alist.el which is included in Apel:
 
 So does that mean it's safe to leave the functions in use within
 org-export generic, or should I replace it with a locally defined
 slightly-different-named version?

 Perhaps just putting (require 'alist) in your file will be enough. 

Yes.  Or maybe check whether this feature is available or not with
(featurep 'alist), use it if it is, implement it if it's not.

-- 
 Bastien


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


[Orgmode] Re: More conspicous header lines

2009-07-23 Thread Rainer Stengele
Bastien schrieb:
 User spamfilteracco...@gmail.com  writes:
 
 Please consider adding this change to org mode:

 http://www.emacswiki.org/emacs/OrgMode#toc11
 
 Funny that you mention this because Lennart just told me about this 
 tip and I was about to ask Orgers.
 
 http://img19.imagevenue.com/img.php?image=86735_Clipboard01_122_582lo.jpg
 
 Please people vote.  It's a tiny change but since we all have different
 preferences for such things, it's good to have a sense of what everyone
 thinks...
 
Looks good.
My + vote then.

Rainer



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


[Orgmode] Agenda that shows hierarchy above matches?

2009-07-23 Thread Tilmann Singer
Hi,

I wonder if there is way to get an agenda showing all TODO items with
the hierarchical context up to the top level.

Given an projects.org like this:

 * Project A
 ** TODO do foo
 ** TODO do bar
 ** DONE do baz
 * Project B
 ** DONE do foo
 * TODO Another small thing

An agenda view, e.g. tags match for /!TODO looks like this:

 projects: TODO do foo
 projects: TODO do bar
 projects: TODO Another small thing

In order to find out the context of the first two lines, I currently
have to go to each line and hit tab to see the corresponding location
in the org file or switch on follow mode. This is not ideal for
getting an overview over all TODO items when there are lots of such
matches because I would then need to follow each item and remember the
context. Also sometimes I would like to export an agenda to a text
file including all their parent headlines up to the top level, but no
other items of the org file.

So is there a way to get an agenda that looks similar to this:

 projects: 
 * Project A
 ** TODO do foo
 ** TODO do bar
 * TODO Another small thing

Actually org-sparse-tree is very close to what I want, but first it
only works for a single org file (which I could live with), but also
as far as I see there is no way to hide the collapsed top level
headlines which have no match - * Project B in the above example.


Til




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


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Charles Philip Chan
Rainer Stengele rainer.steng...@diplan.de writes:

 Please people vote.  It's a tiny change but since we all have
 different preferences for such things, it's good to have a sense of
 what everyone thinks...
 
 Looks good.
 My + vote then.

Agreed. A + vote for me too.

Charles

-- 
Your job is being a professor and researcher: That's one hell of a good excuse
for some of the brain-damages of minix.
(Linus Torvalds to Andrew Tanenbaum)


pgpDN8WMuEyMz.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: More conspicous header lines

2009-07-23 Thread Paul Mead
Bastien bastiengue...@googlemail.com writes:


 Please people vote.  It's a tiny change but since we all have different
 preferences for such things, it's good to have a sense of what everyone
 thinks...

What are we voting for, to make this *possible* or *default*?

Paul



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


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Bastien
Paul Mead paul.d.m...@gmail.com writes:

 Bastien bastiengue...@googlemail.com writes:


 Please people vote.  It's a tiny change but since we all have different
 preferences for such things, it's good to have a sense of what everyone
 thinks...

 What are we voting for, to make this *possible* or *default*?

Default.  

-- 
 Bastien


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


Re: [Orgmode] Agenda that shows hierarchy above matches?

2009-07-23 Thread Eric S Fraga
At Thu, 23 Jul 2009 10:29:42 +0200,
Tilmann Singer wrote:
 
 Hi,
 
 I wonder if there is way to get an agenda showing all TODO items with
 the hierarchical context up to the top level.

Depending on the depth of hierarchy you wish to cater for, categories
may be helpful.

 
 Given an projects.org like this:
 
  * Project A
  ** TODO do foo
  ** TODO do bar
  ** DONE do baz
  * Project B
  ** DONE do foo
  * TODO Another small thing

add the CATEGORY property (C-c C-x p cat TAB) to A and B headings,
something like Project A, say, and this will appear on the left of
the line in the agenda view in lieu of the file.  Categories can help
give you a single level of context.

Arbitrary levels can be achieved with tags, by the way.

HTH.

eric


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


[Orgmode] Re: More conspicous header lines

2009-07-23 Thread Paul Mead
Bastien bastiengue...@googlemail.com writes:

 Paul Mead paul.d.m...@gmail.com writes:

 Bastien bastiengue...@googlemail.com writes:


 Please people vote.  It's a tiny change but since we all have different
 preferences for such things, it's good to have a sense of what everyone
 thinks...

 What are we voting for, to make this *possible* or *default*?

 Default.  

OK, I don't personally like the look of it, so I'd probably turn it off,
so assuming that's an option, why not?



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


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Bastien
Bastien bastiengue...@googlemail.com writes:

 Paul Mead paul.d.m...@gmail.com writes:

 Bastien bastiengue...@googlemail.com writes:


 Please people vote.  It's a tiny change but since we all have different
 preferences for such things, it's good to have a sense of what everyone
 thinks...

 What are we voting for, to make this *possible* or *default*?

 Default.  

FWIW: my reticence to make this the default is that for some function
(e.g. org-agenda-set-restriction-lock) Org highlights headings and in
these cases, Org only highlights to the end of the heading, not to the
end of the entire line.  

These kind of functions highlight the headings *temporarily* so I think
it's okay to permanently highlight the entire line when org-level-* has
a background value...  but maybe it somehow breaks visual consistency,
I'm not sure.

-- 
 Bastien


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


Re: [Orgmode] Spreadsheet bug?

2009-07-23 Thread Andreas Burtzlaff

On Thu, 23 Jul 2009 02:29:30 +0200
meingbg mein...@gmail.com wrote:

 | a |  b | c |
 |---++---|
 | a |  2 | 2 |
 | b |  3 | 7 |
 | c | -3 | 4 |
 | d |  5 | 9 |
 #+TBLFM: $3=...@-1::@2$3=$2

A good solution is to use
$3=vsum(@-I$-1..$-1)
as proposed in this thread:
http://thread.gmane.org/gmane.emacs.orgmode/1940/focus=1941

Nevertheless:

If @2$3 is manually set to 2 in the table, then the formulas produce
the expected outcome. So, the problem seems to be the order of
execution. If column c is cleared and the formulas are executed, @2$3
is read to be 0 for the summation and is set to 2 only afterwards.
Swapping the order in the TBLFM line doesn't help.

Is the order something like field formulas after column formulas?
Any chance to influence that?

Andy


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


Re: [Orgmode] ANN: org-mac-protocol, let's try again

2009-07-23 Thread Greg Newman
I'm using 23.x pretests and haven't updated in almost a month so mine is
probably much older than yours.  I am running 6.28b of org which I think you
are too.  Not sure what the issue is.

On Tue, Jul 21, 2009 at 7:33 PM, Christopher Suckling suckl...@gmail.comwrote:

 On Tue, 21 Jul 2009 15:15:09 -0400, Greg Newman g...@20seven.org wrote:

  Chris,I figured out what my issue was last night.  My org-mode 6.25 was
  stomping on my git clone of 6.28b.  With that fixed i can get it to
 work...
  with only links.
  With notes and remember i get the following error every time; any clues?
 
  Process *tramp/scp org-protocol* exited abnormally with code 255
 

 Greg, I did come across this. Unfortunately, I didn't make a note of
 when or where and can't reproduce it this evening.

 I have a suspicion, but only a suspicion, that it may have resulted from
 a (now fixed) tramp bug in CVS Emacs. I last complied on 15 July. Could
 this be a possibility?

 [There are gaps in the above logic; I can't figure out why org-link
 should work whilst org-note and org-remember bork. I'm clutching at
 straws. No idea why it is so fragile.]

 Christopher

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


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Giovanni Ridolfi

--- Gio 23/7/09, Bastien bastiengue...@googlemail.com ha scritto:
 Paul Mead paul.d.m...@gmail.com writes:
 
  Bastien bastiengue...@googlemail.com
 writes:
 
 
  Please people vote.  It's a tiny change but
  since we all have different
  preferences for such things, it's good to have a
  sense of what everyone thinks...
 
  What are we voting for, to make this *possible* or
 *default*?
 
 Default.  
 

No. (-)  ?-)

Cheers,
Giovanni





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


Re: [Orgmode] Spreadsheet bug?

2009-07-23 Thread meingbg
 A good solution is to use
 $3=vsum(@-I$-1..$-1)
 as proposed in this thread:
 http://thread.gmane.org/gmane.emacs.orgmode/1940/focus=1941

That works for me, thanks!




 Nevertheless:

 If @2$3 is manually set to 2 in the table, then the formulas produce
 the expected outcome. So, the problem seems to be the order of
 execution. If column c is cleared and the formulas are executed, @2$3
 is read to be 0 for the summation and is set to 2 only afterwards.

If that was the case, wouldn't @3$3 sum up to 3+0=3? Now it shows 7.


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


[Orgmode] Re: More conspicous header lines

2009-07-23 Thread User
Bastien bastienguerry at googlemail.com writes:

 
  What are we voting for, to make this *possible* or *default*?
 
 Default.  
 


This may mislead some people. Adding this fix wouldn't change how
headers look by default. It would only make it possible to draw
header lines across the screen *if* the user sets a background
color for the header which is not usually the case, so it
wouldn't affect the average user if he doesn't want it.

Anyway, if we want to be super cautious then I recommend an
option for controlling this. If the option is set then the \xa is
added to the header regexp, otherwise not.





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


[Orgmode] typo in org-babel

2009-07-23 Thread Stephan Schmitt
Hello,

evaluating a source-block with org-babel raised an error about 'looking-at-p'
not defined.

Best,
Stephan
diff --git lisp/org-babel.el lisp/org-babel.el
index a6345eb..e2a24eb 100644
--- lisp/org-babel.el
+++ lisp/org-babel.el
@@ -454,7 +454,7 @@ relies on `org-babel-insert-result'.
 (if (org-at-table-p)
 (org-table-end)
   (let ((case-fold-search nil))
-   (if (looking-at-p #\\+begin_example)
+   (if (looking-at #\\+begin_example)
(search-forward #+end_example nil t)
  (progn
(while (if (looking-at \\(: \\|\\[\\[\\))
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Spreadsheet bug?

2009-07-23 Thread Andreas Burtzlaff
On Thu, 23 Jul 2009 12:17:03 +0200
meingbg mein...@gmail.com wrote:

  Nevertheless:
 
  If @2$3 is manually set to 2 in the table, then the formulas produce
  the expected outcome. So, the problem seems to be the order of
  execution. If column c is cleared and the formulas are executed, @2$3
  is read to be 0 for the summation and is set to 2 only afterwards.
 
 If that was the case, wouldn't @3$3 sum up to 3+0=3? Now it shows 7.

I suspect @2$3 was 4 when you evaluated the formulas, hence the 7.
If you clear column c completely, what is the output of the evaluation then?
I get:

| a |  b | c |
|---++---|
| a |  2 | 2 |
| b |  3 | 3 |
| c | -3 | 0 |
| d |  5 | 5 |

Andy


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


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Bastien
User spamfilteracco...@gmail.com writes:

 Bastien bastienguerry at googlemail.com writes:

 
  What are we voting for, to make this *possible* or *default*?
 
 Default.  


 This may mislead some people. Adding this fix wouldn't change how
 headers look by default. It would only make it possible to draw
 header lines across the screen *if* the user sets a background
 color for the header which is not usually the case, so it
 wouldn't affect the average user if he doesn't want it.

Yes, thanks for precising this.

 Anyway, if we want to be super cautious then I recommend an
 option for controlling this. If the option is set then the \xa is
 added to the header regexp, otherwise not.

I think I will take this road, yes.

-- 
 Bastien


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


[Orgmode] Re: More conspicous header lines

2009-07-23 Thread Matthew Lundin
Bastien bastiengue...@googlemail.com writes:

 Paul Mead paul.d.m...@gmail.com writes:

 Bastien bastiengue...@googlemail.com writes:


 Please people vote.  It's a tiny change but since we all have different
 preferences for such things, it's good to have a sense of what everyone
 thinks...

 What are we voting for, to make this *possible* or *default*?

 Default.  

-1 for default. 

I wouldn't mind if this becomes an option though. 

- Matt


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


Re: [Orgmode] Agenda that shows hierarchy above matches?

2009-07-23 Thread Tilmann Singer
At Thu, 23 Jul 2009 09:56:38 +0100,
Eric S Fraga wrote:
  Given an projects.org like this:
  
   * Project A
   ** TODO do foo
   ** TODO do bar
   ** DONE do baz
   * Project B
   ** DONE do foo
   * TODO Another small thing
 
 add the CATEGORY property (C-c C-x p cat TAB) to A and B headings,
 something like Project A, say, and this will appear on the left of
 the line in the agenda view in lieu of the file.  Categories can help
 give you a single level of context.

Nice, thanks. That helps for certain cases. However, sometimes I have
deeper nestings in my project files and would still like to see _all_
parent headlines of each item marked as TODO in an agenda
overview. Also setting it as category would make it necessary
duplicate the text of the headline.

I guess what I really want is a sparse tree with all top level
headlines removed that contain no match.



Til




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


Re: [Orgmode] ANN: org-mac-protocol, let's try again

2009-07-23 Thread Christopher Suckling
On Thu, 23 Jul 2009 05:47:14 -0400, Greg Newman g...@20seven.org wrote:

 I'm using 23.x pretests and haven't updated in almost a month so mine is
 probably much older than yours.  I am running 6.28b of org which I think you
 are too.  Not sure what the issue is.


Got it (I think)...

org-mac-protocol.el still isn't loading.

What is happening is:

org-link.scpt doesn't require org-mac-protocol.el - it just uses the

org-protocol:/store-link:/

protocol which is defined in org-protocol.el

However, org-note.scpt and org-remember.scpt use the

org-protocol:/mac-remember:/

protocol which is defined in org-mac-protocol.el (along with frame
moving and application switching functions).

But, org-mac-protocol.el hasn't loaded.

So emacsclient trys to open the file :/mac-remember:/z/foo/bar which
tramp intercepts and the barfs on.

I'm not sure why org-mac-protocol.el is not loading. But my guess is
that the variable org-remember-templates is not set when you try to load
org-mac-protocol.el and so it barfs on the (add-to-list
'org-remember-templates ...).

Relevant section of my .emacs looks like:

,
| (autoload 'remember remember remember mode t)
| (load ~/.emacs.d/remember-init) 
| ;; assorted remember initializations including
| (setq org-remember-templates '((my templates)))
| 
| (setq org-modules '(org-bibtex org-id org-info org-mac-message org-mac-iCal 
org-w3m org-elisp-symbol org-protocol org-mac-protocol org-gnus org-jsinfo))
| 
| (require 'org-install)
| (add-hook 'org-load-hook
| (lambda ()
|   (load ~/.emacs.d/org-init))) ;; all my org settings
`

If this helps, I'll either rewrite the documentation of remove the
(add-to-list 'org-remember-templates ... ) and ask users to add their
own templates.

Christopher





 On Tue, Jul 21, 2009 at 7:33 PM, Christopher Suckling 
 suckl...@gmail.comwrote:

 On Tue, 21 Jul 2009 15:15:09 -0400, Greg Newman g...@20seven.org wrote:

  Chris,I figured out what my issue was last night.  My org-mode 6.25 was
  stomping on my git clone of 6.28b.  With that fixed i can get it to
 work...
  with only links.
  With notes and remember i get the following error every time; any clues?
 
  Process *tramp/scp org-protocol* exited abnormally with code 255
 

 Greg, I did come across this. Unfortunately, I didn't make a note of
 when or where and can't reproduce it this evening.

 I have a suspicion, but only a suspicion, that it may have resulted from
 a (now fixed) tramp bug in CVS Emacs. I last complied on 15 July. Could
 this be a possibility?

 [There are gaps in the above logic; I can't figure out why org-link
 should work whilst org-note and org-remember bork. I'm clutching at
 straws. No idea why it is so fragile.]

 Christopher

 ___
 Emacs-orgmode mailing list
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Nick Dokos
Bastien bastiengue...@googlemail.com wrote:

 Paul Mead paul.d.m...@gmail.com writes:
 
  Bastien bastiengue...@googlemail.com writes:
 
 
  Please people vote.  It's a tiny change but since we all have different
  preferences for such things, it's good to have a sense of what everyone
  thinks...
 
  What are we voting for, to make this *possible* or *default*?
 
 Default.  
 

IIUC, the suggestion is to change the headlines regexp in
org-set-font-lock-defaults, but you are *not* suggesting that the face
definitions be changed to have a background color - is that correct? If
that's the case, I see little, if any, harm in the change (although,
like Paul Mead, I don't think I'm going to use the feature: I find it
obnoxiously loud.)

The point is that the above is an opt-in system: the regexp enables the
look, but nothing happens until the end-user customizes the face.

If you *are* suggesting changing the faces as well as the regexp, it
becomes an opt-out system, and I for one would object.

Thanks,
Nick



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


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Bastien
Nick Dokos nicholas.do...@hp.com writes:

 IIUC, the suggestion is to change the headlines regexp in
 org-set-font-lock-defaults, but you are *not* suggesting that the face
 definitions be changed to have a background color - is that correct? 

Correct.

 If that's the case, I see little, if any, harm in the change
 (although, like Paul Mead, I don't think I'm going to use the feature:
 I find it obnoxiously loud.)

I will create an option for this, the default will be to behave as Org
currently behaves.

-- 
 Bastien


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


Re: [Orgmode] Re: Orgmodeorg-export-generic gives an error

2009-07-23 Thread James TD Smith
On 2009-07-23 09:11:00(+0200), Bastien wrote:
 Wes Hardaker wjhns...@hardakers.net writes:

  On Wed, 22 Jul 2009 01:59:12 +0200, Bastien 
  bastiengue...@googlemail.com said:
 
  B Those two functions come from alist.el which is included in Apel:
 
  So does that mean it's safe to leave the functions in use within
  org-export generic,

 AFAIK `set-alist' is not defined in vanilla Emacs. So no, it's not safe
 to leave this function in use in org-export-generic.el.

  or should I replace it with a locally defined
  slightly-different-named version?

 Either do that or advertize the need for the Apel package, or integrate
 what set-alist does without even creating a function.  Up to you :)

You could use the aput function instead. which does the same thing. It's in
assoc.el which is included with both GNU Emacs and XEmacs.

,- C-h f aput RET 
| aput is a compiled Lisp function in `assoc.el'.
| (aput alist-symbol key optional value)
|
| Inserts a key-value pair into an alist.
| The alist is referenced by alist-symbol. The key-value pair is made
| from key and optionally, value. Returns the altered alist or nil if
| ALIST is nil.
|
| If the key-value pair referenced by key can be found in the alist, and
| value is supplied non-nil, then the value of key will be set to value.
| If value is not supplied, or is nil, the key-value pair will not be
| modified, but will be moved to the head of the alist. If the key-value
| pair cannot be found in the alist, it will be inserted into the head
| of the alist (with value nil if value is nil or not supplied).
`

James

--
|-James TD Smith-email/ahktenz...@mohorovi.cc-|


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


Re: [Orgmode] Re: More conspicous header lines

2009-07-23 Thread Daniel Goldin
I'm a non-programmer type trying to figure this out too. I looked into 
customize faces and font-lock in org group and couldn't find anything. Anybody?

d.

On Wed, 22 Jul 2009, Markus Heller wrote:

 THankBastien wrote:
 Markus Heller helle...@gmail.com writes:


 Thanks. And where do I find ‘org-set-font-lock-defaults’?  It's not in  
 my .emacs, and M-x customize-variable Ret doesn't know it either ...

 I apologize if I'm asking stupid questions here ...

 Thanks
 Markus



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

-- 
Daniel Goldin 
213.026.1960


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


Re: [Orgmode] typo in org-babel

2009-07-23 Thread Dan Davison
Stephan Schmitt drmab...@cs.tu-berlin.de writes:

 Hello,

 evaluating a source-block with org-babel raised an error about 'looking-at-p'
 not defined.

Thanks Stephan,
I've applied that and checked for other occurrences. (I believe
looking-at-p is new in emacs23.)
Dan


 Best,
   Stephan
 diff --git lisp/org-babel.el lisp/org-babel.el
 index a6345eb..e2a24eb 100644
 --- lisp/org-babel.el
 +++ lisp/org-babel.el
 @@ -454,7 +454,7 @@ relies on `org-babel-insert-result'.
  (if (org-at-table-p)
  (org-table-end)
(let ((case-fold-search nil))
 - (if (looking-at-p #\\+begin_example)
 + (if (looking-at #\\+begin_example)
   (search-forward #+end_example nil t)
 (progn
   (while (if (looking-at \\(: \\|\\[\\[\\))
q ___
 Emacs-orgmode mailing list
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: More conspicous header lines

2009-07-23 Thread Markus Heller

Bastien wrote:

Markus Heller helle...@gmail.com writes:


THankBastien wrote:

Markus Heller helle...@gmail.com writes:


how would I go about setting a background color to my org headline
faces?  I'm an emacs/org newbie ...

Go on a headline and M-x customize-face RET - then you can customize
the background color of this face.


Thanks. And where do I find ‘org-set-font-lock-defaults’?  It's not in
my .emacs, and M-x customize-variable Ret doesn't know it either ...


It's in org.el

C-h f org-set-font-lock-defaults RET will give you the location of the
function, you can just follow the link in the help buffer.


I apologize if I'm asking stupid questions here ...


  If you ask questions, you might look stupid.  But if you don't ask
   questions, you'll stupid forever. 


  -- I-can't-remember-who



Bastien,

thanks you!  Worked like a charm :)

Cheers
Markus



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


Re: [Orgmode] [PATCH] org-show-notification will use todochiku.el if available

2009-07-23 Thread Bastien
Hi Jason,

thanks a lot for the idea.  I have generalized this approach a bit by
adding a new option: org-show-notification-handler.  

The value of this new variable can either be an elisp function or a
program.  The function/program will be called with the notification 
string as an argument.

So for example:

(setq org-show-notification-handler
  '(lambda (notification)
 (todochiku-message org-mode notification notification
(todochiku-icon 'emacs

should do what you want.

If this variable is nil, the notification mechanism falls back on
notify-send (if available) and the elisp message otherwise.

Thanks again!

-- 
 Bastien


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


Re: [Orgmode] Clean Org Clock with step

2009-07-23 Thread Bastien
meingbg mein...@gmail.com writes:

 When using the :step day option in the clocktable, every day gets it's own
 table. This is a great option! It can however easily be a lot of tables, even
 if there's not too much information. Say for example there are only items in
 two out of thirty tables.

 Is there an option to show only non-empty tables? If not, would it be a good
 idea to add such an option?

Yes, I think it would be a good idea.

I've been looking into the code for this, but this is not trivial.
I let Carsten sort this out :)

-- 
 Bastien


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


Re: [Orgmode] More conspicous header lines

2009-07-23 Thread Bastien
User spamfilteracco...@gmail.com  writes:

 Please consider adding this change to org mode:

 http://www.emacswiki.org/emacs/OrgMode#toc11

So I have implemented this.

There is now the option `org-fontify-whole-heading-line'.  
When t, headlines will be fontified till the end of the lines.

This option defaults to nil.

Thanks Lennart and User (?) for bringing this up!

-- 
 Bastien


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


Re: [Orgmode] [PATCH] org-show-notification will use todochiku.el if available

2009-07-23 Thread Jason F. McBrayer
Bastien bastiengue...@googlemail.com writes:

 thanks a lot for the idea.  I have generalized this approach a bit by
 adding a new option: org-show-notification-handler.  

That certainly does the job.  For me it means configuring notification
method in two places (org and todochiku), but that's not unreasonable,
given that not very many people will have todochiku installed.  Thanks
for including the feature if not the patch.

-- 
+---+  
| Jason F. McBrayerjmcb...@carcosa.net  |  
| If someone conquers a thousand times a thousand others in |  
| battle, and someone else conquers himself, the latter one |  
| is the greatest of all conquerors.  --- The Dhammapada|  


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


[Orgmode] Org-mode and GPG (EasyPG)

2009-07-23 Thread Kyle Sexton
Currently I'm using org-mode with EasyPG and it works great.  Files
created with filename.org.gpg are automatically encrypted before being
saved, and it automatically knows to use org-mode for the file.

The one issue I'm having is with the Agenda view.  If I try to pull a
global agenda list and include encrypted files org-mode chokes because
it doesn't know to decrypt before hand.

This isn't a bug in org-mode by any means, but do other people have a
solution they've come up with for this?  Hopefully I'm not the only
one encrypting my note. :P

--
Kyle Sexton


___
Emacs-orgmode mailing list
Remember: 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] HTML exporting numbered literal examples

2009-07-23 Thread Bastien
Hi Ulf,

I've finally pushed a change that allows whitespaces in labels and allow
the -r switch to be used even if -n is not there. Please test it and
let me know if it works as expected.

Thanks,

Ulf Stegemann ulf-n...@zeitform.de writes:

 conclusion.  I don't think that this is a problem.  From the author's
 point of view I think he/she knows what's going on since this is not the
 default behaviour and the `-r' switch actually has to be added.  And
 after all we are talking about links.  And as with any other link if the
 link target is self-explanatory: fine, then I can use it as link name.  If
 it is not, I should choose something less confusing for the reader.

 One problem is the limitation about labels you can use.  E.g. labels do
 not allow whitespaces.  It is hard to write meaningful self-explanatory
 link names without using whitespaces.

 Ah okay, that is a good point indeed.  I wasn't aware of the fact that
 labels could not contain whitespaces.

 I will see if I can overcome this in a clean way.

 That would be great. Thanks for your efforts!

 Ulf

-- 
 Bastien


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


Re: [Orgmode] Org-mode and GPG (EasyPG)

2009-07-23 Thread Eric S Fraga
At Thu, 23 Jul 2009 14:09:23 -0500,
Kyle Sexton wrote:
 
 Currently I'm using org-mode with EasyPG and it works great.  Files

Kyle,

can you tell me exactly how you are doing this?  I used to do this
just fine but something broke about 6 months ago and I'm no longer
able to encrypt the file automatically when saving.  That is, it
decrypts just fine and I can edit the file but I get an error when
trying to save it:

,
| byte-code: Opening output file: integer-or-marker-p, nil
`

What settings do you have for EasyPG?  All I have are:

,
| ;; -- EASYPG
| (require 'epa)
| (epa-file-enable)
| (setq epa-file-cache-passphrase-for-symmetric-encryption t)
`

I'm using GNU Emacs 23.0.96.1 on Debian testing with latest org-mode
from git and easypg version 0.0.16-2.

thanks,
eric


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


Re: [Orgmode] Org-mode and GPG (EasyPG)

2009-07-23 Thread Richard Riley
Eric S Fraga ucec...@ucl.ac.uk writes:

 At Thu, 23 Jul 2009 14:09:23 -0500,
 Kyle Sexton wrote:
 
 Currently I'm using org-mode with EasyPG and it works great.  Files

 Kyle,

 can you tell me exactly how you are doing this?  I used to do this
 just fine but something broke about 6 months ago and I'm no longer
 able to encrypt the file automatically when saving.  That is, it
 decrypts just fine and I can edit the file but I get an error when
 trying to save it:

 ,
 | byte-code: Opening output file: integer-or-marker-p, nil
 `

 What settings do you have for EasyPG?  All I have are:

 ,
 | ;; -- EASYPG
 | (require 'epa)
 | (epa-file-enable)
 | (setq epa-file-cache-passphrase-for-symmetric-encryption t)
 `

I have the cache setting above plus

,
| (setenv GPG_AGENT_INFO nil)
`

Which means emacs prompts you for the pass. I also have the following at
the top of the org (gpg extension)  file fwiw:

,
| -*- mode: org -*- -*- epa-file-encrypt-to: (r...@richardriley.net) -*-
`

and I dont call epa-file.

Works fine for me with emacs-snapshot on Debian Lenny.


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


Re: [Orgmode] Org-mode and GPG (EasyPG)

2009-07-23 Thread Eric S Fraga
At Fri, 24 Jul 2009 00:39:07 +0200, Richard Riley wrote:
 Eric S Fraga ucec...@ucl.ac.uk writes:
  What settings do you have for EasyPG?  All I have are:
 
  ,
  | ;; -- EASYPG
  | (require 'epa)
  | (epa-file-enable)
  | (setq epa-file-cache-passphrase-for-symmetric-encryption t)
  `
 
 I have the cache setting above plus
 
 ,
 | (setenv GPG_AGENT_INFO nil)
 `
 
 Which means emacs prompts you for the pass. I also have the following at
 the top of the org (gpg extension)  file fwiw:
 
 ,
 | -*- mode: org -*- -*- epa-file-encrypt-to: (r...@richardriley.net) -*-
 `
 
 and I dont call epa-file.
 
 Works fine for me with emacs-snapshot on Debian Lenny.

Very strange.  I did also have the file settings you have (obviously
with my pgp ident, not yours ;-).  I've removed the epa-file-enable
and have included the setenv line you have but I still get the same
error as before.  The backtrace on error doesn't tell me anything
interesting, unfortunately:

,
| Debugger entered--Lisp error: (file-error Opening output file 
integer-or-marker-p nil)
|   signal(file-error (Opening output file integer-or-marker-p nil))
|   byte-code(�   \��
\nšAB\� [file epa-file-passphrase-alist entry error assoc nil signal 
file-error Opening output file] 4)
|   epa-file-write-region(nil nil /home/ucecesf/s/personal/private.org.gpg 
nil t)
|   apply(epa-file-write-region (nil nil 
/home/ucecesf/s/personal/private.org.gpg nil t))
|   epa-file-handler(write-region nil nil 
/home/ucecesf/s/personal/private.org.gpg nil t)
|   write-region(nil nil /home/ucecesf/s/personal/private.org.gpg nil t 
~/synced/personal/private.org.gpg)
|   basic-save-buffer-2()
|   basic-save-buffer-1()
|   basic-save-buffer()
|   save-buffer(1)
|   call-interactively(save-buffer nil nil)
`

Thanks,
eric


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


[Orgmode] Re: org agenda search goes to wrong target location

2009-07-23 Thread Bernt Hansen
Samuel Wales samolog...@gmail.com writes:

 Very often, when I do a keyword search in the agenda (m-x
 agenda RET s), org-agenda-switch-to (RET) goes to the wrong
 location in the target file.  To sync it, the easiest way that I have
 found so far is
 to open all agenda buffers, kill all agenda buffers, open
 all agenda buffers, and run the search again.

 Is there an easier way?

Does it consistently go to the wrong place?  I've seen issues where the
RET in the agenda goes to the wrong location once but then doing it a
second time it works fine.

Unfortunately I don't have any insight about why this occurs or how to
fix it.

-Bernt


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


Re: [Orgmode] Unnecessary comma escapes in HTML export of #+INCLUDE files

2009-07-23 Thread Bastien
Hi Hsiu-Khuern,

I've just pushed a fix for this: when the src switch is present,
including a file won't escape org-like lines.  With a bare #+include 
we still escape lines starting with * or #.

Please test it and report any problem. 

Thanks,

Hsiu-Khuern Tang hsiu-khuern.t...@hp.com writes:

 I'm using 6.28trans.  Can you try to reproduce this using these two files:

 File 1: a.org
 ==
 * test

 #+INCLUDE: a.sh src sh
 ==

 File 2: a.sh
 ==
 #!/bin/sh

  ## shell comment
 echo This is a test
 ==

 If I export a.org to HTML, the output has a comma before  ## shell comment
 (but none before #!/bin/sh, so maybe only lines with leading whitespace
 before a # are affected).

 Actually, the problem shows up even when exporting to ascii:

 ==
 Author:  ht...@localhost
 Date: 2009-07-22 10:31:37 PDT


 Table of Contents
 =
 1 test 


 1 test 
 ~~~

   #!/bin/sh
   
   , ## shell comment
   echo This is a test
 ==

 Thanks for looking into this!

-- 
 Bastien


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


[Orgmode] inconsistency in VERSE environment?

2009-07-23 Thread Stefan Vollmar

Hello,

org 6.28trans

I just observed that in

#+BEGIN_VERSE
=A= B
=C=
#+END_VERSE

the first line is exported in HTML as expected (with A in code  
style), B in default text style. However, the second line yields =C=  
with default text style, rather than just C in code style. I  
assume this is a bug?


Warm regards,
 Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
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







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


[Orgmode] Re: org agenda search goes to wrong target location

2009-07-23 Thread Samuel Wales
Typically, I try it again to no avail, kill the buffer and try it
again and get an error, then load all agenda files, kill all agenda
files, load all agenda files, run the search again, then it works.


On 2009-07-23, Bernt Hansen be...@norang.ca wrote:
 Samuel Wales samolog...@gmail.com writes:

 Very often, when I do a keyword search in the agenda (m-x
 agenda RET s), org-agenda-switch-to (RET) goes to the wrong
 location in the target file.  To sync it, the easiest way that I have
 found so far is
 to open all agenda buffers, kill all agenda buffers, open
 all agenda buffers, and run the search again.

 Is there an easier way?

 Does it consistently go to the wrong place?  I've seen issues where the
 RET in the agenda goes to the wrong location once but then doing it a
 second time it works fine.

 Unfortunately I don't have any insight about why this occurs or how to
 fix it.

 -Bernt



-- 
Myalgic encephalomyelitis makes you die decades early (Jason
et al. 2006) and suffer severely.  Conflicts of interest are
destroying research.  Silence = death.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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


[Orgmode] org agenda search goes to wrong target location

2009-07-23 Thread Samuel Wales
Very often, when I do a keyword search in the agenda (m-x
agenda RET s), org-agenda-switch-to (RET) goes to the wrong
location in the target file.  To sync it, the easiest way that I have
found so far is
to open all agenda buffers, kill all agenda buffers, open
all agenda buffers, and run the search again.

Is there an easier way?

Thanks.

-- 
Myalgic encephalomyelitis makes you die decades early (Jason
et al. 2006) and suffer severely.  Conflicts of interest are
destroying research.  Silence = death.  Again.
http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


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


[Orgmode] Re: org-mode meets git a first proposal ?!

2009-07-23 Thread Matthew Lundin
Torsten Wagner torsten.wag...@gmail.com writes:

[...]

 First of all everything which org-mode is aware of is within a
 git-repro. That makes it highly portable. If you like to use your
 complete working environment (your org-files and all linked files) on
 another computer a easy git clone git://myfirstcomputer/org.git will
 do the job never miss a file  For sure, a little script within
 emacs might make it easier as well, just ask for the source address
 and destination and a few seconds to minutes later you will find your
 complete org-mode work-environment on the other machine.

Though I can't address your idea of creating links to git revisions (I
believe this idea was discussed here recently), you might want to check
out org-attach.el as a way of pulling all relevant files into a git
repo.

Org attach can attach files to headlines by giving them a universal id
and depositing them (or a link to them) in a directory of your choice
(see the variable org-attach-directory). If the attachment directory
contains is controlled by git, org-attach will automatically check them
into the repo. So perhaps org-attach is already part of the way towards
the solution you're looking for.

 I would be happy if you could tell me your opinion about this ideas. All of 
 these is just pop up of my mind and some points really need some sleep and 
 some good discussion and reconsideration ... thus it is a very very first 
 alpha-draft. I checked the web. Some people use git for there org-files (as I 
 do). However, mostly we use org-mode and after things are done change to a 
 console (or use a git-mode in emacs) and fiddle around with git commands. 
 A good integration between both is still missing.

I can't say that this statement matches my own experience. I find emacs
and git integration to be superb. Any time I'm working intensively on
one of my org-files, I simply use vc-next-action (C-x v v) to check in
recent changes. Also I make heavy use of vc-log, vc-annotate, vc-diff,
etc. to survey changes to a file.

I also highly recommend magit. It makes it very easy to manage all
recent uncommitted changes to a git repo. Thanks to magit and vc-git, I
almost never use the command line managing git repositories. In fact,
I've come to see magit as an essential part of my work process -- i.e.,
as a way of reviewing and logging things I've worked on recently
(usually every hour or so).

That said, I think it would be nice to be able to create links to
particular git commits. 

Best,
Matt








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


Re: [Orgmode] Unnecessary comma escapes in HTML export of #+INCLUDE files

2009-07-23 Thread Hsiu-Khuern Tang
* On Fri 01:22AM +, 24 Jul 2009, Bastien (bastiengue...@googlemail.com) 
wrote:
 Hi Hsiu-Khuern,
 
 I've just pushed a fix for this: when the src switch is present,
 including a file won't escape org-like lines.  With a bare #+include 
 we still escape lines starting with * or #.
 
 Please test it and report any problem. 

It works beautifully now.  Thank you very much for the fix!

-- 
Best,
Hsiu-Khuern.


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