Re: [Orgmode] Bug: Bad doc [7.4]

2010-12-20 Thread Dave Abrahams
At Mon, 20 Dec 2010 08:40:50 +0100,
Carsten Dominik wrote:
 
 This is a bit tricky and not fully documented.
 
 If you have no or only only a single template defined, then
 template selection is bypassed and you do not get a chance
 to press C to get to the customization buffer.  This is to
 please John Wiegley :) who only uses a single capture template

And I'm using his template, practically unmodified :-)

 and rightfully wanted to lose the extra key press.  

And I like that feature myself.

 As soon
 as you have at least 2 templates, you will get the menu and
 also the chance to press `C'.
 
 I am not quite sure what to do about it, documenting it makes
 things look more complicated as they are.

Hmm, seems to me that it would be more principled to have org-capture
take an optional argument that indicates the template index, and ask
me and John to bind our key to (lambda () (org-capture 0))

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


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


Re: [Orgmode] Bug: Bad doc [7.4]

2010-12-20 Thread Dave Abrahams

This be eine test
-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


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


Re: [Orgmode] Disputed keys

2010-12-20 Thread Stefan Vollmar
Dear Andrea,

I have this in my .emacs file

(defun my-org-mode-stuff ()
  (define-key org-mode-map [(meta tab)] 'previous-user-buffer)
  (local-set-key (kbd S-right) 'forward-char-mark)
  (local-set-key (kbd S-left) 'backward-char-mark)
  (local-set-key (kbd S-up) 'previous-line-mark)
  (local-set-key (kbd S-down) 'next-line-mark))

(add-hook 'org-mode-hook 'my-org-mode-stuff)

this was a suggestion from the list (thanks to PT 
spamfilteracco...@gmail.com) and works for me, I realize that this was not 
exactly what you were asking for but thought it might help.

Warm regards,
 Stefan


On 18.12.2010, at 22:26, Andrea Crotti wrote:

 I wanted finally to fix the following problem, I would like to use
 meta-left/right to switch frame, and that's one of the keys that orgmode
 uses.
 
 I added the two values here to the org-disputed-keys
 
 --8---cut here---start-8---
 [(meta left)]
Value: [(meta control left)]
 [(meta right)]
Value: [(meta control right)]
 --8---cut here---end---8---
 
 but still it doesn't work, in orgmode meta-left is always bound to the
 org action, not to other-frame as it is in other modes...
 
 Any suggestions?
 
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de








smime.p7s
Description: S/MIME cryptographic signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: org-store-link only works interactively [7.4]

2010-12-20 Thread Dave Abrahams


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

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

Your bug report will be posted to the Org-mode mailing list.


Because of this stanza at the end of org-store-link:

(if (and (or (interactive-p) executing-kbd-macro) link)
(progn
  (setq org-stored-links
(cons (list link desc) org-stored-links))
  (message Stored: %s (or desc link))
  (when custom-id
(setq link (concat file: (abbreviate-file-name (buffer-file-name))
   ::# custom-id))
(setq org-stored-links
  (cons (list link desc) org-stored-links
  (or agenda-link (and link (org-make-link-string link desc))

org-stored-links will only be updated if the function is called
interactively.  I'm not sure why you would want to neuter
org-store-link otherwise, but the docs for interactive-p say:

  The only known proper use of `interactive-p' is in deciding whether to
  display a helpful message, or how to display it.  If you're thinking
  of using it for any other purpose, it is quite likely that you're
  making a mistake.  

Granted, it also says:

  Think: what do you want to do when the command is called from a
  keyboard macro?

and you handle that particular case explicitly.  However, there are
other reasons not to write functions this way (namely, someone like me
will want to store a link programmatically, and will then have to
spend a long time debugging to discover why it doesn't work).

Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29)
 of 2010-05-08 on black.local
Package: Org-mode version 7.4

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


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


Re: [Orgmode] [ANN] Zotero for plain text (including org-mode)

2010-12-20 Thread Christian Moe

On 12/20/10 12:52 AM, Erik Hetzner wrote:

At Sun, 19 Dec 2010 12:27:32 +0100,
Christian Moe wrote:

I can insert a Zotero link with `C-c z i', but it's very touch and go
-- sometimes it's inserted, sometimes nothing happens, most of the
time I don't get a description part, and `C-c z u' doesn't necessarily
work, though sometimes it does.

(...)

So on a quick test drive, it's not as stable as I'd like. Otherwise, I
think zotero-plain could be a boon for Org-mode and Zotero users.

(...)


Hi Christian,

Thanks for the feedback. mozrepl interaction is definitely
troublesome; my experience has not been as bad as yours, but there can
be problems.

I have changed zotero.el to reset the mozrepl process frequently; it
is a bit of a hack, but it seems to improve things a bit.T

I am hoping that using the recently announced zotero.org API for
citation generation will be more stable than using mozrepl.

best, Erik


Hi, Erik,

That's solved it for me. It still does not happen /every/ time I 
insert a Zotero link that the link is expanded with a full biblio 
description, but it happens most of the time, and for when it doesn't, 
`C-c z u' seems to work reliably now.


(Firefox taxes my old system a bit, and runs with frequent pauses, 
which may account for my having more trouble communicating with 
MozRepl than you're seeing. Looking forward to the API.)


One more issue I see is with Unicode characters. They are preserved 
when I command-shift-copy a reference from Zotero into an Org buffer 
(I have current-language-environment set to UTF-8). Org-zotero-mode 
does not preserve them. I've had a quick look at the code but haven't 
pinned it down why not.


I may have some more feedback in a week's time when I've cleared my 
Christmas deadlines, but for now, thanks for this!


Yours,
Christian

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


[Orgmode] export html - doc

2010-12-20 Thread Eric Abrahamsen
I know this is an awfully tired topic, and I'll be thrilled when the odt
exporter is ready, but in the meantime exporting to HTML and then either
opening or copying/pasting into OpenOffice is not working for me, while
it does seem to be working for other people.

I'm on Ubuntu, Emacs 23.3 and yesterday's org-mode. I export to html
just fine. Then I figure I have two options: open the html directly with
OpenOffice, or copy and paste the text. Opening the html directly just
shows me an unrendered html document. Copying and pasting into
OpenOffice turns all the italics into funny little grey boxes (one on
either side of the meant-to-be-italics text), and no actual italics.

I'm translating fiction, I don't need squat in the way of formatting
besides the paragraphs getting unfilled, and italics and bold coming
through properly. Has anyone seen this happen before, and have a
potential solution?

Thanks!

Eric


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


[Orgmode] Re: Sending org buffer as mail?

2010-12-20 Thread Sébastien Vauban
Hi Eric,

Eric Schulte wrote:
 I've added two hooks, `org-mime-send-subtree-hook' and
 `org-mime-send-buffer-hook' which can be used to do this, for example
 the following

 #+begin_src emacs-lisp
   (add-hook 'org-mime-send-subtree-hook
 (lambda ()
   (org-entry-put (point) mail_sent (current-time-string
 #+end_src

Maybe we could format the time string as an inactive Org timestamp?

I've searched in org-capture for such an example (use of %u) but couldn't spot
one, at least easily.

 will add a mail_sent property with the current time when org-mime-subtree is
 called. The only downside here is that the property is added before the
 email is sent, so choosing not to send the email after reviewing it in the
 message buffer could result in a misleading mail_sent property, in fact
 maybe mail_sent should be changed to mail_composed.

I guess too that that name is better.

FYI, when I'm M-x'ing org-mime-subtree:

- it opens a message mode buffer, but slightly different from the one I have
  if I do `m' in Gnus:

  + no Organization field,
  + no signature
  + etc.

  (I'm using `gnus-alias' for handling on-the-fly personality change)

