Re: [Orgmode] jump to iso-week in agenda

2008-03-20 Thread Carsten Dominik


On Mar 15, 2008, at 5:00 PM, Thomas Baumann wrote:


Hi,

I really like the most advanced (pure magic working ...) and easy  
way of
entering dates in org mode. When answering a phone call it's only a  
few
keystrokes to jump to the date and settle the appointment. However  
there
are some people thinking in weeks (iso-week). So when those friends  
call

it get's much more complicated. Currently when I would like to jump to
say week 46, I might find an old paper calendar or M-x
calendar-goto-iso-week.

How difficult would it be to
(a) add the current iso-week into the headline of the Week-View


That does not work, because the week view may or may not start
on a Monday, so it may contain days from two different weeks.
For now I am adding the ISO week number to every date in the
agenda, if this seems too cluttered we need to think of a
different solution.


(b) include magic jump to a certain week eg. *46 to jump to week 46


I have just pushed the necessary changes into the git repo.  Here is the
user interface:


Suport for ISO week dates (ISO 8601)


Dates in the agenda now show the ISO week and day
specification, in the form `W08 2', meaning Tuesday of
week 2.

The keys `d', `w', `m', and `y' in the agenda view now accept
prefix arguments.  Remember that in the agenda, you can
directly type a prefix argument by typing a number, no need
to press `C-u' first.  The prefix argument may be used to
jump directly to a specific day of the year, ISO week, month,
or year, respectively.  For example, `32 d' jumps to February
1st, `9 w' to ISO week number 9.  When setting day, week, or
month view, a year may be encoded in the prefix argument as
well.  For example, `200712 w' will jump to week 12 in
2007.  If such a year specification has only one or two
digits, it will be mapped to the interval 1938-2037.

When entering a date at the date prompt, you may now also
specify an ISO week.  For example

 w4  Monday of week 4
 fri w4  Friday of week 4
 w4-5Same as above
 2012 w4 fri Friday of week 4 in 2012.
 2012-W04-5  Same as above

So far I have not activated the effect of
`org-read-date-prefer-future' on this functionality, because
it seemed too unpredictable for me (as I usually do not know
which week I am in).  I'd appreciate comments on this
issue:  Should `org-read-date-prefer-future' also push dates
into the next year if the week you are entering has already
passed in the current year?  For consistency I guess this
should be the case, but I cannot quite wrap my head around
it.

I hope but am not entirely convinced that this will behave
sanely also during the first/last week of a year.  Please
test extensively and report back.


Enjoy!

- Carsten



___
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] jump to iso-week in agenda

2008-03-20 Thread Thomas Baumann
Hi Carsten,

thanks you so much for adding the week features, which sometimes are
necessary even inside universities :-)

> > How difficult would it be to
> > (a) add the current iso-week into the headline of the Week-View
> 
> That does not work, because the week view may or may not start
> on a Monday, so it may contain days from two different weeks.
> For now I am adding the ISO week number to every date in the
> agenda, if this seems too cluttered we need to think of a
> different solution.

Hmmh, the view get a little busy, and I don't know about performance
issues when iso weekdays are calculated for each day (speed is an issue
on my N810). There's a lot of redundant information now.



Donnerstag  6 Dezember 2007   W49 4
Freitag7 Dezember 2007   W49 5

BTW:(format "%-9s %2d %s %4d   %s"
dayname day monthname year weekstring)))

doesn't work as expected for German locale

What about

Week-agenda (W01-02):

if the view does not start on weekday one. Similarly the day/month view
could show:

Day-Agenda (W01):
Month-agenda (W01-05):

I don't think we need weeks for the year view :-)

> I have just pushed the necessary changes into the git repo.  Here is the
> user interface:
> 

There seem's to be a problem with '.':


