[Orgmode] Re: Vertical split in Emacs 23

2009-07-16 Thread Paul Mead
Benjamin Andresen be...@in-ulm.de writes:

 Hey Paul,

 I don't know if this will exactly revert it back to the previous
 behavior, but if you change `split-width-threshold' to a bigger number
 (e.g. 999) than the default it should be more sensible looking.

 br,
 benny

Thanks Benny, that'll get me going for now.

Having thought about this a bit more, I can see where the new behaviour
might be useful, but it just looks a bit ugly in org-mode because (I
guess) it's not been written to deal with narrower buffers.

Would this be a minor fix or a major change do you think? My elisp is
about as competent as my sanskrit I'm afraid...

Paul



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


[Orgmode] Unsetting C-j Keybinding Bound to org-return-indent

2009-07-16 Thread onguarde -
Peace all!

I have this in my .emacs to rebind keys.

(global-unset-key \C-j) ; newline-and-indent/org-return-indent
(global-set-key (kbd C-j) 'move-beginning-of-line)

;(global-unset-key (kbd C-l)) ; recenter
(global-set-key (kbd C-l) 'move-end-of-line)

The 2nd set works with or without the global-unset-key line but the first
set simply refuses to work. M-x describe-key shows that C-j is bound to
org-return-indent.  I thought this might be the problem.

Is there any way to unset this and rebind it globally?

Thanks in advance!
___
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: Vertical split in Emacs 23

2009-07-16 Thread Cian OConnor

Add the following to your .emacs file:
(setq split-width-threshold 999)

I actually like the change, but then I'm using a widescreen monitor 
where it makes more sense.


Paul Mead wrote:

Benjamin Andresen be...@in-ulm.de writes:

  

Hey Paul,

I don't know if this will exactly revert it back to the previous
behavior, but if you change `split-width-threshold' to a bigger number
(e.g. 999) than the default it should be more sensible looking.

br,
benny



Thanks Benny, that'll get me going for now.

Having thought about this a bit more, I can see where the new behaviour
might be useful, but it just looks a bit ugly in org-mode because (I
guess) it's not been written to deal with narrower buffers.

Would this be a minor fix or a major change do you think? My elisp is
about as competent as my sanskrit I'm afraid...

Paul



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



___
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] Cannot use org-mode and remember templates

2009-07-16 Thread Frank Rust
Hi,

I'm using a new version of emacs for windows (GNU Emacs 23.1.50.1
(i386-mingw-nt5.1.2600) of 2009-06-30 on LENNART-69DE564 (patched)) which
provides Org-mode in version 6.21b.

After the last upgrade the remember templates are not working anymore.
Everytime I select a template with my shortcuts I receive the following
error:

Select template: [t]odo [j]ournal*
org-remember-apply-template: Wrong type argument: listp, 5*


This is the relevant entry in my .emacs

;; Remember mode
(require 'remember)
(org-remember-insinuate)
(setq org-remember-store-without-prompt t)

(setq org-remember-templates
 '((Todo ?t * TODO %^{Brief Description} %^g\nAdded: %U
~/emacs/gtd/gtd.org Tasks)
  (Journal ?j \n* %^{topic} %T \n%i%?\n journal.org Ideas)))


Unfortunately I'm not very experienced in lisp programming and I couldn't
find any hints with google. Is there any way to fix this?

Thanks for your efforts and regards,
Frank
___
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: Cannot use org-mode and remember templates

2009-07-16 Thread Sébastien Vauban
Hi Frank,

Frank Rust wrote:
 After the last upgrade the remember templates are not working anymore.
 Everytime I select a template with my shortcuts I receive the following
 error:

 Select template: [t]odo [j]ournal*
 org-remember-apply-template: Wrong type argument: listp, 5*

The error makes me think at this: don't you have set
`org-time-stamp-rounding-minutes'?  If yes, check that it looks like:

--8---cut here---start-8---
;; number of minutes to round time stamps to
(setq org-time-stamp-rounding-minutes '(5 5))
--8---cut here---end---8---

Seb

-- 
Sébastien Vauban



___
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] Cannot use org-mode and remember templates

2009-07-16 Thread Nick Dokos
Frank Rust rusti...@gmail.com wrote:


 I'm using a new version of emacs for windows (GNU Emacs 23.1.50.1 
 (i386-mingw-nt5.1.2600) of 2009-06-30 on LENNART-69DE564 (patched)) which 
 provides
 Org-mode in version 6.21b.
 
 After the last upgrade the remember templates are not working anymore. 
 Everytime I select a template with my shortcuts I receive the following error:
 
 Select template: [t]odo [j]ournal
 org-remember-apply-template: Wrong type argument: listp, 5
 

Please provide a backtrace: set the variable `debug-on-error' to t, e.g.
by doing

   M-x set-varRETdebug-on-errorRETtRET


and do whatever is necessary to produce the error - the backtrace should
appear in a buffer called '*Backtrace*. If you can do that with
uncompiled code, that is vastly preferable: do 

  M-x load-library RETorg-remember.elRET

