Re: [Orgmode] Re: spreadsheet in org

2008-09-08 Thread Richard G Riley
Thomas Baumann <[EMAIL PROTECTED]> writes:

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> Here is a straightforward spreadsheet:
>>
>>
>> * Test org-mode spreadsheet for cash books
>>
>>
>> |   | Name |   Cash |
>> |---+--+|
>> | _ |  |cashforward |
>> |   |  |  68000 |
>> | _ |  |   cashtake |
>> |   | cash takings |   2340 |
>> | _ |  |   cashbank |
>> |   | moved to bank|   2000 |
>> |---+--+|
>> | _ |  |   cash |
>> | # | subtotal |  68340 |
>> |---+--+|
>> |   | emp1 |315 |
>> |   | emp2 |289 |
>> |   |  |  0 |
>> |   |  |  0 |
>> |---+--+|
>> | _ |  |  wages |
>> | # | total wages  |604 |
>> |---+--+|
>> | _ |  | cashafterwages |
>> | # | Cash After Wages |  67736 |
>> |---+--+|
>> #+TBLFM: 
>> $cash=$cashforward+$cashtake-$cashbank::$cashafterwages=$cash-$wages::$wages=vsum(@[EMAIL
>>  PROTECTED])
>>
>> My questions are:
>
>> Can one not actually name a specific cell? Or must the name itself be
>> stored above or below the cell?
>
> C-c'
> gives you a nice interface to the table formulas, making names
> almost obsolete

I dont see how - names make the formula readable.  How does this buffer
makes anything much easier in terms of cell referencing?

>
>> The wages field : how to generalise this to allow for rows to be
>> added/deleted in the emp1,emp2 block?
>
> $wages = vsum(@[EMAIL PROTECTED])
> will do the trick (sum between hlines)
> apart from that, if you add rows using M-S-down your formulas will be
> adjusted automatically.

Thats nice - thanks.

>
>> Or is there a totally better way to do this? I didnt see a way for all
>> fields to auto calculate when a certain field was changed. One has to
>> tab over the "#" in the left hand column. Or?
>
> As the manual says: C-u C-c *

That is not the same thing as auto recalculation as in excel or similar
: you must manually invoke it. This is easily forgotten (well by me :-;)

> you might also want to look at the Tbl menu
>
>
>> Oh yes, can one change the enter mode so that the field only edits if
>> you press enter first? And then it preselects the previous contents so a
>> single key other than cursor keys will wipe the previous contents?
>> Currently if I type "5" in the wages field above then, depending where
>> the cursor is, I get (for example) 6504.
>
> The interface is already outstandingly smart: Try moving with the TAB
> from one field to another or use enter to stay inside the column. You
> will notice that the requested features are already present. Maybe, also
> try another couple of spreadsheets :-) 

If I tab to a field above and press enter a new row appears. It is bound
to org-return. (Latest version). Also there is no preselection of the cell
contents so if I type "8" when I have tabbed to the "cashbank" field
above then I get "| 8 2040 |".

>
> 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


___
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] spreadsheet in org

2008-09-07 Thread Richard G Riley

Here is a straightforward spreadsheet:


* Test org-mode spreadsheet for cash books


|   | Name |   Cash |
|---+--+|
| _ |  |cashforward |
|   |  |  68000 |
| _ |  |   cashtake |
|   | cash takings |   2340 |
| _ |  |   cashbank |
|   | moved to bank|   2000 |
|---+--+|
| _ |  |   cash |
| # | subtotal |  68340 |
|---+--+|
|   | emp1 |315 |
|   | emp2 |289 |
|   |  |  0 |
|   |  |  0 |
|---+--+|
| _ |  |  wages |
| # | total wages  |604 |
|---+--+|
| _ |  | cashafterwages |
| # | Cash After Wages |  67736 |
|---+--+|
#+TBLFM: 
$cash=$cashforward+$cashtake-$cashbank::$cashafterwages=$cash-$wages::$wages=vsum(@[EMAIL
 PROTECTED])

My questions are:

Can one not actually name a specific cell? Or must the name itself be
stored above or below the cell?

The wages field : how to generalise this to allow for rows to be
added/deleted in the emp1,emp2 block?

Or is there a totally better way to do this? I didnt see a way for all
fields to auto calculate when a certain field was changed. One has to
tab over the "#" in the left hand column. Or?

If you can suggest a neater approach please do - this is my first
attempt at an org-mode spreadsheet.

Oh yes, can one change the enter mode so that the field only edits if
you press enter first? And then it preselects the previous contents so a
single key other than cursor keys will wipe the previous contents?
Currently if I type "5" in the wages field above then, depending where
the cursor is, I get (for example) 6504.



___
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] faces in agenda

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

> On Aug 3, 2008, at 1:21 PM, Richard G Riley wrote:
>
> Possibly a small bug. In the agenda all scheduled items appear to use
> the face org-scheduled-today even if they are scheduled a day or two in
> the future.
>
> I don't see this as a bug.  Maybe the name of the face is slightly 
> missleading.  This face marks tasks which are scheduled under the
> date where they are scheduled.
>
> - Carsten
>

I guess I think an "org-scheduled" face for tasks not scheduled for
"today" allows better clarity so that "todays" tasks
(org-scheduled-today) stand out more in the agenda should you so
require/customise.



___
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: diary integration

2008-09-02 Thread Richard G Riley

Richard G Riley <[EMAIL PROTECTED]> writes:

> I keep all diary stuff in an org file. I have turned off including the
> external .diary file into org.
>
> However my .diary file (which feeds the calendar) looks like:
>
> &%%(org-diary)
> Oct 13, 2008 hello
>
>
> Should anniversaries (bbdb) and todos etc not be hilited in the calendar as
> "hello" above is?


Aargh. I had the "&" there - removing it and including

(require 'diary-lib)
(add-hook 'diary-display-hook 'fancy-diary-display)


in my init file solved the problem. Its very slow though and I dont have
that many scheduled items.



___
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] diary integration

2008-09-02 Thread Richard G Riley

I keep all diary stuff in an org file. I have turned off including the
external .diary file into org.

However my .diary file (which feeds the calendar) looks like:

&%%(org-diary)
Oct 13, 2008 hello


Should anniversaries (bbdb) and todos etc not be hilited in the calendar as
"hello" above is?



___
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-annotation-helper

2008-09-01 Thread Richard G Riley
"Peter Westlake" <[EMAIL PROTECTED]> writes:

> On Sun, 31 Aug 2008 12:19:23 +0200, "Richard G Riley"
> <[EMAIL PROTECTED]> said:
>> 
>> caveat : I do not know if this is optimal or even recommended but it now
>> works for me.
>> 
>> I have modified the code a little to remove hex from the actual link. > I 
>> have "boxquoted" all code so you will need to remove that.
>> 
>> firefox/iceweasel : To set up the bookmark link, simple create a new
>> book mark called "remember" in firefox and make this the location
>> code:
>> 
>> ,
>> |
>> javascript:location.href='remember://%20'+location.href+'%1C'+escape(document.title)+'%1C'+escape(window.getSelection())
>> `
>
> I have a slightly different link, which works too:
>
> javascript:location.href='remember://'+location.href+'::remember::'+escape(document.title)+'::remember::'+escape(window.getSelection())
>


Following Carstens post about using

(org-remember nil ?w)

to get the weblink template up with no prompting, and then using refile,
org-mode has taken on an entirely new position in my daily life - even
higher and more important! 

my current template is:

  ("Weblink" ?w "* %^{Title|%:description} %^g\n
  :PROPERTIES: \n  :Entered: %U\n  :END: \n  - title:
  %:title\n  - link: %:link\n  - Quote:\n%:region\n  -
  End Quote\n\n  %?\n" "weblinks.org" "WebLinks" ) 

since I wanted to see the physical http link in order to launch firefox
using a hot key I have (return default for me is w3m).


___
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-remember : auto template selection

2008-08-31 Thread Richard G Riley

Can someone give an example of org-remember being forced into using a
predefined template instead of prompting?

e.g I have a template

("Web-Link" ?w "* %^{Title|%:description} %^g\n  :PROPERTIES: \n  :Entered: 
%U\n  :END: \n  - title: %:title\n  - link: %:link\n  - Quote:\n%:region\n  
- End Quote\n\n  %?\n" "weblinks.org" "WebLinks") 

But

(org-remember "w")

Still prompts as does

(org-remember ?w)

org-version: 6.06b




___
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-annotation-helper

2008-08-31 Thread Richard G Riley

caveat : I do not know if this is optimal or even recommended but it now
works for me.

I have modified the code a little to remove hex from the actual link. I
have "boxquoted" all code so you will need to remove that.

firefox/iceweasel : To set up the bookmark link, simple create a new
book mark called "remember" in firefox and make this the location code:

,
| 
javascript:location.href='remember://%20'+location.href+'%1C'+escape(document.title)+'%1C'+escape(window.getSelection())
`

This is as simple as right click on your bookmark toolbar and
create new. Do *not* select "load this bookmark in the sidebar" - when I
selected this then links and region did not pass to the protocol handler
discussed in the comments below. I have no idea why and if someone could
explain why this should be I would be grateful.

Follow the instructions in the code to set up the shell script and the
protocol registry to handle the protocol when you click on the remember
bookmark. I would advise ignoring all "annotation" stuff and just
concentrate getting remember working for now.

The org-remember-template I now use is (note the addition of %:link which
shows the physical http link)