Debugger entered--Lisp error: (wrong-number-of-arguments (lambda (sd span n) 
"Compute starting date and number of days for agenda.
SPAN may be `day', `week', `month', `year'.  The return value
is a cons cell with the starting date and the number of days,
so that the date SD will be in that range." (let* ((greg 
(calendar-gregorian-from-absolute sd)) (dg (nth 1 greg)) (mg (car greg)) (yg 
(nth 2 greg)) nd w1 y1 m1 thisweek) (cond ((eq span (quote day)) (when n (setq 
sd (+ (calendar-absolute-from-gregorian (list mg 1 yg)) n -1))) (setq nd 1)) 
((eq span (quote week)) (let* ((nt (calendar-day-of-week 
(calendar-gregorian-from-absolute sd))) (d (if org-agenda-start-on-weekday (- 
nt org-agenda-start-on-weekday) 0))) (setq sd (- sd (+ (if (< d 0) 7 0) d))) 
(when n (require (quote cal-iso)) (setq thisweek (car 
(calendar-iso-from-absolute sd))) (when (> n 99) (setq y1 
(org-small-year-to-year (/ n 100)) n (mod n 100))) (setq sd 
(calendar-absolute-from-iso (list n 1 (or y1 (nth 2 (calendar-iso-from-absolute 
sd))) (setq nd 7))) ((eq span (quote month)) (when (and n (> n 99)) (setq 
y1 (org-small-year-to-year (/ n 100)) n (mod n 100))) (setq sd 
(calendar-absolute-from-gregorian (list (or n mg) 1 (or y1 yg))) nd (- 
(calendar-absolute-from-
 gregorian (list (1+ (or n mg)) 1 (or y1 yg))) sd))) ((eq span (quote year)) 
(setq sd (calendar-absolute-from-gregorian (list 1 1 (or n yg))) nd (- 
(calendar-absolute-from-gregorian (list 1 1 (1+ (or n yg sd (cons sd 
nd))) 2)
  org-agenda-compute-time-span(733121 day)
  (let* ((sd ...) (comp ...) (org-agenda-overriding-arguments 
org-agenda-last-arguments)) (setf (nth 1 org-agenda-overriding-arguments) (car 
comp)) (setf (nth 2 org-agenda-overriding-arguments) (cdr comp)) 
(org-agenda-redo) (org-agenda-find-same-or-today-or-agenda))
  (cond (tdpos (goto-char tdpos)) ((eq org-agenda-type ...) (let* ... ... ... 
... ...)) (t (error "Cannot find today")))
  (let ((tdpos ...)) (cond (tdpos ...) (... ...) (t ...)))
  org-agenda-goto-today()
  call-interactively(org-agenda-goto-today nil nil)


And there's a general problem with emacs23 (which seems to be rather
unstable at the moment): Due to some changes in calendar,
calendar-absolute-from-iso is _not_ autoloaded. (require 'cal-iso) does
the trick.

> Enjoy!

Definitely, thanks again

Thomas


___
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] jump to iso-week in agenda

2008-03-20 Thread Carsten Dominik

Hi Thomas,

On Mar 20, 2008, at 9:55 AM, Thomas Baumann wrote:



Hmmh, the view get a little busy, and I don't know about performance
issues when iso weekdays are calculated for each day (speed is an  
issue

on my N810). There's a lot of redundant information now.


Performance is not an issue, certainly not in comparison with the other
stuff that is going on to compute the agenda.

Yes, it is a bit crowded. I'll try to shift this to the heading.
The alternative would be to list the week number only on Mondays.



BTW:(format "%-9s %2d %s %4d   %s"
dayname day monthname year weekstring)))


doesn't work as expected for German locale



In what way does it not work?


I have just pushed the necessary changes into the git repo.  Here  
is the

user interface:



There seem's to be a problem with '.':


Fixed, thanks.



And there's a general problem with emacs23 (which seems to be rather
unstable at the moment): Due to some changes in calendar,
calendar-absolute-from-iso is _not_ autoloaded. (require 'cal-iso)  
does

the trick.


I think I have fixed this as well, please try again.

Thanks for the quick feedback.

- Carsten



___
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] open at category bug?

2008-03-20 Thread Carsten Dominik
If your files are in non-default locations, how is org-mode supposed  
to find "todo.org" etc?
I guess it would be better fo give absolute file paths in org-remember- 
templates.


Your trick of bringing up the agenda only woks by chance, if you are  
luck to be

in the right directory with Emacs.

- Carsten

On Mar 19, 2008, at 4:24 PM, Richard G Riley wrote:



Version 5.23a

When I try to open at a certain category

C-u C-M-r (prefix org-remember)

then I get

,
| Select template: [t] [n] [f] [l] [d] [e] [v] [R] [b] [s] [w] [r]  
[j] [L] [x]

| org-go-to-remember-target: Target headline not found: Emacs
`

the first time IF I havent brought up the agenda first - my files  
are in
non default locations. If I bring up the agenda first then there are  
no

problems.

,
|  (setq org-agenda-files (quote ("~/.emacs.d/.org-files")))
|  (setq org-default-notes-file "~/.emacs.d/.org-files/notes.org")

*snip*

|
|  (setq org-remember-templates
|(quote (
|  (?t "* TODO %?\n  %u\n %i\n %a\n" "todo.org" "Tasks")
|(?n "* %U %?" "notes.org" "Notes")
|(?f "* %U %^{Title}\n %i\n %a\n" "todo.org" "FaceBook")
|(?l "* %U %^{Title}\n %i\n %a\n" "todo.org" "Linux")
|(?d "* %U %^{Title}\n %i\n %a\n" "todo.org" "Debian")
|(?e "* %U %^{Title}\n %i\n %a\n" "todo.org" "Emacs")
|(?v "* %U %^{Title}\n %i\n %a\n" "vocab.org" "Vocab")
|(?R "* %U %^{Title}\n %i\n %a\n" "register.org"  
"Register")

|(?b "* %U %^{Title}\n %i\n %a\n" "blog.org" "Blog")
|(?w "* %U %^{Title}\n %i\n %a\n" "webs.org" "Webs")
|(?r "* %U %^{Title}\n %i\n %a\n" "todo.org" "Remember")
|  (?j "* %U %^{Title}\n %i\n %a\n" "todo.org" "Journal")
|  (?L "* %U %^{Title}\n %i\n %a\n" "todo.org" "Links")
|  (?x "* %^{Title}\n %i\n %a\n" "todo.org" "Links")
|  )
| )
|)
|
| (add-hook 'remember-mode-hook 'org-remember-apply-template)
|  (define-key global-map [(control meta ?r)] 'org-remember)
`






___
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] org-publish.el breaks for XEmacs

2008-03-20 Thread Carsten Dominik

You did not say which version you downloaded.

This is a known bug and fixed in the development version (the git  
repository).  The fix will make its way into the zip and tar  
distribution files with the next official release.


- Carsten

On Mar 20, 2008, at 5:18 AM, Miguel A. Figueroa-Villanueva wrote:


Hello,

I updated org-mode, but the following line in the org-publish.el broke
the compilation for XEmacs.

(require 'dired-aux)

It appears that xemacs doesn't have the dired-aux package (at least my
version 21.4.20 doesn't). If I comment out the require command it
works. Hence, I would suggest the following addition to only require
the package if it is an emacs installation:

(setq running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
(if (not running-xemacs)
   (require 'dired-aux)
 )

Thoughts?

--Miguel


___
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: blogging from org-mode

2008-03-20 Thread Bastien
Ave Cesar,

"Cezar Halmagean" <[EMAIL PROTECTED]> writes:

> Hey Bastien, I am trying to set up blorg but I cannot find where to set
> the host (where to upload the files) or doesn't it handle the uploads?

It does.  Look at the section about the header in the documentation:

  http://lumiere.ens.fr/~guerry/u/blorg.html#The-header

The directives you need to know about are #+PUBLISH_DIR and
#+UPLOAD_DIR.  Hope you can find your way through this...

> Also I think the link from org-mode homepage to blorg is broken too.

You mean the link in org-mode documentation?  I have created a symbolic
link to the right one:

  http://www.cognition.ens.fr/~guerry/blorg.php

Thanks,

-- 
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] Add anniversary and org-mode

2008-03-20 Thread Carsten Dominik


On Mar 20, 2008, at 1:02 AM, Richard G Riley wrote:



I used add anniversary in the agenda and ended up with
something like

%%(diary-anniversary 3 19 2008) John's daughter's birthday.


in my diary file.

But its not showing up in my agenda or my calendar. What could be the
issue here? I even tried "c" in the calendar view to generate the  
agenda

for that day.


Make sure that there is a newline after the diary-anniversary entry.

Make sure that you have set org-agenda-include-diary, or press "D" in  
the agenda.


The first anniversary is after one year, so this entry will show up  
next year

for the first time.

- Carsten



___
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] open at category bug?

2008-03-20 Thread Richard G Riley

Carsten Dominik <[EMAIL PROTECTED]> writes:

> If your files are in non-default locations, how is org-mode supposed
> to find "todo.org" etc?

Well the agenda does since it has a "org-agenda-files" variable (see
code snip below) - can org-mode not use something similar if not the
same? Similar to (setq gnus-home-directory "~/.emacs.d") any functions should
assume, if they are not fully qualified, that all files are below a

org-files-home-directory

or similar, I think. hard coding the full path in each
org-remember-template is not very tidy I find and I certainly avoid it
whenever I can.


> I guess it would be better fo give absolute file paths in
> org-remember-
> templates.
>
> Your trick of bringing up the agenda only woks by chance, if you are
> luck to be
> in the right directory with Emacs.
>
> - Carsten
>
> On Mar 19, 2008, at 4:24 PM, Richard G Riley wrote:
>
>>
>> Version 5.23a
>>
>> When I try to open at a certain category
>>
>> C-u C-M-r (prefix org-remember)
>>
>> then I get
>>
>> ,
>> | Select template: [t] [n] [f] [l] [d] [e] [v] [R] [b] [s] [w] [r]
>> [j] [L] [x]
>> | org-go-to-remember-target: Target headline not found: Emacs
>> `
>>
>> the first time IF I havent brought up the agenda first - my files
>> are in
>> non default locations. If I bring up the agenda first then there are
>> no
>> problems.
>>
>> ,
>> |  (setq org-agenda-files (quote ("~/.emacs.d/.org-files")))
>> |  (setq org-default-notes-file "~/.emacs.d/.org-files/notes.org")
>>
>> *snip*
>>
>> |
>> |  (setq org-remember-templates
>> |(quote (
>> |   (?t "* TODO %?\n  %u\n %i\n %a\n" "todo.org" "Tasks")
>> |(?n "* %U %?" "notes.org" "Notes")
>> |(?f "* %U %^{Title}\n %i\n %a\n" "todo.org" "FaceBook")
>> |(?l "* %U %^{Title}\n %i\n %a\n" "todo.org" "Linux")
>> |(?d "* %U %^{Title}\n %i\n %a\n" "todo.org" "Debian")
>> |(?e "* %U %^{Title}\n %i\n %a\n" "todo.org" "Emacs")
>> |(?v "* %U %^{Title}\n %i\n %a\n" "vocab.org" "Vocab")
>> |(?R "* %U %^{Title}\n %i\n %a\n" "register.org"
>> "Register")
>> |(?b "* %U %^{Title}\n %i\n %a\n" "blog.org" "Blog")
>> |(?w "* %U %^{Title}\n %i\n %a\n" "webs.org" "Webs")
>> |(?r "* %U %^{Title}\n %i\n %a\n" "todo.org" "Remember")
>> |   (?j "* %U %^{Title}\n %i\n %a\n" "todo.org" "Journal")
>> |   (?L "* %U %^{Title}\n %i\n %a\n" "todo.org" "Links")
>> |   (?x "* %^{Title}\n %i\n %a\n" "todo.org" "Links")
>> |   )
>> |  )
>> |)
>> |
>> | (add-hook 'remember-mode-hook 'org-remember-apply-template)
>> |  (define-key global-map [(control meta ?r)] 'org-remember)
>> `
>>
>>
>>
>>
>>
>>
>> ___
>> 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] help for org-export-latex.el

2008-03-20 Thread Bastien Guerry
forfan <[EMAIL PROTECTED]> writes:

> So I downloaded org-export-latex.el from
> http://www.emacswiki.org/cgi-bin/wiki/OrgMode#toc2.

My fault.  I've put the latest version in 

  http://www.cognition.ens.fr/~guerry/u/org-export-latex.el

You can download it from here.  But the _safest_ way is to download the
latest Org package here:

  http://orgmode.org/org-5.23a.zip
  http://orgmode.org/org-5.23a.tar.gz

so that you can be sure all .el work well together.

> Please help me to solve the problem?

Hope this helps.  Let me know if you encounter any other problem,

-- 
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-publish.el breaks for XEmacs

2008-03-20 Thread Miguel A. Figueroa-Villanueva
Hello Carsten,

I'm sorry for the noise then... Yes, I downloaded version 5.23a and as
mentioned I fixed it in my local copy, so I should be ok until next
release.

Thanks,
--Miguel

On Thu, Mar 20, 2008 at 6:00 AM, Carsten Dominik wrote:
> You did not say which version you downloaded.
>
>  This is a known bug and fixed in the development version (the git
>  repository).  The fix will make its way into the zip and tar
>  distribution files with the next official release.
>
>  - Carsten
>
>
>
>  On Mar 20, 2008, at 5:18 AM, Miguel A. Figueroa-Villanueva wrote:
>
>  > Hello,
>  >
>  > I updated org-mode, but the following line in the org-publish.el broke
>  > the compilation for XEmacs.
>  >
>  > (require 'dired-aux)
>  >
>  > It appears that xemacs doesn't have the dired-aux package (at least my
>  > version 21.4.20 doesn't). If I comment out the require command it
>  > works. Hence, I would suggest the following addition to only require
>  > the package if it is an emacs installation:
>  >
>  > (setq running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
>  > (if (not running-xemacs)
>  >(require 'dired-aux)
>  >  )
>  >
>  > Thoughts?
>  >
>  > --Miguel
>  >
>  >
>  > ___
>  > 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
>
>



-- 
Miguel A. Figueroa Villanueva
+1 787 832-4040 x.3610-4006
Department of Electrical and Computer Engineering
University of Puerto Rico - Mayagüez Campus


___
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] Add anniversary and org-mode

2008-03-20 Thread Bastien Guerry
Hi Richard,

Richard G Riley <[EMAIL PROTECTED]> writes:

> I used add anniversary in the agenda and ended up with
> something like
>
> %%(diary-anniversary 3 19 2008) John's daughter's birthday.
>
> in my diary file.
>
> But its not showing up in my agenda or my calendar. What could be the
> issue here? I even tried "c" in the calendar view to generate the agenda
> for that day.

Did you tell Org to include the diary?

(setq org-agenda-include-diary t)

-- 
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] Add anniversary and org-mode

2008-03-20 Thread Richard G Riley
Carsten Dominik <[EMAIL PROTECTED]> writes:

> The first anniversary is after one year, so this entry will show up
> next year
> for the first time.

Yes, this was my mistake! I had finally found it in the emacs diary
wiki!

Thanks for the heads up though.

>
> - Carsten


___
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] Add anniversary and org-mode

2008-03-20 Thread Richard G Riley
Bastien Guerry <[EMAIL PROTECTED]> writes:

> Hi Richard,
>
> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> I used add anniversary in the agenda and ended up with
>> something like
>>
>> %%(diary-anniversary 3 19 2008) John's daughter's birthday.
>>
>> in my diary file.
>>
>> But its not showing up in my agenda or my calendar. What could be the
>> issue here? I even tried "c" in the calendar view to generate the agenda
>> for that day.
>
> Did you tell Org to include the diary?
>
> (setq org-agenda-include-diary t)

Yes, but it wasn't showing in my calendar either, as I mentioned above,
and I mistakenly assumed an issue with org-mode and calendar
incompatibility. Silly me. It turned out that anniversaries simply do
not show up on the starting date :-; Found that out in the diary wiki
courtesy of a poster in #emacs irc.



___
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] Add anniversary and org-mode

2008-03-20 Thread Bastien Guerry
Richard G Riley <[EMAIL PROTECTED]> writes:

> It turned out that anniversaries simply do
> not show up on the starting date :-; 

Now that you mention this...  I can't remember my parents gave me a
birthday present for my 0th birthday!  That's unfair.

-- 
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] jump to iso-week in agenda

2008-03-20 Thread Thomas Baumann
Hi Carsten,

the view is much clearer now, thanks. Personally, I don't need the Week
on Mondays but this is a matter of taste (or customize).

> Performance is not an issue, certainly not in comparison with the other
> stuff that is going on to compute the agenda.

Yes, I already moved most old stuff to archives which are included only
on my desktop.

> > BTW:(format "%-9s %2d %s %4d   %s"
> > dayname day monthname year weekstring)))
> >
> >
> > doesn't work as expected for German locale
> 
> 
> In what way does it not work?

just an cosmetic issue, "Donnerstag" has 10 letters and does not fit
into "%-9s".

Ciao
Thomas


___
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] Add anniversary and org-mode

2008-03-20 Thread Richard G Riley
Bastien Guerry <[EMAIL PROTECTED]> writes:

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> It turned out that anniversaries simply do
>> not show up on the starting date :-; 
>
> Now that you mention this...  I can't remember my parents gave me a
> birthday present for my 0th birthday!  That's unfair.

Ha!

But its a bit of a misnomer since you can use

Jun 12 Richard's Birthday

for a repeat calendar item - fine. But then you lose the %d
functionality available in:

%%(diary-anniversary 3 19 2008) Julien's daughter turns %d !




___
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] Add anniversary and org-mode

2008-03-20 Thread Bastien Guerry
Richard G Riley <[EMAIL PROTECTED]> writes:

> But its a bit of a misnomer since you can use
>
> Jun 12 Richard's Birthday
>
> for a repeat calendar item - fine. But then you lose the %d
> functionality available in:
>
> %%(diary-anniversary 3 19 2008) Julien's daughter turns %d !

FYI I'm using bbdd-anniversary.el and it works fine:

http://stuff.mit.edu/afs/sipb/contrib/emacs/packages/bbdb-2.34/bits/bbdb-anniv.el

-- 
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: Add anniversary and org-mode

2008-03-20 Thread Thomas Baumann
Bastien Guerry <[EMAIL PROTECTED]> writes:

>
> FYI I'm using bbdd-anniversary.el and it works fine:
>
> http://stuff.mit.edu/afs/sipb/contrib/emacs/packages/bbdb-2.34/bits/bbdb-anniv.el

Nice suggestion, would you mind to send me an example record? Somehow I
don't seem to get the format of the bbdb-file right.

Thanks
Thomas



___
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] open at category bug?

2008-03-20 Thread Carsten Dominik


On Mar 20, 2008, at 11:07 AM, Richard G Riley wrote:



Carsten Dominik <[EMAIL PROTECTED]> writes:


If your files are in non-default locations, how is org-mode supposed
to find "todo.org" etc?


Well the agenda does since it has a "org-agenda-files" variable (see
code snip below) - can org-mode not use something similar if not the
same? Similar to (setq gnus-home-directory "~/.emacs.d") any  
functions should

assume, if they are not fully qualified, that all files are below a

org-files-home-directory

or similar, I think. hard coding the full path in each
org-remember-template is not very tidy I find and I certainly avoid it
whenever I can.



Hmm, well, ok, why not.

I fixed this, they are now interpreted relative to the value of the  
variable `org-directory'.


Thanks!

- Carsten






I guess it would be better fo give absolute file paths in
org-remember-
templates.

Your trick of bringing up the agenda only woks by chance, if you are
luck to be
in the right directory with Emacs.

- Carsten

On Mar 19, 2008, at 4:24 PM, Richard G Riley wrote:



Version 5.23a

When I try to open at a certain category

C-u C-M-r (prefix org-remember)

then I get

,
| Select template: [t] [n] [f] [l] [d] [e] [v] [R] [b] [s] [w] [r]
[j] [L] [x]
| org-go-to-remember-target: Target headline not found: Emacs
`

the first time IF I havent brought up the agenda first - my files
are in
non default locations. If I bring up the agenda first then there are
no
problems.

,
|  (setq org-agenda-files (quote ("~/.emacs.d/.org-files")))
|  (setq org-default-notes-file "~/.emacs.d/.org-files/notes.org")

*snip*

|
|  (setq org-remember-templates
|(quote (
|  (?t "* TODO %?\n  %u\n %i\n %a\n" "todo.org" "Tasks")
|(?n "* %U %?" "notes.org" "Notes")
|(?f "* %U %^{Title}\n %i\n %a\n" "todo.org" "FaceBook")
|(?l "* %U %^{Title}\n %i\n %a\n" "todo.org" "Linux")
|(?d "* %U %^{Title}\n %i\n %a\n" "todo.org" "Debian")
|(?e "* %U %^{Title}\n %i\n %a\n" "todo.org" "Emacs")
|(?v "* %U %^{Title}\n %i\n %a\n" "vocab.org" "Vocab")
|(?R "* %U %^{Title}\n %i\n %a\n" "register.org"
"Register")
|(?b "* %U %^{Title}\n %i\n %a\n" "blog.org" "Blog")
|(?w "* %U %^{Title}\n %i\n %a\n" "webs.org" "Webs")
|(?r "* %U %^{Title}\n %i\n %a\n" "todo.org" "Remember")
|  (?j "* %U %^{Title}\n %i\n %a\n" "todo.org" "Journal")
|  (?L "* %U %^{Title}\n %i\n %a\n" "todo.org" "Links")
|  (?x "* %^{Title}\n %i\n %a\n" "todo.org" "Links")
|  )
| )
|)
|
| (add-hook 'remember-mode-hook 'org-remember-apply-template)
|  (define-key global-map [(control meta ?r)] 'org-remember)
`






___
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: problems cloning the org mode git repo

2008-03-20 Thread Detlef Steuer
On Tue, 18 Mar 2008 17:09:48 -0400
Bernt Hansen <[EMAIL PROTECTED]> wrote:

> One thing you can try is to verify you can connect to the git port on
> the remote server.  The remote port is 9418 so as long as this outbound
> port is not blocked you should get a quick response with Connected to
> rover4.or.cz.
> 
> [EMAIL PROTECTED]:~/org$ telnet git.or.cz 9418
> Trying 62.24.64.27...
> Connected to rover4.or.cz.
> Escape character is '^]'.


and exactly here it hangs for me :-(
[EMAIL PROTECTED]:~> telnet 62.24.64.27 9418
Trying 62.24.64.27...
Connected to 62.24.64.27.
Escape character is '^]'.


That works, but git simply does not work for me.
(did before, so no firewall issue)
git clone git://repo.or.cz/org-mode.git
Initialized empty Git repository
in /home/steuer/Softtest/GIT-extern/org-mode/.git/


I did a very long wait, no timeout, nothing happened.

detlef


> telnet> quit
> Connection closed.
> [EMAIL PROTECTED]:~/org$ 
> 
> If it's blocked the Trying 62.24.64.27... will never complete and if you
> don't interrupted it you eventually get a timeout error.
> 
> If it works use ctrl-] to get the telnet> prompt and type quit RETURN
> 
> -Bernt
> 
> 
> Bernt Hansen <[EMAIL PROTECTED]> writes:
> 
> > Hmmm maybe you're behind a (corporate) firewall/proxy that prevents
> > connections to the default git port?
> >
> > git clone works fine for me on linux (but that really isn't a great help
> > for your problem -- sorry)
> >
> > I've never tried using git from cygwin.  It works for me in msysgit so
> > unless you have a really old version of git it's probably a firewall
> > issue on your network.
> >
> > -Bernt
> >
> >
> > "Tim O'Callaghan" <[EMAIL PROTECTED]> writes:
> >
> >> Still broken for me.
> >>
> >> /tmp>git clone git://repo.or.cz/org-mode.git
> >> Initialized empty Git repository in /tmp/org-mode/.git/
> >> repo.or.cz[0: 62.24.64.27]: errno=Connection timed out
> >> fatal: unable to connect a socket (Connection timed out)
> >> fetch-pack from 'git://repo.or.cz/org-mode.git' failed.
> >>
> >> Tim.
> >>
> >> On 18/03/2008, Bernt Hansen <[EMAIL PROTECTED]> wrote:
> >>> Try using this URL instead:
> >>>
> >>> git://repo.or.cz/org-mode.git
> >>>
> >>>  as in
> >>>
> >>>  $ git clone git://repo.or.cz/org-mode.git
> >>>
> >>>
> >>>  -Bernt
> >>>
> >>>
> >>>  "Tim O'Callaghan" <[EMAIL PROTECTED]> writes:
> >>>
> >>>  > I'm getting the same problem using cygwin git.
> >>>  >
> >>>  > Tim.
> >>>  >
> >>>  > On 18/03/2008, Jose Robins <[EMAIL PROTECTED]> wrote:
> >>>  >>
> >>>  >>  I tried to get the git repo by cloning and I got the following 
> >>> error. I'm
> >>>  >> just getting into git as well... So what am I doing wrong?
> >>>  >>
> >>>  >>  Thanks,
> >>>  >>
> >>>  >>
> >>>  >>
> >>>  >>  git clone http://repo.or.cz/w/org-mode.git org-repo
> >>>  >>  Initialized empty Git repository in
> >>>  >> /mnt/users/jrobins/src/org-repo/.git/
> >>>  >>  error: Could not interpret response from server ' >>>  >> encoding="utf-8"?>
> >>>  >>   >>>  >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> >>>  >>  http://www.w3.org/1999/xhtml"; xml:lang="en-US" lang
> >>>  >>  /users/jrobins/apps/bin/git-clone: line 474: cd:
> >>>  >> /mnt/users/jrobins/src/org-repo/.git/refs/remotes/origin:
> >>>  >> No such file or directory
> >>>  >>  Warning: Remote HEAD refers to nonexistent ref, unable to checkout.
> >>>  >>
> >>>  >> ___
> >>>  >>  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
> >>>
> >>
> >>
> >> ___
> >> 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
> 
> 
> ___
> 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] jump to iso-week in agenda

2008-03-20 Thread Carsten Dominik


On Mar 20, 2008, at 11:36 AM, Thomas Baumann wrote:


Hi Carsten,

the view is much clearer now, thanks. Personally, I don't need the  
Week

on Mondays but this is a matter of taste (or customize).

Performance is not an issue, certainly not in comparison with the  
other

stuff that is going on to compute the agenda.


Yes, I already moved most old stuff to archives which are included  
only

on my desktop.


BTW:(format "%-9s %2d %s %4d   %s"
dayname day monthname year weekstring)))


doesn't work as expected for German locale



In what way does it not work?


just an cosmetic issue, "Donnerstag" has 10 letters and does not fit
into "%-9s".


Ah.   Hm.  I hate locale stuf :-)

