Re: [Orgmode] Easily re-indent the #+OPTIONS lines

2008-01-17 Thread Phil Jackson
Hey Bastien,

Bastien [EMAIL PROTECTED] writes:

 I often fiddle around #+AUTHOR, #+TITLE, and other such lines.  But
 having to re-align them so that it looks better is time-consuming.

 This function does it automatically:

 (defun bzg-org-indent-options ()
   Indent option lines correctly.
   (interactive)
   (save-excursion
 (goto-char (point-min))
 (let ((max-length 0))
   (while (re-search-forward ^#\\+\\([A-Z_]+\\) nil t)
   (if ( (length (match-string 1)) max-length)
   (setq max-length (length (match-string 1)
   (goto-char (point-min))
   (while (re-search-forward ^#\\+\\([A-Z_]+\\):[ \t]*\\(.+\\)$ nil t)
   (replace-match 
(concat #+ (match-string 1) :
(make-string (1+ (- max-length (length (match-string 1 32)
(match-string 2)) t t)

Thanks, really handy. BTW did you know about align-regexp?

 ,
 | (align-regexp (point-min) (point-max) ^#\\+[A-Z_]+:\\( +\\) 1 5)
 `

Dare I say will have a similar affect.

Cheers,
Phil
-- 
 Phil Jackson
 http://www.shellarchive.co.uk


___
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] BUG: column view and HTML export

2008-01-17 Thread Carsten Dominik


On Jan 17, 2008, at 3:18 AM, Bernt Hansen wrote:


Hi Carsten,

I think I've found another bug... (sorry)


No need to say sorry if you provide an exemplary report like you just  
did.

Everybody listen up:  Great example on how to report a bug!

This is fixed for the next release, thanks.

- Carsten




Here's my test case to reproduce the problem:

,[ minimal.emacs ]
| (global-font-lock-mode t)
| (add-to-list 'load-path (expand-file-name ~/git/org-mode))
| (add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
| (require 'org-install)
| (define-key global-map \C-ca 'org-agenda)
| (custom-set-variables
|  '(org-agenda-files (quote (~/org/test.org
| (setq org-use-fast-todo-selection t)
| ;;(org-agenda-list)
`

,[ test.org ]
| #+STARTUP: contents
| * one
| ** TODO one-one
| * Two
|   :PROPERTIES:
|   :COLUMNS:  %40ITEM(Task) %Estimated(Estimated Time){+}
|   :END:
| #+BEGIN: columnview :hlines 1 :id local
| | Task  | Estimated Time |
| |---+|
| | *  Two|  6 |
| | **  TODO Two-one  |  4 |
| | **  TODO Refile me to one |  2 |
| #+END:
|
| ** TODO Two-one
|SCHEDULED: 2008-01-16 Wed
|:PROPERTIES:
|:Estimated: 4
|:END:
| ** TODO Refile me to one
|:PROPERTIES:
|:Estimated: 2
|:END:
`

$ emacs -q -l ~/minimal.emacs test.org

| Key Sequence | Details  |
|--+--|
| C-c C-a  | Display all lines in the org file|
| C-c C-x C-c  | Start column view|
| down arrow   | until you are somewhere inside the table |
| C-c C-e h| Export to HTML (which works) |
| C-c C-e h| Export it again and it fails |
|--+--|

I get the following error after the second export (and any attempts to
export after that)

org-export-as-html: Text is read-only: Type `e' to edit property

Is there any additional information I can provide to help fix this
problem?

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




___
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-refile bug? org-back-to-heading: before first heading

2008-01-17 Thread Carsten Dominik
Same here, excellent report, just took me 5 minutes to find and fix  
the bug, thanks!


- Carsten

On Jan 17, 2008, at 12:32 AM, Bernt Hansen wrote:


Hi Carsten,

I'm playing with org-refile and in some cases it's not working for me.

Here's a test.org file and minimal emacs setup you can try to use to
reproduce the problem.

Org-mode version 5.18a
GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)  
of 2007-11-03 on pacem, modified by Debian


,[ ~/minimal.emacs ]
| (global-font-lock-mode t)
| (add-to-list 'load-path (expand-file-name ~/git/org-mode))
| (add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
| (require 'org-install)
| (define-key global-map \C-ca 'org-agenda)
| (custom-set-variables
|  '(org-agenda-files (quote (~/org/test.org
| (setq org-use-fast-todo-selection t)
`

,[ test.org ]
| #+STARTUP: contents
| * one
| ** TODO one-one
| * Two
| ** TODO Two-one
|SCHEDULED: 2008-01-16 Wed
| ** TODO Refile me to one
`

Now do the following:

$ emacs -q -l ~/minimal.emacs

| Key Sequence   |  
Description 
 |
| 
+ 
-|
| C-a a a| Go to agenda for the  
week   |
| down arrow | Move to scheduled task Two- 
one  |
| RETURN | Go to task in  
test.org  |
| down arrow | Go to task ** TODO Refile me to  
one |
| C-c C-w| org- 
refile  |
| o TAB  | Refile to *  
one |


I get the following error text:

org-back-to-heading: before first heading

If I try to move back to the org file from the agenda by hitting  
return

on the displayed scheduled task I get this error:

call-interactively: Wrong type argument: integer-or-marker-p, nil

---

If I don't display the agenda first... and just find-file to
~/org/test.org the org-refile works fine.

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




___
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] Question about gnus integration

2008-01-17 Thread Kirill A. Korinskiy
Hello.

Why in url gnus not used message-id instead of article id?

-- 
| |*| |  Kirill A. Korinskiy [EMAIL PROTECTED]
| | |*|  proud (maniac)? (developer|hacker)
|*|*|*|  http://catap.ru/ - +7 (916) 3-604-704 - xmpp:[EMAIL PROTECTED]


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


Re: [Orgmode] Timezone Support

2008-01-17 Thread Carsten Dominik


On Jan 16, 2008, at 7:03 PM, Russell Adams wrote:


I've had a nagging issue with timezones. The timestamps in org do not
include TZ data, and I frequently switch timezones.

This impacts notes and agenda items.

Any ideas?


This is a very complex issue and I don't think I can fix this.

Sorry

- Carsten





--
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] Re: HTML export and heading levels

2008-01-17 Thread Bernt Hansen
Bernt Hansen [EMAIL PROTECTED] writes:

 I started playing with HTML export this week and since I'm lazy I don't
 want to have to remember to export.  I created a few simple functions
 that export my org file to HTML and copies the resulting HTML file to my
 webserver when I save my org file using C-x C-s.

 This works great for sharing my ToDo list and other documents with other
 people.

And maybe this isn't such a great idea after all.  After I've saved my
document and auto-exported I can't undo things anymore...  Time to look
at org-publish...

-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] Re: HTML export and heading levels

2008-01-17 Thread William Henney
Hi Bernt

On Jan 17, 2008 7:49 AM, Bernt Hansen [EMAIL PROTECTED] wrote:
 Bernt Hansen [EMAIL PROTECTED] writes:

  I started playing with HTML export this week and since I'm lazy I don't
  want to have to remember to export.  I created a few simple functions
  that export my org file to HTML and copies the resulting HTML file to my
  webserver when I save my org file using C-x C-s.
 
  This works great for sharing my ToDo list and other documents with other
  people.

 And maybe this isn't such a great idea after all.  After I've saved my
 document and auto-exported I can't undo things anymore...  Time to look
 at org-publish...


I have been using org-publish a lot lately and it works pretty well.
One thing that you might want to consider is to publish to a directory
on your local disk and then use an external utility (e.g., your
script) to synchronize with the web server.

The problem I have found with directly setting :publishing-directory
to a remote machine in org-publish-project-alist is that when there
are several files the publishing process becomes very slow (several
minutes) and emacs completely locks up for that time :(

Perhaps Bastien has some advice on how this can be improved. I think
the problem is with tramp rather than org-mode. I currently work
around the problem by publishing to a local directory and then using
make and rsync to synchronize with the web server.

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


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

2008-01-17 Thread Russell Adams
Would it be practical to extend the time format to include TZ data
(ie: -06:00 ?). Otherwise I'll pick a TZ as standard and just mentally
convert from there.

Thanks.

On Thu, Jan 17, 2008 at 01:37:33PM +0100, Carsten Dominik wrote:
 
 On Jan 16, 2008, at 7:03 PM, Russell Adams wrote:
 
 I've had a nagging issue with timezones. The timestamps in org do not
 include TZ data, and I frequently switch timezones.
 
 This impacts notes and agenda items.
 
 Any ideas?
 
 This is a very complex issue and I don't think I can fix this.
 
 Sorry
 
 - Carsten
 
 
 
 
 --
 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


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


Re: [Orgmode] Timezone Support

2008-01-17 Thread Carsten Dominik


On Jan 17, 2008, at 5:06 PM, Russell Adams wrote:


Would it be practical to extend the time format to include TZ data
(ie: -06:00 ?).



No, I don't want to go there.  It is pandoras box.
Only in the neer-going-to-happen rewrite of Org-mode.


Otherwise I'll pick a TZ as standard and just mentally
convert from there.


Yes, I think this is the only viable option.

- Carsten




Thanks.

On Thu, Jan 17, 2008 at 01:37:33PM +0100, Carsten Dominik wrote:


On Jan 16, 2008, at 7:03 PM, Russell Adams wrote:

I've had a nagging issue with timezones. The timestamps in org do  
not

include TZ data, and I frequently switch timezones.

This impacts notes and agenda items.

Any ideas?


This is a very complex issue and I don't think I can fix this.

Sorry

- Carsten





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



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