,
| ("Web-Link" ?w "* %c \n  :PROPERTIES: \n  :Entered: %U\n  :END: \n\n  - link: 
%:link\n  - Quote:\n%:region\n  - End Quote\n\n  %?\n" "bookmarks.org" 
"Unfiled Clips") 
`

Using linux with X, I also modified the remember shell script to use wmctl to
bring emacs to the foreground.

I also reformatted the location codes to be on a single line.


,
| ;;; org-annotation-helper.el --- start remember from a web browser
| ;;
| ;; Author: bzg AT altern DOT org
| ;; Keywords: org remember
| ;;
| ;;; Commentary:
| ;;
| ;; [bzg:] This is an adapted version of the planner-mode extension the
| ;; was first posted by Geert Kloosterman <[EMAIL PROTECTED]> on
| ;; the Planner mailing list.  All comments below are his.
| ;;
| ;; We want to be able to pass a URL and document title directly from a
| ;; web browser to Emacs.
| ;;
| ;; We define a remember:// url handler in the browser and use a shell
| ;; script to handle the protocol.  This script passes the information
| ;; to a running Emacs process (using emacsclient/gnuclient).  We use 
| ;; bookmarklets to create the remember:// urls dynamicly.
| ;;
| ;; The protocol types currently recognized are:
| ;; 
| ;; remember:// start `remember' with the url and title filled in
| ;; annotation://   similar to `planner-annotation-as-kill' (org?)
| ;;
| ;; The urls used internally will have the following form:
| ;;
| ;;   remember://%1C
| ;;
| ;; The title will be url-hex-encoded.  "%1C" is the (url-encoded) low
| ;; ascii value for the field separator.
| ;;
| ;;
| ;; The bookmarklets:
| ;;
| ;; javascript:location.href='remember://' + location.href + '%1C' + 
escape(document.title) + '%1C' + escape(window.getSelection())
| ;; javascript:location.href='annotation://' + location.href + '%1C' + 
escape(document.title)
| ;;
| ;; The helper script:
| ;;
| ;;#!/bin/sh
| ;;# remember -- pass a remember-url to emacs
| ;;#
| ;;# Author: Geert Kloosterman <[EMAIL PROTECTED]>
| ;;# Date: Sat Nov 19 22:33:18 2005
| ;;#
| ;;# modified 31 Aug 2008 rgr : added call to wmctrl to bring emacs to the 
foreground
| ;;#
| ;; 
| ;;if [ -z "$1" ]; then
| ;;echo "$0: Error: no arguments given!" 1>&2
| ;;exit 1
| ;;fi
| ;; 
| ;;# To test uncomment following line
| ;;#echo $1 >> /tmp/remember.out
| ;;wmctrl -a emacs22
| ;;emacsclient --eval "(progn (bzg/org-annotation-helper \"$1\" ) nil)"
| ;; 
| ;;# EOF
| 
| ;; Adding a protocol handler
| ;; -
| ;;
| ;; Firefox
| ;;
| ;; To add a protocol handler (eg: remember://) in Firefox, take the
| ;; following steps:
| ;;
| ;; - type in "about:config" in the location bar
| ;; - right click, select New --> String
| ;; - the name should be "network.protocol-handler.app.remember" 
| ;; - the value should be the executable, eg. "remember".
| ;;   At least under Linux this does not need to be the full path to 
| ;;   the executable.
| ;;
| ;; See http://kb.mozillazine.org/Register_protocol for more details.
| ;;
| ;; Opera
| ;;
| ;; In Opera add the protocol in the Preferences->Advanced->Programs
| ;; dialog.
| 
| 
| ;; Code:
| 
| (require 'url)
| 
| (autoload 'url-unhex-string "url")
| 
| (defun bzg/org-annotation-helper (info)
| (interactive)
|   "Process an externally passed remember:// style url.
| 
| URLSTRING consists of a protocol part and a url and title,
| separated by %1C.
| 
| The protocol types currently recognized are:
| 
| remember:// start `remember' with the url and title
| annotation://   similar to `org-annotation-as-kill'."
|   (let ((remember-annotation-functions nil))
| ;; The `parse-url' functions break on the embedded url,
| ;; since our format is fixed we'll split the url ourselves.
| (if (string-match  "^\\([^:]*\\):\\(/*\\)\\(.*\\)" info)
|   (let* ((proto (match-string 1 info))
|  (url_t

Re: [Orgmode] org-annotation-helper

2008-08-31 Thread Richard G Riley

I have found that the released code is wrong. I got it working for a
short while by following the instructions at the following link but tiny
little issues like the formatting of the javascript cause some cut and
paste issues and can easily break the system. In addition, when I create
my remember bookmakr if I select "load this bookmark in the sidebar" it
stops working completely.

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg06608.html

I will find out what the hiccup is today and post an update.


Nick Dokos <[EMAIL PROTECTED]> writes:

> Richard G Riley <[EMAIL PROTECTED]> wrote:
>
>> 
>> Can someone please confirm they have org-annotation-helper working with
>> Firefox/Iceweasel 3?
>
> I have not been able to get org-annotation-helper working at all
> w/Firefox 3. I get an unhandled exception in Javascript at the browser,
> don't know why:
>
> Error: uncaught exception: [Exception... "Component returned failure code: 
> 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]"  nsresult: "0x80004005 
> (NS_ERROR_FAILURE)"  location: "JS frame :: 
> javascript:location.href='remember://'+location.href+'::remember::'+escape(document.title)+'::remember::'+escape(window.getSelection())
>  ::  :: line 1"  data: no]
>
> One of these years, I hope to get some time to dig deeper. For now,
> it's been back to copy-n-paste for me.
>
> Sorry I can't help,
> Nick
>
>> 
>> If I type "remember://hello" in the address bar it works fine. If,
>> however I click my bookmark with the following as the location then I
>> get "about:blank" as the embedded link in my new remember buffer:
>> 
>> javascript:location.href='remember://' + location.href + '::remember::'
>> + escape(document.title) + '::remember::' +
>> escape(window.getSelection())
>> 
>> 
>> What could be wrong?
>> 
>> 
>> 
>> ___
>> 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] org-annotation-helper

2008-08-30 Thread Richard G Riley

Can someone please confirm they have org-annotation-helper working with
Firefox/Iceweasel 3?

If I type "remember://hello" in the address bar it works fine. If,
however I click my bookmark with the following as the location then I
get "about:blank" as the embedded link in my new remember buffer:

javascript:location.href='remember://' + location.href + '::remember::'
+ escape(document.title) + '::remember::' +
escape(window.getSelection())


What could be wrong?



___
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: Mail files in org

2008-08-28 Thread Richard G Riley
Russell Adams <[EMAIL PROTECTED]> writes:

> On Thu, Aug 28, 2008 at 05:45:38PM +0200, Richard G Riley wrote:
>> 
>> Gnus supports maildir too although recently I moved to an IMAP server
>> which accesses the maildir format created with procmail on my mail
>> server.
>> 
>
> I've recently reorganized my folders to be served up by Dovecot so I
> can access my maildir inside VM with Thunderbird. A great hack, and
> Mutt compatible!
>
>> I did use Mutt for a while but being an emacs user I took the plunge and
>> went Gnus and never looked back. All the things you are familiar with
>> integrate nicely (flyspell, org-mode etc). And, of course, Gnus merges
>> the concept of usenet and email which is great when you get it all
>> sorted out and configured to your liking. But now its starting to sound
>> like I am pimping  Gnus. But as an emacs user I would recommend you take
>> the plunge again and retry Gnus.
>
> I don't do usenet, and I use emacs as the message editor for Mutt. I
> do use BBDB with Mutt via LBDB.
>
> Perhaps I should review Gnus again, any good references or screenshots
> of it in operation?

One little picture here showing email and usenet groups with group
specific colouring and then content highlighting with non empty folders.

http://richardriley.net/default/projects/images/gnus_scr.png

and a link to my .gnus here

http://richardriley.net/default/projects/emacs/

Using the built in help function on that files contents would be a big
help I think.



___
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: Mail files in org

2008-08-28 Thread Richard G Riley

Bernt Hansen <[EMAIL PROTECTED]> writes:

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> Russell Adams <[EMAIL PROTECTED]> writes:
>>
>>> On Thu, Aug 28, 2008 at 02:54:22PM +, Charles Howard wrote:
>>>
>>> Between Mutt and Mairix I use maildir (one message per file) and
>>> searching to meet my needs.
>>>
>>> I'd like to follow up on putting a message ID link in org to open
>>> emails though.
>>
>> This already works if you use Gnus.
>
> It does?  Can I convert to using message ids somehow?

Allow me to slap my own forehead. Sorry. I was talking about links to
gnus accessed mail. Although since gnus has a fetch by ID function I
guess its not too hard to do?

>
> I'm using Gnus with a local IMAP server (not maildir or Mairix).  All of
> my Gnus links are regular folder and article number links.
>
> My Gnus links look like this:
>
> ,
> | [[gnus:INBOX.SomeFolder#1053][description of mail goes here]]
> `
>
> I am assuming a message ID link would use the
>
> ,
> | Message-ID: <[EMAIL PROTECTED]>
> `
>
> part of the email instead of INBOX.SomeFolder#1053 in the example above.
>
> I don't want email storage on a single local machine because I need
> access to my mail from multiple systems and when I'm away with Internet
> connectivity -- and using IMAP Works For Me(tm).
>
> Manually synching my 5GB+ of email between multiple systems isn't
> something I want to take on at this time.

Apologies - I was wrong. I do not link using msgid.

>
> -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] Mail files in org

2008-08-28 Thread Richard G Riley
Russell Adams <[EMAIL PROTECTED]> writes:

> On Thu, Aug 28, 2008 at 05:10:46PM +0200, Richard G Riley wrote:
>> 
>> This already works if you use Gnus.
>
> I adore emacs, but I haven't been sold into it for mail. I used Pine a
> decade ago, and moved to Mutt. I like its interface and maildir
> support.

Gnus supports maildir too although recently I moved to an IMAP server
which accesses the maildir format created with procmail on my mail
server.


I did use Mutt for a while but being an emacs user I took the plunge and
went Gnus and never looked back. All the things you are familiar with
integrate nicely (flyspell, org-mode etc). And, of course, Gnus merges
the concept of usenet and email which is great when you get it all
sorted out and configured to your liking. But now its starting to sound
like I am pimping  Gnus. But as an emacs user I would recommend you take
the plunge again and retry Gnus.

>
> I haven't compared it to Gnus in a while, but I'd prefer to just link
> to a message than change clients.

:-;


___
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] Mail files in org

2008-08-28 Thread Richard G Riley
Russell Adams <[EMAIL PROTECTED]> writes:

> On Thu, Aug 28, 2008 at 02:54:22PM +, Charles Howard wrote:
>> 
>> Is it possible to structure a large collection of emails in an org file ? 
>> Are there any specific tools for doing this ?
>> 
>> I have used pine for many years but the business of categorizing sensibly 
>> into folders the hundreds of mails which 
>> come each week is out of hand. Googlemail is offering a single file of 
>> emails, with (multiple) `tabs' replacing
>> the functionality of folders. This seems like a great step forward, but I 
>> don't like GUIs, and I'm not happy that on 
>> googlemail it seems not to be possible to download an email to disk with 
>> header information. (And I don't want all
>> my emails permanently on someone else's server.)
>> 
>> Maybe this has been thought of already, but I can't see it anywhere. I've 
>> never used mail under emacs (though I've used
>> emacs for about 12 years). 
>> 
>> What I have in mind is a single text file containing (say) one year's 10^5 
>> emails. I could go through attaching tabs, 
>> TODO notes, draft replies, rude remarks, tags, ... able to open a specific 
>> category ...
>> 
>> If I'm reinventing the wheel, please don't be too harsh. 
>
> Between Mutt and Mairix I use maildir (one message per file) and
> searching to meet my needs.
>
> I'd like to follow up on putting a message ID link in org to open
> emails though.

This already works if you use Gnus.

>
> --
> Russell Adams[EMAIL PROTECTED]
>
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>
> ___
> 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] problem with appointments not cancelling

2008-08-26 Thread Richard G Riley

I have the following in one of my org files but the reminder is still
popping up (or was until the original scheduled time was passed). What
do I need to call to have a cancelled org entry removed from the
reminder mechanism? I use the gtk reminder system and include the code
below. Does the org-agenda-to-appt not remove closed/cancelled entries?
(Note I changed the run-at-time parameters to run now and repeat every
while).

1) org entry

** CANCELED gf 
   SCHEDULED: <2008-08-26 Tue 14:00> CLOSED: [2008-08-26 Tue 13:50]

2) code

;;;
; For org appointment reminders

; 5 minute warnings
(setq appt-message-warning-time '15)
(setq appt-display-interval '5)

; Update appt each time agenda opened.
(add-hook 'org-finalize-agenda-hook 'org-agenda-to-appt)

; Setup zenify, we tell appt to use window, and replace default function
(setq appt-display-format 'window)
(setq appt-disp-window-function (function my-appt-disp-window))

(defun my-appt-disp-window (min-to-app new-time msg)  
  (save-window-excursion (shell-command (concat 
"/usr/bin/zenity --info --title='Appointment' --text='" 
msg
"' &"
) nil nil)
))

;; activate and schedule refresh
(appt-activate t)
(run-at-time nil 3600 'org-agenda-to-appt)





___
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: Showing todos with inherited tags in agenda views

2008-08-26 Thread Richard G Riley
Bernt Hansen <[EMAIL PROTECTED]> writes:

> Robert Goldman <[EMAIL PROTECTED]> writes:
>
>> I hope that this isn't too much of an FAQ, but I searched the mailing
>> list and couldn't find an answer (although I could find the question
>> being asked):
>>
>> Is it possible to tailor the agenda view so that when it displays the
>> TODO items it shows those todo items with their *inherited* tags?
>>
>> My display seems to show only the tags directly applied to the items.
>> This isn't so great for me, since I put my TODO items in multiple files,
>> one for each project, and put at the * Tasks level in those files a tag
>> corresponding to the project.  I'd really like to see those tags in the
>> agenda view, so I know what project the TODOs belong to.
>
> Hi Robert,
>
> I use categories for this.  I have multiple org files (normally one per
> project) but some files (like todo.org) are catch-all org files which
> have multiple categories.
>
> I set the category for a subtree using a property.
>
> All of my project tasks are level 2 tasks so they have a level 1 parent
> task for organizing things.  Such as
>
> ,[ proj1.org ]
> | * Support
> |   :PROPERTIES:
> | :ARCHIVE: %s_archive::* Support
> | :CATEGORY: PROJ1
> |   :END:
> | ** TODO First Project
> | ** TODO Second Project
> `
>
> so all tasks in this project show up in the agenda in the 'PROJ1'
> category.  You're free to set different categories for any subtree and I
> find it very flexible.
>
> This works great for me.
>

I use this too. I would ask that the category name in the left column of
the agenda view used its own face though. Is this possible?


___
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 items in calendar

2008-08-09 Thread Richard G Riley

My .diary file consists of:

&%%(org-diary :deadline :timestamp :sexp :scheduled)

but I'm not seeing any org items which appear in my daily org agenda
causing the calendar to hilight the days. What else do I need to do? I
think I might have inadvertently deleted some hook line but can not see
where.

regards

r.


___
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 publishing css files

2008-08-05 Thread Richard G Riley
Dan Davison <[EMAIL PROTECTED]> writes:

> Hi Richard,
>
> I couldn't see anything wrong with your alist, and I tried it out on
> my system (with altered, local, directory names) and org-publish
> web-css copied a css file to the publishing directory with no
> problems. I haven't had any problems with org-publish-attachment on
> any type of file.  Is it definitely not to do with icicles? Happens

It happens even when I do not load icicles. It also ONLY happens with
CSS files afaik. If, for example, I add the CSS extension to the web-images
profile below then it fails in the same way. I have a nasty feeling it
is going to come down to some nasty file mode for css but nothing has
become apparent yet.

It does publish fine to the local machine.

I can also open remote css files from emacs and write them too (this
mechanism uses ssh with tramp).

> with local publishing directory as well as ssh? I'm sure this is
> obvious to you, but I guess the thing to do is make that project-alist
> simpler and simpler until it works and hopefully that'll reveal the
> problem.

Yes - I did : in that I only org-publish web-css trying to find the problem.

>
> DAn
>
>
> On Tue, Aug 05, 2008 at 01:03:05AM +0200, Richard G Riley wrote:
>> 
>> 
>> Here is my org-publish-project-alist
>> 
>> ,
>> | (setq org-publish-project-alist
>> |   '(
>> |("web-css"
>> | :base-directory "~/webs/rr/"
>> | :publishing-directory "/ssh:[EMAIL PROTECTED]:/home/rr/webs/rr/"
>> | :base-extension "css"
>> | :publishing-function org-publish-attachment
>> |  :recursive t
>> | )
>> |("web-images"
>> | :base-directory "~/webs/rr/"
>> | :publishing-directory "/ssh:[EMAIL PROTECTED]:/home/rr/webs/rr/"
>> | :base-extension "gif\\|jpg\\|png"
>> | :publishing-function org-publish-attachment
>> |  :recursive t
>> | )
>> |("web-org"
>> | :base-directory "~/webs/rr/"
>> | :publishing-directory "/ssh:[EMAIL PROTECTED]:/home/rr/webs/rr/"
>> | :base-extension "org"
>> | :publishing-function org-publish-org-to-html
>> |  :recursive t
>> | :section-numbers nil
>> | :style "> |  href=\"./style.css\"
>> |  type=\"text/css\">"
>> | :auto-preamble t
>> | :auto-postamble t
>> | :preamble "Back - > href='http://rr.net/default/'>Home"
>> | :postamble ""
>> | :author nil
>> | )
>> |("web"
>> | :components("web-org" "web-images" "web-css")
>> | )
>> |)
>> | )
>> `
>> 
>> I can org-publish both web-org and web-images with no problem. However
>> when I try to publish web-css I get:
>> 
>> ,
>> | Debugger entered--Lisp error: (error "Wrong type argument: arrayp, nil")
>> |   signal(error ("Wrong type argument: arrayp, nil"))
>> |   error("%s" "Wrong type argument: arrayp, nil")
>> |   byte-code("??!  !\"??" [orig-buff act-on-choice 
>> icicle-try-switch-buffer error "%s" error-message-string] 4)
>> |   icicle-execute-extended-command()
>> |   call-interactively(icicle-execute-extended-command)
>> `
>> 
>> I can org-publish-current-file with no problem.
>> 
>> (I have tried it without icicles loaded too). It is only css files (in
>> this instance) causing this. Any suggestions on how to debug this? What
>> could it be? I have tried without nxhtml loaded too and have ensured the
>> only css mode I have in the one that comes with emacs 22.
>> 
>> org : 6.06b
>> emacs : 22.2.1
>> 
>> Can anyone confirm (using emacs 22) that they can publish css files
>> without a problem?
>> 
>> regards
>> 
>> r.
>> 
>> 
>> 
>> ___
>> 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


[Orgmode] Problems publishing css files

2008-08-04 Thread Richard G Riley


Here is my org-publish-project-alist

,
| (setq org-publish-project-alist
|   '(
|   ("web-css"
|:base-directory "~/webs/rr/"
|:publishing-directory "/ssh:[EMAIL PROTECTED]:/home/rr/webs/rr/"
|:base-extension "css"
|:publishing-function org-publish-attachment
|  :recursive t
|)
|   ("web-images"
|:base-directory "~/webs/rr/"
|:publishing-directory "/ssh:[EMAIL PROTECTED]:/home/rr/webs/rr/"
|:base-extension "gif\\|jpg\\|png"
|:publishing-function org-publish-attachment
|  :recursive t
|)
|   ("web-org"
|:base-directory "~/webs/rr/"
|:publishing-directory "/ssh:[EMAIL PROTECTED]:/home/rr/webs/rr/"
|:base-extension "org"
|:publishing-function org-publish-org-to-html
|  :recursive t
|:section-numbers nil
|:style ""
|:auto-preamble t
|:auto-postamble t
|:preamble "Back - Home"
|:postamble ""
|:author nil
|)
|   ("web"
|:components("web-org" "web-images" "web-css")
|)
|   )
| )
`

I can org-publish both web-org and web-images with no problem. However
when I try to publish web-css I get:

,
| Debugger entered--Lisp error: (error "Wrong type argument: arrayp, nil")
|   signal(error ("Wrong type argument: arrayp, nil"))
|   error("%s" "Wrong type argument: arrayp, nil")
|   byte-code("Â!ˆÃÄÅ  !\"‡" [orig-buff act-on-choice icicle-try-switch-buffer 
error "%s" error-message-string] 4)
|   icicle-execute-extended-command()
|   call-interactively(icicle-execute-extended-command)
`

I can org-publish-current-file with no problem.

(I have tried it without icicles loaded too). It is only css files (in
this instance) causing this. Any suggestions on how to debug this? What
could it be? I have tried without nxhtml loaded too and have ensured the
only css mode I have in the one that comes with emacs 22.

org : 6.06b
emacs : 22.2.1

Can anyone confirm (using emacs 22) that they can publish css files
without a problem?

regards

r.



___
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] faces in agenda

2008-08-03 Thread Richard G Riley

Possibly a small bug. In the agenda all scheduled items appear to use
the face org-scheduled-today even if they are scheduled a day or two in
the future.



___
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 opening org files

2008-07-30 Thread Richard G Riley

Would it be possibly for org-mode to open the org-files using a
different open mechanism which does not contribute to file history? I
use "previous-history-element" a lot in the mini buffer to reopen files
but the history includes my 8 or 9 org files which org has opened.


___
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: move org item

2008-07-28 Thread Richard G Riley
Bernt Hansen <[EMAIL PROTECTED]> writes:

> Manish <[EMAIL PROTECTED]> writes:
>
>>   On Mon, Jul 28, 2008 at 9:22 AM, Bernt Hansen wrote:
>>   > Richard G Riley writes:
>>   >
>>   >> Sorry, but I cant see it in the manual (rubs eyes) but is it
>>   >> possible to move an item(s) from one org type/file to another file?
>>   >>
>>   >> e.g I have something in my generals "tasks" file and then want to
>>   >> refile it in my "emacs" org file.
>>   >>
>>   >> I realise I can refile to another category in the same file using
>>   >> C-c C-w (org-refile).
>>   >>
>>   > I tend to just fold the task, cut it, and paste it in the other file
>>   > ... followed by refiling it if necessary to the 'right' place in the
>>   > new file.  Maybe there's an easier way I'm unaware of.
>>
>> This troubled me a lot as well but I have found following setting to
>> be of good use:
>>
>>   (setq org-refile-targets (quote ((org-agenda-files :regexp . "*"
>
> Cool!  Thanks for letting me know about this.  I have way too many
> targets to use your setting but this works great for me:
>
> (setq org-refile-targets (quote ((org-agenda-files :level . 1
>
> -Bernt

Great stuff guys. I dont think I'll ever be a lisp programmer - I looked
at the doc string and it flew over my head on how to reduce the number
of targets. Mind you, it was at 5am or so :-( This is exactly what I
wanted!



___
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] move org item

2008-07-27 Thread Richard G Riley

Sorry, but I cant see it in the manual (rubs eyes) but is it possible to
move an item(s) from one org type/file to another file?

e.g I have something in my generals "tasks" file and then want to refile
it in my "emacs" org file.

I realise I can refile to another category in the same file using C-c
C-w (org-refile).

regards

r.





___
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] Tutorial on Remember mode

2008-07-27 Thread Richard G Riley

Hi,

Your notes prompted me to add the tags prompt into my templates - thanks
for that. But something strange. I have a template thus:

  (?e "* %T %^{Title} %^g\n %i%?\n %a\n" "emacs.org"
  "Emacs")

What happens is that when entering the note I see the template tags
(boxquoted)

,
| * <2008-07-27 Sun 12:37>  %^g
|  %?
`

when being prompted for "Title" in the minibuffer - is this as designed?




OldThunderbird <[EMAIL PROTECTED]> writes:

> I have written a tutorial on how I use Remember mode at my
> office and home. I have included Lisp code and screen shots to
> illustrate the article.
>
> Naturally, I wrote the artice in org-mode and published it
> to HTML.
>
> The link is
> http://members.optusnet.com.au/~charles57/GTD/remember.html
>
> Comments and feedback welcome!
>
> Charles
>
>
>
>
>
> ___
> 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] Project Planning Tutorial Using Org-Mode

2008-07-24 Thread Richard G Riley
Peter Jones <[EMAIL PROTECTED]> writes:

> (shameless-self-promotion-mode t)
>
> I just wrote a tutorial on how to use org-mode to plan and estimate a
> project.
>
> http://pmade.com/articles/2008/project-planning
>
> Feedback is encouraged.  If you use org-mode for stuff like this,
> please post a comment on how you do things differently.
>
> Thanks.

Looks nice. I would suggest that you list the function names in place
rather using a footer and just the hot key though. In addition it might
be nice to link to the relevant org-manual section whenever you describe
a new piece of functionality like assigning time estimates and tags for
filtering. 

The other thing which would be nice would be to use org-mode
itself to publish your tutorial. org-mode really is a great tool!




___
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] How to produce an agenda that filters on both todo keyword and tag?

2008-07-24 Thread Richard G Riley
Giovanni Ridolfi <[EMAIL PROTECTED]> writes:

> --- Gio 24/7/08, Manish <[EMAIL PROTECTED]> ha scritto:
>> Da: Manish <[EMAIL PROTECTED]>
>> On Thu, Jul 24, 2008 at 3:55 AM, Carsten Dominik wrote:
>> > The "Tags view" is really called the tags
>> > view for historical reasons.  
>> > It is really for matching tags, properties, 
>> > and TODO entries alike. 
>> > Should we rename it?
>> >  The match view?  The query view?  Proposals?
>> Match view sounds good to me.
>
> +1
> Giovanni
>
>
>   Posta, news, sport, oroscopo: tutto in una sola pagina. 
> Crea l'home page che piace a te!
> www.yahoo.it/latuapagina

Filtered View


___
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] Possible bug rendering html lines

2008-07-19 Thread Richard G Riley
"Daniel Clemente" <[EMAIL PROTECTED]> writes:

>
> #+HTML: 
>
>  ...
>
> 
>
> ...
>
>   Both HTML codes are wrong; it should be: 

Yes, I spotted that in my example last night. There is still something
interfering with the correct way though on my system and I am trying to
track it down - both in #+HTML: and #+HTML_BEGIN styles.



___
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] suggestion - follow-link

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

> On Jul 18, 2008, at 12:19 PM, Richard G Riley wrote:
>
>> Carsten Dominik <[EMAIL PROTECTED]> writes:
>>
>>> On Jul 18, 2008, at 10:29 AM, Richard G Riley wrote:
>>>
>>>>
>>>> I would like to suggest that follow link (C-c C-o) defaults to
>>>> "index.org" when the link is merely a directory. e.g I prefer my
>>>> links
>>>> to be without the "index.html/org" part ,"./projects/", so that
>>>> "index.html" does not appear in the address bar when browsing the
>>>> published project. At present it will open dired in that directory.
>>>
>>> I do not want to give up that link into dired while working in
>>> Emacs - and I believe upon exporting, the link will end up pointing
>>> to the directory, which in HML will read index.html.
>>>
>>> - Carsten
>>
>> Yes, without the specific file, the browser will indeed default to
>> index.html. This is a standard - and what I use. It just means C-C C-o
>> does not open the link to the file. But if people prefer dired to come
>> up on such a link I can see that might be beneficial to some too.
>
>
> I depends on application.  In a web publishing project, I agree
> that opening index.org might be the most useful approach.
> However, when using Org for notes, planning etc, I frequently
> rely on the ability to link to a dired list of a directory.
> Maybe is is worth an option..
>
> - Carsten

Hmm. Yes, I am being a bit "html centric" here since that's what I'm
working. Maybe a nicer generic solution is to have a standard file
select in the minibuffer with completion when there is no file
name. Just hit enter then to select dired at that directory or "i TAB"
for index.org for example (I use icicles completion here). Not serious
or must have but maybe nice to have at some time.





___
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] suggestion - follow-link

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

> On Jul 18, 2008, at 10:29 AM, Richard G Riley wrote:
>
>>
>> I would like to suggest that follow link (C-c C-o) defaults to
>> "index.org" when the link is merely a directory. e.g I prefer my links
>> to be without the "index.html/org" part ,"./projects/", so that
>> "index.html" does not appear in the address bar when browsing the
>> published project. At present it will open dired in that directory.
>
> I do not want to give up that link into dired while working in
> Emacs - and I believe upon exporting, the link will end up pointing
> to the directory, which in HML will read index.html.
>
> - Carsten

Yes, without the specific file, the browser will indeed default to
index.html. This is a standard - and what I use. It just means C-C C-o
does not open the link to the file. But if people prefer dired to come
up on such a link I can see that might be beneficial to some too.



___
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] Possible bug rendering html lines

