Re: [O] Including linked emails during export (was Re: Integration of notmuch email references in notes in org-mode)

2013-02-19 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 18/02/13 22:41, Suvayu Ali wrote:
 Hi,
 
 On Mon, Feb 18, 2013 at 04:33:45PM +0100, Rainer M Krug wrote:
 On 18/02/13 16:12, Suvayu Ali wrote:
 On Mon, Feb 18, 2013 at 02:49:32PM +0100, Rainer M Krug wrote:
 
 - From time to time, I have to include email references in notes in org. 
 There is
 obviously org-notmuch.el, but I am not to happy with it as, when exporting 
 the notes, the
 link is shown but neither clickable nor the resulting email is shown in 
 the exported
 document (both understandable).
 
 
 This has also been an irritation of mine.  I think I will take your second 
 idea (include
 the email on export) and see if I can come-up with a patch for org-notmuch. 
  Since I'm
 still a newbie elisp programmer, this might take a while.  :-p
 
 If there is a solution in sight, I am happy to wait a bit - email in export, 
 possibly in a
 block so that it is set apart from the rest of the document, would be 
 brilliant. Possibly
 having an option which can be set to have links exported as links or 
 expanded on export,
 would be really nice.
 
 The option to open the link is out of the question since different people 
 read their emails
 differently.  There is no way for a library to get everything right, 
 specially since the link
 won't be in Emacs. It is in the exported file (e.g. html, pdf, txt).

If I understand the link system correctly, one would need to create a notmuch 
protocoll so that
linux can react to clicking the link. But you are right, this is outside org.


 
 Now to include the email during the export at first I thought it should be 
 possible to write a
 filter, but then I realised I need to insert an email quote block after 
 whatever parent
 greater-element holds the link and then redirect the link to this new block.  
 A filter allows
 you a way to modify an element, but nothing more.  So I think the correct 
 approach here would
 be to write a derived backend.  This complicates things quite significantly 
 since now you need
 to support each backend separately.  I wonder if there is any easier 
 (generic) way to do the
 above for all present and future backends.

How is the export of links to pictures handled - as far as I remember, if the 
image is in a LaTeX
suitable format, the image is included in the LaTeX file, and the same for 
html. But you are right
- - I guess this is handled in the backend. I don't think that would be a 
suitable approach as it
would include to much maintenance.

But what about defining notmuch as a new language for babel, so that one could 
do the following:

#+begin_src notmuch :exports raw
  search id:x
#+end_src

Would not be much different then

#+begin_src sh :exports raw
  notmuch search id:x
#+end_src

but possibly open more possibilities for customizations?
x
Or inline it could be src_notmuch{search id:x}

The general advantage would be that one can use the existing infrastructure for 
code blocks and

Cheers,

Rainer

 
 I have CC'd Nicolas, lets see what he has to say.
 
 Cheers,
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRIzQHAAoJENvXNx4PUvmCD7gH/3uS607nlfa31Nzxyt7j6bRH
UrFmDtpaU0zgjpPvSdqCRgF2V1R8O4lXTQd8P66swQ+tWglKSXaPaeP625I1zo0U
wjMHoAsppiENz4lMVV6S7Hya3DuegLgwU+5+KcC7m2XbiFqzStIs8uhczyIZ9EKH
GjrvMLrglkw3Nf/Gq4etvvPVnH05UqrBHsOF4j6W8ZcDAM0fufbv5EuMXt4gvlqy
E5fJbth06mphZRe/d8jpQ0XR97RIz5Vq4gOajwBa3kLT7BY7Y2SYUu2PDV44YjwF
8d4CSTgq0ReDQsg8qch6tE1dli/ftw2i0Qe9j3MCZ3QItB5aJ/y6rh4oAmMhzi0=
=0LBU
-END PGP SIGNATURE-



[O] [bug] org-agenda-diary-entry fails

2013-02-19 Thread Eric S Fraga
Hello,

with org up to date from git repository as of a few minutes ago, trying
to insert a day diary entry from the agenda view
(org-agenda-diary-entry) fails.  Debug trace is attached.

I cannot see what could be causing this problem.  Any suggestions?  I
can start trying to bisect on recent changes.