- after `C-c C-c', it writes it's sent, but then opens Thunderbird!?

I'll have a look at these features.

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: export html - doc

2010-12-20 Thread Holger Wenzel
Hi Eric,

 I know this is an awfully tired topic, and I'll be thrilled when the odt
 exporter is ready, but in the meantime exporting to HTML and then either
 opening or copying/pasting into OpenOffice is not working for me, while
 it does seem to be working for other people.

 I'm on Ubuntu, Emacs 23.3 and yesterday's org-mode. I export to html
 just fine. Then I figure I have two options: open the html directly with
 OpenOffice, or copy and paste the text. Opening the html directly just
 shows me an unrendered html document. Copying and pasting into
 OpenOffice turns all the italics into funny little grey boxes (one on
 either side of the meant-to-be-italics text), and no actual italics.


Did you try to suppress the xml declaration in the exported html?

#+OPTIONS: org-export-html-xml-declaration (quote ((php . ?php echo \?xml 
version=\\\1.1\\\ encoding=\\\%s\\\ ?\; ?)))

At least MS-Word and Chromium don't seem to like that xml version line
and refuse to render the document.


Hth,

Holger


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


[Orgmode] Re: export html - doc

2010-12-20 Thread William Gardella
Eric Abrahamsen e...@ericabrahamsen.net writes:

 I know this is an awfully tired topic, and I'll be thrilled when the odt
 exporter is ready, but in the meantime exporting to HTML and then either
 opening or copying/pasting into OpenOffice is not working for me, while
 it does seem to be working for other people.

 I'm on Ubuntu, Emacs 23.3 and yesterday's org-mode. I export to html
 just fine. Then I figure I have two options: open the html directly with
 OpenOffice, or copy and paste the text. Opening the html directly just
 shows me an unrendered html document. Copying and pasting into
 OpenOffice turns all the italics into funny little grey boxes (one on
 either side of the meant-to-be-italics text), and no actual italics.

 I'm translating fiction, I don't need squat in the way of formatting
 besides the paragraphs getting unfilled, and italics and bold coming
 through properly. Has anyone seen this happen before, and have a
 potential solution?

 Thanks!

 Eric


Eric,

I think you will be better off using a tool such as `latex2rtf'
(available as a package here in Debian Sid, maybe in Ubuntu too?)  to
convert your LaTeX exporting output into a format OpenOffice can
understand.  Unlike taking your chances with the copy/paste behavior of
apps that aren't Emacs (egads!), latex2rtf will try to preserve the
formatting in a fairly consistent (if far from perfect) way.

Best,

Followup-To: poster
-- 
William Gardella
J.D. Candidate
Class of 2011, University of Pittsburgh School of Law


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


[Orgmode] Re: bug#7527: 24.0.50; (org) `Activation node' (minor suggestions)

2010-12-20 Thread Chong Yidong
Forwarding documentation suggestions to org upstream:

Drew Adams drew.ad...@oracle.com writes:

 Minor suggestions - no bug.

 1. No need to tell users to turn on font-lock - it's on by default now
 (for GNU Emacs at least).

 2. Likewise transient-mark mode.

 3. Maybe be a little softer with the key-binding suggestions.  Add the
 following lines to your `.emacs' file and The following lines are
 always needed are a bit heavy, even though the text clarifies that
 these are only suggested bindings (please choose suitable keys
 yourself, Choose your own keys).  Many users might just copy  paste
 without reading carefully.  It would probably be enough to advise users
 to bind those two commands to keys of their choosing, or to just say
 Suggested key bindings: 


 In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
  of 2010-11-30 on 3249CTO
 Windowing system distributor `Microsoft Corp.', version 5.1.2600
 configured using `configure --with-gcc (4.4) --no-opt --cflags
 -Ic:/imagesupport/include'


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


Re: [Orgmode] Re: export html - doc

2010-12-20 Thread Christian Moe

On 12/20/10 10:54 AM, Holger Wenzel wrote:

Did you try to suppress the xml declaration in the exported html?

#+OPTIONS: org-export-html-xml-declaration (quote ((php . ?php echo \?xml version=\\\1.1\\\ 
encoding=\\\%s\\\ ?\; ?)))


Maybe that works for a publishing setup? It doesn't for ordinary export.

This does work:

#+BIND: org-export-html-xml-declaration ()

Yours,
Christian

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


Re: [Orgmode] [PATCH] Run a hook when relative timer is continued

2010-12-20 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Dec 17, 2010, at 2:41 PM, Christian Moe wrote:



Timer: Run a hook when relative timer is continued

* lisp/org-timer.el (org-timer-continue-hook): Define the variable
(org-timer-pause-or-continue): Run hook after relative timer is
continued

There was a hook run when the relative timer is paused (and for most
other actions), but none for continuing afterwards.

One use for this would be to pause/continue playback in a media-player
app with the same keystroke used to pause/continue the timer.

TINYCHANGE



diff --git a/lisp/org-timer.el b/lisp/org-timer.el
index bac1187..ca0f838 100644
--- a/lisp/org-timer.el
+++ b/lisp/org-timer.el
@@ -65,6 +65,9 @@ When 0, the user is prompted for a value.
(defvar org-timer-pause-hook nil
Hook run before relative timer is paused.)

+(defvar org-timer-continue-hook nil
+ Hook run after relative timer is continued.)
+
(defvar org-timer-set-hook nil
Hook run after countdown timer is set.)

@@ -128,6 +131,7 @@ With prefix arg STOP, stop it entirely.
(org-float-time org-timer-start-time
org-timer-pause-time nil)
(org-timer-set-mode-line 'on)
+ (run-hooks 'org-timer-continue-hook)
(message Timer continues at %s (org-timer-value-string)))
(t
;; pause timer

--

Christian Moe
E-mail:  m...@christianmoe.com
Website: http://christianmoe.com



org-timer.el.diff___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] Fix before first heading check

2010-12-20 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Dec 19, 2010, at 10:32 PM, Bernt Hansen wrote:

* lisp/org.el (org-before-first-heading-p): If point is on an org- 
mode heading line then we are not before the first heading


If point is anywhere on the first line of the first heading then we
are not before the first heading.  This makes
org-before-first-heading-p returns t instead of nil when on the '*' or
blank of the first level 1 heading in an org file.

This was noticed when the first heading has an encryption
tag :crypt:. C-c C-r would not decrypt this entry if point is at the
beginning of the line since it was considered before the first
heading.
---
This patch is available at git://git.norang.ca/org-mode.git fix- 
before-first-heading-check


-Bernt

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

diff --git a/lisp/org.el b/lisp/org.el
index 53039e4..b2f32fc 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19167,6 +19167,7 @@ This version does not only check the  
character property, but also

(defun org-before-first-heading-p ()
  Before first heading?
  (save-excursion
+(end-of-line)
(null (re-search-backward ^\\*+  nil t

(defun org-on-heading-p (optional ignored)
--
1.7.3.3.464.gf80b6


___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Disputed keys

2010-12-20 Thread Andrea Crotti
Eric S Fraga e.fr...@ucl.ac.uk writes:


 Isn't switching to frame a function of your window manager and not
 emacs?  That is, shouldn't this be a case of telling your window manage,
 whatever that may be, to switch frames when these keys are pressed?

 Or am I missing something fundamental here?

Well yes and no, I could many programs running, and I want a key that
lets me switch only between the emacs frames, without showing me the
other windows.

Having that working it would be even better that the operating system
only show me one instance of emacs frames, not all of them.


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


[Orgmode] Re: Disputed keys

2010-12-20 Thread Andrea Crotti
Stefan Vollmar voll...@nf.mpg.de writes:

 Dear Andrea,

 I have this in my .emacs file

 (defun my-org-mode-stuff ()
   (define-key org-mode-map [(meta tab)] 'previous-user-buffer)
   (local-set-key (kbd S-right) 'forward-char-mark)
   (local-set-key (kbd S-left) 'backward-char-mark)
   (local-set-key (kbd S-up) 'previous-line-mark)
   (local-set-key (kbd S-down) 'next-line-mark))

 (add-hook 'org-mode-hook 'my-org-mode-stuff)

 this was a suggestion from the list (thanks to PT 
 spamfilteracco...@gmail.com) and works for me, I realize that this was not 
 exactly what you were asking for but thought it might help.


I'm quite sure that also would work for me, that's the normal way to
proceed.
But since org-mode has this disputed-keys feature which is quite a good
idea I wanted to use it if possible...

Looks like that the key meta-left which would be bound to other-frame
is not seen as used by org-mode, that's my explanation...


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


[Orgmode] Re: Disputed keys

2010-12-20 Thread Andrea Crotti
Suvayu Ali fatkasuvayu+li...@gmail.com writes:


 I think Andrea meant to say switching window. But none the less, Emacs
 has the ability to switch frames, `C-x 5 o' or even your regular
 switch-buffer'. But I think it does it by talking to the window
 manager.

 This can be very useful when you have multiple emacs frames for one
 instance of emacs on different desktops. If you have configured your
 window manager appropriately simply switching to a buffer shown on
 another desktop can switch you to that desktop and raise the Emacs
 frame with the buffer. :)

I meant switching frames...
I normally would keep the frames in the same desktop, maybe different
instances of emacs on different desktops (I have one for gnus and one
for everything else).

An example of a window manager configuration to do this anyway?


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


Re: [Orgmode] org-capture to file+datetree+prompt lives in the future?

2010-12-20 Thread Carsten Dominik

This was a bug, fixed now, thanks.

- Carsten

On Dec 18, 2010, at 12:32 AM, Urs Rau (UK) wrote:

I am running the latest git version Org-mode version 7.4  
(release_7.4.41.g96c70) and found that if my capture runs with the  
option file+datetree+prompt the year it detects is 3979
but if I run it without the '+prompt' option at the end it detects  
the right year 2010. Also with the prompt option appended it creates  
multiple top level headings for year 3979 for notes and todos.


my .emacs customize capture setting is the default that org-mode  
suggests the only thing I changed was the appended '+prompt'


Is it me, or my setup or this is a little bug?

Regards

--
Urs Rau



___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: preventing strikethrough, italics and underline fontification

2010-12-20 Thread Matt Lundin
David Maus dm...@ictsoc.de writes:

 At Wed, 8 Dec 2010 09:03:04 -0600,
 Eric Holbrook wrote:

 Is there a way to inhibit fontification of this kind of thing? It'd be nice
 if i could do it on a per-line or per-region basis. Maybe in response to a
 tag in the headline? Maybe in response to a property?

 No, not that I am aware of.  You might wrap the things in code markers
 like:

 =_token_to_get_inserted_in_something_=

 This prevents the highlighting in the buffer and also protects these
 when exporting the file.

Another option is to wrap the region in an example or source block:

--8---cut here---start-8---
#+begin_example:
_some_funky_underlined_text
#+end_example
--8---cut here---end---8---

If you want to tweak such fontification globally, you can use the
variable org-emphasis-alist.

Best,
Matt

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


[Orgmode] Re: [Babel] Tangling ignores LOB file?

2010-12-20 Thread Sébastien Vauban
Hi Eric,

Eric Schulte wrote:
 In other words, it seems that the tangle process does not take into account
 the code blocks located in the LOB.

 I just pushed up a fix which should allow noweb references to be resolved
 using the library of babel.

TESTED as FIXED. Case is CLOSED.

Thanks a lot.

Best regards,
  Seb

-- 
Sébastien Vauban


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


Re: [Orgmode] Bug: Bad doc [7.4]

2010-12-20 Thread Carsten Dominik


On Dec 20, 2010, at 9:06 AM, Dave Abrahams wrote:


At Mon, 20 Dec 2010 08:40:50 +0100,
Carsten Dominik wrote:


This is a bit tricky and not fully documented.