2008-07-18 Thread Richard G Riley

#+HTML: 
  [[../images/mode.gif]]
#+HTML: 


produces this as the html export:







Am I missing some sort of escape requirements?

6.06pre1


___
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] suggestion - follow-link

2008-07-18 Thread Richard G Riley

I would like to suggest that follow link (C-c C-o) defaults to
"index.org" when the link is merely a directory. e.g I prefer my links
to be without the "index.html/org" part ,"./projects/", so that
"index.html" does not appear in the address bar when browsing the
published project. At present it will open dired in that directory.




___
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] Following HTML link from org-mode in existing w3m

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

> Manish <[EMAIL PROTECTED]> writes:
>
>>   > I wish that that the html: link in org-mode can be opened in an
>>   > existing w3m window. Is this possible?
>>
>> Should be, it's Emacs after all.  Try customizing group browse-url.
>
> I use this:
>
> (setq browse-url-browser-function 'w3m-browse-url)

You might also be interested in this

(global-set-key
 (quote [f4])
 (lambda()
   (interactive)
   (cond 
((setq url (w3m-url-valid (w3m-anchor)))
 (browse-url-firefox url)) 
(t (command-execute 'browse-url-firefox)

(setq browse-url-browser-function 'w3m-browse-url)


Here I can open a "link" in an html email/post in external firefox using
F4 but standard return is w3m. There are many pages where w3m doesn't
cut the mustard. The "cond" statement above extracts the url from a
formatted link in an html article/mail in a w3m/gnus-html buffer.



___
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] exporting src as html

2008-07-17 Thread Richard G Riley

[EMAIL PROTECTED] (Jason F. McBrayer) writes:

> Carsten Dominik <[EMAIL PROTECTED]> writes:
>
>> Hi,
>>
>> do any of the HTML gurus on this list have an opinion on the
>> additional div for specific source examples?
>>
>
> Instead of doing something like this:
> 
>   
> (psychoanalyze-pinhead)
>   
> 
>
> you should do something like this:
>
> 
>   (psychoanalyze-pinhead)
> 
>
> Both the src and src-emacs-lisp classes will get applied to that div.

Yes, but end result the same. I think it's a nice addition to be able to
customise different src types ones self.



___
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] Timestamps for publishing

2008-07-17 Thread Richard G Riley

Would it be possible for the timestamps of #+included files to be taken
into account when publishing?

thanks,
r.




___
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] exporting src as html

2008-07-14 Thread Richard G Riley

Carsten Dominik <[EMAIL PROTECTED]> writes:

> How about adding
>
>   .src { overflow:auto }
>
> to the CSS style definitions?  Is that what you are looking for?  It
> seems to me that a scroll bar is better than wrapping, because source
> code is usually formatted the way it is for a reason.
>
> - Carsten

Yes, this is a good idea ( I didnt know of the overflow property to be
honest).

But I would still suggest one tiny amendment - the export could also wrap
source code in a src type specific div in addition to the general src
div. Hence we can easily add CSS information specific to the stated src
type in addition to the base src class.

e.g 

where I have in my org file:

#+INCLUDE: "~/.emacs.d/init.el" src emacs-lisp

the resulting html is



..
..

or something similar which someone more experienced with CSS can
recommend.

cheers,

r.

>
> On Jul 12, 2008, at 11:07 AM, Richard G Riley wrote:
>
>>
>> is it possible to tell the exporter to wrap src code? e.g in this
>>
>> ,
>> | #+HTML: 
>> | #+INCLUDE: "~/.emacs.d/init.el" src emacs-lisp
>> | [[../][Back]]
>> | #+HTML: 
>> `
>>
>> some lines in the htmlized source code extends out beyond the
>> containing
>> div.
>>
>>
>>
>>
>>
>> ___
>> 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] html publish/export

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

> On Jul 14, 2008, at 9:18 AM, Richard G Riley wrote:
>
>>
>> Is it possible for the publish functions to work without actually
>> opening published files into buffers? I get a lot of buffers opening
>> and
>> closing and often disappearing altogether (ie closed) after a
>> publish -
>> even though I was in that file and editing it before I published. In
>> addition, opening the files into "visible" buffers triggers mode
>> specifics to kick in like nxhtml mode which significantly increases
>> the
>> publish time. Is it necessary?
>
> Hi Richard,
>
> I don't the why you'd want to hand-edit a file that is automatically
> created
> by the publishing process, so I don't really understand that part.

I meant it opens the other project org files as buffers. In addition, I
guess it creates temporary "real buffers" for its exported html files -
it is these that trigger the nxhtml load etc.

Frequently the org file I was editing when I publish is closed by the
publish functions.

>
> I guess we could avoid setting nxhtml mode for the created files and
> remove the buffers when publishing.
>
> - 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


[Orgmode] html publish/export

2008-07-14 Thread Richard G Riley

Is it possible for the publish functions to work without actually
opening published files into buffers? I get a lot of buffers opening and
closing and often disappearing altogether (ie closed) after a publish -
even though I was in that file and editing it before I published. In
addition, opening the files into "visible" buffers triggers mode
specifics to kick in like nxhtml mode which significantly increases the
publish time. Is it necessary?

Thanks.

r.




___
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] exporting src as html

2008-07-12 Thread Richard G Riley

is it possible to tell the exporter to wrap src code? e.g in this

,
| #+HTML: 
| #+INCLUDE: "~/.emacs.d/init.el" src emacs-lisp
| [[../][Back]]
| #+HTML: 
`

some lines in the htmlized source code extends out beyond the containing
div.





___
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] publish - date format

2008-07-11 Thread Richard G Riley

Is it possible to change the exported date format for the html timestamp
in the postamble and other places?

It is currently in the form 02:15:03 PM, but I would like it in 24
hour. I tried to modify 'calendar-time-display-form but that did not
work.



___
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] C-c C-o on link to [gnus:gmane.comp.compilers.free-pascal.general#****** open a new Emacs frame (window)

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

> On Jul 6, 2008, at 11:56 AM, Csányi Pál wrote:
>
>> Hello!
>>
>> I have a link that are pointed to a gnus: article.
>>
>> When I do C-c C-o to open that link, a new Emacs session in a new
>> Frame being opened, but I have already opened a Gnus session in
>> Emacs.
>>
>> Can I, and if can, how to setup so, so this link shall to be opened in
>> the same Emacs frame but in another buffer?
>>
>> Any advices will be appreciated!
>
> Take a look at the variable org-link-frame-setup and substitute the
> value
> gnus-other-frame with a function that does what you want.  I don't know
> which function that would be, but probably there is one that does what
> you want.


"Gnus" does the job.


___
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] can't make org-publish do anything

2008-07-05 Thread Richard G Riley



Carsten Dominik <[EMAIL PROTECTED]> writes:

> I just pushed this change, thanks!
>
> - Carsten

Aha, this is what caused my problem before I followed your suggestions
and

(setq org-publish-use-timestamps-flag nil)

Just got the git-head and it works fine now.

Just one little usability tweak would be nice - when it does not publish
anything because of timestamps then log a message in the status bar to
that affect.

>
> On Jul 4, 2008, at 3:50 PM, Dan Davison wrote:
>
>> On Sat, Jul 05, 2008 at 12:04:48AM +0200, Sebastian Rose wrote:
>>> Hi Dan,
>>>
>>> org-publish-to-html is the default as I look in the code ...
>>>
>>> Sorry.
>>>
>>> When I put the value of your org-publish-projects-alist into my
>>> own one and evaluate it, it works here. So maybe Manish was on
>>> the right track, hopefully.


___
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

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

> On Jul 4, 2008, at 8:28 AM, Richard G Riley wrote:
>
>>
>> I would like to suggest that
>>
>> C-c C-e P  "Publish the project containing the current file." also
>> publishes any projects which contain that project. e.g I have a
>> "container project"
>>
>>  ("cv"
>>   :components ("cv-html" "cv-raw")
>>   )
>>
>> This would mean one doesn't have to manually select org-publish and
>> then
>> enter "cv" to publish the entire project. One can do it using hot keys
>> from any file within cv-html or cv-raw.
>
> But if you have changed only a file in a sub project, what is the need
> for publishing the container?
>
> - Carsten

But what if I have changed more than one file? Which (in my case is
typical). Since the timestamps are now working better there is no real
transfer overhead.




___
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-publish

2008-07-04 Thread Richard G Riley

I would like to suggest that 

C-c C-e P  "Publish the project containing the current file." also
publishes any projects which contain that project. e.g I have a
"container project"

("cv"
 :components ("cv-html" "cv-raw")
 )

This would mean one doesn't have to manually select org-publish and then
enter "cv" to publish the entire project. One can do it using hot keys
from any file within cv-html or cv-raw.



___
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] Publishing webs using org

2008-07-03 Thread Richard G Riley

I have a setup containing something like this:

(setq org-publish-project-alist
  '(
("cv-text"
 :base-directory "~/cv/"
 :base-extension "org"
 :publishing-directory "/ssh:[EMAIL PROTECTED]:~/webs/rr/cv/"
 :recursive t
 :section-numbers nil
 :publishing-function org-publish-org-to-html
 :style ""
 :table-of-contents t
 :auto-preamble t
 :auto-postamble t
 )
("cv-css"
 :base-directory "~/cv/"
 :base-extension "css"
 :publishing-directory "/ssh:[EMAIL PROTECTED]:~/webs/rr/cv/"
 :publishing-function org-publish-attachment)
("cv"
 :components ("cv-text" "cv-css")
 )
)
)

