Re: [Orgmode] Embedding the style when exporting to HTML

2010-12-19 Thread Christian Moe

On 12/14/10 10:05 PM, Francesco Pizzolante wrote:

Hi Christian,


The following would make the exported HTML link to an external stylesheet.

#+STYLE:

But that 's not what you're after? You want the stylesheet to be /outside/
(linked from) your Org file, but /embedded in/ the exported HTML? Did I get
that right?


Indeed. That would be the ideal solution for me: it would bring all the
advantages I'm looking for:

- separate files for developing separately the style and the content;

- anybody could export the file as no special Emacs configuration is needed;

- the exported file would be self-contained.

Do you think about one way of doing this?


Something roughly along these lines, perhaps (warning: I'm still 
fairly new to Elisp and this comes with ABSOLUTELY NO WARRANTY):


#+BEGIN_SRC emacs-lisp
  (defun cm/org-export-html-embed-style ()
(make-local-variable 'org-export-html-style)
(setq org-export-html-style "")
(let ((re "#\\+STYLE:\\s ++type=[\"']text/css[\"']\\s +href=[\"']\\(.*\\)[\"']/>")

  (oldbuf (current-buffer))
  stylesheet
  css)
  (goto-char (point-min))
  (while (re-search-forward re (point-max) t)
(setq stylesheet (match-string 1))
  (with-current-buffer (find-file stylesheet)
(setq css (format "\n\n%s\n\n" 
(buffer-string
  (setq org-export-html-style (concat org-export-html-style 
css)))

  (switch-to-buffer oldbuf)))

  (org-add-hook 'org-export-first-hook 'cm/org-export-html-embed-style)
#+END_SRC

Usage: Link to one or more external stylesheets from your Org file.

: #+STYLE: 

The contents of the stylesheet(s) will be embedded in the exported 
HTML between 

[Orgmode] body-only for single file html export

2010-12-19 Thread joe
Hello org-mode Experts,

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!

BTW: using org-mode 7.4, gnu emacs 23.1.50

___
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-19 Thread Christian Moe

Hi, Erik,

Now I've got it working. Not sure what the problem was yesterday.

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.


Below is an excerpt from the MozRepl buffer. Much of the time, though, 
there is no error message, just multiplying "repl>" prompts.


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. We 
already could insert Zotero links just as easily with Scott Campbell's 
ZotSelect translator 
(http://forums.zotero.org/discussion/8306/testing-zoteroselect/). But 
with the added updating of formatted bibliography items, zotero-plain 
has the makings of a full solution.


My own preference has been to export my Zotero collections to BibTeX 
and insert citations with Reftex (fast and minimally disruptive to the 
writing flow, as long as all the needed references are already 
collected.) But it's good to have an alternative.


Yours,
Christian

PS. I may mail you separately about the reST components -- that's 
off-topic here, I guess.


-begin excerpt

  message: data is null
  fileName: chrome://mozrepl/content/repl.js -> 
file:///Users/CM/Library/Application%20Support/Firefox/Profiles/default.pq0/mozrepl.tmp.js

  lineNumber: 7
  stack:

writeFile("/var/folders/JV/JVNxBfnMGkWC9Aw0BZa8Kk+++TI/-Tmp-/zotero205d0z",null)@chrome://mozrepl/content/repl.js 
-> 
file:///Users/CM/Library/Application%20Support/Firefox/Profiles/default.pq0/mozrepl.tmp.js:7
@chrome://mozrepl/content/repl.js -> 
file:///Users/CM/Library/Application%20Support/Firefox/Profiles/default.pq0/mozrepl.tmp.js:1

  name: TypeError

repl> repl> repl> repl> repl> repl> repl> repl> repl> repl> repl> 
repl> repl> repl> repl> !!! TypeError: data is null


Details:

  message: data is null
  fileName: chrome://mozrepl/content/repl.js -> 
file:///Users/CM/Library/Application%20Support/Firefox/Profiles/default.pq0/mozrepl.tmp.js

  lineNumber: 7
  stack:

writeFile("/var/folders/JV/JVNxBfnMGkWC9Aw0BZa8Kk+++TI/-Tmp-/zotero205Dnb",null)@chrome://mozrepl/content/repl.js 
-> 
file:///Users/CM/Library/Application%20Support/Firefox/Profiles/default.pq0/mozrepl.tmp.js:7
@chrome://mozrepl/content/repl.js -> 
file:///Users/CM/Library/Application%20Support/Firefox/Profiles/default.pq0/mozrepl.tmp.js:1

  name: TypeError

repl> repl> !!! TypeError: data is null

-end excerpt-


On 12/18/10 11:22 PM, Erik Hetzner wrote:

Hi Christian,

Many thanks for the feedback!

At Sat, 18 Dec 2010 19:59:58 +0100,
Christian Moe wrote:


Hi,

This sounds interesting! I'd like to try it out, but haven't quite got
it to work yet.

When I turn on MozRepl in Firefox, turn on org-zotero-mode in Emacs,
and try `C-c z i', I get this error message:

make client process failed: Connection refused, :name, MozRepl,
:buffer, *MozRepl*, :host, localhost, :service, 4242

However, MozRepl is running, and listening on port 4242. I've got an
up-to-date Firefox on an aging Mac. Any tips?


Did you select “Start” from the Mozrepl submenu in the Tools menu? Can
you telnet to port 4242 on localhost?


PS. There's a missing quote before load-path in the README
installation instructions, it should be:

  (add-to-list 'load-path "/path/to/zotero-plain/elisp/")

It might be worth mentioning that one needs to install moz.el from the
MozRepl project; it's a separate step.


Thanks, I’ve fixed the error&  added info about moz.el.

best, Erik



Sent from my free software system.



___
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] $0 replaced with ampersand (&) when invoking `org-edit-special'

2010-12-19 Thread niels giesen

According to [ (info "(org) Formula syntax for Calc") ], $0
references the current cell. Pressing C-c C-c on the #+TBLFM line
below does indeed work, but C-c ' (`org-edit-special') changes the
$0 reference into a single ampersand (&). Is this a bug?

| Thing  | Amount |
|+|
| Apples |  2 |
| Pears  |1.3 |
#+TBLFM: $2=$0;%.2f

Regards,

Niels.

Using: Org-mode version 7.4 (latest from git)


pgpQlauKa3Qmm.pgp
Description: PGP 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


Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-19 Thread Niels Giesen
"Eric Schulte"  writes:

> Thanks, I've just pushed up a new version of org-mime which makes use of
> this function.

[...]

Hi Eric,

I love the org-mime-subtree function! It makes writing good-looking
mails very easy.

Now for a proposal:

For ascii export used for mail, it would be cool if SRC and EXAMPLE
blocks be surrounded by "cut here" scissor lines. They look well in gnus
for example:

--8<---cut here---start->8---
code or example here
--8<---cut here---end--->8---

Maybe the best way to achieve this is to define a hook before the string
is sent to `org-export-string' with the FMT arg set to 'ascii, so that
people can define their own functions. For instance, there are also
people who prefer a block like

,[ emacs-lisp ]
| source here
`

What do you think?

Regards,

Niels.

-- 
http://pft.github.com/


pgpFFUrZ14QVC.pgp
Description: PGP 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


Re: [Orgmode] Link descriptions

2010-12-19 Thread David Maus
At Wed, 15 Dec 2010 17:33:38 -1000,
Thomas S. Dye wrote:
> Perhaps it has to do with footnotes?  That's an org-mode environment
> with square brackets and, in some instances, a superscript number.

Yes, this was the problem: When preprocessing the buffer for LaTeX
export Org converted anything that looks like a numeric footnote into
a LaTeX-Footnote.  I just pushed a fix to master that should take care
of the problem.

The implication of this modification is that you cannot place a
footnote right after a closed square bracket because the LaTeX
processing function from now on skips [\d+] if it character before is
a closed square bracket.

Best,
  -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgp3NJyfmjrBv.pgp
Description: PGP 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] export of table.el tables

2010-12-19 Thread Jambunathan K

Summary: table.el tables with row and col spans are not getting exported
as expected on html export. 

Looks like the table markers gets recognized as strikethroughs, mdashes
and ndashes. This apparrently is getting in the way of proper
export. 

Furthermore I see no rowspans and colspans in the generated html.

Local settings:
(setq org-export-prefer-native-exporter-for-tables nil)

Attachments:

1. Input orgfile
2. html generated with C-c C-e h
3. html generated with M-x table-generate-source

Jambunathan K.

* table.el (with no spanning)

+++++++
|label   |a   |b   |c   |d   |e   |
+++++++
|1   |a1  |b1  |c1  |d1  |e1  |
+++++++
|2   |a2  |b2  |c2  |d2  |e2  |
+++++++
|3   |a3  |b3  |c3  |d3  |e3  |
+++++++
|4   |a4  |b4  |c4  |d4  |e4  |
+++++++
|5   |a5  |b5  |c5  |d5  |e5  |
+++++++

* table.el (with spanning)

++++++---+
|label   |a   |b   |c   |d   |e  |
++++++---+
|1   |a1  |b1  |c1  |d1  |e1 e2 e3 e4|
++++++   |
|2   |a2 b2 c2  |d2  |   |
+++-++   |
|3   |a3  |b3 c3 d3  |   |
++++++   |
|4   |a4  |b4  |c4  |d4  |   |
++++++---+
|5   |a5  |b5  |c5  |d5  |e5 |
++++++---+

Title: table-table


  
  


  table-table


  
	Table of Contents
	
	  
	1 table.el (with no spanning) 
	2 table.el (with spanning) 
	  
	
  

  
	1 table.el (with no spanning) 
	


	  
	label
	a
	b
	c
	d
	e
	1
	a1
	b1
	c1
	d1
	e1
	2
	a2
	b2
	c2
	d2
	e2
	3
	a3
	b3
	c3
	d3
	e3
	4
	a4
	b4
	c4
	d4
	e4
	5
	a5
	b5
	c5
	d5
	e5
	  

	

  

  
	2 table.el (with spanning) 
	


	  
	–——–——+–——+–——+–——+   |
	–——–——+–—+–——+   |
	–——–——+–——+–——+–——+   |
	
	label
	a
	b
	c
	d
	e
	1234
	a1a2 b2 c2a3a4
	b1d2b3 c3 d3b4
	c1c4
	d1d4
	e1 e2 e3 e4
	5
	a5
	b5
	c5
	d5
	e5
	  

	
  
  
	 Author: Jambunathan K
	
	
	 Date: 2010-12-19 19:27:31 
	HTML generated by org-mode 7.4 in emacs 23
  

  



  Table
  

  label   


  a   


  b   


  c   


  d   


  e  

  
  

  1   


  a1  


  b1  


  c1  


  d1  


  e1 e2 e3 e4
     
     
     
     
     
     

  
  

  2   


  a2 b2 c2  


  d2  

  
  

  3   


  a3  


  b3 c3 d3  

  
  

  4   


  a4  


  b4  


  c4  


  d4  

  
  

  5   


  a5  


  b5  


  c5  


  d5  


  e5 

  

___
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] Table export to HTML, column alignment

2010-12-19 Thread David Maus
At Sun, 5 Dec 2010 23:34:30 -0800,
Saptarshi Guha wrote:
>
> Hello,
>
> I would like to align a 2 column table with the left and right columns
> left and right justified.
> Having read [1], I tried
>
> #+ATTR_HTML:  rules="all" frame="none" border="0"
> |+--|
> | |   |
> | daldladldlaksdlakjdlasjdlajksd | asdasdasSun Dec 05 13:09:05 PST 2010 |
> | dasdasdasdasdaededeadaed   | Sun Dec 05 13:10:17 PST 2010 |
> | asdasdasdasdas | Sun Dec 05 13:11:07 PST 2010 |
> | dasdaedaededaeda   | Sun Dec 05 13:13:55 PST 2010 |
> |+--|
> ||  |
>
> And ran into this issue
>
> 1) It works in org-mode but the exported table still has left align
> for both columns
>
> Is there a CSS way (using id/classes) to get around the above?

Exporting the table to HTML and having the columns aligned works here
with

Org-mode version 7.4 (release_7.4.42.g2a36)

on

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of
 2010-11-03 on potassium, modified by Debian

The table columns have the CSS class 'left' and 'rigth' respectively,
so defining the CSS like:

,
| td.left { text-align:left; }
| td.right { text-align:right; }
`

Works.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgp0InkVx5hNI.pgp
Description: PGP 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


Re: [Orgmode] Link descriptions

2010-12-19 Thread Thomas S. Dye

Aloha David,

Very nice.  Thanks.

All the best,
Tom

On Dec 19, 2010, at 4:00 AM, David Maus wrote:


At Wed, 15 Dec 2010 17:33:38 -1000,
Thomas S. Dye wrote:

Perhaps it has to do with footnotes?  That's an org-mode environment
with square brackets and, in some instances, a superscript number.


Yes, this was the problem: When preprocessing the buffer for LaTeX
export Org converted anything that looks like a numeric footnote into
a LaTeX-Footnote.  I just pushed a fix to master that should take care
of the problem.

The implication of this modification is that you cannot place a
footnote right after a closed square bracket because the LaTeX
processing function from now on skips [\d+] if it character before is
a closed square bracket.

Best,
 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de



___
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] preventing strikethrough, italics and underline fontification

2010-12-19 Thread David Maus
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.

HTH,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpMUCoWyqu4l.pgp
Description: PGP 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


Re: [Orgmode] Bug: make failure [7.3]

2010-12-19 Thread David Maus
At Thu, 09 Dec 2010 21:17:50 -0500,
Dave Abrahams wrote:
>
> [...]
>
> In toplevel form:
> contrib/babel/langs/ob-oz.el:93:1:Error: Cannot open load file: mozart

As far as I can see the errors occur when compiling the files in
contrib directory.  I.e. it is not expected for all the files to byte
compile under all circumstances.  ob-oz.el for example requires the
package mozart (whatever this is) that's simply not installed.

Some errors on the other hand indicate requirement for some fixing, so
I filed a task to review the contrib packages in the issue tracker.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpsFYRtyTERc.pgp
Description: PGP 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] [Accepted] [Orgmode,1/2] org-gnus: trim date

2010-12-19 Thread Carsten Dominik
Patch 480 (http://patchwork.newartisans.com/patch/480/) is now "Accepted".

Maintainer comment: No comment

This relates to the following submission:

http://mid.gmane.org/%3C1292337138-14321-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode,1/2] org-gnus: trim date
> Date: Tue, 14 Dec 2010 19:32:17 -
> From: Julien Danjou 
> X-Patchwork-Id: 480
> Message-Id: <1292337138-14321-1-git-send-email-jul...@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou 
> 
> * org-gnus.el (org-gnus-store-link): Trim date.
> 
> Signed-off-by: Julien Danjou 
> 
> ---
> lisp/org-gnus.el |2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
> index fccd3e9..32641bf 100644
> --- a/lisp/org-gnus.el
> +++ b/lisp/org-gnus.el
> @@ -151,7 +151,7 @@ If `org-store-link' was called with a prefix arg the 
> meaning of
>(gnus-summary-article-header)))
>  (from (mail-header-from header))
>  (message-id (org-remove-angle-brackets (mail-header-id header)))
> -(date (mail-header-date header))
> +(date (org-trim (mail-header-date header)))
>  (date-ts (and date (format-time-string
>  (org-time-stamp-format t) (date-to-time date
>  (date-ts-ia (and date (format-time-string
> 

___
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


[Accepted] [Orgmode] Quote any special characters in org-make-target-link-regexp

2010-12-19 Thread Carsten Dominik
Patch 483 (http://patchwork.newartisans.com/patch/483/) is now "Accepted".

Maintainer comment: No comment

This relates to the following submission:

http://mid.gmane.org/%3C1292338919-22555-1-git-send-email-wence%40gmx.li%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Quote any special characters in org-make-target-link-regexp
> Date: Tue, 14 Dec 2010 20:01:59 -
> From: Lawrence Mitchell 
> X-Patchwork-Id: 483
> Message-Id: <1292338919-22555-1-git-send-email-we...@gmx.li>
> To: emacs-orgmode@gnu.org
> Cc: Lawrence Mitchell 
> 
> * lisp/org.el (org-make-target-link-regexp): regexp-quote target
> before replacing whitespace.
> 
> Previously a radio link <<<...>>> would match all three-letter words
> in the buffer.  The manual indicates the radio links are meant to
> match literally (modulo whitespace differences), so we should
> regexp-quote all the targets to avoid over-eager matching.
> 
> ---
> This problem bit me when writing up some notes on CUDA, which uses
> <<<...>>> to indicate a function call from a CPU onto a GPU.  I think
> this is the right fix, since I can't imagine a situation where you
> would want <<>> to match foo.bar, rather than foo\\.bar.
> 
>  lisp/org.el |1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 6d1062c..5733d67 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -5424,6 +5424,7 @@ between words."
>   "\\<\\("
>   (mapconcat
>(lambda (x)
> +(setq x (regexp-quote x))
>  (while (string-match " +" x)
>(setq x (replace-match "\\s-+" t t x)))
>  x)
> 

___
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]? org-agenda-filter-by-tag

2010-12-19 Thread David Maus
At Fri, 10 Dec 2010 19:23:38 +0100,
Maximilian Matthé wrote:
> So, what should I do? I'm going to try to compile a current version of
> emacs but I guess thats not the reason...
> 
> Thanks for any more advice!

Did you try to reproduce the problem with a minimal Emacs
configuration?  emacs -q and a minial initialization file that just
sets up Org mode and enables ido mode.

This way you can rule out that the problem is caused by some package
in you emacs initfile.

I am using ido mode but / works fine here on Emacs 23.2.

Best,
  -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgp43n53mB8c4.pgp
Description: PGP 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] [Accepted] [Orgmode, 2/2] Allow to retrieve email link date

2010-12-19 Thread Carsten Dominik
Patch 481 (http://patchwork.newartisans.com/patch/481/) is now "Accepted".

Maintainer comment: No comment

This relates to the following submission:

http://mid.gmane.org/%3C1292337138-14321-2-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode,2/2] Allow to retrieve email link date
> Date: Tue, 14 Dec 2010 19:32:18 -
> From: Julien Danjou 
> X-Patchwork-Id: 481
> Message-Id: <1292337138-14321-2-git-send-email-jul...@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou 
> 
> * org.el (org-email-link-description): Allow to retrieve email link date.
> 
> Signed-off-by: Julien Danjou 
> 
> ---
> lisp/org.el |2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 79c5bf8..7841198 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -1321,6 +1321,7 @@ The following %-escapes will be replaced by 
> corresponding information:
>  %c   correspondent.  Usually \"from NAME\", but if you sent it yourself, it
>   will be \"to NAME\".  See also the variable `org-from-is-user-regexp'.
>  %s   subject
> +%d   date
>  %m   message-id.
>  
>  You may use normal field width specification between the % and the letter.
> @@ -8496,6 +8497,7 @@ according to FMT (default from 
> `org-email-link-description-format')."
>  (cons "%T" (plist-get p :to))
>  (cons "%t" (or (plist-get p :toname) (plist-get p :toaddress) "?"))
>  (cons "%s" (plist-get p :subject))
> +(cons "%d" (plist-get p :date))
>  (cons "%m" (plist-get p :message-id)
>  (when (string-match "%c" fmt)
>;; Check if the user wrote this message
> 

___
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: make failure [7.3]

2010-12-19 Thread Dave Abrahams
At Sun, 19 Dec 2010 17:48:58 +0100,
David Maus wrote:
> 
> At Thu, 09 Dec 2010 21:17:50 -0500,
> Dave Abrahams wrote:
> >
> > [...]
> >
> > In toplevel form:
> > contrib/babel/langs/ob-oz.el:93:1:Error: Cannot open load file: mozart
> 
> As far as I can see the errors occur when compiling the files in
> contrib directory.  

Yeah, I noticed that eventually.  Sorry for the noise...

> I.e. it is not expected for all the files to byte
> compile under all circumstances.  ob-oz.el for example requires the
> package mozart (whatever this is) that's simply not installed.
> 
> Some errors on the other hand indicate requirement for some fixing, so
> I filed a task to review the contrib packages in the issue tracker.

...or, rather, glad I could help.

-- 
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] Problem publishing symbolic links

2010-12-19 Thread David Maus
At Sat, 11 Dec 2010 13:53:17 +1300,
Aidan Gauland wrote:
>
> [1  ]
> [1.1  ]
> Hi,
>
> I am using Org-mode to run my website, and I have symbolic links to
> files elsewhere in my home directory (which are dereferenced when
> published).  When I org-publish the project, it doesn't re-publish the
> symbolic links even if the target has changed.
>
> Any idea what I could do to avoid manually copying the files that
> org-publish should be publishing?

Org checks the file modification time to determine whether to
republish a file or not.  Due to the nature of /sym/links their
modification date does not change if the directory entry they are
pointing to changes.

Maybe you could use hard links instead of symlinks if the files you
are linking exist on the same hard disk partition.  If this is not the
case maybe using a command line tool that syncs the directories
(e.g. rsync) could be an option (Cf. Manual, 13.1.2 Sources and
destinations for files).

HTH,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpr8Zv9lVvvn.pgp
Description: PGP 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


Re: [Orgmode] Disputed keys

2010-12-19 Thread Eric S Fraga
Andrea Crotti  writes:

> 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
>
> [(meta left)]
> Value: [(meta control left)]
> [(meta right)]
> Value: [(meta control right)]
>
> 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...

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?
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.4 (release_7.4.25.geb0d)

___
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: Sending org buffer as mail?

2010-12-19 Thread Samuel Wales
Hi Niels,

On 2010-12-19, Niels Giesen  wrote:
> ,[ emacs-lisp ]
> | source here
> `

This is much harder to extract.  Even if most people are willing to
use and know rectangle commands, newcomers don't.

I once pointed this out on emacs-help, and one person responded by
writing a command that extracts the source.  So a newcomer would have
to know to look for that command, get it, extract it, evaluate it,
then extract the source he originally wanted to extract.  I think that
person didn't quite get the point.  :)

Samuel

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: "You only think it's dark." [CDC has denied a deadly serious
disease for 25 years]
==
HIV-like virus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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] Fix before first heading check

2010-12-19 Thread Bernt Hansen
* 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


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

2010-12-19 Thread Bernt Hansen
joe  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 " 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

___
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: Sending org buffer as mail?

2010-12-19 Thread Eric Schulte
Niels Giesen  writes:

> "Eric Schulte"  writes:
>
>> Thanks, I've just pushed up a new version of org-mime which makes use of
>> this function.
>
> [...]
>
> Hi Eric,
>
> I love the org-mime-subtree function! It makes writing good-looking
> mails very easy.
>
> Now for a proposal:
>
> For ascii export used for mail, it would be cool if SRC and EXAMPLE
> blocks be surrounded by "cut here" scissor lines. They look well in gnus
> for example:
>

For even better looking code in gnus, I personally prefer to use org as
my export target (rather than ascii), and with "Org-mode code block
fontification" configuration from
http://eschulte.github.com/emacs-starter-kit/starter-kit-gnus.html
code blocks inside org-mode markup will be correctly fontified in gnus
messages.

>
> code or example here
>
> Maybe the best way to achieve this is to define a hook before the string
> is sent to `org-export-string' with the FMT arg set to 'ascii, so that
> people can define their own functions. For instance, there are also
> people who prefer a block like
>

good idea, I've just added a series of hooks to org-mime which will be
called in a temporary buffer holding the text to be exported, so you
could add a function here to add scissor lines around code blocks.  Like
Sam I would discourage the use of boxquotes for anything that users may
want to cut and paste.  For ascii use the `org-mime-pre-ascii-hook'.

If you come up with useful hooks it may be nice to share them on worg at
http://orgmode.org/worg/org-contrib/org-mime.php

>
> ,[ emacs-lisp ]
> | source here
> `
>
> What do you think?
>
> Regards,
>
> Niels.

Thanks for the suggestion -- 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


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

2010-12-19 Thread Erik Hetzner
At Sun, 19 Dec 2010 12:27:32 +0100,
Christian Moe wrote:
> 
> Hi, Erik,
> 
> Now I've got it working. Not sure what the problem was yesterday.
> 
> 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.
> 
> Below is an excerpt from the MozRepl buffer. Much of the time, though, 
> there is no error message, just multiplying "repl>" prompts.
> 
> 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. We 
> already could insert Zotero links just as easily with Scott Campbell's 
> ZotSelect translator 
> (http://forums.zotero.org/discussion/8306/testing-zoteroselect/). But 
> with the added updating of formatted bibliography items, zotero-plain 
> has the makings of a full solution.
> 
> My own preference has been to export my Zotero collections to BibTeX 
> and insert citations with Reftex (fast and minimally disruptive to the 
> writing flow, as long as all the needed references are already 
> collected.) But it's good to have an alternative.

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

___
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] Request for suggestions: multiple revision control systems/repositories + org

2010-12-19 Thread Robert Goldman
I am looking for hints.  I have a number of org files, typically one for
each major project plus two or three for my personal life.

These must often live in different revision control systems: my work
projects, in particular, have different repositories; I have a main set
of org files for work in ~/org/, tracked by my employers' svn;
occasionally, I do something outside, like work on a paper with someone
outside my company in a dedicated git repo; and I'd like to stuff my
personal materials off in a git repo of my own.

I have been pulling all of these together into my ~/org directory, using
symbolic links, for the benefit of mobile org.  That is, my ~/org
directory has my main work org files, plus links to a bunch of others.

That works well for syncing with mobile org.  Unfortunately, it's a mess
for Emacs's version control mode.  VC mode sees the .svn directory in
that place, and can handle the local files, but gets horribly confused
by the sym-linked files.

Anyone have a similar need to gather together a mess of org files, and
have a cleaner solution?

Extra credit if you have a way of creating the same set of symlinks on
more than one machine! ;-)

Thanks to all,
Robert

___
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] Request for suggestions: multiple revision control systems/repositories + org

2010-12-19 Thread suvayu ali
On Sun, Dec 19, 2010 at 4:13 PM, Robert Goldman  wrote:
> Anyone have a similar need to gather together a mess of org files, and
> have a cleaner solution?
>
> Extra credit if you have a way of creating the same set of symlinks on
> more than one machine! ;-)
>

Why not just use subdirectories?

org $  tree -L 1 -d
.
|-- css
|-- data
|-- eg
|-- gibberish
|-- html
|-- images
|-- khorcha
|-- ltxpng
|-- masters-thesis
|-- not-physics
|-- projects
|-- Worg
`-- Wprime


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


Bug?: Re: [Orgmode] Problem publishing symbolic links

2010-12-19 Thread Aidan Gauland
On Sun, Dec 19, 2010 at 06:35:12PM +0100, David Maus wrote:
> Org checks the file modification time to determine whether to
> republish a file or not.  Due to the nature of /sym/links their
> modification date does not change if the directory entry they are
> pointing to changes.

Then shouldn't Org-mode check the modification time of the *target*?

> Maybe you could use hard links instead of symlinks if the files you
> are linking exist on the same hard disk partition.  If this is not the
> case maybe using a command line tool that syncs the directories
> (e.g. rsync) could be an option (Cf. Manual, 13.1.2 Sources and
> destinations for files).

That's what I'll have to do.  This seems to be more of a workaround
than a solution, though.

--Aidan


signature.asc
Description: Digital 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


Re: [Orgmode] Re: Sending org buffer as mail?

2010-12-19 Thread Eric Schulte
Ethan Ligon  writes:

> Eric Schulte  gmail.com> writes:
>> 
>> Jean-Marie Gaillourdet  gaillourdet.net> writes:
>> 
>> > Hi Eric,
>> >
>> > "Eric Schulte"  gmail.com> writes:
>> >
>> >> Hi Matt,
>> >>
>> >> This looks great, how would you feel about trying to fold this into
>> >> org-mime, or would you mind if I did so.  I've already mimicked your
>> >> function to set subjects of outgoing emails to match the title of the
>> >> org-mode buffer.  I think that generalizing the org-mime functions to
>> >> operate over either subtrees or whole files, and to output either html
>> >> or plain text should cover all use cases with maximal code re-use.
>> >
>> > does it also support using ascii exports as text part and the html
>> > export as html part in a multi part message?
>> >
>> 
>> It does now.  In the version I just pushed up an html and ascii export
>> can be accomplished by setting the :MAIL_FMT: property to html-ascii, or
>> by calling either `org-mime-send-buffer' or `org-mime-send-subtree' with
>> 'html-ascii as an argument.
>> 
>
> Eric-
>
> This is just great; thanks!  
>
> Two additional suggestions:
>
> 1. The subject line should be exported as ascii also, to avoid 
>funky orgmode markup messing things up (I often have links in my
>headlines, for example).
>

Unfortunately I don't know if any good/easy way to strip out these
emphasis markers.

>
> 2. Could we get some indication that the subtree's been mailed?  I'm
>thinking of having org-mime-subtree set a property MAIL_SENT to a
>time stamp or perhaps to the message id.  
>
>This way, if we inspect the subtree later we'll know if and when
>it was actually sent.  A possible bonus if we use the message id:
>when we get to the point of getting replies *back* into the org
>file it'll be possible to thread things properly.
>

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

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.

Cheers -- Eric

>
> -Ethan
>
>
>
>
>
> ___
> 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-19 Thread Bernt Hansen
Robert Goldman  writes:

> I am looking for hints.  I have a number of org files, typically one for
> each major project plus two or three for my personal life.
>
> These must often live in different revision control systems: my work
> projects, in particular, have different repositories; I have a main set
> of org files for work in ~/org/, tracked by my employers' svn;
> occasionally, I do something outside, like work on a paper with someone
> outside my company in a dedicated git repo; and I'd like to stuff my
> personal materials off in a git repo of my own.
>
> I have been pulling all of these together into my ~/org directory, using
> symbolic links, for the benefit of mobile org.  That is, my ~/org
> directory has my main work org files, plus links to a bunch of others.
>
> That works well for syncing with mobile org.  Unfortunately, it's a mess
> for Emacs's version control mode.  VC mode sees the .svn directory in
> that place, and can handle the local files, but gets horribly confused
> by the sym-linked files.
>
> Anyone have a similar need to gather together a mess of org files, and
> have a cleaner solution?
>
> Extra credit if you have a way of creating the same set of symlinks on
> more than one machine! ;-)

How about keeping the separate projects in separate repositories and
just add the files from those multiple projects to your org-agenda-files
variable?

Then you see a consolidated view of multiple org projects (and the files
that contribute to that view can be individually set per machine - you
don't need all projects for all machines - but any repositories that are
available can contribute to your agenda.

Each of the projects are completely independent and don't need to know
about each other - just the org-agenda-files variable pulls them into
your agenda view.

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] Re: Request for suggestions: multiple revision control systems/repositories + org

2010-12-19 Thread Robert P. Goldman
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?

Thanks,
R

"Bernt Hansen"  wrote:

>Robert Goldman  writes:
>
>> I am looking for hints.  I have a number of org files, typically one
>for
>> each major project plus two or three for my personal life.
>>
>> These must often live in different revision control systems: my work
>> projects, in particular, have different repositories; I have a main
>set
>> of org files for work in ~/org/, tracked by my employers' svn;
>> occasionally, I do something outside, like work on a paper with
>someone
>> outside my company in a dedicated git repo; and I'd like to stuff my
>> personal materials off in a git repo of my own.
>>
>> I have been pulling all of these together into my ~/org directory,
>using
>> symbolic links, for the benefit of mobile org.  That is, my ~/org
>> directory has my main work org files, plus links to a bunch of
>others.
>>
>> That works well for syncing with mobile org.  Unfortunately, it's a
>mess
>> for Emacs's version control mode.  VC mode sees the .svn directory in
>> that place, and can handle the local files, but gets horribly
>confused
>> by the sym-linked files.
>>
>> Anyone have a similar need to gather together a mess of org files,
>and
>> have a cleaner solution?
>>
>> Extra credit if you have a way of creating the same set of symlinks
>on
>> more than one machine! ;-)
>
>How about keeping the separate projects in separate repositories and
>just add the files from those multiple projects to your
>org-agenda-files
>variable?
>
>Then you see a consolidated view of multiple org projects (and the
>files
>that contribute to that view can be individually set per machine - you
>don't need all projects for all machines - but any repositories that
>are
>available can contribute to your agenda.
>
>Each of the projects are completely independent and don't need to know
>about each other - just the org-agenda-files variable pulls them into
>your agenda view.
>
>Regards,
>Bernt

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

___
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-19 Thread Bernt Hansen
"Robert P. Goldman"  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?
>
> Thanks,
> R

I'm not sure.  I don't currently use mobile org at all.

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


Re: [Orgmode] Disputed keys

2010-12-19 Thread Suvayu Ali

On Sunday 19 December 2010 11:20 AM, Eric S Fraga wrote:

Andrea Crotti  writes:


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

[(meta left)]
 Value: [(meta control left)]
[(meta right)]
 Value: [(meta control right)]

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


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?


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. :)


--
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] Bug: Bad doc [7.4]

2010-12-19 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.


Th' manual sez:

  9.1.3 Capture templates
  ---

  You can use templates for different types of capture items, and for
  different target locations.  The easiest way to create such templates is
  through the customize interface.

  `C-c c C'
   Customize the variable `org-capture-templates'.

I don't know where that keybinding is supposed to come from, but as
far as I can tell, it isn't set anywhere.  In fact, if we take the
manual's suggested `C-c c' binding for org-capture, the `C' above just
does a self-insert in the capture buffer.

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


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

2010-12-19 Thread Leo
On 2010-12-20 06:12 +, Dave Abrahams wrote:
> Th' manual sez:
>
>   9.1.3 Capture templates
>   ---
>
>   You can use templates for different types of capture items, and for
>   different target locations.  The easiest way to create such templates is
>   through the customize interface.
>
>   `C-c c C'
>Customize the variable `org-capture-templates'.
>
> I don't know where that keybinding is supposed to come from, but as
> far as I can tell, it isn't set anywhere.  In fact, if we take the
> manual's suggested `C-c c' binding for org-capture, the `C' above just
> does a self-insert in the capture buffer.

No problem here, running 7.4 on 23.2.91.

You should see something like: http://imgur.com/Bfwlh.png

Cheers,
Leo

-- 
Oracle is the new evil

___
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-19 Thread Noorul Islam K M
Dave Abrahams  writes:

> 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.
> 
>
> Th' manual sez:
>
>   9.1.3 Capture templates
>   ---
>
>   You can use templates for different types of capture items, and for
>   different target locations.  The easiest way to create such templates is
>   through the customize interface.
>
>   `C-c c C'
>Customize the variable `org-capture-templates'.
>
> I don't know where that keybinding is supposed to come from, but as
> far as I can tell, it isn't set anywhere.  In fact, if we take the
> manual's suggested `C-c c' binding for org-capture, the `C' above just
> does a self-insert in the capture buffer.
>

For me it works fine. I have 'C-c r' bound to (org-capture) and when I
hit C-c r C, I get customize frame.

Thanks and Regards
Noorul

___
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-19 Thread Nick Dokos
Dave Abrahams  wrote:

>   `C-c c C'
>Customize the variable `org-capture-templates'.
> 
> I don't know where that keybinding is supposed to come from, but as
> far as I can tell, it isn't set anywhere.  In fact, if we take the
> manual's suggested `C-c c' binding for org-capture, the `C' above just
> does a self-insert in the capture buffer.
> 

Works fine here.

It's not a run-of-the-mill keybinding: it's actually dynamically "bound"
(in a manner of speaking) when org-capture gets executed. Assuming you
have bound C-c c to org-capture, then you should get a menu somewhat
like this with C-c c (but note that it will reflect *your* definition of
org-capture-templates; and note also that the menu is constructed at
runtime):

,
| Select a capture template
| =
| 
| [t] 
| [a] Appts
| [h] Home
| [w] Work
| [n] Notes
| 
---
| [C] Customize org-capture-templates
| [q] Abort
`


`C' and `q' are predefined in this menu. The org-capture
code itself looks like this:

--8<---cut here---start->8---
  ...
  (cond
   ((equal entry "C")
(customize-variable 'org-capture-templates))
   ((equal entry "q")
(error "Abort"))
  ...
--8<---cut here---end--->8---

Hope that clarifies,
Nick

___
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-19 Thread Rémi Vanicat
"Robert P. Goldman"  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’.

-- 
Rémi Vanicat


___
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: Bad doc [7.4]

2010-12-19 Thread Dave Abrahams
At Mon, 20 Dec 2010 06:22:48 +,
Leo wrote:
> 
> On 2010-12-20 06:12 +, Dave Abrahams wrote:
> > Th' manual sez:
> >
> >   9.1.3 Capture templates
> >   ---
> >
> >   You can use templates for different types of capture items, and for
> >   different target locations.  The easiest way to create such templates is
> >   through the customize interface.
> >
> >   `C-c c C'
> >Customize the variable `org-capture-templates'.
> >
> > I don't know where that keybinding is supposed to come from, but as
> > far as I can tell, it isn't set anywhere.  In fact, if we take the
> > manual's suggested `C-c c' binding for org-capture, the `C' above just
> > does a self-insert in the capture buffer.
> 
> No problem here, running 7.4 on 23.2.91.
> 
> You should see something like: http://imgur.com/Bfwlh.png

No, I get no menu, (perhaps because I haven't customized org-capture templates?)

emacs -Q

evaluating the following:

 (add-to-list 'load-path "~/.emacs.d/3rd-party/package.d/org-mode/lisp")
 (load-library "org-capture")
 (setq org-default-notes-file (concat org-directory "/notes.org"))
 (define-key global-map "\C-cc" 'org-capture)

and pressing `\C-c c' gets me a buffer called "CAPTURE-notes.org" containing:

  ** TODO 
 [2010-12-19 Sun]

-- 
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-19 Thread Carsten Dominik


On Dec 20, 2010, at 7:12 AM, Dave Abrahams wrote:




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.


Th' manual sez:

 9.1.3 Capture templates
 ---

 You can use templates for different types of capture items, and for
 different target locations.  The easiest way to create such  
templates is

 through the customize interface.

 `C-c c C'
  Customize the variable `org-capture-templates'.

I don't know where that keybinding is supposed to come from, but as
far as I can tell, it isn't set anywhere.  In fact, if we take the
manual's suggested `C-c c' binding for org-capture, the `C' above just
does a self-insert in the capture buffer.



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 rightfully wanted to lose the extra key press.  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.

- Carsten



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



___
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