- Carsten



___
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] help for org-export-latex.el

2008-03-20 Thread forfan
Hi, Mr. Guery,

Thank you so much.
It works!

> forfan <[EMAIL PROTECTED]> writes:
>
>   
>> So I downloaded org-export-latex.el from
>> http://www.emacswiki.org/cgi-bin/wiki/OrgMode#toc2.
>> 
>
> My fault.  I've put the latest version in 
>
>   http://www.cognition.ens.fr/~guerry/u/org-export-latex.el
>
> You can download it from here.  But the _safest_ way is to download the
> latest Org package here:
>
>   http://orgmode.org/org-5.23a.zip
>   http://orgmode.org/org-5.23a.tar.gz
>
> so that you can be sure all .el work well together.
>
>   
>> Please help me to solve the problem?
>> 
>
> Hope this helps.  Let me know if you encounter any other problem,
>
>   



___
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: problems cloning the org mode git repo

2008-03-20 Thread Bernt Hansen
Detlef Steuer <[EMAIL PROTECTED]> writes:

> On Tue, 18 Mar 2008 17:09:48 -0400
> Bernt Hansen <[EMAIL PROTECTED]> wrote:
>
>> One thing you can try is to verify you can connect to the git port on
>> the remote server.  The remote port is 9418 so as long as this outbound
>> port is not blocked you should get a quick response with Connected to
>> rover4.or.cz.
>> 
>> [EMAIL PROTECTED]:~/org$ telnet git.or.cz 9418
>> Trying 62.24.64.27...
>> Connected to rover4.or.cz.
>> Escape character is '^]'.
>
>
> and exactly here it hangs for me :-(

It's connected and waiting for input.  It's not hung.  You need to hit
ctrl-] to get the telnet prompt and then type quit to close the connection.