The only way I could see to have the publish transfer the CSS was to
create a seperate project and publish the cv-text and cv-css as
components of the cv project.

I would like to suggest that the org-publish-org-to-html defaults to
including other file types such as css. Or possibly there should also be
a "me too" setting which includes all files of a certain type or name
during a publish using whichever publish method.




___
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] Include files on export

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

> On Jul 2, 2008, at 12:10 PM, Richard G Riley wrote:
>>
>> Could I suggest a different approach?
>>
>> Possibly have a parameter which is a prefix text on the include line?
>>
>> e.g
>>
>> #+INCLUDE: "~/docs/cv/references/cpd.org" :prefix " + "
>
> Yes, this is the better solution, but you need two different prefixes,
> one for the first line and one for the others in order to make items
> work.
>
> I don't think it is perfect yet, because the indentation has to be
> specified by hand and will fail if you promote or demote the list.
> Still, useful, thanks a lot.
>
> Its up in the git repo.
>
> - Carsten

Is there no way to just to allow #+include anywhere on a line?

(also, I solved the link query from another psot by using C-u C-c C-l -
possibly the links section of the info file could be clearer). I missed
the need to use the file: specifier.




___
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] publishing relative org links to html

2008-07-02 Thread Richard G Riley

I have a line like this in my cv.org file

  + [[./references/cpd.org][Reference]]