If you have no or only only a single template defined, then
template selection is bypassed and you do not get a chance
to press C to get to the customization buffer.  This is to
please John Wiegley :) who only uses a single capture template


And I'm using his template, practically unmodified :-)


and rightfully wanted to lose the extra key press.


And I like that feature myself.


As soon
as you have at least 2 templates, you will get the menu and
also the chance to press `C'.

I am not quite sure what to do about it, documenting it makes
things look more complicated as they are.


Hmm, seems to me that it would be more principled to have org-capture
take an optional argument that indicates the template index, and ask
me and John to bind our key to (lambda () (org-capture 0))


You are right, this is better for consistency.
You can do that already, bind something like (org-capture t)
where t is the selection key.

(define-key global-map \C-c c
   (lambda () (interactive) (org-capture t)))

Thanks.

- Carsten



--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




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


[Orgmode] Re: export html -gt; doc

2010-12-20 Thread Chris Thompson
Eric Abrahamsen eric at ericabrahamsen.net writes:
 
 I'm translating fiction, I don't need squat in the way of formatting
 besides the paragraphs getting unfilled, and italics and bold coming
 through properly. Has anyone seen this happen before, and have a
 potential solution?
 

Eric, for your needs, you may find that Pandoc (which now supports Org files) is
a simpler solution that works now.

-- Chris


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


[Orgmode] Using org-agenda-filter-preset with or'd tags

2010-12-20 Thread johnt
I am trying to set a custom command to show my work tasks and critical home
tasks for the day.

I have tried the following.

(setq org-agenda-custom-commands

  '(

(W Work Schedule 

 (

  (agenda  

   (

(org-agenda-filter-preset '(@Work|critical))   ;; this doesn't 
work

(org-agenda-ndays 1)

   )

  )

  (tags-todo @Work|critical)

 )

)

)

It seems just to ignore the filter. The tags-todo line works fine.

I tried various filters to verify my syntax.  
using (org-agenda-filter-preset '(+...@work)) works fine but is not what I 
want.
using (org-agenda-filter-preset '(@Work | critical)) also doesn't work.

As a side note when I print the agenda it seems to ignore the filter I set with
[/][-][tab]tag.  The printed version has the items not shown on screen.

using GNU Emacs 23.2.1 - ORG 7.4

Thank-you



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


Re: [Orgmode] Re: Disputed keys

2010-12-20 Thread suvayu ali
Hi Andrea,

On Mon, Dec 20, 2010 at 5:09 AM, Andrea Crotti
andrea.crott...@gmail.com wrote:
 This can be very useful when you have multiple emacs frames for one
 instance of emacs on different desktops. If you have configured your
 window manager appropriately simply switching to a buffer shown on
 another desktop can switch you to that desktop and raise the Emacs
 frame with the buffer. :)

 I normally would keep the frames in the same desktop, maybe different
 instances of emacs on different desktops (I have one for gnus and one
 for everything else).

 An example of a window manager configuration to do this anyway?

I use XFCE. In XFCE you can check the radio button for the option,
Window Manager Tweaks -- Focus -- Honor standard ICCCM focus hint
-- Switch to window's workspace.

:)

-- 
Suvayu

Open source is the future. It sets us free.

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


Re: [Orgmode] Re: bug#7527: 24.0.50; (org) `Activation node' (minor suggestions)

2010-12-20 Thread Carsten Dominik


On Dec 20, 2010, at 11:58 AM, Chong Yidong wrote:


Forwarding documentation suggestions to org upstream:

Drew Adams drew.ad...@oracle.com writes:


Minor suggestions - no bug.

1. No need to tell users to turn on font-lock - it's on by default  
now

(for GNU Emacs at least).


Done.



2. Likewise transient-mark mode.


I think the manual does a good job here the way it is.



3. Maybe be a little softer with the key-binding suggestions.  Add  
the