> [EMAIL PROTECTED]:~> telnet 62.24.64.27 9418
> Trying 62.24.64.27...
> Connected to 62.24.64.27.
> Escape character is '^]'.
>
>
> That works, but git simply does not work for me.
> (did before, so no firewall issue)
> git clone git://repo.or.cz/org-mode.git
> Initialized empty Git repository
> in /home/steuer/Softtest/GIT-extern/org-mode/.git/
>
>
> I did a very long wait, no timeout, nothing happened.

It worked before?  Maybe there's a network issue or the remote server is
down for maintenance or something.  I would just try it again I think.

On linux using the exact command you specified the clone finishes in 33
seconds for me.

[EMAIL PROTECTED]:/tmp$ time git clone git://repo.or.cz/org-mode.git
Initialized empty Git repository in /tmp/org-mode/.git/
remote: Counting objects: 2293, done.
remote: Compressing objects: 100% (778/778), done.
remote: Total 2293 (delta 1507), reused 2293 (delta 1507)
Receiving objects: 100% (2293/2293), 25.68 MiB | 1027 KiB/s, done.
Resolving deltas: 100% (1507/1507), done.

real0m32.970s
user0m4.500s
sys 0m1.024s
[EMAIL PROTECTED]:/tmp$ 

I'm using a hot-off-the-press development version