Thanks,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org 7.9.3e-1123-g33d362
Debugger entered--Lisp error: (error Before first headline at position 1 in 
buffer diary.org)
  signal(error (Before first headline at position 1 in buffer diary.org))
  error(Before first headline at position %d in buffer %s 1 #buffer 
diary.org)
  (condition-case nil (outline-back-to-heading invisible-ok) (error (error 
Before first headline at position %d in buffer %s (point) (current-buffer
  org-back-to-heading(t)
  (let (start-level re) (org-back-to-heading t) (setq start-level (funcall 
outline-level)) (if (equal start-level 1) nil (setq re (concat ^\\*\\{1, 
(number-to-string (1- start-level)) \\} )) (if (re-search-backward re nil t) 
(funcall outline-level
  org-up-heading-safe()
  (while (org-up-heading-safe) (if (looking-at org-complex-heading-regexp) 
(progn (setq rtn (cons (org-match-string-no-properties 4) rtn)
  (save-restriction (widen) (while (org-up-heading-safe) (if (looking-at 
org-complex-heading-regexp) (progn (setq rtn (cons 
(org-match-string-no-properties 4) rtn) rtn)
  (save-excursion (save-restriction (widen) (while (org-up-heading-safe) (if 
(looking-at org-complex-heading-regexp) (progn (setq rtn (cons 
(org-match-string-no-properties 4) rtn) rtn))
  (let (rtn case-fold-search) (save-excursion (save-restriction (widen) (while 
(org-up-heading-safe) (if (looking-at org-complex-heading-regexp) (progn (setq 
rtn (cons ... rtn) rtn)))
  (if fastp (progn (if ( level 19) (error Outline path failure, more than 19 
levels)) (progn (let* ((i level)) (while (= i 19) (aset org-olpa i nil) (setq 
i (+ i 1))) nil)) (prog1 (delq nil (append org-olpa nil)) (aset org-olpa level 
heading))) (let (rtn case-fold-search) (save-excursion (save-restriction 
(widen) (while (org-up-heading-safe) (if (looking-at 
org-complex-heading-regexp) (progn (setq rtn ... rtn
  org-get-outline-path()
  (and (derived-mode-p (quote org-mode)) (org-get-outline-path))
  (let* (case-fold-search message-log-max (bfn (buffer-file-name 
(buffer-base-buffer))) (path (and (derived-mode-p (quote org-mode)) 
(org-get-outline-path))) res) (if current (setq path (append path 
(save-excursion (org-back-to-heading t) (if (looking-at 
org-complex-heading-regexp) (list (match-string 4))) (setq res 
(org-format-outline-path path (1- (frame-width)) (and file bfn (concat 
(file-name-nondirectory bfn) separator)) separator)) (if just-return-string 
(org-no-properties res) (message %s res)))
  org-display-outline-path(nil nil - t)
  (let ((s (org-display-outline-path nil nil - t))) (if (eq  s)  (concat 
s -)))
  (save-excursion (goto-char (or --mpom (point))) (let ((s 
(org-display-outline-path nil nil - t))) (if (eq  s)  (concat s -
  (save-excursion (if (markerp --mpom) (set-buffer (marker-buffer --mpom))) 
(save-excursion (goto-char (or --mpom (point))) (let ((s 
(org-display-outline-path nil nil - t))) (if (eq  s)  (concat s -)
  (let ((--mpom (org-get-at-bol (quote org-marker (save-excursion (if 
(markerp --mpom) (set-buffer (marker-buffer --mpom))) (save-excursion 
(goto-char (or --mpom (point))) (let ((s (org-display-outline-path nil nil - 
t))) (if (eq  s)  (concat s -))
  (setq time (cond (s2 (concat (org-agenda-time-of-day-to-ampm-maybe s1) - 
(org-agenda-time-of-day-to-ampm-maybe s2) (if org-agenda-timegrid-use-ampm  
))) (s1 (concat (org-agenda-time-of-day-to-ampm-maybe s1) (if 
org-agenda-timegrid-use-ampm   ..))) (t )) extra (or (and 
(not habitp) extra) ) breadcrumbs (let ((--mpom (org-get-at-bol (quote 
org-marker (save-excursion (if (markerp --mpom) (set-buffer (marker-buffer 
--mpom))) (save-excursion (goto-char (or --mpom (point))) (let ((s 
(org-display-outline-path nil nil - t))) (if (eq  s)  (concat s 
-)) category (if (symbolp category) (symbol-name category) category) 
thecategory (copy-sequence category) level (or level ))
  (let* ((category (or category (if (stringp org-category) org-category (and 
org-category (symbol-name org-category))) (if buffer-file-name 
(file-name-sans-extension (file-name-nondirectory buffer-file-name)) ))) 
(category-icon (org-agenda-get-category-icon category)) (category-icon (if 
category-icon (propertize   (quote display) category-icon) )) (tag (if tags 
(nth (1- (length tags)) tags) )) time effort neffort (ts (if dotime (concat 
(if (stringp dotime) dotime ) (and org-agenda-search-headline-for-time 
txt (time-of-day (and dotime (org-get-time-of-day ts))) stamp plain s0 s1 
s2 rtn srp l duration thecategory breadcrumbs) (and (derived-mode-p (quote 
org-mode)) buffer-file-name (add-to-list (quote 

Re: [O] orgstruct-mode with custom headline prefix

2013-02-19 Thread Dr Stephen J Eglen
Christopher Schmidt christopher at ch.ristopher.com writes:

 
 Christopher Schmidt christopher at ch.ristopher.com writes:
  I will push a fix ASAP.
 
 I did that now.
 
 d6f69f5 org.el: Use let instead of progv in org-run-like-in-org-mode
 ea2d107 org.el: Declare orgstruct-mode
 
 Christopher
 
 


hi Christopher, 

I'm trying to add support for orgstruct-mode to R buffers (via ESS).
I think I'm nearly there, with the following magic at the end of my
buffers:


### Local Variables:
### eval: (orgstruct-mode 1)
### outline-regexp: ### 
### orgstruct-heading-prefix-regexp: ### 
### End:

so that lines such as:

### * section heading

become section headings.  This is really neat, thanks for your work.

I just wanted to check though whether we need to set outline-regexp; I
think this part of `org-cycle' requires outline-regexp to be set, but
I just wanted to check whether this was a pre-requisite, as it then
seems that we are setting two similar regexps.  Not a big deal, but
just wanted to check.  Most major modes (emacs-lisp, python, perl)
that I checked already set outline-regexp, whereas we currently don't
set it in ESS.

(if (not (derived-mode-p 'org-mode))
outline-regexp

Thanks, Stephen





Re: [O] TeX-master: TeX-master is let-bound

2013-02-19 Thread Christopher Schmidt
Over at emacs-devel Tassilo Horn hit on the very same problem.  This is
what Glenn said (har4kdkrnv@fencepost.gnu.org):

Tassilo Horn wrote:

 (let ((crm-separator ,))
   (require 'crm))

This is a long-standing issue. The only solution at the moment is
don't do that.

Christopher



[O] killing all contents of a headline

2013-02-19 Thread 42 147

Title is self-explanatory. Is there a command that lets me place the
cursor on a headline and delete its contents (i.e., all of its text)?




Re: [O] killing all contents of a headline

2013-02-19 Thread Marcel van der Boom


On Tue 19-Feb-2013 06:01
42 147 aeus...@gmail.com wrote:

 Title is self-explanatory. Is there a command that lets me place the
 cursor on a headline and delete its contents (i.e., all of its text)?

If you have the subtree collapsed and with your point on the heading,
'org-kill-line' kills the heading plus the content below it. It is
bound to C-k by default I think.

So, a clever combination of 'org-cycle' and 'org-kill-line' could be
combined to form one command to kill a heading and its contents,
regardless of the collapsed state.

hth

marcel
-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV-- http://www.hsdev.com
We use bitcoin!  -- http://bitcoin.org



Re: [O] killing all contents of a headline

2013-02-19 Thread Bastien
42 147 aeus...@gmail.com writes:

 Title is self-explanatory. Is there a command that lets me place the
 cursor on a headline and delete its contents (i.e., all of its text)?

C-c @ C-w

When using speedy commands (setq org-use-speed-commands t)

. C-w 

at the beginning of a headline.

I'm willing to update the . speedy command and use @ instead
to be consistent with the C-c @ command.

-- 
 Bastien



[O] org-capture, datetree, and tags

2013-02-19 Thread Jeffrey Brent McBeth
I'm trying to capture into a datetree using org-capture, but if my tree has a 
tag on it (in particular noexport), then it creates a new datetree instead of 
using the one I have.
Example .emacs:
(global-set-key \C-cc 'org-capture)
(setq org-capture-templates
'((t Test plain (file+datetree ~/Test.org)
%^{Greeting} World
I'm going to work this time)))

Example Test.org:

* 2013 :noexport:
** 2013-02 February
*** 2013-02-19 Tuesday
Hello World
I'm going to work this time

So, based on the above, if I type C-cct Silly C-cc, I'll get this:

* 2013 :noexport:
** 2013-02 February
*** 2013-02-19 Tuesday
Hello World
I'm going to work this time
* 2013
** 2013-02 February
*** 2013-02-19 Tuesday
Silly World
I'm going to work this time

Thanks for your attention,
 Jeffrey McBeth
-- 
The man who does not read good books has no advantage over 
 the man who cannot read them.
 -- Mark Twain



[O] HTML Export sets postamble although variable configured to No postamble

2013-02-19 Thread Rainer Stengele
Hi all,

my HTML Export adds a postamble although I have it deactivated.
Proof Excerpt from :

C-h v org-export-html-postamble

Org Export Html Postamble: Value Menu No postamble
State : SAVED and set.

What else should I do?

Sorry to ask if I missed it, but where can I find the documentation for
the new exporter? In the manual I am looking for a replacement for C-c
C-e t - that is insert export options.
Please help.

Thanks,
Rainer




[O] SPC and BS behaviour changed in the agenda?

2013-02-19 Thread Bernt Hansen
Hi,

I'm way behind the current tip of the master branch (Org-mode version
7.9.3d (release_7.9.3d-899-g30ef38 @ /home/bernt/git/org-mode/lisp/))
but just noticed that SPACE and BACKSPACE behave differently now.

Repeated SPACE used to scroll down the org file while BACKSPACE scrolls
up.  I found this very convenient when browsing my org files for details
during my weekly review -- directly from my block agenda.

I can achieve similar results with

SPC C-M-v repeatedly but that is not nearly as convenient as tapping the
SPC key a few times. (and C-M-S-v to scroll up in the other window)

I'll try and identify if this is still an issue on the current tip of
the master branch which commit changed this behaviour after I get home
tonight.

Regards,
Bernt



Re: [O] killing all contents of a headline

2013-02-19 Thread Suvayu Ali
On Tue, Feb 19, 2013 at 01:09:30PM +0100, Bastien wrote:
 When using speedy commands (setq org-use-speed-commands t)
 
 . C-w 
 
 at the beginning of a headline.
 
 I'm willing to update the . speedy command and use @ instead
 to be consistent with the C-c @ command.

Yes that would be good.  To save you some work, I attached a patch.

-- 
Suvayu

Open source is the future. It sets us free.
From 664f375b7c2f65269e730fdb870cf81cd01f2bf2 Mon Sep 17 00:00:00 2001
From: Suvayu Ali fatkasuvayu+li...@gmail.com
Date: Tue, 19 Feb 2013 16:40:14 +0100
Subject: [PATCH] Change default org-mark-subtree speed command

* org.el (org-speed-commands-default): Change default binding
  for org-mark-subtree from . to @ to be more consistent with C-c
  @.

TINYCHANGE
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 91763d3..85a6a4a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -18658,7 +18658,7 @@ BEG and END default to the buffer boundaries.
 (^ . org-sort)
 (w . org-refile)
 (a . org-archive-subtree-default-with-confirmation)
-(. . org-mark-subtree) ;; FIXME Better use @ (see C-c @) here?
+(@ . org-mark-subtree)
 (# . org-toggle-comment)
 (Clock Commands)
 (I . org-clock-in)
-- 
1.8.1.2



Re: [O] [bug] org-agenda-diary-entry fails

2013-02-19 Thread W. Greenhouse
Hi Eric,

Eric S Fraga e.fr...@ucl.ac.uk writes:

 Hello,

 with org up to date from git repository as of a few minutes ago, trying
 to insert a day diary entry from the agenda view
 (org-agenda-diary-entry) fails.  Debug trace is attached.

 I cannot see what could be causing this problem.  Any suggestions?  I
 can start trying to bisect on recent changes.

 Thanks,
 eric

Does the `diary.org' file already exist with at least one headline in
it?

 Debugger entered--Lisp error: (error Before first headline at position 1 in 
 buffer diary.org)
   signal(error (Before first headline at position 1 in buffer diary.org))
   error(Before first headline at position %d in buffer %s 1 #buffer 
 diary.org)
   (condition-case nil (outline-back-to-heading invisible-ok) (error
 (error Before first headline at position %d in buffer %s (point)
 (current-buffer

Granted, this is an issue that the org-diary really should be able to
handle, but it's worth trying this again in a file with at least one
headline.

I am using a datetree-formatted org file that I'd already been using for
a while as an org-capture target before putting my diary entries there.
So far it's been okay.

Let me know how it goes,
-- 
WGG
GnuPG/PGP key: subkeys.gnupg.net 0D2D3F9E




[O] two questions about the new exporter (#+Style: and org-export-html-postamble)

2013-02-19 Thread Eric Schulte
Hi,

First let me say kudos to Nicolas for the implementation and to him and
Bastien for making the transition, it seems rather like changing the
engine on a plane in mid flight (all while handling a rowdy group of
passengers).

For the first time I'm really using this new exporter, and I have
noticed two thing which surprise me and seem at first glance to be
behaving incorrectly (although it is likely my expectations which are
incorrect).

1. The value of org-export-html-postamble doesn't appear to be honored.
   I often set this variable in a file local line at the top of a file,
   and despite setting it to nil I still see a postamble in my exported
   html.

2. Similarly, I use #+Style: lines at the top of Org-mode files to make
   the CSS changes necessary for my code blocks.  This also doesn't seem
   to be making it through the html export process.

   #+Style: style type=text/csspre{background:#232323; 
color:#E6E1DC;}h1,h2{border-bottom-style: solid; border-bottom-color: 
gray;}/style

Please let me know if I can provide any more information.

Thanks,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] killing all contents of a headline

2013-02-19 Thread 42 147
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 to be consistent with the C-c @ command.

 Yes that would be good.  To save you some work, I attached a patch.


Precisely what I was looking for. I'm always up for macro creation, but
I didn't want to do so if a command already existed. Always looking to
expand my org-vocabulary.

The @ replacement is also a sensible idea -- can either of you send me
the source code for this? Or how would I update my org-mode to include
it?

Not exactly well-versed in Emacs,

John


2013/2/19 Bastien b...@altern.org

 42 147 aeus...@gmail.com writes:

  Title is self-explanatory. Is there a command that lets me place the
  cursor on a headline and delete its contents (i.e., all of its text)?

 C-c @ C-w

 When using speedy commands (setq org-use-speed-commands t)

 . C-w

 at the beginning of a headline.

 I'm willing to update the . speedy command and use @ instead
 to be consistent with the C-c @ command.

 --
  Bastien



Re: [O] killing all contents of a headline

2013-02-19 Thread Bastien
Hi Suvayu,

Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 Yes that would be good.  To save you some work, I attached a patch.

Applied, thanks a lot!

-- 
 Bastien



Re: [O] killing all contents of a headline

2013-02-19 Thread Bastien
Hi John,

42 147 aeus...@gmail.com writes:

 The @ replacement is also a sensible idea -- can either of you send
 me the source code for this? Or how would I update my org-mode to
 include it?

If you want to use Org development branch, simply clone and build:

~$ git clone git://orgmode.org/org-mode.git
~$ cd org-mode
~$ make

Then make sure you set the correct `load-path'.

See http://orgmode.org/org.html#Installation for details.

The change Suvayu sent is now in master.

 Not exactly well-versed in Emacs,

You'll soon get hooked, dont worry :)

-- 
 Bastien



Re: [O] two questions about the new exporter (#+Style: and org-export-html-postamble)

2013-02-19 Thread Bastien
Hi Eric,

Eric Schulte schulte.e...@gmail.com writes:

 1. The value of org-export-html-postamble doesn't appear to be honored.
I often set this variable in a file local line at the top of a file,
and despite setting it to nil I still see a postamble in my exported
html.

You need to use `org-html-postamble' instead of
`org-export-html-postamble'.

In general, the org-export-* prefix is for cross-exporters variables,
while backend-specific variables are names after the prefix of the
relevant backend.  I recently updated the manual wrt this, but this
needs more work.

 2. Similarly, I use #+Style: lines at the top of Org-mode files to make
the CSS changes necessary for my code blocks.  This also doesn't seem
to be making it through the html export process.

Use #+HTML_STYLE

Several users (T.F. Torrey, Sébastien) suggested to use HTML_HEAD
instead, which I tend to find better too.  Just not had the time
to make the change so far.

#+Style: style type=text/csspre{background:#232323; 
 color:#E6E1DC;}h1,h2{border-bottom-style: solid; border-bottom-color: 
 gray;}/style

 Please let me know if I can provide any more information.

Thanks for trying the new exporters!!

Hope this gets you started in the right direction,

-- 
 Bastien



Re: [O] killing all contents of a headline

2013-02-19 Thread Suvayu Ali
On Tue, Feb 19, 2013 at 11:40:31AM -0500, 42 147 wrote:
 The @ replacement is also a sensible idea -- can either of you send me
 the source code for this? Or how would I update my org-mode to include
 it?

Take a look at the following FAQ and the two after:

  http://orgmode.org/worg/org-faq.html#updating-org

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] two questions about the new exporter (#+Style: and org-export-html-postamble)

2013-02-19 Thread Stefan Vollmar
Dear Eric,

On 19.02.2013, at 16:14, Eric Schulte wrote:

 First let me say kudos to Nicolas for the implementation and to him and
 Bastien for making the transition, it seems rather like changing the
 engine on a plane in mid flight (all while handling a rowdy group of
 passengers).

+1

 1. The value of org-export-html-postamble doesn't appear to be honored.
   I often set this variable in a file local line at the top of a file,
   and despite setting it to nil I still see a postamble in my exported
   html.

When publishing a project it works fine with
org-html-postamble.

 2. Similarly, I use #+Style: lines at the top of Org-mode files to make
   the CSS changes necessary for my code blocks.  This also doesn't seem
   to be making it through the html export process.
 
   #+Style: style type=text/csspre{background:#232323; 
 color:#E6E1DC;}h1,h2{border-bottom-style: solid; border-bottom-color: 
 gray;}/style

I believe, it should be 
html_style
now.

Warm regards,
 Stefan

 
 Please let me know if I can provide any more information.
 
 Thanks,
 
 -- 
 Eric Schulte
 http://cs.unm.edu/~eschulte
 

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










smime.p7s
Description: S/MIME cryptographic signature


Re: [O] two questions about the new exporter (#+Style: and org-export-html-postamble)

2013-02-19 Thread Nick Dokos
Eric Schulte schulte.e...@gmail.com wrote:

 Hi,
 
 First let me say kudos to Nicolas for the implementation and to him and
 Bastien for making the transition, it seems rather like changing the
 engine on a plane in mid flight (all while handling a rowdy group of
 passengers).
 
 For the first time I'm really using this new exporter, and I have
 noticed two thing which surprise me and seem at first glance to be
 behaving incorrectly (although it is likely my expectations which are
 incorrect).
 
 1. The value of org-export-html-postamble doesn't appear to be honored.
I often set this variable in a file local line at the top of a file,
and despite setting it to nil I still see a postamble in my exported
html.
 

Rainer had the same question. I believe such variables are considered
backend-specific and so the names have been changed: they've lost the
export- part.

In general, you might want to try changing the name and trying again.

Presumably that will be clarified when the documentation is available,
but for now I hope it's a reasonable guideline (but subject to corrections).

Nick





Re: [O] HTML Export sets postamble although variable configured to No postamble = SOLVED

2013-02-19 Thread Rainer Stengele
Am 19.02.2013 16:21, schrieb Rainer Stengele:
 Hi all,
 
 my HTML Export adds a postamble although I have it deactivated.
 Proof Excerpt from :
 
 C-h v org-export-html-postamble
 
 Org Export Html Postamble: Value Menu No postamble
 State : SAVED and set.
 
 What else should I do?
 
 Sorry to ask if I missed it, but where can I find the documentation for
 the new exporter? In the manual I am looking for a replacement for C-c
 C-e t - that is insert export options.
 Please help.
 
 Thanks,
 Rainer
 
 
 
Reading Bastiens latest postings helped:

Set org-html-postamble to nil.
Works!
Thanks Bastien.

Rainer



Re: [O] SPC and BS behaviour changed in the agenda?

2013-02-19 Thread Bernt Hansen
Please ignore this.  There is some setting in my local emacs that is
breaking this behaviour for me.  It works fine with a minimal emacs on
both my current commit and the tip of master.

I should have checked first...

Sorry for the noise.

Bernt

Bernt Hansen be...@norang.ca writes:

 Hi,

 I'm way behind the current tip of the master branch (Org-mode version
 7.9.3d (release_7.9.3d-899-g30ef38 @ /home/bernt/git/org-mode/lisp/))
 but just noticed that SPACE and BACKSPACE behave differently now.

 Repeated SPACE used to scroll down the org file while BACKSPACE scrolls
 up.  I found this very convenient when browsing my org files for details
 during my weekly review -- directly from my block agenda.

 I can achieve similar results with

 SPC C-M-v repeatedly but that is not nearly as convenient as tapping the
 SPC key a few times. (and C-M-S-v to scroll up in the other window)

 I'll try and identify if this is still an issue on the current tip of
 the master branch which commit changed this behaviour after I get home
 tonight.

 Regards,
 Bernt



[O] [new exporter] Guides on what incompatibilities to watch for?

2013-02-19 Thread Gunnar Wolf
Hi,

I'm not very specific in this mail, but am wondering…

I have some nontrivial documents written in Org-mode. My main use case
for Org is mostly to author texts, rather than using its time-tracking
features. I fear that with the new exporter, several of my documents'
features will no longer work or -worse- be interpretted differently,
having a negative impact in my output.

Is there a guide on what items should I mostly watch for (or even
better, what syntax changes should I make) to get my results as
similar as possible to what I had beforehand?

I am not yet running with the new release; as I follow the Debian
packaging, I'll rather wait until it lands in my system. Still, I
want to prepare and not let this get me off-guard!



Re: [O] SPC and BS behaviour changed in the agenda?

2013-02-19 Thread Bernt Hansen
It turns out this is related to org-agenda-sticky set to t.

I'm just starting to play with sticky agendas and the scrolling
behaviour for SPC and BS changes for sticky agendas.

When I switch back to non-sticky agendas it works again.

I'll send an ECM tonight if this hasn't already been fixed by then :)

Regards,
Bernt


Bernt Hansen be...@norang.ca writes:

 Please ignore this.  There is some setting in my local emacs that is
 breaking this behaviour for me.  It works fine with a minimal emacs on
 both my current commit and the tip of master.

 I should have checked first...

 Sorry for the noise.

 Bernt

 Bernt Hansen be...@norang.ca writes:

 Hi,

 I'm way behind the current tip of the master branch (Org-mode version
 7.9.3d (release_7.9.3d-899-g30ef38 @ /home/bernt/git/org-mode/lisp/))
 but just noticed that SPACE and BACKSPACE behave differently now.

 Repeated SPACE used to scroll down the org file while BACKSPACE scrolls
 up.  I found this very convenient when browsing my org files for details
 during my weekly review -- directly from my block agenda.

 I can achieve similar results with

 SPC C-M-v repeatedly but that is not nearly as convenient as tapping the
 SPC key a few times. (and C-M-S-v to scroll up in the other window)

 I'll try and identify if this is still an issue on the current tip of
 the master branch which commit changed this behaviour after I get home
 tonight.

 Regards,
 Bernt



Re: [O] SPC and BS behaviour changed in the agenda?

2013-02-19 Thread Bastien
Bernt Hansen be...@norang.ca writes:

 I'll send an ECM tonight if this hasn't already been fixed by then
 :)

Fixed, thanks :)

-- 
 Bastien



[O] Switching to the new exporter (was: two questions about the new exporter (#+Style: and org-export-html-postamble))

2013-02-19 Thread Bastien
I updated the notes on Worg:

  http://orgmode.org/worg/org-faq.html#new-exporter-switch

Let's keep this FAQ as accurate as possible while we are
moving toward Org 8.0.

Thanks!

-- 
 Bastien



Re: [O] org-export-babel-evaluate and :exports none

2013-02-19 Thread Ista Zahn
On Mon, Feb 18, 2013 at 3:17 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Ista Zahn istaz...@gmail.com writes:

 Thanks for checking Jay. I just tried with make update2 (usually I use
 make update), with the same result as I got before (i.e., the code
 block is exported). Just to make sure -- you ran the test with emacs
 -q right?

 Anybody else try this?
 Thanks!
 Ista

 I confirm the problem. It is coming from
 12d592b73223f3b0628e10f0f627447b1a312203. I reverted it.

I confirm it is now working as expected. Thank you!
-Ista


 Thanks you.


 Regards,

 --
 Nicolas Goaziou



[O] [Bug] Shadowed defvar org-clock-effort

2013-02-19 Thread Achim Gratz

23057a57b4 introduces a shadowed defvar org-clock-effort by copying the
definition from org-clock.el to org.el without deleting it in
org-clock.el.  If a forward declaration was intended, then the defvar in
org.el should provide no initial value, otherwise (since org-clock.el
requires org.el anyway) the duplicate definition in org-clock should be
removed.


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

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] [new exporter] Guides on what incompatibilities to watch for?

2013-02-19 Thread Suvayu Ali
On Tue, Feb 19, 2013 at 11:57:03AM -0600, Gunnar Wolf wrote:
 Hi,
 
 I'm not very specific in this mail, but am wondering…
 
 I have some nontrivial documents written in Org-mode. My main use case
 for Org is mostly to author texts, rather than using its time-tracking
 features. I fear that with the new exporter, several of my documents'
 features will no longer work or -worse- be interpretted differently,
 having a negative impact in my output.
 
 Is there a guide on what items should I mostly watch for (or even
 better, what syntax changes should I make) to get my results as
 similar as possible to what I had beforehand?
 
 I am not yet running with the new release; as I follow the Debian
 packaging, I'll rather wait until it lands in my system. Still, I
 want to prepare and not let this get me off-guard!
 

Take a look here:

http://orgmode.org/worg/org-faq.html#new-exporter-switch

Apart from that I know about the following changes in syntax (to the
best of my knowledge):
1. Attribute lines now take plists
   : #+attr_latex :width 5cm
   : #+attr_beamer :options width=5cm
2. Beamer backend now interprets nested headline levels as blocks
   instead of lists.  For some preliminary guidance you can look at
   this:
   http://orgmode.org/worg/org-tutorials/org-beamer/org-e-beamer.html.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [new exporter] Guides on what incompatibilities to watch for?

2013-02-19 Thread Thomas S. Dye
Gunnar Wolf gw...@gwolf.org writes:

 Hi,

 I'm not very specific in this mail, but am wondering…

 I have some nontrivial documents written in Org-mode. My main use case
 for Org is mostly to author texts, rather than using its time-tracking
 features. I fear that with the new exporter, several of my documents'
 features will no longer work or -worse- be interpretted differently,
 having a negative impact in my output.

 Is there a guide on what items should I mostly watch for (or even
 better, what syntax changes should I make) to get my results as
 similar as possible to what I had beforehand?

 I am not yet running with the new release; as I follow the Debian
 packaging, I'll rather wait until it lands in my system. Still, I
 want to prepare and not let this get me off-guard!


Aloha Gunnar,

Please see http://orgmode.org/worg/org-faq.html#new-exporter-switch.
Old documents will typically require some changes to work with the new
exporter, but the changes are relatively few and that Nicolas has worked
hard to preserve backward compatibility where possible.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] SPC and BS behaviour changed in the agenda?

2013-02-19 Thread Bernt Hansen
Bastien b...@altern.org writes:

 Bernt Hansen be...@norang.ca writes:

 I'll send an ECM tonight if this hasn't already been fixed by then
 :)

 Fixed, thanks :)

Thank YOU!

Bernt



Re: [O] [Bug] Shadowed defvar org-clock-effort

2013-02-19 Thread Bastien
Achim Gratz strom...@nexgo.de writes:

 23057a57b4 introduces a shadowed defvar org-clock-effort by copying the
 definition from org-clock.el to org.el without deleting it in
 org-clock.el.  

Fixed, together with some other compiler warnings, thanks!

-- 
 Bastien



Re: [O] [new exporter] Guides on what incompatibilities to watch for?

2013-02-19 Thread Bastien
Hi Suvayu,

Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 http://orgmode.org/worg/org-faq.html#new-exporter-switch

 Apart from that I know about the following changes in syntax (to the
 best of my knowledge):
 1. Attribute lines now take plists
: #+attr_latex :width 5cm
: #+attr_beamer :options width=5cm
 2. Beamer backend now interprets nested headline levels as blocks
instead of lists.  For some preliminary guidance you can look at
this:
http://orgmode.org/worg/org-tutorials/org-beamer/org-e-beamer.html.

Great, thanks, I added this to the FAQ.

Best,

-- 
 Bastien



Re: [O] killing all contents of a headline

2013-02-19 Thread 42 147
Thanks, the update worked, however with some post-update oddities:

org-hide-leading stars t hides the stars -- but only if I manually switch
from the Emacs default color theme to my favorite one
(color-theme-renegade). If I leave (color-theme-renegade) in my init, on
boot-up, org-mode does not hide the stars.

This never used to happen.

Secondly, now I have a bunch of information in my modeline that I had
customized out -- the names of headlines and sub-headlines at point.

While a nice feature, I prefer my modeline *only* to read what I had before
(the git branch I am on).

2013/2/19 Bastien b...@altern.org

 Hi John,

 42 147 aeus...@gmail.com writes:

  The @ replacement is also a sensible idea -- can either of you send
  me the source code for this? Or how would I update my org-mode to
  include it?

 If you want to use Org development branch, simply clone and build:

 ~$ git clone git://orgmode.org/org-mode.git
 ~$ cd org-mode
 ~$ make

 Then make sure you set the correct `load-path'.

 See http://orgmode.org/org.html#Installation for details.

 The change Suvayu sent is now in master.

  Not exactly well-versed in Emacs,

 You'll soon get hooked, dont worry :)

 --
  Bastien



Re: [O] [bug] org-agenda-diary-entry fails

2013-02-19 Thread Eric S Fraga
W. Greenhouse wgreenho...@riseup.net writes:

 Hi Eric,

 Eric S Fraga e.fr...@ucl.ac.uk writes:

 Hello,

 with org up to date from git repository as of a few minutes ago, trying
 to insert a day diary entry from the agenda view
 (org-agenda-diary-entry) fails.  Debug trace is attached.

 I cannot see what could be causing this problem.  Any suggestions?  I
 can start trying to bisect on recent changes.

 Thanks,
 eric

 Does the `diary.org' file already exist with at least one headline in
 it?

Sorry, I should maybe have given a few more details.  My diary.org file
does exist, it has approximately 650 lines and uses a date tree
format.  Plenty of headlines!

Inserting an entry from the agenda view is how I normally add dairy
appointments and I do this several times a day typically.  

In any case, the problem has disappeared between this morning and now
(middle of the evening).  I note that there have been several patches to
org-agenda.el and one looks very much like it addresses the problem I
had.

All's well! :-)

Thanks,
eric
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org 7.9.3e-1123-g33d362




Re: [O] two questions about the new exporter (#+Style: and org-export-html-postamble)

2013-02-19 Thread Jambunathan K
Eric Schulte schulte.e...@gmail.com writes:

 First let me say kudos to Nicolas for the implementation and to him and
 Bastien for making the transition, it seems rather like changing the
 engine on a plane in mid flight (all while handling a rowdy group of
 passengers).

Note the *criminally* insane, in the passage below.  Such people are
worse than mere rogues.

Real-life often supports and but oddly enough also challenges
stereotypes.

, 
http://www.amazon.com/The-Professor-Madman-Insanity-Dictionary/dp/0060839783
| The Professor and the Madman, masterfully researched and eloquently
| written, is an extraordinary tale of madness, genius, and the incredible
| obsessions of two remarkable men that led to the making of the Oxford
| English Dictionary -- and literary history. The compilation of the OED
| began in 1857, it was one of the most ambitious projects ever
| undertaken. As definitions were collected, the overseeing committee, led
| by Professor James Murray, discovered that one man, Dr. W. C. Minor, had
| submitted more than ten thousand. When the committee insisted on
| honoring him, a shocking truth came to light: Dr. Minor, an American
| Civil War veteran, was also an inmate at an asylum for the criminally
| insane.
`

ps: I haven't read the book myself but seems like good and an
interesting read.

-- 



[O] how can I insert a new heading after all at this level?

2013-02-19 Thread David Naumann
I'm a happy, frequent user of org mode but there's something I can't figure out 
from the manual.


What I would like to be able to do is insert a new heading at the same
level as current, _following_ all the others.  For example, with the
cursor on the A in this tree:

* top
-  ** A
** B
** C
* next

I would like to insert a last sibling and move to it:

* top
** A
** B
** C
-  **
* next

Use case: adding to a very long chronological list.  I have not seen a
quick way to do this using the structure motion/editing commands in
the manual, without scrolling in one way or another.

If you have a hint, please reply to my address; I'm not on this
mailing list.




[O] [BUG, LaTeX] LATEX_CLASS_OPTIONS don't always work

2013-02-19 Thread Michael Strey
This is a minor issue.

The replacement of LaTeX class options by

#+LATEX_CLASS_OPTIONS: [ngerman]

doesn't work if the documentclass definition in org-latex-classes
consists of more than one line.

I used such a definition in my Koma-script letters:

\documentclass[%
fontsize=11pt,%
strey_consult,%
c4envelope,  % optional
]{scrlttr2}

For such a definition the replacement doesn't work.

If I reduce the LaTeX expression to one line, everything is fine.

I tracked down the issue to the regular expression in 

(if class-options
(replace-regexp-in-string
 ^[ \t]*documentclass\\(\\[.*?\\]\\)
 class-options header t nil 1)
 header)

Here I gave up for today.

Regards
-- 
Michael Strey 
www.strey.biz



Re: [O] how can I insert a new heading after all at this level?

2013-02-19 Thread Nick Dokos
David Naumann naum...@cs.stevens.edu wrote:

 I'm a happy, frequent user of org mode but there's something I can't
 figure out from the manual.
 
 What I would like to be able to do is insert a new heading at the same
 level as current, _following_ all the others.  For example, with the
 cursor on the A in this tree:
 
 * top
 -  ** A
 ** B
 ** C
 * next
 
 I would like to insert a last sibling and move to it:
 
 * top
 ** A
 ** B
 ** C
 -  **
 * next
 
 Use case: adding to a very long chronological list.  I have not seen a
 quick way to do this using the structure motion/editing commands in
 the manual, without scrolling in one way or another.
 
 If you have a hint, please reply to my address; I'm not on this
 mailing list.
 

From somewhere in the second level (but not in the third or higher levels, if 
such
exist), you can go up to the higher-level heading (what you call top), then to 
the
next heading at the same level (next), open a line before that and insert a 
heading:

C-c C-u
C-c C-f
C-o
M-RET

If typing all that is objectionable, you can define a keyboard macro to
do it. 

Or you can define a command to do it (I just looked up the
above key bindings to find the functions to call and looked up the docs
of the various functions for the arguments):

(defun my-org-insert-heading-at-end-of-current-level ()
  (interactive)
  (outline-up-heading 1)
  (org-forward-heading-same-level 1)
  (open-line 1)
  (org-meta-return))

and either call it with M-x my-org-insert-heading-at-end-of-current-level RET
or bind it to a key.

Nick






Re: [O] Showing only subprojects in the agenda

2013-02-19 Thread Bernt Hansen
Wiskey 5 Alpha wiskey5al...@gmail.com writes:

     I'm sure this is not as complicated as i am making it out to be, but i 
 have tried every option i can think of.

     My org files consist of three todo states : TODO NEXT | DONE
 Any TODO is a project, and it may have sub projects like so :

 * TODO Make dinner
 ** TODO Make homemade pizza
 *** NEXT roll out the crust
 *** NEXT add sauce
 *** NEXT add cheese
 ** TODO Make a side salad
 *** NEXT chop lettuce
 *** NEXT chop tomatos

 What I would like is to have my projects list agenda show :
 TODO Make homemade pizza
 TODO Make side salad

 Basically, my projects are any TODO that has no TODO children, but may have 
 NEXT children.

 How can i get the agenda view to only show them ?

 thanks
 -Tim

Hi Tim,

You should be able to achieve what you are looking for with a custom
agenda skip function.  I have skip functions to show (or skip) projects
in my setup and you should be able to adapt some of that for your needs.

See

http://doc.norang.ca/org-mode.html#CustomAgendaViewSetup and 
http://doc.norang.ca/org-mode.html#Projects

for examples of what I use.

Regards,
Bernt



[O] [PATCH] Make html exporter respect css-url configuration variable.

2013-02-19 Thread Rick Frankel
* lisp/ox-html.el:
  (org-export-define-backend): add css url option
  (org-export-htmlized-org-css-url):  modify docstring and options.
  (org-html--build-style): include css-url if specified.
---
 lisp/ox-html.el | 14 ++
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 1800f5e..58dc4a5 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -122,6 +122,7 @@
(:html-style-include-default nil nil org-html-style-include-default)
(:html-style-include-scripts nil nil org-html-style-include-scripts)
(:html-table-tag nil nil org-html-table-tag)
+   (:html-htmlized-css-url HTML_HTMLIZED_CSS_URL nil 
org-html-htmlized-org-css-url)
;; Redefine regular options.
(:creator CREATOR nil org-html-creator-string)
(:with-latex nil tex org-html-with-latex)
@@ -548,11 +549,11 @@ create CSS to define the font colors.  However, this does 
not work when
 converting in batch mode, and it also can look bad if different people
 with different fontification setup work on the same website.
 When this variable is non-nil, creating an htmlized version of an Org buffer
-using `org-export-as-org' will remove the internal CSS section and replace it
-with a link to this URL.
+using `org-export-as-org' will include a link to this URL if the
+setting of `org-html-htmlize-output-type' is 'css.
   :group 'org-export-html
   :type '(choice
- (const :tag Keep internal css nil)
+ (const :tag Don't include external stylesheet link nil)
  (string :tag URL or local href)))
 
 
@@ -1255,8 +1256,13 @@ INFO is a plist used as a communication channel.
 INFO is a plist used as a communication channel.
   (org-element-normalize-string
(concat
-(when (plist-get info :html-style-include-default) org-html-style-default)
+(when (plist-get info :html-style-include-default) 
+  (org-element-normalize-string org-html-style-default))
 (org-element-normalize-string (plist-get info :html-style))
+(when (and (plist-get info :html-htmlized-css-url)
+  (eq org-html-htmlize-output-type 'css))
+  (format link rel=\stylesheet\ href=\%s\ type=\text/css\ /\n
+ (plist-get info :html-htmlized-css-url)))
 (org-element-normalize-string (plist-get info :html-style-extra))
 (when (plist-get info :html-style-include-scripts) org-html-scripts
 
-- 
1.8.1.2




[O] [PATH] [NEW EXPORTER] two slide backends for contrib

2013-02-19 Thread Rick Frankel
Attached are:

 - ox-deck.el
 - ox-s5.el

Which, respectively, provide deck.js and s5 backends for the new
exporter. I would be happy for these to be included in contrib. Note
that I have already signed the FSF assignment documents, so they can
be safely included in the core if so desired.

rick 
;;; ox-deck.el --- deck.js Presentation Back-End for Org Export Engine

;; Copyright (C) 2013  Free Software Foundation, Inc.

;; Author: Rick Frankel emacs at rickster dot com
;; Keywords: outlines, hypermedia, slideshow

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see http://www.gnu.org/licenses/.

;;; Commentary:

;; This library implements a deck.js presentation back-end for the Org
;; generic exporter.

;; Installation
;; -
;; Get a copy of deck.js from http://imakewebthings.com/deck.js/ or
;; the gitub repository at https://github.com/imakewebthings/deck.js.
;;
;; Add the path to the extracted code to the variable
;; `org-deck-directories' There are a number of customization in the
;; org-export-deck group, most of which can be overrriden with buffer
;; local customization (starting with DECK_.)

;; See ox.el and ox-html.el for more details on how this exporter
;; works (it is derived from ox-html.)

(require 'ox-html)

(org-export-define-derived-backend deck html
  :menu-entry
  (?s Export to deck.js HTML Presentation
  ((?H To temporary buffer org-deck-export-as-html)
   (?h To file org-deck-export-to-html)
   (?o To file and open
   (lambda (a s v b)
 (if a (org-deck-export-to-html t s v b)
   (org-open-file (org-deck-export-to-html nil s v b)))
  :options-alist
  ((:html-link-home HTML_LINK_HOME nil nil)
   (:html-link-up HTML_LINK_UP nil nil)
   (:html-mathjax HTML_MATHJAX nil  space)
   (:html-postamble nil html-postamble nil t)
   (:html-preamble nil html-preamble nil t)
   (:html-style-extra HTML_STYLE nil org-html-style-extra newline)
   (:html-style-include-default HTML_INCLUDE_DEFAULT nil nil)
   (:html-style-include-scripts HTML_INCLUDE_SCRIPTS nil nil)
   (:deck-base-url DECK_BASE_URL nil org-deck-base-url)
   (:deck-theme DECK_THEME nil org-deck-theme)
   (:deck-transition DECK_TRANSITION nil org-deck-transition)
   (:deck-include-extensions DECK_INCLUDE_EXTENSIONS nil
 org-deck-include-extensions split)
   (:deck-exclude-extensions DECK_EXCLUDE_EXTENSIONS nil
 org-deck-exclude-extensions split)
   (:deck-directories DECK_DIRECTORIES nil
   org-deck-directories split))
  :translate-alist
  ((headline . org-deck-headline)
   (inner-template . org-deck-inner-template)
   (item . org-deck-item)
   (template . org-deck-template)))

(defgroup org-export-deck nil
  Options for exporting Org mode files to deck.js HTML Presentations.
  :tag Org Export DECK
  :group 'org-export-html)

(defcustom org-deck-directories nil
  Directories to search for deck.js components (jquery,
modernizr; core, extensions and themes directories.)
  :group 'org-export-deck
  :type '(repeat (string :tag Directory)))

(defun org-deck--cleanup-components (components)
  (remove-duplicates 
   (car (remove 'nil components))
   :test (lambda (x y)
   (string= (file-name-nondirectory x)
(file-name-nondirectory y)
  
(defun org-deck--find-extensions ()
  Returns a unique list of all extensions found in
in the extensions directories under `org-deck-directories'
  (org-deck--cleanup-components
 (mapcar; extensions under existing dirs
  (lambda (dir)
(when (file-directory-p dir) (directory-files dir t ^[^.])))
  (mapcar   ; possible extension directories
   (lambda (x) (expand-file-name extensions x))
   org-deck-directories

(defun org-deck--find-css (type)
  Return a unique list of all the css stylesheets in the themes/TYPE
directories under `org-deck-directories'.
  (org-deck--cleanup-components
   (mapcar
(lambda (dir)
  (let ((css-dir (expand-file-name
  (concat (file-name-as-directory themes) type) dir)))
(when (file-directory-p css-dir)
  (directory-files css-dir t  \\.css$
  org-deck-directories)))

(defun org-deck-list-components ()
  List all available deck extensions, styles and
transitions (with full paths) to a temporary buffer.
  (interactive)
  (let ((outbuf 

[O] file-equal-p undefined

2013-02-19 Thread François Pinard
Hi again.

In a recent checkout of Org mode, ox.el (org-export-output-file-name)
calls function file-equal-p, which does not seem to exist for me, on
this Emacs 23.4.  It seems to exist in more recent Emacses however.

François



[O] Bug in fontification of priority cookies

2013-02-19 Thread John Wiegley
I just upgraded to Org-mode's master branch today, and found that the
org-priority face gets applied not just to the '[#C]' cookie, but the entire
text of the headline in the Agenda buffer.  Is this intended?

Thanks,
  John



Re: [O] Showing only subprojects in the agenda

2013-02-19 Thread Tim
At Tue, 19 Feb 2013 18:56:13 -0500,
Bernt Hansen wrote:
 
 Wiskey 5 Alpha wiskey5al...@gmail.com writes:
 
      I'm sure this is not as complicated as i am making it out to be, but i 
  have tried every option i can think of.
 
 You should be able to achieve what you are looking for with a custom
 agenda skip function.  I have skip functions to show (or skip) projects
 in my setup and you should be able to adapt some of that for your needs.
 
Thanks Bernt, I guess it /is/ that complicated.  I will take a look but I
am not much of an elisp programmer yet

-Tim



Re: [O] `org-drill' broken in recent commits git commits

2013-02-19 Thread York Zhao
Hi Bastien,

Thank you very much for the reply. Sorry that I forgot to mention my Emacs
version. I'm using GNU Emacs 24.2.1.

I just tried the scenario again with the latest `org-mode' and the symptom
changed a bit. I no longer get stuck which is good however, after typed the
character `2', I was asked to input a date, but I could only accept the default
date and was not able to change this date. Asking to input a date is a new
behavior and makes no sense especially when the default date is not changeable.
I have checked the `org-drill' and it seems that the `org-drill' hasn't been
changed for a few months.

When you test `org-drill' on the sample file have you been asked to input a
date?

Thanks,

York

On Sat, Feb 16, 2013 at 9:38 AM, Bastien b...@altern.org wrote:
 Hi York,

 York Zhao gtdplatf...@gmail.com writes:

 Hi there, `org-drill' has broken recently (after git commit
 3380460), here is the steps
 to reproduce the issue:

 1. Create a new org-mode buffer with the following contents:

 * org-drill test  :drill:
 Foo
 ** Answer
 Bar

 2. M-x org-drill
 3. Press SPACE
 4. Press `2' and you are stuck there forever until pressing `q' or C-g.

 I cannot reproduce this.  Does this happen with emacs -Q?  What is
 your version of Emacs?

 Thanks,

 --
  Bastien



[O] org-mode git, el-get, recently many functions' defintion void

2013-02-19 Thread Jeff Kowalczyk
I use emacs-24, org-mode from git, el-get from git. Each morning I update
org-mode, make clean  make.

About 2-3 days ago, I noticed the org-export dispatcher wasn't working. Then I
saw increasing functional areas of org returning errors re: function definition
void:

: org-ctrl-c-ctrl-c: Symbol's function definition is void: org-element-context
: Updating dynamic block `clocktable' at line 100276...
: org-clocktable-write-default: Symbol's function definition is void:
org-table-align

To eliminate possible interactions of recent changes. I've checked out org-mode
from a week ago, and same with el-get. There is no change in the problem. I've
removed el-get .loaddefs.el[c], and allowed them to regenerate.

Any suggestions on how to debug? It certainly could be el-get and nothing to do
with org-mode.

Thanks,
Jeff





Re: [O] Bug in fontification of priority cookies

2013-02-19 Thread Bastien
Hi John,

John Wiegley jo...@newartisans.com writes:

 I just upgraded to Org-mode's master branch today, and found that the
 org-priority face gets applied not just to the '[#C]' cookie, but the entire
 text of the headline in the Agenda buffer.  Is this intended?

I can't reproduce the problem here, the org-priority face is use only
for the cookie.  Any reproducible recipe?

Thanks,

-- 
 Bastien



Re: [O] `org-drill' broken in recent commits git commits

2013-02-19 Thread Bastien
Hi York,

well, I did try org-drill.el to see if there was no trivial error
triggered by a recent change in Org's master, but found none.

Paul, can you understand/reproduce/fix York's problem?

Best,

-- 
 Bastien



Re: [O] org-mode git, el-get, recently many functions' defintion void

2013-02-19 Thread Bastien
Hi Jeff,

Jeff Kowalczyk j...@yahoo.com writes:

 Any suggestions on how to debug?

If you install Org from git and do a make clean  make
each day, then the only thing you need to make sure is 
that you setup the load-path correctly, early enough
in your .emacs file.

Do you have something like

  (add-to-list 'load-path ~/install/git/org-mode/lisp/)

?

-- 
 Bastien



Re: [O] file-equal-p undefined

2013-02-19 Thread Bastien
Hi François,

François Pinard pin...@iro.umontreal.ca writes:

 In a recent checkout of Org mode, ox.el (org-export-output-file-name)
 calls function file-equal-p, which does not seem to exist for me, on
 this Emacs 23.4.  It seems to exist in more recent Emacses however.

Yes, this has been fixed a few hours ago:
  http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=5ea132

Thanks,

-- 
 Bastien