Re: [O] Update org-mode

2011-04-03 Thread Dror Atariah
@Christian: Here's my updated Makefile (at least the first part):

# Name of your emacs binary
EMACS=/Applications/Aquamacs.app/Contents/MacOS/Aquamacs

# Where local software is found
#prefix=/usr/local
prefix=~/Applications

# Where local lisp files go.
lispdir   = $(prefix)/Aquamacs.app/Contents/Resources/lisp

# Where info files go.
infodir = $(prefix)/Aquamacs.app/Contents/Resources/info

Running the "make install" finally (after make && make doc) yielded a rather 
long process with lots of output. However, when I reopened Aquamacs and and 
.org file, the version checked still showed 6.33x

Anything I should do otherwise?

Thnx!

On Apr 2, 2011, at 22:13 PM, Christian Moe wrote:

> In the Makefile, what settings do you have under these headings?
> 
> # Name of your emacs binary
> # Where local software is found
> # Where local lisp files go.
> # Where info files go.
> 
> I'm one of the oddballs who compile and install every new Org version, 
> because in the start I thought that was the "right" way, and it's become a 
> habit.
> 
> The Makefile needs to point to the right paths for your Aquamacs application 
> and its site-lisp and info subdirectories. I don't use Aquamacs, but mutatis 
> mutandis it's probably similar to that for GNU Emacs on the Mac, namely:
> 
> # Name of your emacs binary
> EMACS=/Applications/Emacs.app/Contents/MacOS/emacs
> 
> # Where local software is found
> prefix=/Applications
> 
> # Where local lisp files go.
> lispdir = $(prefix)/Emacs.app/Contents/Resources/site-lisp
> 
> # Where info files go.
> infodir = $(prefix)/Emacs.app/Contents/Resources/info
> 
> I quickly found that git pulls would overwrite my hand-edited Makefile, and a 
> hand-edited Makefile caused conflicts on the next pull, and I didn't 
> understand git at all.
> 
> So I did a shell script that pulls org-mode, copies the Makefile, applies a 
> patch with the above changes to the Makefile, compiles and installs, and then 
> switches back the Makefile copy. Works for me.
> 
> Yours,
> Christian
> 
> 
> 
> On 4/1/11 5:20 PM, Dror Atariah wrote:
>> I tried to follow the update process described here:
>> http://orgmode.org/worg/org-faq.html under:
>> How do I keep current with bleeding edge development?
>> 
>> The only change I made was the place where I checked out the new version. 
>> Instead of ~/elisp I have ~/Library/elisp.
>> 
>> Everything went smooth, except that I had to add "sudo" before the "make 
>> install". Without the sudo, I got an "access denied" error. Anyway, at the 
>> end, I got no warnings and it seems like the process was smooth. But when I 
>> checked the version of org-mode in aquamacs it was still 6.33x
>> 
>> I am using Emacs 23.3.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
>>  of 2011-03-19 on braeburn.aquamacs.org - Aquamacs Distribution 2.2 on a mac 
>> OS 10.6.7.
>> 
>> What should I do in order to fix it?
>> 
>> Thanks in advance,
>> Dror
>> 
>> 
>> 
>> 
>> 
> 

Dror Atariah
---
Landline:+49-30-43024501
Mobile: +49-176-67116376
Mobile (in IL): +972 54 5912389
IM:   dror...@gmail.com
   dror...@hotmail.com




Re: [O] Re: Update org-mode

2011-04-03 Thread Dror Atariah
I have added the following:

>>> (setq load-path (cons
>>>(expand-file-name "~/Library/elisp")
>>>load-path))
>>> (require 'org-install)

No change in the way Aquamacs+org-mode behaves. In particular version still 
shows 6.33x... :(


[O] Re: Update org-mode

2011-04-03 Thread Jambunathan K

Dror

Did you try installing with Package Manager/ELPA? It will be far much
simpler that way, I think ...

It is primarily designed to help new users of Emacs. You don't need to
learn git, tweak Makefiles, load-paths or battle with installing Info
manuals.

I would recommend ELPA anyday for users who are new to Emacs.

Jambunathan K.
-- 



[O] Re: [BUG] Changing TODO states sometimes modifies the scheduling of the next heading

2011-04-03 Thread Tom
Tom  gmail.com> writes:
> 
> I could not yet create a simple org file to reproduce the
> problem


Here's an org file which demonstrates the bug with org 7.5:

* TODO test1
SCHEDULED: <2011-04-02 Szo +1d>
* TODO test2 
SCHEDULED: <2011-04-03 H .+1w>


If you (setq org-log-repeat nil)  and press C-c C-t on test1
then the scheduling of test2 is modified too.





[O] Re: Update org-mode

2011-04-03 Thread Dror Atariah
It seems like I have to install the package manager.

I followed the instructions in the org-mode FAQ. Added:

(setq load-path (cons "~/Library/elisp" load-path))
(require 'package)
(package-initialize)

To my .emacs, where packages.el located in ~/Library/elisp.

Then, when I restart Aquamacs I get the following error:

Warning (initialization): An error occurred while loading 
`/Users/drorata/.emacs':

Symbol's value as variable is void: package-subdirectory-regexp

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

What should I do?


Thanks for your time!!

Dror

On Apr 3, 2011, at 10:58 AM, Jambunathan K wrote:

> Dror Atariah  writes:
> 
>> Good morning Jambunathan,
>> 
>> I did consider this, however, I couldn't make this work for me
>> either. I think I'm running a too old version of Emacs/Aquamacs. If
>> you could help me set this up that would be great!!
> 
>> I am using Emacs 23.3.1 (i386-apple-darwin9.8.0, NS
>> apple-appkit-949.54) of 2011-03-19 on braeburn.aquamacs.org - Aquamacs
>> Distribution 2.2 on a mac OS 10.6.7.
> 
> I don't use Mac. But on my windows machine, I have installed
> ELPA/Orgmode on emacs-23.3.
> 
> Follow instructions in
> http://orgmode.org/worg/org-faq.html#installing-via-elpa
> 
> You have to install package manager first and then install new org-mode.
> 
> I don't know where exactly failure heppaned. Tell me which step
> failed. I would be able to help better.
> 
> Did Orgmode show up when you did M-x list-packages?
> 
> Jambunathan K.
> 

Dror Atariah
---
Landline:+49-30-43024501
Mobile: +49-176-67116376
Mobile (in IL): +972 54 5912389
IM:   dror...@gmail.com
   dror...@hotmail.com




Re: [O] Update org-mode

2011-04-03 Thread Christian Moe

On 4/3/11 10:08 AM, Dror Atariah wrote:

# Where local software is found
#prefix=/usr/local
prefix=~/Applications


Hi,

Try

prefix=/Applications

without the tilde.

Yours,
Christian



[O] org-add-note not working with winner-mode

2011-04-03 Thread Suvayu Ali
Hi Orgers,

After updating org sometime in the last week I have been unable to run
org-add-note. Typing C-c C-z does nothing neither does explicitly
calling org-add-note. I have things setup to ask to add notes for
certain TODO state changes. Those don't work either. For the configured
TODOs, state changes only adds an empty LOGBOOK drawer without
prompting for any notes. All of these problems applies for the
corresponding agenda functions too (e.g. org-agenda-add-note).

I think the last HEAD where this combination (winner-mode turned
on) was working for me was the following commit:

commit 001346cbe7fb1824cd0d6fb84969f47778228cc8
Merge: 71e91e3 9010ae6
Author: Carsten Dominik 
Date:   Fri Mar 25 08:55:29 2011 +0100

Merge branch 'master' of orgmode.org:org-mode

I am using GNU Emacs 24.0.50.1 (last updated sometime last week). Can
someone shed some light?

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Update org-mode

2011-04-03 Thread Dror Atariah
On Apr 3, 2011, at 11:55 AM, Christian Moe wrote:

> On 4/3/11 10:08 AM, Dror Atariah wrote:
>> # Where local software is found
>> #prefix=/usr/local
>> prefix=~/Applications
> 
> Hi,
> 
> Try
> 
> prefix=/Applications
> 
> without the tilde.

That made the trick! I'll try to follow and solve also the package-manager path.

THANKS!!!


[O] org-contacts after org-mode update from 7.4 to 7.5

2011-04-03 Thread Martin Butz

Hi,

after updating from org-mode 7.4 to org-mode 7.5 I keep getting an 
error. While trying to create a new contact the template for my contacts 
says:


* %![Error: (error No buffer named *Article*)]
:PROPERTIES:
:EMAIL: %![Error: (error No buffer named *Article*)]
:PHONE_OFFICE: %^{Telefon (Büro)}
:FAX_OFFICE: %^{Fax (Büro)}
:PHONE_MOBILE: %^{Telefon (mobil)}
:PHONE_PRIVATE: %^{Telefon (privat)}
:SKYPE: %^{Skype-Name}
:URL: %^{Web}
:COMPANY: %^{Firmenname}
:POSITION: %^{Position/Stellung}
:COUNTRY: %^{Land}
:POSTCODE: %^{Postleitzahl}
:CITY: %^{Stadt}
:STREET: %^{Straße, Hausnummer}
:END:

thus preventing me to input the new contact's name. The prompt asks for 
the input of tags.


The last org-contacts.el I downloaded from 
git.naquadah.org/org-contacts.git. As the org-contacts home page says, 
org-contacts.el is now part of org-mode in the contrib folder I 
downloaded org-mode from clone git://orgmode.org/org-mode.git and used 
the included org-contacts.el with no difference.


I'd be grateful for a hint. Googeling and scanning the mailing list did 
not bring me any result. Probably I'm doing something wrong.


Thanks
Martin




--
~
sym.net  ||  butz & siefer gbr  ||  50670 koeln  ||  hansaring 78
phone +49(0)221/3762591 -  twitter.com/symnet  - mail b...@sym.net
~~ www.sym.net | www.moodalis.de 



Re: [O] org-contacts after org-mode update from 7.4 to 7.5

2011-04-03 Thread Michael Markert
Hi Martin,
On 3 Apr 2011, Martin Butz wrote:
> Hi,
>  
> * %![Error: (error No buffer named *Article*)]
> :PROPERTIES:
> :EMAIL: %![Error: (error No buffer named *Article*)]
> :PHONE_OFFICE: %^{Telefon (Büro)}
> :FAX_OFFICE: %^{Fax (Büro)}
> :PHONE_MOBILE: %^{Telefon (mobil)}
> :PHONE_PRIVATE: %^{Telefon (privat)}
> :SKYPE: %^{Skype-Name}
> :URL: %^{Web}
> :COMPANY: %^{Firmenname}
> :POSITION: %^{Position/Stellung}
> :COUNTRY: %^{Land}
> :POSTCODE: %^{Postleitzahl}
> :CITY: %^{Stadt}
> :STREET: %^{Straße, Hausnummer}
> :END:
>  
> thus preventing me to input the new contact's name. The prompt asks for 
> the input of tags.

Using `org-contacts-template-*` in the capture template depends on you
using Gnus and thus having a '*Article*' Buffer.

So you might prefer using `%^{Name}` and `%^{Email}` instead, if you do
not use Gnus.

In case you use Wanderlust I posted template functions here:
http://article.gmane.org/gmane.emacs.orgmode/40165

Greetings,
Michael



pgpCerHLR2GHh.pgp
Description: PGP signature


[O] Re: Update org-mode

2011-04-03 Thread Achim Gratz
Dror Atariah  writes:
> # Where local lisp files go.
> lispdir   = $(prefix)/Aquamacs.app/Contents/Resources/lisp

I'm going out on a limb here, but you probably should better have:

lispdir   = $(prefix)/Aquamacs.app/Contents/Resources/site-lisp/org-mode


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] org-contacts after org-mode update from 7.4 to 7.5

2011-04-03 Thread Martin Butz

Hi Michael,

Am 03.04.2011 13:18, schrieb Michael Markert:

Hi Martin,
On 3 Apr 2011, Martin Butz wrote:

[...]

Using `org-contacts-template-*` in the capture template depends on you
using Gnus and thus having a '*Article*' Buffer.
So you might prefer using `%^{Name}` and `%^{Email}` instead, if you do
not use Gnus.


Yes, that did the trick! Ok, thanks a lot. This used to work with my 
previous release of org-contacts.



In case you use Wanderlust I posted template functions here:
http://article.gmane.org/gmane.emacs.orgmode/40165


I'm still working with Thunderbird although being able to link to mails 
from within org is a strong argument to switch to an emacs-based mailclient.



Greetings,
Michael


Cheers and thanks
Martin


--
~
sym.net  ||  butz & siefer gbr  ||  50670 koeln  ||  hansaring 78
phone +49(0)221/3762591 -  twitter.com/symnet  - mail b...@sym.net
~~ www.sym.net | www.moodalis.de 



[O] [FEATURE] mobile-org on android don't show the hours of the event

2011-04-03 Thread Rémi Vanicat
Hello list,

When looking at the agenda on my phone, I can't see the hours of the
events I'm looking at. It seem the information is available (it's in the
agenda.org that is used by android's mobile-org to show, but I can't
understand how to make my android phone)

There is a patch to org-mobile.el that make the times visible on my
phone. I don't know how it will shine on others phone (I've no iphone to
test it), and even if the choice to hide this is seen as a feature for
some. 

>From 0ce98d4f5606cade97edfc4165bf1119e1fcb1ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= 
Date: Sun, 3 Apr 2011 11:36:02 +0200
Subject: [PATCH] Show the time in org-mobile agenda.

---
 lisp/org-mobile.el |5 -
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index 83462f0..af3c8b1 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -597,7 +597,7 @@ The table of checksums is written to the file mobile-checksums."
 
 (defvar org-mobile-creating-agendas nil)
 (defun org-mobile-write-agenda-for-mobile (file)
-  (let ((all (buffer-string)) in-date id pl prefix line app short m sexp)
+  (let ((all (buffer-string)) in-date id pl prefix line app short m sexp time)
 (with-temp-file file
   (org-mode)
   (insert "#+READONLY\n")
@@ -630,6 +630,7 @@ The table of checksums is written to the file mobile-checksums."
 		  (get-text-property (point) 'org-marker)))
 	  (setq sexp (member (get-text-property (point) 'type)
 			 '("diary" "sexp")))
+	  (setq time (get-text-property (point) 'time))
 	  (if (setq pl (text-property-any (point) (point-at-eol) 'org-heading t))
 	  (progn
 		(setq prefix (org-trim (buffer-substring
@@ -638,6 +639,8 @@ The table of checksums is written to the file mobile-checksums."
   pl
   (point-at-eol
 		(delete-region (point-at-bol) (point-at-eol))
+		(when time
+		  (insert time " "))
 		(insert line "" prefix "")
 		(beginning-of-line 1))
 	(and (looking-at "[ \t]+") (replace-match "")))
-- 
1.7.4.1


-- 
Rémi Vanicat


[O] Re: Update org-mode

2011-04-03 Thread Jambunathan K
Dror Atariah  writes:

> It seems like I have to install the package manager.
>
> I followed the instructions in the org-mode FAQ. Added:
>
> (setq load-path (cons "~/Library/elisp" load-path))
> (require 'package)
> (package-initialize)

Add this line at the end of the init file. This ensures that the
load-path would point to the elpa version of org.

>
> To my .emacs, where packages.el located in ~/Library/elisp.
>
> Then, when I restart Aquamacs I get the following error:
>
> Warning (initialization): An error occurred while loading 
> `/Users/drorata/.emacs':
>
> Symbol's value as variable is void: package-subdirectory-regexp

http://repo.or.cz/w/emacs.git/blob_plain/1a0a666f941c99882093d7bd08ced15033bc3f0c:/lisp/emacs-lisp/package.el

I just verified that above version of package.el works fine with my
emacs-23.

If you report successful installation with the above steps I will update
the FAQ so that folks are able to use ELPA to install org on emacs-23
versions.

Steps are simple:

1. M-x list-packages
2. locate org line that reads something like "org 20110403 available ...") 
3. Press 'i' to install to mark org for installation
4. Press 'x' to actually install the package

5. Reboot emacs (Recommended)

6. Do M-x locate-library RET org 
   and see that you see the following line

   Library is file ~/.emacs.d/elpa/org-20110403/org.elc

Jambunathan K.












>
> Dror
>
> On Apr 3, 2011, at 10:58 AM, Jambunathan K wrote:
>
>> Dror Atariah  writes:
>> 
>>> Good morning Jambunathan,
>>> 
>>> I did consider this, however, I couldn't make this work for me
>>> either. I think I'm running a too old version of Emacs/Aquamacs. If
>>> you could help me set this up that would be great!!
>> 
>>> I am using Emacs 23.3.1 (i386-apple-darwin9.8.0, NS
>>> apple-appkit-949.54) of 2011-03-19 on braeburn.aquamacs.org - Aquamacs
>>> Distribution 2.2 on a mac OS 10.6.7.
>> 
>> I don't use Mac. But on my windows machine, I have installed
>> ELPA/Orgmode on emacs-23.3.
>> 
>> Follow instructions in
>> http://orgmode.org/worg/org-faq.html#installing-via-elpa
>> 
>> You have to install package manager first and then install new org-mode.
>> 
>> I don't know where exactly failure heppaned. Tell me which step
>> failed. I would be able to help better.
>> 
>> Did Orgmode show up when you did M-x list-packages?
>> 
>> Jambunathan K.
>> 
>
> Dror Atariah
> ---
> Landline:+49-30-43024501
> Mobile: +49-176-67116376
> Mobile (in IL): +972 54 5912389
> IM: dror...@gmail.com
>  dror...@hotmail.com
>
>
>

-- 



Re: [O] org-contacts after org-mode update from 7.4 to 7.5

2011-04-03 Thread Michael Markert
Hi Martin,

On 3 Apr 2011, Martin Butz wrote:
> I'm still working with Thunderbird although being able to link to mails
> from within org is a strong argument to switch to an emacs-based mailclient.

Well there may be a possibility using org-protocol to pass name and
email, but I didn't use Thunderbird for many years and I have some
doubts that isolating those for a call would be easy.

Greetings,
Michael


pgpvlRhR98g3f.pgp
Description: PGP signature


[O] Re: org-add-note not working with winner-mode

2011-04-03 Thread Bernt Hansen
Suvayu Ali  writes:

> After updating org sometime in the last week I have been unable to run
> org-add-note. Typing C-c C-z does nothing neither does explicitly
> calling org-add-note. I have things setup to ask to add notes for
> certain TODO state changes. Those don't work either. For the configured
> TODOs, state changes only adds an empty LOGBOOK drawer without
> prompting for any notes. All of these problems applies for the
> corresponding agenda functions too (e.g. org-agenda-add-note).
>
> I think the last HEAD where this combination (winner-mode turned
> on) was working for me was the following commit:
>
> commit 001346cbe7fb1824cd0d6fb84969f47778228cc8
> Merge: 71e91e3 9010ae6
> Author: Carsten Dominik 
> Date:   Fri Mar 25 08:55:29 2011 +0100
>
> Merge branch 'master' of orgmode.org:org-mode
>
> I am using GNU Emacs 24.0.50.1 (last updated sometime last week). Can
> someone shed some light?

Hi Suvayu,

C-c C-z works for me (as does z in the agenda).  I've updated org-mode a
few minutes ago.  Can you verify this is broken for you with a minimal
emacs setup?  If not then something in your local configuration could be
the cause of this problem.

Org-mode version 7.5 (release_7.5-134-gb869b)
GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11
on raven, modified by Debian

Regards,
Bernt



[O] Re: [BUG] Changing TODO states sometimes modifies the scheduling of the next heading

2011-04-03 Thread Matt Lundin
Tom  writes:

> Tom  gmail.com> writes:
>> 
>> I could not yet create a simple org file to reproduce the
>> problem
>
>
> Here's an org file which demonstrates the bug with org 7.5:
>
> * TODO test1
> SCHEDULED: <2011-04-02 Szo +1d>
> * TODO test2 
> SCHEDULED: <2011-04-03 H .+1w>
>
>
> If you (setq org-log-repeat nil)  and press C-c C-t on test1
> then the scheduling of test2 is modified too.

I cannot reproduce this. 

--8<---cut here---start->8---
* TODO test1
  SCHEDULED: <2011-04-02 Sat +1d>
* TODO test2 
  SCHEDULED: <2011-04-03 Sun .+1w>
--8<---cut here---end--->8---

When I set org-log-repeat to nil and mark the first task DONE, I get the
following results:

--8<---cut here---start->8---
* TODO test1
  SCHEDULED: <2011-04-03 Sun +1d>
* TODO test2 
  SCHEDULED: <2011-04-03 Sun .+1w>
--8<---cut here---end--->8---

Best,
Matt



[O] Re: [BUG] Changing TODO states sometimes modifies the schedulingof the next heading

2011-04-03 Thread Tom
Matt Lundin  imapmail.org> writes:
> 
> I cannot reproduce this. 
> 

Did you start emacs without any initialization? I started it with
-Q and loaded org 7.5 manually to avoid affecting the test with 
my own org customizations.




[O] Re: [BUG] Changing TODO states sometimes modifies the schedulingof the next heading

2011-04-03 Thread Matt Lundin
Tom  writes:

> Matt Lundin  imapmail.org> writes:
>> 
>> I cannot reproduce this. 
>> 
>
> Did you start emacs without any initialization? I started it with
> -Q and loaded org 7.5 manually to avoid affecting the test with 
> my own org customizations.

I still cannot reproduce it.

Steps followed: 

1. /usr/bin/emacs -Q

2. (setq org-log-repeat nil)

3. (add-to-list 'load-path "~/org-mode/lisp/")

4. M-x org-reload

5. M-x org-version => Org-mode version 7.5 (release_7.5.144.g174e)

6. C-c C-t on first headline.

Results:

--8<---cut here---start->8---
* TODO test1
  SCHEDULED: <2011-04-03 Sun +1d>
* TODO test2 
  SCHEDULED: <2011-04-03 Sun .+1w>
--8<---cut here---end--->8---

Best,
Matt



[O] Re: org-add-note not working with winner-mode

2011-04-03 Thread Suvayu Ali
Hi Bernt,

On Sun, 03 Apr 2011 08:41:42 -0400
Bernt Hansen  wrote:

> Hi Suvayu,
> 
> C-c C-z works for me (as does z in the agenda).  I've updated
> org-mode a few minutes ago.  Can you verify this is broken for you
> with a minimal emacs setup?  If not then something in your local
> configuration could be the cause of this problem.
> 

I just updated, and I still have the same issue. I did a binary search
through my non-orgmode related Emacs setup, and it still comes down to
winner mode being turned on. When I start org with it turned off, it
works. But restarting emacs with it on or starting winner-mode by M-x
winner-mode while in org-mode brings back the problem.

> Org-mode version 7.5 (release_7.5-134-gb869b)
> GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of
> 2010-12-11 on raven, modified by Debian
> 

GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 
2011-03-29 on xxx.x.xxx
Org-mode version 7.5 (release_7.5.131.g15e86.dirty)

> Regards,
> Bernt

Thanks a lot,

-- 
Suvayu

Open source is the future. It sets us free.



[O] Re: [BUG] Changing TODO states sometimes modifies the schedulingof the next heading

2011-04-03 Thread Tom
Matt Lundin  imapmail.org> writes:

> 
> I still cannot reproduce it.
>

I tried your test file which was different from the test file
I suggested in the second mail and I couldn't reproduce the problem
with it either.

So I looked into this and turns out the problem occurs only if
after the state change the new day abbreviation in the timestamp
is shorter than the previous one.

In your case Sat switches to Sun, both 3 characters length.
No problem.

But in my case Szo changes to V which is two characters shorter:


--8<---cut here---start->8---
* TODO test1
SCHEDULED: <2011-04-02 Szo +1d>
* TODO test2 
SCHEDULED: <2011-04-03 V .+1w>
--8<---cut here---end--->8---


Why is it a problem?

Because org-timestamp-change starts with storing the current
cursor position which is the end of the timestamp:

15400 (defun org-timestamp-change (n &optional what updown)
15401   "Change the date in the time stamp at point.
15402 The date will be changed by N times WHAT.  WHAT can be `day', `month',
15403 `year', `minute', `second'.  If WHAT is not given, the cursor position
15404 in the timestamp determines what will be changed."
15405   (let ((pos (point))
...

http://repo.or.cz/w/org-mode.git/blob/HEAD:/lisp/org.el#l15405



and later it simply restores the position with:

15468   (goto-char pos)

http://repo.or.cz/w/org-mode.git/blob/HEAD:/lisp/org.el#l15468


The problem is in my case the new day abbreviation is two char
shorter, so the whole line is shorter, therefore the goto-char
puts the cursor in the next line (instead of at the end of the
timestamp) which triggers the bound problem I described in the
first mail:

http://article.gmane.org/gmane.emacs.orgmode/40502



Bottom line: the problem does not occur in the English locale,
because there all day abbreviations are 3 chars long, so the
above described simple way of restoring the cursor position
always works. But this is not true for all locales, so org
shouldn't rely on that.






Re: [O] Re: org-add-note not working with winner-mode

2011-04-03 Thread Nick Dokos
Suvayu Ali  wrote:


> I just updated, and I still have the same issue. I did a binary search
> through my non-orgmode related Emacs setup, and it still comes down to
> winner mode being turned on. When I start org with it turned off, it
> works. But restarting emacs with it on or starting winner-mode by M-x
> winner-mode while in org-mode brings back the problem.
> 
> > Org-mode version 7.5 (release_7.5-134-gb869b)
> > GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of
> > 2010-12-11 on raven, modified by Debian
> > 
> 
> GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 
> 2011-03-29 on xxx.x.xxx
> Org-mode version 7.5 (release_7.5.131.g15e86.dirty)
> 

I replied earlier (just to Bernt - forgot to copy the list, sorry about
that) that I couldn't reproduce it either. I still cannot reproduce it
with the above instructions or with a minimal .emacs that just loads org
and turns on winner-mode. I can add notes to my heart's content.

Org-mode version 7.5 (release_7.5.127.gcd4ce)
GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 
2011-03-16

Nick





[O] New contribution: Bill-of-materials -- org-bom.el

2011-04-03 Thread frozenlock

Hello all!

This is my contribution to the wonderful world of org mode: a  
bill-of-materials maker.


This module will scan your entire buffer, collect data, store it in a local  
database and give it to you in a table. The power users might also want to  
use the database directly.

For more info, please read the tutorial!

Also please keep in mind that I'm in no way an expert elisper and that my  
program is surely not the most pretty or optimized one around.


Here is the program: http://pastebin.com/w28yaUFz

I've also included it in this email, please enjoy!

;; Copyright 2011 Christian Fortin
;;
;; Filename: org-bom.el
;; Version: 0.1
;; Author: Christian Fortin 
;; Keywords: org, bill-of-materials, collection, tables
;; Description: Create a bill-of-materials (bom) of the entire org buffer
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see .
;;
;;---
;;
;;* BOM tutorial
;;
;; This module collects information across the entire org buffer, making it  
easy to retrieve and sort data.
;; It uses the column name as a landmark. We will refer to them  
as 'Keywords'. The keywords are searched using a string-match function,  
which gives the ability to have multiple column with the same  
functionality, but also to use the column name as we would usually with  
org-mode. For example, we can have 'tag' and 'tag2', both are recognized by  
the BOM module and can be used in a spreadsheet-like formula without any  
confusion.

;;
;; The BOM is compiled and printed by using a dynamic block;
;;
;; '#+BEGIN: bom'
;;
;; '#+END'
;;
;; Here is the keyword's list:
;;
;; 1. _Component_
;;
;; This is the most important keyword and act as the trigger.
;; For this example, let's say we write down things we want to buy. In this  
case, a new keyboard for our computer.

;; This is how the table should be:
;; | | Material |
;; | ! | Component |
;; |---+---|
;; | | Keyboard |
;;
;; And here is what the bill of material for this table is:
;;
;; #+BEGIN: bom :no-tag t
;; | Section | Component | Quantity |
;; |--+---+--|
;; | BOM tutorial | Keyboard | 1 |
;; #+END:
;;
;; As you can see, the heading was automatically used as the 'section',  
which doesn't require attention for now. The quantity is, unsurprisingly,  
1. Now suppose that our friend too wants a new keyboard.

;;
;; | | For | Material |
;; | ! | | Component |
;; |---++---|
;; | | Me | Keyboard |
;; | | Friend | Keyboard |
;;
;; #+BEGIN: bom :no-tag t
;; | Section | Component | Quantity |
;; |--+---+--|
;; | BOM tutorial | Keyboard | 2 |
;; #+END:
;;
;; As expected, we get 2 keyboards.
;;
;; 2. _Section_
;;
;; The section is used to separate what would otherwise be an identical  
component. Suppose we don't want our friend's wishes to be in the same BOM  
as our, but still have them in the same table.

;;
;; | | For | Material |
;; | ! | Section | Component |
;; |---+-+---|
;; | | Me | Keyboard |
;; | | Friend | Keyboard |
;;
;; This will results in the following BOM:
;;
;; #+BEGIN: bom :no-tag t
;; | Section | Component | Quantity |
;; |-+---+--|
;; | Friend | Keyboard | 1 |
;; | Me | Keyboard | 1 |
;; #+END:
;;
;; Please note that when a component is given a section, it isn't  
associated with the heading anymore. In fact a section should almost always  
be given. Using headings will simply complicate your writing by forcing you  
to pre-sort materials in an unnatural way. As an alternative, you can set  
a ':SECTION:' property in the heading, which will be inherited by all the  
components without a specified section.

;;
;; 3. _Qty_
;;
;; With this keyword, it is possible to specify a quantity for the  
associated component. In our always improving scenario, we now want to give  
a keyboard to another of our friend (as a gift). This is going to be bought  
at the same time as our keyboard, so they belong together.

;;
;; | | For | Material | |
;; | ! | Section | Component | Qty |
;; |---+-+---+-|
;; | | Me | Keyboard | 2 |
;; | | Friend | Keyboard | 1 |
;;
;; #+BEGIN: bom :no-tag t
;; | Section | Component | Quantity |
;; |-+---+--|
;; | Friend | Keyboard | 1 |
;; | Me | Keyboard | 2 |
;;
;; #+END:
;;
;; *Important*: If Qty keyword is present, then any empty field will be  
c

Re: [O] Re: org-add-note not working with winner-mode

2011-04-03 Thread Suvayu Ali
On Sun, 03 Apr 2011 17:12:01 -0400
Nick Dokos  wrote:

> I replied earlier (just to Bernt - forgot to copy the list, sorry
> about that) that I couldn't reproduce it either. I still cannot
> reproduce it with the above instructions or with a minimal .emacs
> that just loads org and turns on winner-mode. I can add notes to my
> heart's content.

I tried with the attached minimal test file and minimal setup. I still
have the issue with Emacs 24.0.50.1. I have tried running emacs like
this:

$ emacs -Q -l min.el testfile.org
$ emacs -nw -Q -l min.el testfile.org

However the problem vanishes with Emacs 23.2.1. Does this mean this is
an Emacs 24 problem?

-- 
Suvayu

Open source is the future. It sets us free.

* DONE Some meeting
  DEADLINE: <2011-03-30 Wed 09:00> CLOSED: [2011-03-31 Thu 22:00]
  - Note taken on [2011-04-03 Sun 14:54] \\
test note
  - Note taken on [2011-04-03 Sun 14:45] \\
test note with winner-mode disabled

  Skype meeting
(setq debug-on-error t)
  ;; debug-on-signal t
  ;; debug-on-quit t)

(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp"))
(add-to-list 'load-path (expand-file-name "~/build/org-mode/lisp"))
(add-to-list 'load-path (expand-file-name "~/build/org-mode/contrib/lisp"))

(add-to-list 'Info-default-directory-list
	 (expand-file-name "/opt/emacs-lisp/share/info"))

(winner-mode t)

(require 'org-install)
(require 'org-inlinetask)


Re: [O] Re: org-add-note not working with winner-mode

2011-04-03 Thread Nick Dokos
Suvayu Ali  wrote:

> On Sun, 03 Apr 2011 17:12:01 -0400
> Nick Dokos  wrote:
> 
> > I replied earlier (just to Bernt - forgot to copy the list, sorry
> > about that) that I couldn't reproduce it either. I still cannot
> > reproduce it with the above instructions or with a minimal .emacs
> > that just loads org and turns on winner-mode. I can add notes to my
> > heart's content.
> 
> I tried with the attached minimal test file and minimal setup. I still
> have the issue with Emacs 24.0.50.1. I have tried running emacs like
> this:
> 
> $ emacs -Q -l min.el testfile.org
> $ emacs -nw -Q -l min.el testfile.org
> 
> However the problem vanishes with Emacs 23.2.1. Does this mean this is
> an Emacs 24 problem?
> 

Mine was a fairly recent GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu,
GTK+ Version 2.22.0) of 2011-03-16. I think you'd be better off if you
tried debugging the org-add-note function using edebug.

Nick




[O] system-time-locale doesn't work in emacs daemon

2011-04-03 Thread Neo Liu
Hi, everyone:

My shell locale is zh_CN.UTF-8, and I want to let org-mode insert timestamp
in English, so I inserted (setq system-time-locale "C") into my emacs
initialization file (.emacs). Then I found that this setting does work in
normal emacs, i.e. starting emacs without --daemon option. But if I start
emacs with --daemon, it doesn't work. It still insert timestamp in the
language according to the shell locale setting (zh_CN.UTF-8).

Is anyone knows how to solve this problem?

diabloneo