[EMAIL PROTECTED]:/tmp$ git --version
git version 1.5.5.rc0.6.gdeda

but any version post 1.5.3 should work fine I think.

-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


[Orgmode] Re: blogging from org-mode

2008-03-20 Thread Cezar Halmagean
Bastien <[EMAIL PROTECTED]> writes:

> Ave Cesar,
>
> "Cezar Halmagean" <[EMAIL PROTECTED]> writes:
>
>> Hey Bastien, I am trying to set up blorg but I cannot find where to set
>> the host (where to upload the files) or doesn't it handle the uploads?
>
> It does.  Look at the section about the header in the documentation:
>
>   http://lumiere.ens.fr/~guerry/u/blorg.html#The-header
>
> The directives you need to know about are #+PUBLISH_DIR and
> #+UPLOAD_DIR.  Hope you can find your way through this...
>

The docs don't say anything about uploading to a server, ssh/ftp !?

Regards,
Cezar



___
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] problems cloning the org mode git repo

2008-03-20 Thread Jose Robins

for any others, the problem was solved by doing the following ...

git clone git://repo.or.cz/org-mode.git

I replaced the string "http" with "git"
I removed the "/w" part in the path...

Jose Robins wrote:

I tried to get the git repo by cloning and I got the following error.
I'm just getting into git as well... So what am I doing wrong?