But when I publish it as HTML the link on the html page says:

http://siteaddress/cv#./references/cpd.org

So it seems to think the link is internal to a bookmark on the same
page. I guess some setting is wrong?

I expected the link to be

"./references/cpd.html"




___
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] Include files on export

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

> On Jul 2, 2008, at 11:21 AM, Richard G Riley wrote:
>
>>
>> How can I include text into a sub level e.g an unordered list? I
>> really
>> dont want to inclide the list delimiter in the text file itself since
>> this text can be included elsewhere too.
>>
>> + Title
>>  + list item 1
>> #+INCLUDE: "~/docs/cv/references/cpd.org"
>>
>> here I want the include to be list item 2.
>
> This is untested.
>
> In .emacs
>
> (require 'org-eval)
> (defun org-include-as-list-item (file ind bullet)
>   "Include FILE with indentation IND and BULLET into the current file"
>   (let ((i1 (concat (make-string ind ?\ ) bullet " "))
>   (i2 (concat "\n" (make-string (+ 2 ind) ?\ )))
>   (text (with-temp-buffer
>   (insert-file-contents file)
>   (buffer-string
> (concat "\n" i1 (mapconcat 'identity (org-split-string text "\n")
> i2)
>   "\n")))
>
> In the Org file:
>
>
>
> * test
>
> + Title
>  + list item 1
>(org-include-as-list-item "inc.ttt" 10 "+")
>
>
> HTH
>
> - Carsten

Could I suggest a different approach?

Possibly have a parameter which is a prefix text on the include line?

e.g

#+INCLUDE: "~/docs/cv/references/cpd.org" :prefix " + "

The you dont need to hard code bullets and indentation. There is
probably a more suitable syntax than above.




___
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] Include files on export

2008-07-02 Thread Richard G Riley

How can I include text into a sub level e.g an unordered list? I really
dont want to inclide the list delimiter in the text file itself since
this text can be included elsewhere too.

+ Title
  + list item 1
#+INCLUDE: "~/docs/cv/references/cpd.org"

here I want the include to be list item 2.




___
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] Publishing org files : index

2008-06-26 Thread Richard G Riley

Should the auto generated index.org and index.html (auto-index t) not
pick up the #title property for included pages as the link text?



___
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] Websites published with org-publish

2008-06-23 Thread Richard G Riley

I would be grateful if people might send me a link to any site or part
of a site that they maintain using org-publish along with any
suggestions of potential pit falls. Ideally where a web site
sub-component is maintained with org and then published as an "include"
for a bigger site. But any and all examples gladly received.




___
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

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

> On Jun 22, 2008, at 5:27 PM, Manish wrote:
>
>>  Nick>>> I have a minimal setup that works fine for me. Here is the
>> relevant
>>  Nick>>> section from my org initialization file, which gets loaded
>> from .emacs:
>>  Nick>>>
>>  Nick>>> ;;; org-publish
>>  Nick>>> (setq org-publish-project-alist
>>  Nick>>>'(("status"
>>  Nick>>>   :base-directory "~/lib/status/weekly"
>>  Nick>>>   :publishing-directory "/ssh:[EMAIL PROTECTED]:~/
>> public_html/logs"
>>  Nick>>>   :publishing-function org-publish-org-to-html
>>  Nick>>>   :headline-levels 3
>>  Nick>>>   :section-numbers nil
>>  Nick>>>   :table-of-contents nil
>>  Nick>>> ; :style nil
>>  Nick>>>   :auto-preamble t
>>  Nick>>>   :auto-postamble nil
>>  Nick>>>   )))
>>  Nick>>>
>>  Nick>>> (require 'org-publish)
>>
>>  Manish>> I have similar settings but I still do not get any output.
>> Any
>>  Manish>> ideas what I can check or what other debug information can I
>>  Manish>> provide?
>>  Manish>>
>>  Manish>> Any thoughts appreciated.
>>
>>  Carsten> Have you tried
>>  Carsten>
>>  Carsten> (setq org-publish-use-timestamps-flag nil)
>>  Carsten>
>>  Carsten>
>>  Carsten> ?  Maybe you have not changed the input files for a while,
>> and Org thinks
>>  Carsten> they have already been published..
>>
>> Works perfectly now!
>>
>> What is curious is that it did not work earlier even when the
>> files were modified and saved.  But now it works not just after
>> setting this to nil (publish irrespective of modified time) but
>> publishes correctly with t after the files are modified as it
>> should (it did not work earlier, I swear.)
>
> I guess this means that the tree with the timestamps directory ~/.org-
> timestamps
> was somehow bad, did contain wrong times or was corrupt in another way.
>
> - Carsten

Could I request that this directory is moved to org-directory?


___
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

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

> Have you tried
>
> (setq org-publish-use-timestamps-flag nil)
>
>
> ?  Maybe you have not changed the input files for a while, and Org
> thinks they have already been published..


That fixed it. I had never published before and my first query of this
variable says it did not exist ...


___
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

2008-06-21 Thread Richard G Riley
Manish <[EMAIL PROTECTED]> writes:

> On Sat, Jun 21, 2008 at 5:40 PM, Richard G Riley wrote:
>> Manish  writes:
>>
>>>   On Sat, Jun 21, 2008 at 6:57 AM, Richard G Riley wrote:
>>>   >
>>>   > I am trying to use org-publish
>>>   >
>>>   > I have defined
>>>   >
>>>   > (setq org-publish-project-alist
>>>   >  '(("RgrBlog"
>>>   > :base-directory "/home/rgr/.emacs.d/org-files/"
>>>   > :publishing-directory "~/webs/rgr/public_html/org-publish/"
>>>   > :section-numbers nil
>>>   > :author "rgr"
>>>   > :table-of-contents t
>>>   > :style ">>   > href=\"stylesheet.css\"
>>>   > type=\"text/css\">")))
>>>   >
>>>   > But when I call org-publish I get nothing. Obviously I have missed
>>>   > something obvious (the directories are correct) since no files appear at
>>>   > all.
>>>
>>> I have also been trying to make this work and have a similar setup.
>>> Not sure if this will help in your case but try adding:
>>>
>>>:publishing-function org-publish-org-to-html
>>>
>> Did this work for you? It made no difference in my case.
>
> Actually, no.  The reason I mentioned it was because it seemed to
> be a required setting.  I suspect it's not working for me because
> of some conflicting settings somewhere (been frobbing with my
> setup lately.)  I am sorry it didn't work.  Sorry for the noise.
>
> -- Manish

Could someone who uses org-publish possibly post their setting for this
variable and possibly a subset (including header) of a published file?



___
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-publish

2008-06-20 Thread Richard G Riley

I am trying to use org-publish

I have defined

(setq org-publish-project-alist
  '(("RgrBlog"
 :base-directory "/home/rgr/.emacs.d/org-files/"
 :publishing-directory "~/webs/rgr/public_html/org-publish/"
 :section-numbers nil
 :author "rgr"
 :table-of-contents t
 :style "")))

But when I call org-publish I get nothing. Obviously I have missed
something obvious (the directories are correct) since no files appear at
all.

Any help much appreciated.




___
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] Summer plans

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

> Hi everyone,
>
> the summer is near, and I thought I'd share my schedule for this time.
>
> Org-mode 6.05 is out, and so far there have been no reports of
> problems with it.  I just updated Emacs CVS to 6.05a, so that is now
> also current.  I feel this may be the version that can get us all
> through the summer.  I can still fix minor quibbles in the coming days
> though.
>
> After that, on June 26, I'll be going to the States for nine long
> weeks.  During the first five weeks I will be in the San Francisco Bay
> Area, to be precise in Mountain View, California, to work at the NASA
> Ames Research Center there.   Any Emacs/Org geeks in the region?  I
> sure would enjoy some company for a dinner during that time.
>
> Work-wise I will be busy and may not have much time for keeping up
> with this list.
>
> The 4 week after that I will be totally out of reach, walking down the
> wild, so to speak.  Hopefully some of the more advanced users can hang
> out here and keep this place running, answer questions and maybe even
> collect pointers to the bug reports and to the most interesting ideas
> from the list.  This would save me from having to go through the
> entire back log when I get back.  Nobody is stopping you from
> developing patches either :-)
>
> This has been another great year with you all.  Thanks so much for
> your kindness, enthusiasm, and attention to detail.


What has impressed me the most is the steady stream of improvements
which have not, in any way, impinged on the basic simplicity of the
org-mode basics. You have done a wonderful job of keeping everything
consistent and true to the original concepts. Enjoy your trip!


___
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: icalender export: limited number of repeated events

2008-06-17 Thread Richard G Riley
knubee <[EMAIL PROTECTED]> writes:

>> However, I did not know that the icalendar format actually supported
>> something like UNTIL in the RRULE line.  So maybe we could teach the Org
>> exporter a syntax for this and export it properly.  However, I don't
>> have a good idea for a syntax, and not much time to implement it now.
>
> ok. it does seem like a fairly standard thing to do with calendars (ie, to 
> have
> repeating events that end after a certain number -- or after a certain date).
> perhaps, in the future, it is worth implementing something that allows 
> org-mode
> user to specify something lik:
>
> SCHEDULED: <2008-06-01 Sun +1w~10> ;repeats until 10 weeks after starting date
>

Possibly easier to bracket the extensions to the commonly understood
date syntax.


SCHEDULED: <2008-06-01 Sun +1w [*10]>  ; 10 times at weekly intervals

> or
>
> SCHEDULED: <2008-06-01 Sun +1w~2008-08-03> ;repeats until august 3

SCHEDULED: <2008-06-01 Sun +1w [->2008-08-03] > ;repeats upto and
including until august 3

>
> the actual symbols ("~") and syntax used above are probably bad, but hopefully
> it captures the idea.
>
>> - When you are done, share this with us!
>
> it may be a bit beyond my abilities, but if i get something to work, i will
> share it ;-)
>
>
>
> ___
> 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: insert todo from agenda?

2008-06-15 Thread Richard G Riley
Manish <[EMAIL PROTECTED]> writes:

> May be I misunderstood but it seems following setup
> does all that you want (and more).
>
> Please see below.
>
> ,[ Relevant setup ]
> | (defun my-start-clock-if-needed ()
> |  (save-excursion
> |(goto-char (point-min))
> |(when (re-search-forward ":CLOCK-IN:" nil t)
> |   (replace-match "")
> |   (org-clock-in
> |
> | (setq org-remember-templates
> |   (quote
> |(
> | ("Client1 Task" ?g "* NEWTASK %? %^g %&\n  SCHEDULED: %t\n
> :CLOCK-IN:\n  CREATED: %U\n"  "~/org.git/client1.org" "Unprocessed
> Tasks")
> | ("Client2 Task" ?G "* NEWTASK %? %^g %& \n  SCHEDULED: %t\n
> :CLOCK-IN:\n  CREATED: %U\n"  "~/org.git/client2.org" "Unprocessed
> Tasks")
> | ("Personal Tasks" ?p "* NEWTASK %? %& \n  SCHEDULED: %t\n
> :CLOCK-IN:\n  CREATED: %U\n"  "~/org.git/personal.org" "Unprocessed
> Tasks")
> | ("Appointment @ Client1" ?a "* APPT %? %& \n  SCHEDULED: %^{At:
> }T\n  :CLOCK-IN:\n  CREATED: %U\n"  "~/org.git/client1.org" "New
> Appointments")
> | ("Appointment @ Client2" ?A "* APPT %? %& \n  SCHEDULED: %^T{At:
> }\n  :CLOCK-IN:\n  CREATED: %U\n"  "~/org.git/client2.org" "New
> Appointments")
> | ("Notes" ?n "* %?\n  %a\n  CREATED: %U\n"  "~/org.git/notes.org" 
> "Notes")
> | ("Journal" 106 "\n* JOURNAL Entry at %U\n  %?"
> "~/org.git/journal.org" "Journal")
> |   )))
> `
>
> This setup:
>
> - schedules the task by default for today (%t)

The Agenda insert should set the date and time to the date and time
under the cursor so I dont think this is the same thing being requested.


___
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: insert todo from agenda?

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

> On Jun 15, 2008, at 9:01 PM, Cezar Halmagean wrote:
>
>> knubee <[EMAIL PROTECTED]> writes:
>>
>>> This seems like an obvious question, but I haven't been able to
>>> find an answer.
>>>
>>> Is there a simple command for entering a new TODO item from the
>>> agenda view?
>>> (something analogous to "i d" for inserting a diary entry)
>>>
>>> If not, how do people quickly enter new scheduled/deadline TODO
>>> items?
>>>
>>
>> I'd like to see this feature too as I am alwas in my agenda buffer.
>>
>> As people do it now is by using remember.
>
> What could be better than remember for this purpose?
>
> - Carsten

I think that, if I understand the issue, from the agenda it would be
nicer for a default action to insert with the scheduled date defaulted
to the day which has focus.


___
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: Org-mode version 6.04c : org-remember

2008-06-08 Thread Richard G Riley
Thomas Baumann <[EMAIL PROTECTED]> writes:

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> t
>>
>> Thomas Baumann <[EMAIL PROTECTED]> writes:
>>
>>> Ooops,
>>>
>>> (fboundp 'use-region-p)
>
> please check if you can customize "use-empty-active-region" and if so,

Of course not since its not not defined :-;

> set it to nil (the default in emacs23). please also check whether you
> have undefined this variable somewhere in your settings (how does it
> look like if you run emacs -Q)

I do not have it. It is not defined.

> The error seems to be unrelated to org-mode, but has to be somewhere in
> use-region-p which is part of emacs. There are many, many calls to
> use-region-p from different packages so it might also be your settings
> or your lisp-files being mixed up. After checking all this, you might
> want to consider to file a bug report to the emacs-list.
>
> A temporary workaround is to set the variable in your .emacs

I did this:

(setq use-empty-active-region nil)

and it now works.

>
> 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


___
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: Org-mode version 6.04c : org-remember

2008-06-08 Thread Richard G Riley

t

Thomas Baumann <[EMAIL PROTECTED]> writes:

> Ooops,
>
> (fboundp 'use-region-p)
>
>
>
> ___
> 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: Org-mode version 6.04c : org-remember

2008-06-08 Thread Richard G Riley
Thomas Baumann <[EMAIL PROTECTED]> writes:

> seems to have something to do with org-region-active-p.
>
> I do not have any old emacs sitting around could you please check the
> result of 
>
> (fbound 'use-region-p)
>
> use-empty-active-region was introduced for emacs23, I think

Debugger entered--Lisp error: (void-function fbound)
  (fbound (quote use-region-p))
  eval((fbound (quote use-region-p)))
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp)



___
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: Org-mode version 6.04c : org-remember

2008-06-08 Thread Richard G Riley
Thomas Baumann <[EMAIL PROTECTED]> writes:

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> If I call org-remember with text hilited I get "and: Symbol's value as
>> variable is void: use-empty-active-region".
>>
>> Can someone suggest what I might have wrong here?
>
> I assume you are marking a region with "active region highlighting"
> set. How does your remember template look like? 

It happens before I select a template. It's when org-remember is called.

>
> Could you please post the output of the debugger/backtrace?  What
> version of emacs?

22.2.1

Debugger entered--Lisp error: (void-variable use-empty-active-region)
  (or use-empty-active-region (> (region-end) (region-beginning)))
  (and transient-mark-mode mark-active (or use-empty-active-region (> ... ...)))
  use-region-p()
  org-region-active-p()
  org-remember(nil)
  call-interactively(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


[Orgmode] Org-mode version 6.04c : org-remember

2008-06-08 Thread Richard G Riley

If I call org-remember with text hilited I get "and: Symbol's value as
variable is void: use-empty-active-region".

Can someone suggest what I might have wrong here?




___
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] firefox urls

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

> On May 21, 2008, at 3:49 AM, John Rakestraw wrote:
>
>> On Tue, 20 May 2008 16:46:37 -0400
>> Nick Dokos <[EMAIL PROTECTED]> wrote:
>>
>>> when bzg/org-annotation-helper calls org-remember with argument ?w, I
>>> expect this template to pop up in a *Remember* buffer. Instead, I get
>>> asked which template I want to use (I have three more templates in
>>> org-remember-templates).
>>
>> I get the same thing -- in fact, org-annotation-helper has *never*
>> forced the selection of the template for me in the months I've been
>> using it; I've always had to select it by pressing "w". Even more
>> puzzling (to me, anyway), is that occasionally when I press "w" the
>> first time, I get nothing, but when I press it the second time, I get
>> the template, complete with a "w" keyed in at point.
>
> This seems to be a bug in org-annotation-helper.el.
> org-remember must be called like this:

> (org-remember nil ?w)
>
> instead of like this:
>
> (org-remember ?w)

When I tried this, then I get prompted for no templates (good) but there
is no url inserted either.

Has anyone else had success following Nick's new instructions to get
this working? I just tried from scratch and am seeing the same issues.


___
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] firefox urls

2008-05-21 Thread Richard G Riley
Nick Dokos <[EMAIL PROTECTED]> writes:

> Daniel M German <[EMAIL PROTECTED]> wrote:
>
>>  >> 
>>  >> Hi Alan,
>>  >> 
>>  >> Did you download the file as I indicated in my previous message? It has
>>  >> detailed instructions on how to get all the pieces working.
>>  >> 
>>  >> --dmg
>> 
>>  Richard> I followed the instructions but I cant get it working.
>> 
>>  Richard> Are the instructions for adding 2 bookmarklets lacking since
>>  Richard> it only really describes remember protocol? (Step 2).
>> 
>>  Richard> Step 3 only mentioned the remember handler. Should there also be an
>>  Richard> annotate handler?
>> 
>> 
>> Start by doing remember first. Are you able to get the remember command
>> line script (what I call the handler) working? Try it from the command
>> line.
>> 
>> I suspect your javascript bookmarklet is not passing the info of the
>> page correctly. I would double check that first.
>> 
>> --dmg
>> 
>> 
>>  Richard> I dont think I did anything too silly and wonder if anyone else 
>> managed
>>  Richard> to install this properly? Currently when I click on the remember
>>  Richard> bookmarklet the pane empties and emacs prompts me for a template 
>> type
>>  Richard> but then does not insert the link. It just inserts "about:blank" 
>> as the
>>  Richard> link.
>> 
>
> I think part of the problem is that the comments are inconsistent:
>
> Step 1 (and Daniel, in the mail above) talks about the "remember"
> script, while the script itself and Step 3 talk about the
> "org-annotation-helper" script.
>
> Here is an attempt at clarification: it's mostly minor edits but there
> are enough of them that I thought I'd send out the whole thing rather
> than a patch. It is still very much oriented towards Linux.
>
> However, I have problems with how the remember template works, so the
> description below is fuzzy, perhaps incomplete, perhaps wrong.

I still get prompted for a template type. Is there no way for the
bookmark code to auto select a "Bookmarks" template type?

>
> With this caveat, Richard, can you try these steps out and see if they
> work/make sense? If this is deemed OK, then maybe it can replace the
> comment section in org-annotation-helper.el, after the requisite additions/
> corrections/deletions are made.
>
> Regards,
> Nick
>
> ---
> [Debugging notes - skip ahead if not interested]
>
> Assuming I have defined a remember template like this:
>
>(?w "* %u %c \n\n%i" "~/lib/org/bookmarks.org" "Web links")
>
> when bzg/org-annotation-helper calls org-remember with argument ?w, I
> expect this template to pop up in a *Remember* buffer. Instead, I get
> asked which template I want to use (I have three more templates in
> org-remember-templates). When I say "w" and force the choice, the
> contents of the buffer are not what I expect: I get the time stamp from
> %u, and the link from %c, but *not* the selection from %i. I uncommented
> the echo in the script and the browser is passing the selection to the
> script correctly. I also single-stepped through
> bzg/org-annotation-helper, which sets the :region property of the link
> to the selection like so:
>
>   (org-store-link-props :type type
> :link url
> :region region
> :description title)
>
> but somehow that seems to get dropped on the floor afterwards. Maybe a
> bug in org-remember? I 'm under the (possibly erroneous?) impression
> that we should be going through the if-true path of the following code
> in org-remember (as shown by the arrow):
>
> ...
> ;; `org-select-remember-template'
> (setq org-select-template-temp-major-mode major-mode)
> (setq org-select-template-original-buffer (current-buffer))
> (if (eq org-finish-function 'org-remember-finalize)
> ?---> (progn
> (when (< (length org-remember-templates) 2)
>   (error "No other template available"))
> (erase-buffer)
> (let ((annotation (plist-get org-store-link-plist :annotation))
>   (initial (plist-get org-store-link-plist :initial)))
>   (org-remember-apply-template))
> (message "Press C-c C-c to remember data"))
>   (if (org-region-active-p)
> (org-do-remember (buffer-substring (point) (mark)))
>   (org-do-remember))
>
> but org-finish-function is nil in this case, so we fall through to the
> org-do-remember at the end.
>
> [end of debugging notes]
> ---
>
> ;; We want to be able to pass a URL and document title directly from a
> ;; web browser to Emacs.
> ;;
> ;; We define a remember:// url handler in the browser and use a shell
> ;; script to handle the protocol.  This script passes the information
> ;; to a running Emacs process (using emacsclient/gnuclient).  We use 
> ;; bookmarklets to create the remember:// urls dynamically.
> ;;
>

Re: [Orgmode] firefox urls

2008-05-20 Thread Richard G Riley
Daniel M German <[EMAIL PROTECTED]> writes:

>  Alan> Speaking for myself, I haven't been able to grok this item.  I think 
> there are
>  Alan> at least three code bits, and some other chunks in here.  A shell 
> script, some
>  Alan> elisp, and some javascript?  Also, I do not understand what is the
>  Alan> bookmarklet.  I know what a bookmarklet is. 
>
> Hi Alan,
>
> Did you download the file as I indicated in my previous message? It has
> detailed instructions on how to get all the pieces working.
>
> --dmg

I followed the instructions but I cant get it working.

Are the instructions for adding 2 bookmarklets lacking since
it only really describes remember protocol? (Step 2).

Step 3 only mentioned the remember handler. Should there also be an
annotate handler?

I dont think I did anything too silly and wonder if anyone else managed
to install this properly? Currently when I click on the remember
bookmarklet the pane empties and emacs prompts me for a template type
but then does not insert the link. It just inserts "about:blank" as the
link.




___
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] firefox urls

2008-05-12 Thread Richard G Riley

Are there any add-ons anything to yank urls from firefox/iceweasel
directly into a certain org-mode category?


___
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 and Muse

2008-04-21 Thread Richard G Riley

I just dug out some old Muse documents I had and am now wondering what
overlap exists, if any, between Muse and Org. As a committed Org user
should I migrate these Muse projects to Org projects?  Any thoughts
appreciated. Possibly I have the wrong end of the stick with regard to
org publishing and the two should live together?



___
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] appointments

2008-04-15 Thread Richard G Riley

Hi,

I think this is probably a bug for default. Or is this because
"cancelled" isnt really a "finished" todo state? Using 6.0pre1 cancelled
appts are still being prompted. Here is the relative section from my
diary file (org file) and the code I use :

org file:

,
| * Diary Entries
| ** CANCELED <2008-04-15 Tue 19:50> do this
|CLOSED: [2008-04-15 Tue 19:46]
|- State "CANCELED"   [2008-04-15 Tue 19:47]
|- State "DONE"   [2008-04-15 Tue 19:46]
|- State "WAIT"   [2008-04-15 Tue 19:46]
`

code:

,
| ;; Get appointments for today
| (defun my-org-agenda-to-appt ()
|   (interactive)
|   (setq appt-time-msg-list nil)
|   (let ((org-deadline-warning-days 0)) ;; will be automatic in org 5.23
| (org-agenda-to-appt)))
| 
| ;; Run once, activate and schedule refresh
| (appt-activate t)
| 
| (my-org-agenda-to-appt)
| (appt-activate t)
| (run-at-time "24:01" nil 'my-org-agenda-to-appt)
| 
|   ; 5 minute warnings
| (setq appt-message-warning-time '15)
| (setq appt-display-interval '5)
| 
|   ; Update appt each time agenda opened.
| (add-hook 'org-finalize-agenda-hook 'my-org-agenda-to-appt)
| 
|   ; Setup zenify, we tell appt to use 
window, and replace default function
| (setq appt-display-format 'window)
| (setq appt-disp-window-function (function my-appt-disp-window))
| 
| (defun my-appt-disp-window (min-to-app new-time msg)  
|   (save-window-excursion (shell-command (concat 
|"/usr/bin/zenity --info 
--title='Appointment' --text='" 
|msg
|"' &"
|) nil nil)
|))
`





___
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 view for logging?

2008-04-10 Thread Richard G Riley
Hello, , Joel J. Adamson! 

Jose Robins <[EMAIL PROTECTED]> writes:

> Joel J. Adamson wrote:
>> Carsten Dominik <[EMAIL PROTECTED]> writes:
>>
>>   
>>> Hi Jose, Manish
>>>
>>> I don't really think that it would be reasonable to make any entry
>>> that contains a string that looks like a time show up in the agenda.
>>> 
>>
>> I think I missed part of this conversation.  If I put
>>
>> ** Wash the dog <2008-04-10 09:56 >
>>
>> in one of my org-agenda-files, it shows up at 9:56 in the agenda
>> time-grid.  Is this not the intended behavior?
>>
>> Joel
>>
>>   
> Yes, that is intended behavior and it works fine. The question was
> whether a time range without a time-stamp would work as
> well. something like...
>
> ** 9:55 am - 10:15 am wash the dog
> - would put this task in "today's" agenda view.
>
> I see Carsten's  point about not wanting to recognize any arbitrary
> text string which looks like a time to be considered a
> "time-of-specification". A possible compromise is to have a string
> which looks like "<10:15-10:30> " to be considered as a task for today
> which appears @ the appropriate time in the agenda view. The beauty is
> that (a) you avoid having to type in extra keystrokes to schedule it,
> (b) no need to clutter with an additional date and (c) if it doesn't
> get done or something, when I do the agenda view tomorrow, it shows up
> there as well and it doesn't get lost.

Better would be a duration rather than an end date/time.


___
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] Gnus journal anyone?

2008-04-01 Thread Richard G Riley

Has anyone out there set up a system to automatically create org entries
to journal outgoing emails to certain individuals? Ideally based on a
bbdb entry  to journal that particular contact?



___
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: editing repeat items

2008-03-30 Thread Richard G Riley

Hi Carsten,

I will try to clarify.

I have a repeat task. Normally, for me, a repeat task will be for a "job
of work" to do at repeated intervals. It however is not the same job of
work. e.g

Every monday at 9am a status meeting. Or in my example ever tuesday a
pub quiz.

I want to be able to annotate each meeting separately so I see the weeks
specifics in the agenda.

e.g

 1st April ** Pub Quiz <2008-03-25 21:30 +1w> This subject
 8th April ** Pub Quiz <2008-03-25 21:30 +1w> Another subject

It could just be being too lazy but I would like the repeat task so that
an agenda for 6 months time has the Pub Quiz entry, but it probably wont
have a specific "subject" in this example.

I did try to add another active date to the original but that didnt work
e.g

   <2008-04-08 Tue> subject1
   <2008-04-12 Tue> subject2


I hope that is a little clearer,

rgds,

r.


Carsten Dominik <[EMAIL PROTECTED]> writes:

> On Mar 30, 2008, at 12:40 AM, Richard G. Riley wrote:
>> Richard G Riley  googlemail.com> writes:
>>> Is there a facility to "unlink" a repeated item from its "repeat"
>>> parent
>>> e.g suppose I have
>>>
>>> ** Pub Quiz <2008-03-25 21:30 +1w>
>>>
>>> But open it on April 1st from the agenda for that week.
>>>
>>> In any particular one week I would like to add a certain tag or
>>> note to
>>> the task for that week only.
>>
>> With no direct solution/answer to this, could someone possibly
>> suggest another
>> approach?
>
> I think there was no answer because your question is not clear.  I for
> one don't
> understand what exactly you want to do, and why you think it is not
> working.
> An entry like the above entry will show up in every week after the
> initial date,
> and you are free to add notes any way you like, at any time.
>
> So obviously I am missing something here.
>
> - 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


[Orgmode] Re: editing repeat items

2008-03-29 Thread Richard G . Riley
Richard G Riley  googlemail.com> writes:
> Is there a facility to "unlink" a repeated item from its "repeat" parent
> e.g suppose I have
> 
> ** Pub Quiz <2008-03-25 21:30 +1w>
> 
> But open it on April 1st from the agenda for that week.
> 
> In any particular one week I would like to add a certain tag or note to
> the task for that week only.

With no direct solution/answer to this, could someone possibly suggest another
approach?



___
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: Displaying a journal.

2008-03-27 Thread Richard G . Riley

I found the solution - use angled brackets in the timestamp.


Richard G Riley  googlemail.com> writes:

> 
> Ideally I would like to include all journal entries for a certain day
> in the normal week/day agenda.




___
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] Displaying a journal.

2008-03-27 Thread Richard G Riley

I have separate org files for different sections. e.g journal.org might
contain

,
| * Journal
| 
| #+CATEGORY: Journal
| ** [2008-03-28 Fri 01:55] Washed the car
| And boy was it hard work!
`

The only way I have found from the agenda to see journal entries is
to do a keyword search.

Ideally I would like to include all journal entries for a certain day
in the normal week/day agenda.

Is this currently possible?

Thanks for any help.

r.


  



___
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] editing repeat items

2008-03-27 Thread Richard G Riley

Is there a facility to "unlink" a repeated item from its "repeat" parent
e.g suppose I have

** Pub Quiz <2008-03-25 21:30 +1w>

But open it on April 1st from the agenda for that week.

In any particular one week I would like to add a certain tag or note to
the task for that week only.


___
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] Dates in agenda

2008-03-27 Thread Richard G Riley

Is it possible to turn off dates being shown for repeated tasks in the
agenda?

e.g I do not want to see the original creation date here on the pub quiz
entry:

,
| Tuesday1 April 2008
|   Shamrock:   21:30.. Pub Quiz <2008-03-25 +1w>
|   Diary:  April Fools' Day
`

Also, lets say I have an item with some notes e.g

,
| ** [2008-03-14 Fri 13:22] semantic completion check for eriks reply 
:@home:Online:emacs:
|SCHEDULED: <2008-03-17 Mon 14:00>
|<2008-03-17 Mon 14:00> Dont forget to remove debug code
|removed all message() calls.
`

I want to add a note without changing TODO state. Is the quickest way
just to move to the end hit "C-c ." then move to next line and type or
is there some sort of "add note" function?

Currently I insert the timestamp manually with "C-c ." hit return and
then TAB to the first column to align with the note aboves timestamp. It would 
be
nice if hitting return automatically did move to the typing column - is
there some more generic emacs way or org way to turn this on?




___
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] mutually exclusive tags

2008-03-26 Thread Richard G Riley

Could someone show me an example of mutually exclusive tag setting in
elisp please? There is an example of non exclusive ones in the manual:

 (setq org-tag-alist '(("@work" . ?w) ("@home" . ?h) ("laptop"
 . ?l)))

But how to do it for

 #+TAGS: { @work(w)  @home(h)  @tennisclub(t) }  laptop(l)  pc(p)
?

thanks,

r.



___
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 options

2008-03-23 Thread Richard G Riley

Should the properties given here

http://orgmode.org/manual/Publishing-options.html#Publishing-options

be applicable in this form:

,
| #+TITLE: Blog
| #+AUTHOR:rgr
| #+EMAIL: rgr
| #+DATE:  <2008-03-23 Sun>
| #+LANGUAGE:  en
| #+TEXT:  Test Blog
| 
| :PROPERTIES:
| :publishing-directory: ~/webs/web1/public_html
| :table-of-contents:nil
| :END:
| 
| * Blog
| 
| #+CATEGORY: Blog
| 
| ** [2008-03-19 Wed 01:40] another blog entry:Personal:
|   
`

I can't seem to set the directory the html gets written to. But I should
be able to do it without using  org-publish-project-alist ?

thanks for any info

r.




___
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] todo items and email

2008-03-23 Thread Richard G Riley

Has anyone any pointers on the best approach to having something like an
automated email from the org system (probably via cron) which emails the
agenda and/or tasks tagged as "emailstatus" or similar on a
daily/hourly/whatever basis?

If my request seems a bit vague it's because it is : I'm interested in
what other people do with org for remote reminders etc. I'm already
looking into cron publishing the agenda to my web site for example.





___
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 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 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] 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


[Orgmode] Add anniversary and org-mode

2008-03-19 Thread Richard G Riley

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.

org-mode 5.23a


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

2008-03-19 Thread Richard G Riley

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


Re: [Orgmode] rcirc (bug?)

2008-03-13 Thread Richard G Riley

Phil Jackson <[EMAIL PROTECTED]> writes:

> Hi Richard,
>
> [ list removed ]
>
> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>>> Hold two, I'm going to make sure this is more robust. I'll post to this
>>> thread when I'm done and you can help me test it if you would.
>
> Please find attached the latest copy. If you could give it a test for me
> I would much appreciate it.
>
> (I'm in #org-mode as 'redpick' if you wanna chat by the way).

I gave it a quick check.

One problem still : It fails if the server buffer exists but the
connection is closed.

It does now work if the buffer is either non existent or is there and
connected.


___
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] rcirc (bug?)

2008-03-13 Thread Richard G Riley
Phil Jackson <[EMAIL PROTECTED]> writes:

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>>>> Both "enter" and "follow link" (C-c C-o) had the same problem.
>>>
>>> I've just put a fix in git for this. Can I ask how you initiate your
>>
>> How do I get it? Or can you post the line here?
>
> Hold two, I'm going to make sure this is more robust. I'll post to this
> thread when I'm done and you can help me test it if you would.
>
>>> session? Is it interactively with erc-select?
>>
>> What do you mean interactively? The only way I know to start erc is with
>> erc-select. Or did you mean was erc already open when I selected the
>> link? If so, then both. Sometime erc is open, sometimes not.
>
> It can be initialised non-interactively like this:
>
>   (erc :server "irc.blah.com"
>:nick   "phil"
>:port   6667))
>
> And :port can be a string or a number which is where this bug comes
> from I think.

Neither, like this:

(defun load-erc()
  (interactive)
  (erc-select :server "irc.oftc.net" :password "**")
  (erc-select :server "irc.gnu.org" :password "**")
)



___
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] rcirc (bug?)

2008-03-13 Thread Richard G Riley

Phil Jackson <[EMAIL PROTECTED]> writes:

> Richard,
>
> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> Both "enter" and "follow link" (C-c C-o) had the same problem.
>
> I've just put a fix in git for this. Can I ask how you initiate your

How do I get it? Or can you post the line here?

> session? Is it interactively with erc-select?


What do you mean interactively? The only way I know to start erc is with
erc-select. Or did you mean was erc already open when I selected the
link? If so, then both. Sometime erc is open, sometimes 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] rcirc (bug?)

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

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> The guys on #emacs kind of laughed at me a while back for using erc -
>> apparently its seen as a bit girly ... rcirc doesnt seem to allow config
>> of multiple servers and channels though so I thought org-mode might be
>> useful for "remembering" servers and channels.
>
> Erc, girlish ??  I wish I'd be mannish enough to use it correctly. 
> Let's fight against G33k poshery!
>
>> (ps I added a todo to write a beginners guide to getting code
>> completion working :-;)
>
> Great :)