following lines to your `.emacs' file and The following lines are
always needed are a bit heavy, even though the text clarifies that
these are only suggested bindings (please choose suitable keys
yourself, Choose your own keys).  Many users might just copy   
paste
without reading carefully.  It would probably be enough to advise  
users

to bind those two commands to keys of their choosing, or to just say
Suggested key bindings: 


I have modified this part, thanks.

This bug can be closed - the changes are in our development version and
will move into Emacs with the next merge.

Thanks

- Carsten





In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
of 2010-11-30 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'



___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Request for suggestions: multiple revision control systems/repositories + org

2010-12-20 Thread Robert Goldman
On 12/20/10 Dec 20 -1:03 AM, Rémi Vanicat wrote:
 Robert P. Goldman rpgold...@sift.info writes:
 
 That is what I had done originally, but I thought mobile org required that 
 all the org files be in the same directory. Was I wrong about that?

 
 I've org files in several directories, and in `org-agenda-files’, and
 with a relatively recent org-mode files org-mobile just work. It is
 `org-mobile-push’ and `org-mobile-pull’ that put a copy of all this in
 `org-mobile-directory’.
 

Thanks.  I did what I should have before and read org-mobile-push, and
it seems clear that the org-directory variable just /allows/ me to have
relative path names.  It doesn't /require/ me to have all the org files
located in that directory, as long as I use absolute file names.

This will make things much easier to deal with between org-mode and vc-mode.

Thanks, everyone.

best,
r

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


[Orgmode] Habits default on first STATE when rescheduled

2010-12-20 Thread Sébastien Vauban
Hi,

Having the following possible states:

#+begin_src emacs-lisp
  (setq org-todo-keywords
'((sequence NEW(n!)
TODO(t!)
WAIT(w!)
DLGT(l!)
|
DONE(d!)
DFRD(f!)
CANX(c!
#+end_src

the habits, when DONE, go back to state NEW, instead of TODO. Of course, there
is no way for Org to know it has to re-begin at the second state (in this
case).

Maybe it'd be good to add an index for habit cycles, or so?

The other alternative is to put NEW after TODO, but this is quite meaningless,
for all the other non-habit tasks that would be first TODO, then NEW, then...
when cycling with S-arrow.

Best regards,
  Seb

-- 
Sébastien Vauban


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


Re: [Orgmode] Disputed keys

2010-12-20 Thread Carsten Dominik


On Dec 18, 2010, at 10:26 PM, Andrea Crotti wrote:


I wanted finally to fix the following problem, I would like to use
meta-left/right to switch frame, and that's one of the keys that  
orgmode

uses.

I added the two values here to the org-disputed-keys

--8---cut here---start-8---
[(meta left)]
   Value: [(meta control left)]
[(meta right)]
   Value: [(meta control right)]
--8---cut here---end---8---

but still it doesn't work, in orgmode meta-left is always bound to the
org action, not to other-frame as it is in other modes...

Any suggestions?


Did you do

(setq org-replace-disputed-keys t)

- Carsten




___
Emacs-orgmode mailing list
Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: Bad doc [7.4]

2010-12-20 Thread Dave Abrahams
At Mon, 20 Dec 2010 15:16:28 +0100,
Carsten Dominik wrote:
 
  Hmm, seems to me that it would be more principled to have org-capture
  take an optional argument that indicates the template index, and ask
  me and John to bind our key to (lambda () (org-capture 0))
 
 You are right, this is better for consistency.

Plus, it would fix your documentation :-)

Here's a guideline I use: 

  if you're finding it difficult to document the behavior accurately,
  you probably designed it wrong or maybe you don't even really
  understand what it does.

That has happened to me enough times that it was worth making up a
guideline.

 You can do that already, bind something like (org-capture t)
 where t is the selection key.
 
 (define-key global-map \C-c c
(lambda () (interactive) (org-capture t)))

Thanks; if the behavior is ever updated I will switch to that
arrangement.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


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


Re: [Orgmode] Bug: Bad doc [7.4]

2010-12-20 Thread Carsten Dominik


On Dec 20, 2010, at 5:56 PM, Dave Abrahams wrote:


At Mon, 20 Dec 2010 15:16:28 +0100,
Carsten Dominik wrote:


Hmm, seems to me that it would be more principled to have org- 
capture

take an optional argument that indicates the template index, and ask
me and John to bind our key to (lambda () (org-capture 0))


You are right, this is better for consistency.


Plus, it would fix your documentation :-)

Here's a guideline I use:

 if you're finding it difficult to document the behavior accurately,
 you probably designed it wrong or maybe you don't even really
 understand what it does.

That has happened to me enough times that it was worth making up a
guideline.


You can do that already, bind something like (org-capture t)
where t is the selection key.

(define-key global-map \C-c c
  (lambda () (interactive) (org-capture t)))


Thanks; if the behavior is ever updated I will switch to that
arrangement.


It alreay has been changed

- Carsten


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


Re: [Orgmode] [ANN] Zotero for plain text (including org-mode)

2010-12-20 Thread Erik Hetzner
At Mon, 20 Dec 2010 10:19:21 +0100,
Christian Moe wrote:
 Hi, Erik,
 
 That's solved it for me. It still does not happen /every/ time I 
 insert a Zotero link that the link is expanded with a full biblio 
 description, but it happens most of the time, and for when it doesn't, 
 `C-c z u' seems to work reliably now.
 
 (Firefox taxes my old system a bit, and runs with frequent pauses, 
 which may account for my having more trouble communicating with 
 MozRepl than you're seeing. Looking forward to the API.)
 
 One more issue I see is with Unicode characters. They are preserved 
 when I command-shift-copy a reference from Zotero into an Org buffer 
 (I have current-language-environment set to UTF-8). Org-zotero-mode 
 does not preserve them. I've had a quick look at the code but haven't 
 pinned it down why not.
 
 I may have some more feedback in a week's time when I've cleared my 
 Christmas deadlines, but for now, thanks for this!

Hi Christian,

Unicode characters seem to work for me, with
current-language-environment set to English or UTF-8. That is,
citations are inserted  updated with the proper characters.

This is Emacs 23.1.1, Firefox 3.6.13, Zotero 2.0.9, all on Ubuntu
Maverick.

best, Erik

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


Re: [Orgmode] [OT] recutils

2010-12-20 Thread Michael Brand
On Mon, Dec 13, 2010 at 13:33, Jean-Marie Gaillourdet
j...@gaillourdet.net wrote:
 You might be interested to hear about txt-sushi [1], a command line
 utility to apply SQL statements on a set of csv files, each of which
 represents one table.

 [1] http://keithsheppard.name/txt-sushi/

Thank you for pointing this out. And there in the link section is also
mentioned You can now use CSV files as the storage backend for
MySQL:
http://dev.mysql.com/tech-resources/articles/csv-storage-engine.html

Michael

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


Re: [Orgmode] Re: [PATCH] Alphabetical ordered lists

2010-12-20 Thread Nicolas Goaziou
Hello,

 Nathaniel Flath writes:

 Sory for the long delay - I got caught up in other work. A
 patchaddressing the sisues brought up is attached.

I've had a look at your patch.

I think the modifications to HTML and DocBook exporters are nice. It
could be possible to do the same thing in LaTeX, but it would require
yet another package (enumitem) by default. Anyway, here are the code
comments :

- in your patch, you should try to list modifications to the
  functions, and which functions were created. For example :

  * org-list.el (org-alphabetical-lists): new variable
  (org-cycle-list-bullet): added A) a) A. and a. to the list
  of bullets in cycle. None of them is allowed in a description list.

- The yes at the beginning of org-docbook.el should be removed

- I advise against using (org-next-item) programmatically. It means
  you compute the structure associated to the list for each item in
  the list. I left a note about this circa line 847 in org-list.el

- There's a bug with the following situation :

  A) test
  B) tersi
  C) teirsu
  D) tersiu
  E) tesiu
  F) teisru
  G) etisu
 - sub-item 1
 - sub-item 2
 - sub-item 3
 - sub-item 4
  H) tesinu
  I) tesinru
  J) etnrsiu
  K) tesriun
  L) etnsiu
  M) estinu
  N) etsniu
  O) etsinu
  P) tesnu
  Q) etsinu
  R) etsiun
  S) etsnriu
  T) etsnriu
  U) etsinu
  V) etsiu
  W) etinrsu
  X) last item

  If you outdent sub-items 2 to 4 at the same time (with a region),
  bullet of the last item will become AA) and will not be recognized
  as a list item anymore.

- There's also a bug with counters:

  * [0/0] Counter