Thanks,



git clone http://repo.or.cz/w/org-mode.git org-repo
Initialized empty Git repository in /mnt/users/jrobins/src/org-repo/.git/
error: Could not interpret response from server '
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en-US" lang
/users/jrobins/apps/bin/git-clone: line 474: cd:
/mnt/users/jrobins/src/org-repo/.git/refs/remotes/origin: No such file
or directory
Warning: Remote HEAD refers to nonexistent ref, unable to checkout.




___
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: blogging from org-mode

2008-03-20 Thread Bastien Guerry
"Cezar Halmagean" <[EMAIL PROTECTED]> writes:

> The docs don't say anything about uploading to a server, ssh/ftp !?

,[ (info "(blorg)The header") ]
| #+TITLE, #+BLOG_URL*, #+PUBLISH_DIR*
| 
| These keywords are mandatory. They respectively define the title of
| the blog, the full URL of the blog (as publicly available from the
| web) and the server directory where to upload files.
`

#+PUBLISH_DIR: /ftp:[EMAIL PROTECTED]:/home/you/public_html/
#+PUBLISH_DIR: /ssh:[EMAIL PROTECTED]:/home/you/public_html/

-- 
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: Add anniversary and org-mode

2008-03-20 Thread Bastien Guerry
Thomas Baumann <[EMAIL PROTECTED]> writes:

> Nice suggestion, would you mind to send me an example record? Somehow I
> don't seem to get the format of the bbdb-file right.

In a bbdb entry, add the "anniversary" field like this:

  C-o anniversary RET -MM-DD

Make sure you added the "anniversary" field to the list of user-fields
at the beginning of you ~/.bbdb file:

  ;;; user-fields: (anniversary)

HTH,

-- 
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: blogging from org-mode

2008-03-20 Thread Cezar Halmagean
Bastien Guerry <[EMAIL PROTECTED]> writes:

> "Cezar Halmagean" <[EMAIL PROTECTED]> writes:
>
>> The docs don't say anything about uploading to a server, ssh/ftp !?
>
> ,[ (info "(blorg)The header") ]
> | #+TITLE, #+BLOG_URL*, #+PUBLISH_DIR*
> | 
> | These keywords are mandatory. They respectively define the title of
> | the blog, the full URL of the blog (as publicly available from the
> | web) and the server directory where to upload files.
> `
>
> #+PUBLISH_DIR: /ftp:[EMAIL PROTECTED]:/home/you/public_html/
> #+PUBLISH_DIR: /ssh:[EMAIL PROTECTED]:/home/you/public_html/
>

Thank you ! For some reason I couldn't see that.

Cezar



___
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] Selectively inheriting tags

2008-03-20 Thread Michael Ekstrand
I'm wondering if it's currently possible to selective inherit tags.
Either to mark specific tags as inheritable/non-inheritable, or with a
regular expression match (the latter would be particularly useful - I
want my context tags, beginning with '@', inherited, but not my
unprefixed tags such as 'PROJECT').  From what I've seen in the help
files and change logs, it doesn't look like this is currently supported,
but I'd love to be proved wrong.

If there is no such option at present, I'd love to see it added (and may
hack something up for it in my own setup).

- Michael

-- 
mouse, n: A device for pointing at the xterm in which you want to type.
Confused by the strange files?  I cryptographically sign my messages.
For more information see .



___
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