first and then try to produce the error.

Thanks,
Nick


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


Re: [Orgmode] Vertical split in Emacs 23

2009-07-16 Thread Nick Dokos
Paul Mead paul.d.m...@gmail.com wrote:


 I've recently upgraded to Emacs 23, and I'm not at all impressed with
 the vertical split that it seems to prefer when there's supposedly
 enough buffer width to allow it - the Agenda gets squashed up and things
 like the TODO quick selection menus look terrible.
 
 Is there a way of changing this back to the old behaviour? Through
 experimentation I've found that if I reduce the frame width sufficiently
 it reverts to horizontal split but I like to work with emacs maximized
 most often.
 

Assuming that the variable `split-window-preferred-function' is set to
`split-window-sensibly', you can play with some of the settings mentioned
in the functions's documentation:

,
| split-window-sensibly is a compiled Lisp function in `window.el'.
| 
| (split-window-sensibly WINDOW)
| 
| Split WINDOW in a way suitable for `display-buffer'.
| If `split-height-threshold' specifies an integer, WINDOW is at
| least `split-height-threshold' lines tall and can be split
| vertically, split WINDOW into two windows one above the other and
| return the lower window.  Otherwise, if `split-width-threshold'
| specifies an integer, WINDOW is at least `split-width-threshold'
| columns wide and can be split horizontally, split WINDOW into two
| windows side by side and return the window on the right.  If this
| can't be done either and WINDOW is the only window on its frame,
| try to split WINDOW vertically disregarding any value specified
| by `split-height-threshold'.  If that succeeds, return the lower
| window.  Return nil otherwise.
| 
| By default `display-buffer' routines call this function to split
| the largest or least recently used window.  To change the default
| customize the option `split-window-preferred-function'.
| 
| You can enforce this function to not split WINDOW horizontally,
| by setting (or binding) the variable `split-width-threshold' to
| nil.  If, in addition, you set `split-height-threshold' to zero,
| chances increase that this function does split WINDOW vertically.
| 
| In order to not split WINDOW vertically, set (or bind) the
| variable `split-height-threshold' to nil.  Additionally, you can
| set `split-width-threshold' to zero to make a horizontal split
| more likely to occur.
| 
| Have a look at the function `window-splittable-p' if you want to
| know how `split-window-sensibly' determines whether WINDOW can be
| split.
`

I haven't checked whether/how you can restore emacs-22 behavior though.

HTH,
Nick




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


Re: [Orgmode] Cannot use org-mode and remember templates

2009-07-16 Thread Nick Dokos
Frank Rust rusti...@gmail.com wrote:

 Debugger entered--Lisp error: (wrong-type-argument listp 5)
   org-current-time()
   org-remember-apply-template()
   run-hooks(text-mode-hook remember-mode-hook)
   apply(run-hooks (text-mode-hook remember-mode-hook))
   run-mode-hooks(remember-mode-hook)
   remember-mode()
   remember(nil)
   call-interactively(remember nil nil)
 
  
 
 Debugger entered--Lisp error: (wrong-type-argument listp 5)
   org-current-time()

 ... 
 
 I hope this helps.
 p

In this case, no, because Seb Vauban nailed the cause (he must have
recently polished his crystal ball, so he did not need a backtrace at
all): org-time-stamp-rounding-minutes should be a list of two numbers.

In general, however, a bug report with a backtrace and uncompiled code
makes things much easier: from your backtrace, anybody (with some
knowledge of lisp) can see what the problem is - no crystal ball
required.

Thanks,
Nick



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


[Orgmode] HTML export: Lists and horizontal rules

2009-07-16 Thread Brenton Kenkel
Dear all,

I'm using org-mode 6.28e on Aquamacs (based on GNU Emacs 22.3.1) on
Mac OS X. I'm having an issue with horizontal rules and lists in HTML
export. When I export the following to HTML, the horizontal rule tag
is generated within the unordered list, rather than after it ends:

,-
| * test
|
| - this is a list
|
|
| -
|
| * next section
|
| No list.
|
|
| -
|
`-

I want the first horizontal rule to be even with the second; namely,
extending all the way to the left. Any way to do this?

Thanks for your help,
Brenton Kenkel


___
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] Patch for windowing problem

2009-07-16 Thread Robert Goldman
In an earlier posting, I mentioned that I had a problem with org-mode on
aquamacs; the cursor (really input focus) was getting trapped in a
different frame when the *Calendar* buffer was not in the same frame as
the source of the org-schedule command (either an org-mode buffer or a
remember buffer).  The attached patch to org.el fixes this problem for
me.  Would some of you all mind testing it out?  It just wraps current
frame save and pop around the use of the calendar (frames aren't managed
by the save-excursion and save-window-excursion that already wrap this
interaction).

Thanks,
Robert
index feaa115..be07d58 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12010,6 +12010,15 @@ So these are more for recording a certain time/date.
 (defvar org-read-date-history nil)
 (defvar org-read-date-final-answer nil)
 
+(defmacro save-frame-excursion (rest body)
+  Carry out some operations and then return to the currently
+selected frame.
+  (let ((frame-var (gensym FRAME)))
+`(let ((,frame-var (selected-frame)))
+   (unwind-protect
+   (progn ,@body)
+ (select-frame-set-input-focus ,frame-var) 
+
 (defun org-read-date (optional with-time to-time from-string prompt
default-time default-input)
   Read a date, possibly a time, and make things smooth for the user.
@@ -12088,77 +12097,78 @@ user.
  (org-read-date-popup-calendar
   (save-excursion
(save-window-excursion
- (calendar)
- (calendar-forward-day (- (time-to-days def)
-  (calendar-absolute-from-gregorian
-   (calendar-current-date
- (org-eval-in-calendar nil t)
- (let* ((old-map (current-local-map))
-(map (copy-keymap calendar-mode-map))
-(minibuffer-local-map (copy-keymap minibuffer-local-map)))
-   (org-defkey map (kbd RET) 'org-calendar-select)
-   (org-defkey map (if (featurep 'xemacs) [button1] [mouse-1])
- 'org-calendar-select-mouse)
-   (org-defkey map (if (featurep 'xemacs) [button2] [mouse-2])
- 'org-calendar-select-mouse)
-   (org-defkey minibuffer-local-map [(meta shift left)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-backward-month 1
-   (org-defkey minibuffer-local-map [(meta shift right)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-forward-month 1
-   (org-defkey minibuffer-local-map [(meta shift up)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-backward-year 1
-   (org-defkey minibuffer-local-map [(meta shift down)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-forward-year 1
-   (org-defkey minibuffer-local-map [?\e (shift left)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-backward-month 1
-   (org-defkey minibuffer-local-map [?\e (shift right)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-forward-month 1
-   (org-defkey minibuffer-local-map [?\e (shift up)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-backward-year 1
-   (org-defkey minibuffer-local-map [?\e (shift down)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-forward-year 1
-   (org-defkey minibuffer-local-map [(shift up)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-backward-week 1
-   (org-defkey minibuffer-local-map [(shift down)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-forward-week 1
-   (org-defkey minibuffer-local-map [(shift left)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-backward-day 1
-   (org-defkey minibuffer-local-map [(shift right)]
- (lambda () (interactive)
-   (org-eval-in-calendar '(calendar-forward-day 1
-   (org-defkey minibuffer-local-map 
- (lambda () (interactive)
-   (org-eval-in-calendar '(scroll-calendar-left 1
-   (org-defkey minibuffer-local-map 
- (lambda () (interactive)
-   (org-eval-in-calendar '(scroll-calendar-right 1
-   (run-hooks 'org-read-date-minibuffer-setup-hook)
-   (unwind-protect
-   (progn
- (use-local-map map)
- (add-hook 'post-command-hook 'org-read-date-display)
- (setq org-ans0 (read-string prompt default-input
- 'org-read-date-history nil))
- ;; org-ans0: from prompt
- ;; org-ans1: from mouse click
- ;; 

Re: [Orgmode] org-mode and Aquamacs tabs

2009-07-16 Thread Bastien
Thomas S. Dye t...@tsdye.com writes:

 Org-mode's agenda column view puts column headers where Aquamacs has tabs,
 overwriting the tabs.  

To me it's clearly an issue with Aquamacs.  It shouldn't use this first
header line.  I guess emacs-w3m and elscreen.el have similar problems.
If so, better to report to Aquamacs maintainers...

HTH,

-- 
 Bastien


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


Re: [Orgmode] broken link in manual

2009-07-16 Thread Bastien
Greg Newman g...@20seven.org writes:

 I found a broken link in the manual just now.  The appendix link A
 extensions (on the left nav) gives a 404.

I can't find the broken link.  

Btw, the manual lives in two locations:

http://orgmode.org/org.html
http://orgmode.org/manual/

Can you send the relevant link?

Thanks,

-- 
 Bastien


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


Re: [Orgmode] [BUG] HTML exporting numbered literal examples

2009-07-16 Thread Bastien
Ulf Stegemann ulf-n...@zeitform.de writes:

 With latest CVS Emacs and Git Org mode exporting literal examples
 (example/src) with the `-n' switch results in numbering starting on line
 *2* of the example in the resulting HTML file (LaTeX seems to be okay).

 The example in the manual ...

 --8--snip--8---
   #+BEGIN_SRC emacs-lisp -n -r
   (save-excursion  (ref:sc)
  (goto-char (point-min))   (ref:jump)
   #+END_SRC
   In line [[(sc)]] we remember the current positon.  [[(jump)][Line (jump)]]
   jumps to point-min.
 --8--snap--8---

 ... (which is BTW not working as the manual misses the underscore in
 `#+END_SRC') results (visually) in

Fixed in the manual.

 --8--snip--8---
 (save-excursion  (ref:sc)
 1: (goto-char (point-min))
 --8--snap--8---

 with reference `sc' broken.

 Can anyone reproduce this?

Yes.  And I just pushed fix for that.

 And while we are at it: Would it be feasible to have `-r' in literal
 examples even without `-n', thus removing the label in the source code
 block even if the example is not numbered. I have no concrete case where
 this may be necessary but I think that usually labels shouldn't be
 displayed in /literal/ examples.

For this I have no idea - it looks like we can wait for concrete
examples :)

-- 
 Bastien


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


Re: [Orgmode] Bug in LaTeX export

2009-07-16 Thread Bastien
Holst Thomas (DS-ET/ECF1) thomas.ho...@de.bosch.com writes:

 I think I discoverd a bug in LaTeX export. I mark a subtree with C-c @
 and then export it to LaTeX with C-c C-e L.

 If the subtree has no further subtrees the LaTeX-file not only contains
 the region, but also the rest of the document to the end.

Fixed, thanks!

-- 
 Bastien


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


Re: [Orgmode] org-style folding for a .emacs

2009-07-16 Thread Bastien
Hi Scot,

Scot Becker scot.bec...@gmail.com writes:

 Does anyone have a recipe for easy org-style folding of an elisp file?
  I'd like to divide my .emacs into segments to make it easier to
 oversee and navigate.

I use this (original idea from Tassilo IIRC):

--8---cut here---start-8---
;;; Use orgstruct-mode in emacs-lisp-mode buffers

(add-hook 'emacs-lisp-mode-hook 'orgstruct-mode)

(defun org-cycle-global ()
  (interactive)
  (org-cycle t))

(defun org-cycle-local ()
  (interactive)
  (save-excursion
(move-beginning-of-line nil)
(org-cycle)))

(global-set-key (kbd C-M-]) 'org-cycle-global)
(global-set-key (kbd M-]) 'org-cycle-local)
--8---cut here---end---8---

-- 
 Bastien


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


Re: [Orgmode] lower case version of todo kw triggers refile bug

2009-07-16 Thread Bastien
Samuel Wales samolog...@gmail.com writes:

 When I have a lower case version of a todo kw as the first
 word in a header, refile skips the header.  Or so it seems.

Sorry I can't reproduce this -- can you provide more details, 
an example file and a minimal configuration?

Thanks,

PS: I can't see it anywhere in the manual but I assumed that 
using uppercase for TODO keywords was a strong convention.  

-- 
 Bastien


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


Re: [Orgmode] Re: Org Special Ctrl A/E, option reversed

2009-07-16 Thread Bastien
Brian van den Broek van...@gmail.com writes:

 Bastien:

 As you are wearing the Carsten-hat for the moment, 

 it strikes me that Rainer's expectation that a documented value for
 the variable would be available in the customization value-menu is
 reasonable. Perhaps the reversed option ought to be added to that
 menu? Alas, I can't patch---it really is but a bit of elisp that I've
 got.

Actually this option is already available from customize -- it is set
when you choose the true line boundary first behavior.

I have slightly edited the docstring of this variable to make this
clearer: 

  When set to the symbol `reversed', the first `C-a' or `C-e' works
  normally, going to true line boundary first.  Only a directly
  following, identical keypress will bring the cursor to the special
  positions.

Thanks,

-- 
 Bastien


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


Re: [Orgmode] doc bug

2009-07-16 Thread Bastien
Samuel Wales samolog...@gmail.com writes:

 The docstring for org-tags-match-list-sublevels should
 probably mention 'indented.

Fixed, thanks.

-- 
 Bastien


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


[Orgmode] Re: Cannot use org-mode and remember templates

2009-07-16 Thread Sébastien Vauban
Hi Nick,

Nick Dokos wrote:
 Frank Rust rusti...@gmail.com wrote:
 Debugger entered--Lisp error: (wrong-type-argument listp 5)
   org-current-time()

 In this case, no, because Seb Vauban nailed the cause (he must have recently
 polished his crystal ball, so he did not need a backtrace at all):
 org-time-stamp-rounding-minutes should be a list of two numbers.

Great. I'm finally helping people out there ;-)

But, that was not so difficult for me: just had the same type of message a
couple of months ago.


 In general, however, a bug report with a backtrace and uncompiled code
 makes things much easier: from your backtrace, anybody (with some
 knowledge of lisp) can see what the problem is - no crystal ball
 required.

For sure.

BTW, the problem with the above is that bad code is still readable in lots of
pages or tutorials on the Web. That's how it appeared for me, as I take a lot
of inspiration on the setup some describe.

Best regards,
  Seb

-- 
Sébastien Vauban



___
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] Cannot use org-mode and remember templates

2009-07-16 Thread Frank Rust

 Please provide a backtrace: set the variable `debug-on-error' to t, e.g.
 by doing

   M-x set-varRETdebug-on-errorRETtRET



 and do whatever is necessary to produce the error - the backtrace should
 appear in a buffer called '*Backtrace*.


Debugger entered--Lisp error: (wrong-type-argument listp 5)
  org-current-time()
  org-remember-apply-template()
  run-hooks(text-mode-hook remember-mode-hook)
  apply(run-hooks (text-mode-hook remember-mode-hook))
  run-mode-hooks(remember-mode-hook)
  remember-mode()
  remember(nil)
  call-interactively(remember nil nil)



 If you can do that with
 uncompiled code, that is vastly preferable: do

  M-x load-library RETorg-remember.elRET

 first and then try to produce the error.



Debugger entered--Lisp error: (wrong-type-argument listp 5)
  org-current-time()
  (or org-overriding-default-time (org-current-time))
  (let* ((entry ...) (ct ...) (dct ...) (ct1 ...) (tpl ...) (plist-p ...)
(file ...) (headline ...) (v-c ...) (v-x ...) (v-t ...) (v-T ...) (v-u ...)
(v-U ...) (v-i ...) (v-a ...) (clipboards ...) (v-A ...) (v-n
user-full-name) (v-k ...) (v-K ...) v-I (org-startup-folded nil)
(org-inhibit-startup t) org-time-was-given org-end-time-was-given x prompt
completions char time pos default histvar) (when (functionp file) (setq file
...)) (when (and file ...) (setq file ...)) (setq org-store-link-plist
(append ... org-store-link-plist)) (unless tpl (setq tpl ) (message No
template) (ding) (sit-for 1)) (erase-buffer) (insert
(substitute-command-keys ...)) (insert tpl) (goto-char (point-min)) (while
(re-search-forward %\\([tTuUaiAcxkKI]\\) nil t) (when ... ...)
(replace-match ... t t)) (goto-char (point-min)) (while (re-search-forward
%\\[\\(.+\\)\\] nil t) (let ... ... ... ...)) (goto-char (point-min))
(while (re-search-forward %\\((.+)\\) nil t) (goto-char ...) (let ... ...
...)) (when plist-p (goto-char ...) (while ... ...)) (let (...) (org-mode)
(org-remember-mode 1)) (if (and file ... ...) (org-set-local ... file)) (if
headline (org-set-local ... headline)) (goto-char (point-min)) (while
(re-search-forward %^\\({\\([^}]*\\)}\\)?\\([gGtTuUCLp]\\)? nil t) (setq
char ... prompt ...) (goto-char ...) (replace-match ) (setq completions
nil default nil) (when prompt ...) (cond ... ... ... ... ... ...))
(goto-char (point-min)) (if (re-search-forward %\\? nil t) (replace-match
) (and ... ...)))
  (if org-remember-templates (let* (... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ... ... ... v-I ... ... org-time-was-given
org-end-time-was-given x prompt completions char time pos default histvar)
(when ... ...) (when ... ...) (setq org-store-link-plist ...) (unless tpl
... ... ... ...) (erase-buffer) (insert ...) (insert tpl) (goto-char ...)
(while ... ... ...) (goto-char ...) (while ... ...) (goto-char ...) (while
... ... ...) (when plist-p ... ...) (let ... ... ...) (if ... ...) (if
headline ...) (goto-char ...) (while ... ... ... ... ... ... ...) (goto-char
...) (if ... ... ...)) (let (...) (org-mode) (org-remember-mode 1)))
  org-remember-apply-template()
  run-hooks(text-mode-hook remember-mode-hook)
  apply(run-hooks (text-mode-hook remember-mode-hook))
  run-mode-hooks(remember-mode-hook)
  remember-mode()
  remember(nil)
  call-interactively(remember nil nil)
  recursive-edit()
  byte-code(  -- bytecode [unread-command-char debugger-args x
debugger-buffer noninteractive debugger-batch-max-lines -1 debug
backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode
debugger-setup-buffer count-lines 2 ...\n message %s buffer-string
kill-emacs  nil recursive-edit middlestart buffer-read-only
standard-output] 4)
  debug(error (wrong-type-argument listp 5))
  org-current-time()
  org-remember-apply-template()
  run-hooks(text-mode-hook remember-mode-hook)
  apply(run-hooks (text-mode-hook remember-mode-hook))
  run-mode-hooks(remember-mode-hook)
  remember-mode()
  remember(nil)
  call-interactively(remember nil nil)



 Thanks,
 Nick


I hope this helps.

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


Re: [Orgmode] problems cloning using the http protocol

2009-07-16 Thread Bastien
 For people who cannot use git, we provide zip 
 or tar.gz snapshot release files corresponding 
 to the latest git version. 

Actually this cannot be true.  AFAIK the snapshots were
done by Carsten, not by the server.  I fixed that so now
the snapshots are updated each hour and will be as much
close as possible to the git repo.

  http://orgmode.org/org-latest.zip
  http://orgmode.org/org-latest.tar.gz

(Old org-snapshot.* still available.)

But of course, it's less overhead to pull from git when
possible.

-- 
 Bastien


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


Re: [Orgmode] Feature request: javascript expand collapse

2009-07-16 Thread Bastien
Hi Xin,

Xin Shi shixin...@gmail.com writes:

 I'm wondering if it's easy to implement the javascript expand collapse in 
 the
 published page.

 [This might be  work for Sebastian again :-), but I think this feature
 shall be useful. ]

How does it differ from what Sebastian already implemented?

-- 
 Bastien


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


Re: [Orgmode] Unsetting C-j Keybinding Bound to org-return-indent

2009-07-16 Thread Bastien
onguarde - ongua...@gmail.com writes:

 The 2nd set works with or without the global-unset-key line but the first set
 simply refuses to work. M-x describe-key shows that C-j is bound to
 org-return-indent.  I thought this might be the problem.

Org binds `C-j' to org-return-indent and local bindinds shadow global
bindins.  See the docstring of global-set-key.

On one hand, Org maybe shouldn't rebind such key.  One the other hand
why do you want to rebind such a common key??

 Is there any way to unset this and rebind it globally?

And since we have three hands, here is a way to discipline Org back
again:

  (org-defkey org-mode-map \C-j 'move-beginning-of-line)

-- 
 Bastien


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


Re: [Orgmode] broken link in manual

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

 Greg Newman g...@20seven.org writes:
 
  I found a broken link in the manual just now.  The appendix link A
  extensions (on the left nav) gives a 404.
 
 I can't find the broken link.  
 
 Btw, the manual lives in two locations:
 
 http://orgmode.org/org.html
 http://orgmode.org/manual/
 
 Can you send the relevant link?
 

The navigation menu on the left of the page is out of sync: it contains
a link to a non-existent appendix A Extensions in between the
Miscellaneous link and the B Hacking link. The manual itself goes
from Ch. 14 Miscellaneous to Hacking as its Next: link.  The bad
link is

   http://orgmode.org/manual/Extensions.html#Extensions

HTH,
Nick

PS. Here is a fragment of the page source:

...
div id=table-of-contents
h2Table of Contents/h2
div id=text-table-of-contents
ul
lia name=toc_Top href=index.html#TopOrg Mode Manual/a
lia name=toc_Introduction href=Introduction.html#Introduction1 
Introduction/a
lia name=toc_Document-Structure 
href=Document-Structure.html#Document-Structure2 Document Structure/a

lia name=toc_Tables href=Tables.html#Tables3 Tables/a
lia name=toc_Hyperlinks href=Hyperlinks.html#Hyperlinks4 Hyperlinks/a
lia name=toc_TODO-Items href=TODO-Items.html#TODO-Items5 TODO Items/a
lia name=toc_Tags href=Tags.html#Tags6 Tags/a
lia name=toc_Properties-and-Columns 
href=Properties-and-Columns.html#Properties-and-Columns7 Properties and 
Columns/a
lia name=toc_Dates-and-Times href=Dates-and-Times.html#Dates-and-Times8 
Dates and Times/a
lia name=toc_Capture href=Capture.html#Capture9 Capture/a
lia name=toc_Agenda-Views href=Agenda-Views.html#Agenda-Views10 Agenda 
Views/a
lia name=toc_Embedded-LaTeX href=Embedded-LaTeX.html#Embedded-LaTeX11 
Embedded LaTeX/a

lia name=toc_Exporting href=Exporting.html#Exporting12 Exporting/a
lia name=toc_Publishing href=Publishing.html#Publishing13 Publishing/a
lia name=toc_Miscellaneous href=Miscellaneous.html#Miscellaneous14 
Miscellaneous/a
lia name=toc_Extensions href=Extensions.html#ExtensionsA Extensions/a 
   THIS ONE
lia name=toc_Hacking href=Hacking.html#HackingB Hacking/a
lia name=toc_History-and-Acknowledgments 
href=History-and-Acknowledgments.html#History-and-AcknowledgmentsC History 
and Acknowledgments/a
lia name=toc_Main-Index href=Main-Index.html#Main-IndexMain Index/a
lia name=toc_Key-Index href=Key-Index.html#Key-IndexKey Index/a
/li/ul

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


Re: [Orgmode] broken link in manual

2009-07-16 Thread Greg Newman
Thanks Nick.  You beat me to it.


*Greg Newman*

http://20seven.org

twitter: 20seven

On Thu, Jul 16, 2009 at 5:44 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Bastien bastiengue...@googlemail.com wrote:

  Greg Newman g...@20seven.org writes:
 
   I found a broken link in the manual just now.  The appendix link A
   extensions (on the left nav) gives a 404.
 
  I can't find the broken link.
 
  Btw, the manual lives in two locations:
 
  http://orgmode.org/org.html
  http://orgmode.org/manual/
 
  Can you send the relevant link?
 

 The navigation menu on the left of the page is out of sync: it contains
 a link to a non-existent appendix A Extensions in between the
 Miscellaneous link and the B Hacking link. The manual itself goes
 from Ch. 14 Miscellaneous to Hacking as its Next: link.  The bad
 link is

   http://orgmode.org/manual/Extensions.html#Extensions

 HTH,
 Nick

 PS. Here is a fragment of the page source:

 ...
 div id=table-of-contents
 h2Table of Contents/h2
 div id=text-table-of-contents
 ul
 lia name=toc_Top href=index.html#TopOrg Mode Manual/a
 lia name=toc_Introduction href=Introduction.html#Introduction1
 Introduction/a
 lia name=toc_Document-Structure
 href=Document-Structure.html#Document-Structure2 Document Structure/a

 lia name=toc_Tables href=Tables.html#Tables3 Tables/a
 lia name=toc_Hyperlinks href=Hyperlinks.html#Hyperlinks4
 Hyperlinks/a
 lia name=toc_TODO-Items href=TODO-Items.html#TODO-Items5 TODO
 Items/a
 lia name=toc_Tags href=Tags.html#Tags6 Tags/a
 lia name=toc_Properties-and-Columns
 href=Properties-and-Columns.html#Properties-and-Columns7 Properties and
 Columns/a
 lia name=toc_Dates-and-Times
 href=Dates-and-Times.html#Dates-and-Times8 Dates and Times/a
 lia name=toc_Capture href=Capture.html#Capture9 Capture/a
 lia name=toc_Agenda-Views href=Agenda-Views.html#Agenda-Views10
 Agenda Views/a
 lia name=toc_Embedded-LaTeX
 href=Embedded-LaTeX.html#Embedded-LaTeX11 Embedded LaTeX/a

 lia name=toc_Exporting href=Exporting.html#Exporting12
 Exporting/a
 lia name=toc_Publishing href=Publishing.html#Publishing13
 Publishing/a
 lia name=toc_Miscellaneous href=Miscellaneous.html#Miscellaneous14
 Miscellaneous/a
 lia name=toc_Extensions href=Extensions.html#ExtensionsA
 Extensions/aTHIS ONE
 lia name=toc_Hacking href=Hacking.html#HackingB Hacking/a
 lia name=toc_History-and-Acknowledgments
 href=History-and-Acknowledgments.html#History-and-AcknowledgmentsC
 History and Acknowledgments/a
 lia name=toc_Main-Index href=Main-Index.html#Main-IndexMain
 Index/a
 lia name=toc_Key-Index href=Key-Index.html#Key-IndexKey Index/a
 /li/ul

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


Re: [Orgmode] error appearing when tring to export an org buffer to html: (error mumamo-find-chunks: ...

2009-07-16 Thread Bastien
Rainer Stengele rainer.steng...@diplan.de writes:

 I have an error appearing when tring to export an org buffer to html.

 versions:
 - GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-06-30 on 
 LENNART-69DE564 (patched)
 - Org-mode version 6.28trans
 - I am using the htmlize.el file from the org contrib section

 error message:

Looks like it's something with mumamo, right?  
Do you have this problem even when not using mumamo?

-- 
 Bastien


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


Re: [Orgmode] broken link in manual

2009-07-16 Thread Greg Newman
you rock Basetien!

On Thu, Jul 16, 2009 at 6:00 PM, Bastien bastiengue...@googlemail.comwrote:

 Nick Dokos nicholas.do...@hp.com writes:

  The navigation menu on the left of the page is out of sync: it contains
  a link to a non-existent appendix A Extensions in between the
  Miscellaneous link and the B Hacking link. The manual itself goes
  from Ch. 14 Miscellaneous to Hacking as its Next: link.  The bad
  link is
 
 http://orgmode.org/manual/Extensions.html#Extensions

 Thanks.

 I've fixed this by updating the manual in http://orgmode.org/manual/
 This manual don't have the fancy navigation, but since it's available
 from http://orgmode.org/org.html I guess it's all right.  At least the
 link is not broken anymore.

 --
  Bastien

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


Re: [Orgmode] Re: Vertical split in Emacs 23

2009-07-16 Thread Bastien
Hi Paul,

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

 Having thought about this a bit more, I can see where the new behaviour
 might be useful, but it just looks a bit ugly in org-mode because (I
 guess) it's not been written to deal with narrower buffers.

can you provide a screenshot showing a case where org-mode looks ugly
with Emacs default split behavior?  Then I might have a look...

Thanks!

-- 
 Bastien


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


Re: [Orgmode] lower case version of todo kw triggers refile bug

2009-07-16 Thread Samuel Wales
A lowercase version of an uppercase todo kw triggers the bug.

For example, if you have in org-todo-keywords TODO, you can
reproduce by starting a header with todo.

The lowercase version should not and does not act like a todo kw.

Except in refile, which is a bug.

Hope that clarifies.

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


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


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

2009-07-16 Thread Bastien
srinivas sp...@yahoo.com writes:

 I am trying to test org-export-generic. I have an org file which exports 
 correctly to html but when I tried the org-export-generic, I get the 
 following 
 error:

 === from *Messages* buffer
 and: Symbol's function definition is void: characterp

Please try to follow these recommendations:

  http://orgmode.org/manual/Feedback.html

and send a more useful backtrace.  

Thanks!

-- 
 Bastien


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


Re: [Orgmode] Patch for windowing problem

2009-07-16 Thread Bastien
Yes, would be nice if the Aquamacs crowd could test this!

Thanks Robert for the patch.

Robert Goldman rpgold...@sift.info writes:

 In an earlier posting, I mentioned that I had a problem with org-mode on
 aquamacs; the cursor (really input focus) was getting trapped in a
 different frame when the *Calendar* buffer was not in the same frame as
 the source of the org-schedule command (either an org-mode buffer or a
 remember buffer).  The attached patch to org.el fixes this problem for
 me.  Would some of you all mind testing it out?  It just wraps current
 frame save and pop around the use of the calendar (frames aren't managed
 by the save-excursion and save-window-excursion that already wrap this
 interaction).

 Thanks,
 Robert
 index feaa115..be07d58 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -12010,6 +12010,15 @@ So these are more for recording a certain time/date.
  (defvar org-read-date-history nil)
  (defvar org-read-date-final-answer nil)
  
 +(defmacro save-frame-excursion (rest body)
 +  Carry out some operations and then return to the currently
 +selected frame.
 +  (let ((frame-var (gensym FRAME)))
 +`(let ((,frame-var (selected-frame)))
 +   (unwind-protect
 +   (progn ,@body)
 + (select-frame-set-input-focus ,frame-var) 
 +
  (defun org-read-date (optional with-time to-time from-string prompt
   default-time default-input)
Read a date, possibly a time, and make things smooth for the user.
 @@ -12088,77 +12097,78 @@ user.
   (org-read-date-popup-calendar
(save-excursion
   (save-window-excursion
 -   (calendar)
 -   (calendar-forward-day (- (time-to-days def)
 -(calendar-absolute-from-gregorian
 - (calendar-current-date
 -   (org-eval-in-calendar nil t)
 -   (let* ((old-map (current-local-map))
 -  (map (copy-keymap calendar-mode-map))
 -  (minibuffer-local-map (copy-keymap minibuffer-local-map)))
 - (org-defkey map (kbd RET) 'org-calendar-select)
 - (org-defkey map (if (featurep 'xemacs) [button1] [mouse-1])
 -   'org-calendar-select-mouse)
 - (org-defkey map (if (featurep 'xemacs) [button2] [mouse-2])
 -   'org-calendar-select-mouse)
 - (org-defkey minibuffer-local-map [(meta shift left)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-backward-month 1
 - (org-defkey minibuffer-local-map [(meta shift right)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-forward-month 1
 - (org-defkey minibuffer-local-map [(meta shift up)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-backward-year 1
 - (org-defkey minibuffer-local-map [(meta shift down)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-forward-year 1
 - (org-defkey minibuffer-local-map [?\e (shift left)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-backward-month 1
 - (org-defkey minibuffer-local-map [?\e (shift right)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-forward-month 1
 - (org-defkey minibuffer-local-map [?\e (shift up)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-backward-year 1
 - (org-defkey minibuffer-local-map [?\e (shift down)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-forward-year 1
 - (org-defkey minibuffer-local-map [(shift up)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-backward-week 1
 - (org-defkey minibuffer-local-map [(shift down)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-forward-week 1
 - (org-defkey minibuffer-local-map [(shift left)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-backward-day 1
 - (org-defkey minibuffer-local-map [(shift right)]
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(calendar-forward-day 1
 - (org-defkey minibuffer-local-map 
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(scroll-calendar-left 1
 - (org-defkey minibuffer-local-map 
 -   (lambda () (interactive)
 - (org-eval-in-calendar '(scroll-calendar-right 1
 - (run-hooks 'org-read-date-minibuffer-setup-hook)
 - (unwind-protect
 - (progn
 -   (use-local-map map)
 -   (add-hook 'post-command-hook 'org-read-date-display)
 -   (setq org-ans0 (read-string prompt default-input
 -   'org-read-date-history nil))
 -   

Re: [Orgmode] Lock CLOSED tag

2009-07-16 Thread Bastien
Alan Boudreault aboudrea...@mapgears.com writes:

 Is it possible to lock the CLOSED tag ? 

Yes, try this:

--8---cut here---start-8---
(add-hook 'org-blocker-hook 'my-blocker-function)

(defun my-blocker-function (change-plist)
  Prevent TODO changes if CLOSED.
  (not (equal (plist-get change-plist :from) CLOSED)))
--8---cut here---end---8---

Careful as it throws an error.

-- 
 Bastien


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


Re: [Orgmode] tea-time?

2009-07-16 Thread Samuel Wales
It is said that tea-time.el is integrated into org, but I have not
found it in the manual or in customize yet, at least not   in a direct
way.

My understanding is that tea-time is something that tells you X, Y
minutes from now.

If it was integrated into org, that suggests to me that I can tell org
that I have to do something in one hour from now, and org will somehow
notify me.

It also suggests the possibility that the modeline will count down
just as it currently counts up in the clock.

But aside from a series of steps, such as create a task, set a time,
run org-agenda-to-appt, or some type of steps involving effort
estimates that I have not investigated yet, I don't know how to tell
org to tell me X in Y minutes.

Is there a way to tell org, say X in Y minutes?  If not, what are
the relative merits of appt-add and tea-time and the series of steps?

Thanks.

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


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