FYI, I created a task with a link for erc pointing to freenode/#debian
and when I selected it from my org file I got

"Wrong type argument: stringp, 6667"

(GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2007-12-15 on noname, modified by Debian)

org version 5.23a

The entry was:

,
| :PROPERTIES:
| :CATEGORY: Debian
| :END:
| ** [2008-03-13 Thu 12:11] test
|   
|   [[irc:/heinlein.freenode.net:6667/#debian][irc session 
'heinlein.freenode.net:6667/#debian']]
`

Both "enter" and "follow link" (C-c C-o) had the same 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] Navigation to certain category subset

2008-03-13 Thread Richard G Riley

I have

 (setq org-remember-templates
   (quote (
   (?t "* TODO %?\n  %u\n %i\n %a\n" "~/org/todo.org" "Tasks")
   (?n "* %U %?" "~/org/notes.org" "Notes")
   (?l "* %U %^{Title}\n %i\n %a\n" "~/org/todo.org" "Linux")
   (?d "* %U %^{Title}\n %i\n %a\n" "~/org/todo.org" "Debian")
   (?e "* %U %^{Title}\n %i\n %a\n" "~/org/todo.org" "Emacs")
   (?v "* %U %^{Title}\n %i\n %a\n" "~/org/vocab.org" "Vocab")
   (?R "* %U %^{Title}\n %i\n %a\n" "~/org/register.org" "Register")
   (?w "* %U %^{Title}\n %i\n %a\n" "~/org/webs.org" "Webs")
   (?r "* %U %^{Title}\n %i\n %a\n" "~/org/todo.org" "Remember")
   (?j "* %U %^{Title}\n %i\n %a\n" "~/org/todo.org" "Journal")
   (?L "* %U %^{Title}\n %i\n %a\n" "~/org/todo.org" "Links")
   (?x "* %^{Title}\n %i\n %a\n" "~/org/todo.org" "Links")
   )
  )
   )

Most things stored in todo.org, others in other files.

The sections in the org files are marked with something like:

,
| * Emacs
| 
| :PROPERTIES:
| :CATEGORY: Emacs
| :END:
`