A. [X] first box
B. [X] second box

  These boxes are not counted when bullets are literals (try C-c #).


HTH,

Regards,

-- Nicolas

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


[Orgmode] Re: body-only for single file html export

2010-12-20 Thread joe
On Sun, Dec 19, 2010 at 05:10:57PM -0500, Bernt Hansen wrote:
 joe j...@chemistry.coe.edu writes:
 
  I would like to use the :body-only option for exporting html (and
  ocassionally latex). Reading through the docs and maillist, I think I
  understand how to do this if I'm publishing an entire project.  I
  don't have a project, though...
 
  I use emacs for editing html textareas and on-the-fly html editing,
  and want to export a single file using the body-only option.
 
  I was hoping I could simply do something like this in the template but
  it doesn't seem to work:
 
  #+OPTIONS: body-only:t
 
  If someone can help me with an org-mode-export-html function that sets
  the body-only option for a single file (without setting up a project),
  I would be very grateful.
 
  Thank you much!
 
 Hi Joe,
 
 (global-set-key (kbd f9 x) 'bh/test)
 
 (defun bh/test (arg)
   (interactive P)
   (org-export-as-html arg nil nil nil t))
 
 then f9-x in an org-mode buffer will export as body-only and put a copy
 in the kill ring so you can paste it.
 
 HTH,
 Bernt

Bernt,

YES!  Thank you...this is just what I needed.  I also learned a little
about lisp.

A question for org-mode developers or expert users: Is there a design
reason an export option like body-only can't be set using the
#+OPTIONS directive?  Just curious...

Thanks,
Joe

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


[Orgmode] org-crypt

2010-12-20 Thread kelaouchi
Hello,

here are my settings for org-crypt :

(require 'org-crypt)
(org-crypt-use-before-save-magic)
(setq org-tags-exclude-from-inheritance (quote (crypt)))
(setq org-crypt-key C48ED4D2)

I create a buffer :

* heading 1  :crypt:
** subheading 1
   text 1
** subheading 2
   text 2
* heading 2  :crypt:
** subheading 1
   text 1
** subheading 2
   text 2

When saving it, heading 1 and heading 2 are encrypted.
When trying to org-decrypt-entries, emacs prompts for passphrase one
time. Only heading 2 is decrypted. I kill buffer; then reopen it and
run org-decrypt-entries. The same : only heading 2 is decrypted. 

I remove heading 1; create a new heading 1, but this once, tagging
subheading 1 as crypt instead of heading 1 :

* heading 1  
** subheading 1  :crypt:
   text 1
** subheading 2
   text 2
* heading 2  :crypt:
** subheading 1
   text 1
** subheading 2
   text 2

I then save and try to run org-decrypt-entries. Emacs prompts twice for
passphrase and everything is well decrypted. 

I run Org-mode version 7.3 on GNU Emacs 23.2.1
(x86_64-unknown-linux-gnu, GTK+ Version 2.20.0) of 2010-05-08 on
pidsley.hoetzel.info .

Is it a bug ?

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


[Orgmode] Re: Habits default on first STATE when rescheduled

2010-12-20 Thread Bernt Hansen


Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org
writes:

 Having the following possible states:

 #+begin_src emacs-lisp
   (setq org-todo-keywords
 '((sequence NEW(n!)
 TODO(t!)
 WAIT(w!)
 DLGT(l!)
 |
 DONE(d!)
 DFRD(f!)
 CANX(c!
 #+end_src

 the habits, when DONE, go back to state NEW, instead of TODO. Of course, there
 is no way for Org to know it has to re-begin at the second state (in this
 case).

 Maybe it'd be good to add an index for habit cycles, or so?

 The other alternative is to put NEW after TODO, but this is quite meaningless,
 for all the other non-habit tasks that would be first TODO, then NEW, then...
 when cycling with S-arrow.

Hi Seb,

You can add a property to your habits

  :REPEAT_TO_STATE: TODO

which forces this state for repeating tasks when the item is marked DONE

HTH,
Bernt



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


[Orgmode] Bug: contrib/src/org-collector.el [7.3]

2010-12-20 Thread MidLifeXis at PerlMonks
Hello,

org-read-prop treats strings beginning with digits as numbers.
 

contrib/lisp/org-collector.el: (line 124ish: 
http://repo.or.cz/w/org-mode.git/blob/5f77fd6a81a4241ce5a8e346acb9df089d65b462:/contrib/lisp/org-collector.el#l124)


(org-read-prop 123abc-def543) returns 123, should return 123abc-def543

Creates problems trying to include org-generated ID numbers (UUID style) into a 
propview table.

Perhaps later I can submit a patch, but I don't currently have the cycles.

My current configuration is:

Emacs  : GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
 of 2008-03-26 on RELEASE
Package: Org-mode version 7.3


but the problem is still in the master branch (see link above).


Brian

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


[Orgmode] Re: org-crypt

2010-12-20 Thread Bernt Hansen
kelaouchi kelaou...@gmail.com writes:

 Hello,

 here are my settings for org-crypt :

 (require 'org-crypt)
 (org-crypt-use-before-save-magic)
 (setq org-tags-exclude-from-inheritance (quote (crypt)))
 (setq org-crypt-key C48ED4D2)

 I create a buffer :

 * heading 1  :crypt:
 ** subheading 1
text 1
 ** subheading 2
text 2
 * heading 2  :crypt:
 ** subheading 1
text 1
 ** subheading 2
text 2

 When saving it, heading 1 and heading 2 are encrypted.
 When trying to org-decrypt-entries, emacs prompts for passphrase one
 time. Only heading 2 is decrypted. I kill buffer; then reopen it and
 run org-decrypt-entries. The same : only heading 2 is decrypted. 

 I remove heading 1; create a new heading 1, but this once, tagging
 subheading 1 as crypt instead of heading 1 :

 * heading 1  
 ** subheading 1  :crypt:
text 1
 ** subheading 2
text 2
 * heading 2  :crypt:
 ** subheading 1
text 1
 ** subheading 2
text 2

 I then save and try to run org-decrypt-entries. Emacs prompts twice for
 passphrase and everything is well decrypted. 

 I run Org-mode version 7.3 on GNU Emacs 23.2.1
 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0) of 2010-05-08 on
 pidsley.hoetzel.info .

 Is it a bug ?

Yes it was.  It was fixed in git master this morning.

Regards,
Bernt

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


[Orgmode] LaTeX exporter #+INCLUDE bug

2010-12-20 Thread Rasmus
Hi,
I think there might be a bug when using #+INCLUDE and the LaTeX exporter. The
content of the included file is exported twice, although slightly different in
each case. I experience this when I include org-files starting with a headline,
i.e. *.

I use Org-mode 7.4 with GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+
Version 2.22.1)

The following example illustrates the problem. Note, the problem does not exist
when using the HTML exporter. 

$ cat main.org 
#+INCLUDE: included.org org
$ cat included.org 
* CDs
  - Neil Young
$ tail -n 16 main.tex 
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
* CDs
\begin{itemize}
\item Neil Young
\end{itemize}

\section{CDs}
\label{sec-1}

\begin{itemize}
\item Neil Young
\end{itemize}

\end{document}

Thanks,
Rasmus


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


Re: [Orgmode] Bug: contrib/src/org-collector.el [7.3]

2010-12-20 Thread Eric Schulte
Hi Brian,

Thanks for the report.  I've just pushed up a fix to org-collector.el.
I've entirely removed `org-read-prop' and replaced it with
`org-babel-read' a more modern/robust version of the same function which
doesn't display the problem you mentioned below.

#+begin_src emacs-lisp
  (org-babel-read 123abc-def543) ; 123abc-def543
#+end_src

Cheers -- Eric

MidLifeXis at PerlMonks midlife...@wightmanfam.org writes:

 Hello,

 org-read-prop treats strings beginning with digits as numbers.
  

 contrib/lisp/org-collector.el: (line 124ish: 
 http://repo.or.cz/w/org-mode.git/blob/5f77fd6a81a4241ce5a8e346acb9df089d65b462:/contrib/lisp/org-collector.el#l124)


 (org-read-prop 123abc-def543) returns 123, should return 123abc-def543

 Creates problems trying to include org-generated ID numbers (UUID style) into 
 a 
 propview table.

 Perhaps later I can submit a patch, but I don't currently have the cycles.

 My current configuration is:

 Emacs  : GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600)
  of 2008-03-26 on RELEASE
 Package: Org-mode version 7.3


 but the problem is still in the master branch (see link above).


 Brian

 ___
 Emacs-orgmode mailing list
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Huge performance problems to open some Org files

2010-12-20 Thread Vladimir Alexiev
Sébastien Vauban wxhgmqzgw...@... writes:

 Believe me or not, but C-g has not effect during those 7 seconds. It simply
 does not stop anything

Sounds like emacs is waiting inside some blocking call, and waits until it 
times 
out. Likely a network call. Do you have any tramp/efs/angeftp stuff going on?


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


[Orgmode] [PATCH] org-babel-confirm-evaluate when org-confirm-babel-evaluate is a function

2010-12-20 Thread Vladimir Alexiev
I tried following http://orgmode.org/worg/org-contribute.php to the letter.
But this is my first patch (and first time using git  magit), so please kindly 
give me feedback if something is not right.

* doc/org.texi: org-confirm-babel-evaluate: add example for using a
  function
* lisp/ob.el (org-babel-confirm-evaluate): Fix for the case when
  org-confirm-babel-evaluate is a function (used to always ask no matter
  what the function returns) 

--- a/doc/org.texi
+++ b/doc/org.texi
@@ -12662,9 +12662,19 @@ Make sure you know what you are doing before 
customizing the variables
 which take off the default security brakes.
 
 @defopt org-confirm-babel-evaluate
-When set to t user is queried before code block evaluation
+When t (the default), the user is asked before every code block evaluation.
+When nil, the user is not asked.
+When set to a function, it is called with two arguments (language and body of 
the code
+block) and should return t to ask and nil not to ask.
 @end defopt
 
+For example, here is how to execute ditaa code (which is considered safe) 
without asking:
+...@example
+(defun my-org-confirm-babel-evaluate (lang body)
+  (not (string= lang ditaa)))  ; don't ask for ditaa
+(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate)
+...@end example
+

--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -209,11 +209,11 @@ Note disabling confirmation may result in accidental 
evaluation
 of potentially harmful code.
   (let* ((eval (or (cdr (assoc :eval (nth 2 info)))
   (when (assoc :noeval (nth 2 info)) no)))
-(query (or (equal eval query)
-   (if (functionp org-confirm-babel-evaluate)
-   (funcall org-confirm-babel-evaluate
-(nth 0 info) (nth 1 info))
- org-confirm-babel-evaluate
+ (query (cond ((equal eval query))
+  ((functionp org-confirm-babel-evaluate)
+   (funcall org-confirm-babel-evaluate
+(nth 0 info) (nth 1 info)))
+  ((org-confirm-babel-evaluate)
 (if (or (equal eval never) (equal eval no)
(and query
 (not (yes-or-no-p

TINYCHANGE



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


[Orgmode] Re: [Bug] Lists with checkboxes

2010-12-20 Thread Achim Gratz
Nicolas Goaziou n.goaz...@gmail.com writes:
 You are right. I'm working on it. For now, you can put a counter
 wherever you want to have the old, and right, behaviour. In your
 example, adding [/] to items Second and Third would do it.

Thanks for looking into this - and take your time.  I won't need this
feature very often in the next few weeks and if really necessary I can
easily revert back to 7.01h.


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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves


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


Re: [Orgmode] Windmove keybindings pass-through

2010-12-20 Thread Leo Alekseyev
Thanks for the suggestion, but this is a non-solution.  My preference
would be to (a) in org-mode, move outline manipulation to e.g.
C-arrows from S-arrows, and if that is too difficult, then (b) get
rid of outline manipulation altogether.  I use S-arrows in windmove
orders of magnitude more often than I mess with my org outlines.
Surely there must be a way to customize org keybindings without having
to source-dive?..

--Leo

On Thu, Dec 16, 2010 at 3:20 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote:
 On Thu, Dec 16, 2010 at 2:24 PM, Leo Alekseyev dnqu...@gmail.com wrote:
 Optionally, it would be nice
 if I can map the shift-arrow functionality to something like M-arrows
 or C-arrows or C-M-arrows (whichever might be not taken / less
 useful).  However, getting rid of org-mode's stealing shift-arrows is
 a priority.  Any help is appreciated :)

 I would recommend (windmove-default-keybindings 'control) for
 `C-arrow'. That seems to be the modifier key least used by org-mode
 and least likely to be overridden.

 --
 Suvayu

 Open source is the future. It sets us free.


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


Re: [Orgmode] Windmove keybindings pass-through

2010-12-20 Thread Leo Alekseyev
To answer my own question: here's how you avoid clobbering the
windmove commands.  This method should probably be added to the org
manual section which discusses the (add-hook 'org-shiftup-final-hook
'windmove-up), etc commands.

;; don't clobber windmove bindings: code must be placed _before_ org
loads
;; also, the (add-hook 'org-shiftup-final-hook 'windmove-up), etc
lines don't seem to do squat
;; default disputed keys remap so that windowmove commands aren't
overridden
(setq org-disputed-keys '(([(shift up)] . [(meta p)])
  ([(shift down)] . [(meta n)])
  ([(shift left)] . [(meta -)])
  ([(shift right)] . [(meta +)])
  ([(meta return)] . [(control meta return)])
  ([(control shift right)] . [(meta shift +)])
  ([(control shift left)] . [(meta shift -)])))
(setq org-replace-disputed-keys t)


On Mon, Dec 20, 2010 at 12:37 PM, Leo Alekseyev dnqu...@gmail.com wrote:
 Thanks for the suggestion, but this is a non-solution.  My preference
 would be to (a) in org-mode, move outline manipulation to e.g.
 C-arrows from S-arrows, and if that is too difficult, then (b) get
 rid of outline manipulation altogether.  I use S-arrows in windmove
 orders of magnitude more often than I mess with my org outlines.
 Surely there must be a way to customize org keybindings without having
 to source-dive?..

 --Leo

 On Thu, Dec 16, 2010 at 3:20 PM, suvayu ali fatkasuvayu+li...@gmail.com 
 wrote:
 On Thu, Dec 16, 2010 at 2:24 PM, Leo Alekseyev dnqu...@gmail.com wrote:
 Optionally, it would be nice
 if I can map the shift-arrow functionality to something like M-arrows
 or C-arrows or C-M-arrows (whichever might be not taken / less
 useful).  However, getting rid of org-mode's stealing shift-arrows is
 a priority.  Any help is appreciated :)

 I would recommend (windmove-default-keybindings 'control) for
 `C-arrow'. That seems to be the modifier key least used by org-mode
 and least likely to be overridden.

 --
 Suvayu

 Open source is the future. It sets us free.



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


Re: [Orgmode] Windmove keybindings pass-through

2010-12-20 Thread suvayu ali
On Mon, Dec 20, 2010 at 1:21 PM, Leo Alekseyev dnqu...@gmail.com wrote:
 To answer my own question: here's how you avoid clobbering the
 windmove commands.  This method should probably be added to the org
 manual section which discusses the (add-hook 'org-shiftup-final-hook
 'windmove-up), etc commands.

 ;; don't clobber windmove bindings: code must be placed _before_ org
 loads
 ;; also, the (add-hook 'org-shiftup-final-hook 'windmove-up), etc
 lines don't seem to do squat
 ;; default disputed keys remap so that windowmove commands aren't
 overridden
 (setq org-disputed-keys '(([(shift up)] . [(meta p)])
                          ([(shift down)] . [(meta n)])
                          ([(shift left)] . [(meta -)])
                          ([(shift right)] . [(meta +)])
                          ([(meta return)] . [(control meta return)])
                          ([(control shift right)] . [(meta shift +)])
                          ([(control shift left)] . [(meta shift -)])))
 (setq org-replace-disputed-keys t)


Thanks a lot. I wasn't aware of this method. This will be very helpful.

-- 
Suvayu

Open source is the future. It sets us free.

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


[Orgmode] Re: export html - doc

2010-12-20 Thread Eric Abrahamsen
On Mon, Dec 20 2010, Christian Moe wrote:

 On 12/20/10 10:54 AM, Holger Wenzel wrote:
 Did you try to suppress the xml declaration in the exported html?

 #+OPTIONS: org-export-html-xml-declaration (quote ((php . ?php echo 
 \?xml version=\\\1.1\\\ encoding=\\\%s\\\ ?\; ?)))

 Maybe that works for a publishing setup? It doesn't for ordinary export.

 This does work:

 #+BIND: org-export-html-xml-declaration ()

That did the trick! Thank you.

One small follow-up question: this produces iso-8859-1 encoded text by
default; how do I go about asking for utf-8?

And I'll check out both pandoc and latex2rtf for more complicated
exports, thanks to all!

Eric


 Yours,
 Christian

 ___
 Emacs-orgmode mailing list
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Single quote and inline formatting

2010-12-20 Thread Puneeth
On Tue, Dec 21, 2010 at 4:26 AM, Michael Gauland mikely...@gmail.com wrote:
 Enclosing text in '=' symbols generally causes the text to be formatted as 
 code. I've found this fails if the last character in the text is a single 
 quote ('):

    + =This works=
    + =So does 'this=
    + =But not this'=

 The text in the first two lines appears in the 'code' face (gray), and is 
 exported to HTML in a code tag. The last line appears in the normal face, 
 and is not exported in a code tag.

 Is this expectd behavoiur? If not, where is the best place to start poking 
 around to fix it?

Yes, this is expected behaviour.  Look at the variable
org-emphasis-regexp-components, for more information.


 Thanks,
 Mike

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





-- 
Puneeth

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


Re: [Orgmode] [OT] Exporting org files to html from outside GNU Emacs

2010-12-20 Thread Puneeth
On Sat, Dec 18, 2010 at 8:08 AM, Jeff Horn jrhorn...@gmail.com wrote:
 This might work: http://johnmacfarlane.net/pandoc/

Pandoc doesn't have an org-mode reader as of now.  I had implemented
only a writer, since I was looking for an importer to org-mode.

-- 
Puneeth

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


Re: [Orgmode] [PATCH] org-agenda: rewrite mode-line

2010-12-20 Thread Carsten Dominik

Hi XEmacs users

I am about to apply this patch, but I am still wondering
if :eval in the mode line is working on XEmacs?


- Carsten

On Dec 13, 2010, at 3:49 PM, Carsten Dominik wrote:


XEmacs users, please read this.

On Dec 12, 2010, at 7:55 PM, Julien Danjou wrote:


On Sun, Dec 12 2010, Carsten Dominik wrote:


what is the purpose of this patch, why is it needed?
I generally will not accept patches that lack this information.


Sorry, it seems quite obvious to me.


Hi Julien,

even if it is more or less obvious on closer
study, I am trying to create a useful history of
the project by providing additional information
at commit time.  And knowing the intend of the author
speeds up classifying and judging the patch very much.
I have not spent some 20 Minutes looking at it and
writing to you and looking at it again

The patch looks good to me, I am planning to accept
it after studying it closer.

Does anyone know if :eval in the mode line specification
is XEmacs compatible?

- Carsten



The purpose is to stop trying to guess where to call the function to
`org-agenda-set-mode-name' whenever one of the value change used in  
that

function changes.

This is probably one of the reason why :eval property has been  
invented,

I guess. :-)

--
Julien Danjou
❱ http://julien.danjou.info


- Carsten






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


Re: [Orgmode] [OT] Exporting org files to html from outside GNU Emacs

2010-12-20 Thread Jeff Horn
Oops! Thanks for the clarification!

On Tue, Dec 21, 2010 at 12:04 AM, Puneeth puncha...@gmail.com wrote:
 On Sat, Dec 18, 2010 at 8:08 AM, Jeff Horn jrhorn...@gmail.com wrote:
 This might work: http://johnmacfarlane.net/pandoc/

 Pandoc doesn't have an org-mode reader as of now.  I had implemented
 only a writer, since I was looking for an importer to org-mode.

 --
 Puneeth




-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

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