But what is recommended way to navigate to "Emacs" from anywhere?

1) from agenda - is "search for keyword" the way to go?
2) from any other location or mode

I'm still a bit at odds as to whether I should be using categories or
just tags to separate things. is there a "jump to category" or "filter
categories" command? I saw nothing in the categories section of the
manual.

Thanks for any advice,

richard.





___
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: rcirc

2008-03-13 Thread Richard G Riley
Tassilo Horn <[EMAIL PROTECTED]> writes:

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
> Hi Richard,
>
>> rcirc doesnt seem to allow config of multiple servers and channels
>> though so I thought org-mode might be useful for "remembering" servers
>> and channels.
>
> Sure, it does!

Thanks Tassilo! I didn't see that in the
rcirc doc or customization-group. I must check the versions I have (I
already moved back to erc).

>
> (setq rcirc-server-alist
>   '(("irc.freenode.net"
>  :channels ("#rcirc" "#zsh"  "##metaconference" "#gnus" "#emacs"
> "#stumpwm" "#latex" "#xfce" "#org-mode"))
> ("irc.oftc.net"
>  :channels ("#bitlbee"))
> ("localhost"
>  :channels ("&bitlbee"
>
> (setq rcirc-authinfo
>   `(("freenode"  nickserv ,rcirc-default-nick 
> ,th-nickserv-password-freenode)
> ("oftc"  nickserv ,rcirc-default-nick ,th-nickserv-password-oftc)
> ("localhost" bitlbee  ,rcirc-default-nick ,th-bitlbee-password)))
>
> Bye,
> Tassilo


___
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] rcirc

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

> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> Are there any plans to support remembering irc channels using org-mode?
>> e.g a hot link on a todo/remembered item which opens rcirc? I recall
>> planner had links to erc.
>
> Note: org-irc.el fully supports Erc but Phil coded it in a way that the
> support for rcirc should be quite straightforward.  Great if you can
> help on this, because I don't know many rcirc users out there...

Thanks for the info.

I wish I could. Sorry, but elisp is a black art for me for anything but
the most simple things.

Yes, I just checked the code. It only supports erc. Planner already did
that and erc already allows multiple servers and channels to be
registered so I guess there was a good basis for the erc installation
into org-mode. Not to worry. Maybe I can look at it another time or move
back to erc. In fact I should probably question why I moved to rcirc
from erc!

regards

richard.


___
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] rcirc

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

> Hi Richard! 

Hi Bastien :-;

>
> Richard G Riley <[EMAIL PROTECTED]> writes:
>
>> Are there any plans to support remembering irc channels using org-mode?
>> e.g a hot link on a todo/remembered item which opens rcirc? I recall
>> planner had links to erc.
>
> Yes, there is such a plan: org-irc.el, developed by Phil comes with the
> latest org distribution:
>
>   http://orgmode.org/org-5.23a.tar.gz
>
> ... and will surely be part of GNU Emacs soon.

Woohoo! Thanks.

The guys on #emacs kind of laughed at me a while back for using erc -
apparently its seen as a bit girly ... rcirc doesnt seem to allow config
of multiple servers and channels though so I thought org-mode might be
useful for "remembering" servers and channels.

Thanks!

(ps I added a todo to write a beginners guide to getting code completion
working :-;)



___
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] rcirc

2008-03-12 Thread Richard G Riley

Are there any plans to support remembering irc channels using org-mode?
e.g a hot link on a todo/remembered item which opens rcirc? I recall
planner had links to erc.

Thanks for any info.


___
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] Release 5.23a

2008-03-11 Thread Richard G Riley
Xin Shi <[EMAIL PROTECTED]> writes:

> Richard G Riley wrote:
>> Carsten Dominik <[EMAIL PROTECTED]> writes:
>>
>>   
>>> On Mar 11, 2008, at 1:03 AM, Xin Shi wrote:
>>>
>>> 
>>>> Hi,
>>>>
>>>> Thanks for the release!
>>>>
>>>> There is a bug which I got from an Email several weeks ago said it
>>>> has been fixed, but I still found it in the 5.23a.  When export the
>>>> org file to html, emacs opens the .html file in the buffer. Since
>>>> the html file has already been saved, shall we not open it in
>>>> Emacs?  Another reason that this matters to me is that I'm using the
>>>> nXhtml mode, whenever emacs opens the html file, (even in the
>>>> background buffer), it will load this mode and open the *nXhtml
>>>> Welcome* buffer in half window. :)
>>>>   
>>> That is horrible bahavior, and you should start by writing a bug
>>> report to the maintainer of that package
>>> 
>>
>> The nxhtml welcome screen can be turned off in the nxhtml customize
>> group.
>>
>>   
> I found it:
> (setq nxhtml-skip-welcome t)
>
> Thank you all!
>
> Xin

I think its worth pointing out in Lennart's defence that this option is
there, and the welcome screen is there to ensure that the new user sets
the necessary options necessary to regulate nxhtml's workings - it's not
a trivial package. AFAIK the welcome screen has a well flagged "setup"
button and then will not appear again after setting up the required
usage the first time.

I'd also like to add it's one of the best packages out there for anyone
using mix-mode files (e.g a php file containing xhtml, php, js etc)
. The nxml completion works very well. The different mode hiliting is
good. The auto switch between language specific minor modes as you
cursor around is excellent. I had trouble recently with it but it seems
the bugs are pretty much ironed out now.

nxhtml and org-mode are my two main utility packages now.



___
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] Release 5.23a

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

> On Mar 11, 2008, at 1:03 AM, Xin Shi wrote:
>
>> Hi,
>>
>> Thanks for the release!
>>
>> There is a bug which I got from an Email several weeks ago said it
>> has been fixed, but I still found it in the 5.23a.  When export the
>> org file to html, emacs opens the .html file in the buffer. Since
>> the html file has already been saved, shall we not open it in
>> Emacs?  Another reason that this matters to me is that I'm using the
>> nXhtml mode, whenever emacs opens the html file, (even in the
>> background buffer), it will load this mode and open the *nXhtml
>> Welcome* buffer in half window. :)
>
> That is horrible bahavior, and you should start by writing a bug
> report to the maintainer of that package

The nxhtml welcome screen can be turned off in the nxhtml customize
group.



___
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: org-mode and appointments

2008-03-02 Thread Richard G Riley

Russell Adams <[EMAIL PROTECTED]> writes:
v> Ok, so I've got appt working with org, along with Gnome popups with
> zenity to alert me of events.
>
> I wanted to aggregate the advice I'd received into one place, which
> could be posted later to wiki or worg, etc.
>
> I would welcome feedback, as I'm currently vetting this
> configuration. I'll post any updates if I find a problem.
>
> Thanks.

>
> ;;;
> ; For org appointment reminders
>
> ;; Get appointments for today
> (defun my-org-agenda-to-appt ()
>   (interactive)
>   (setq appt-time-msg-list nil)
>   (let ((org-deadline-warning-days 0));; will be automatic in org 5.23
> (org-agenda-to-appt)))
>
> ;; Run once, activate and schedule refresh
> (my-org-agenda-to-appt)
> (appt-activate t)
> (run-at-time "24:01" nil 'my-org-agenda-to-appt)
>
> ; 5 minute warnings
> (setq appt-message-warning-time '15)
> (setq appt-display-interval '5)
>
> ; Update appt each time agenda opened.
> (add-hook 'org-finalize-agenda-hook 'my-org-agenda-to-appt)
>
> ; Setup zenify, we tell appt to use window, and replace default function
> (setq appt-display-format 'window)
> (setq appt-disp-window-function (function my-appt-disp-window))
>
> (defun my-appt-disp-window (min-to-app new-time msg)  
>   (save-window-excursion (shell-command (concat 
> "/usr/bin/zenity --info --title='Appointment' --text='" 
> msg
> "' &"
> ) nil nil)
> ))

I just tried it. Excellent.

BTW, one small problem - when I updated a schedule in the agenda
interface, the agenda file doesn't update in the buffer. Closing it and
reopening it showed the new time.


___
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-agenda-to-appt

2008-03-01 Thread Richard G Riley
Wanrong Lin <[EMAIL PROTECTED]> writes:

> I do it like this:
>
> (run-at-time "0:30am" (* 24 3600) 'org-agenda-to-appt)

Lovely solution. Thanks. I was not aware of the run-at-time function.

>
> This will call org-agenda-to-appt when emacs starts, and, if you never
> exit emacs, it will automatically call org-agenda-to-appt at
> mid-night.


___
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-to-appt

2008-03-01 Thread Richard G Riley

What would be the recommended way to automate a call to org-agenda-to-appt? A 
org mode hook to
call it at start? Any recommendations appreciated.



___
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


  1   2   >