[Orgmode] Re: ePub and Org mode

2011-02-19 Thread Achim Gratz
Christian Moe  writes:
> I agree exporting 'chapters' in a single Org document to separate html
> files would be a nice option to have.
>
> Pending someone writing an export function for this, you could
[...]

That sort of already exists, I've been using that to some good
effect... from the documentation:

--8<---cut here---start->8---
   When exporting only a single subtree by selecting it with `C-c @'
before calling an export command, the subtree can overrule some of the
file's export settings with properties `EXPORT_FILE_NAME',
`EXPORT_TITLE', `EXPORT_TEXT', `EXPORT_AUTHOR', `EXPORT_DATE', and
`EXPORT_OPTIONS'.
--8<---cut here---end--->8---

The only thing missing is a function to export all (not excluded)
subtrees one by one and honor the properties slapped onto each subtree.


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


___
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] indentation for section headings vs bulleted lists

2011-02-19 Thread Linus Arver
On Sat, Feb 19, 2011 at 10:35:11AM +0100, Bastien wrote:
> Hi Linus,
> 
> Linus Arver  writes:
> 
> > I'm running emacs-org-mode 7.4.
> > (http://aur.archlinux.org/packages.php?ID=18206).
> 
> There has been important changes to the way Org handles lists in the git
> repo.  You can either check them but cloning this repo or wait for the
> next release.
> 
> HTH,
> 
> -- 
>  Bastien

I've switched to the git version of org-mode, and there is no change in
behavior. I am including a link to a screenshot, with a very good
example of the behavior (with physical line numbers showing), to see if
anyone can reproduce the behavior on their system.

Screenshot: http://img593.imageshack.us/i/20110219231411681x766sc.png/

Again, I'm very curious why org-mode's indenting code treats bulleted
lists differently than section headings.

I'm also attaching the raw .org file with this message as a reference.

-Linus
#+STARTUP: indent

- asd fas fdsf sdf sdfasdf sadf sadf adf asdf sadf sadf dsf sf dsf dsaf asdf 
dsaf df adf dsaf dsaf dfa df asdf dsf adsf dsf dsf adsf dasf adsf dfa sdf dsaf 
dsaf dsa dfa fd fdsa dsf saf dasf df df dsf dsf sdf ds fds d fdf dsaf dsf dsf 
dsf df
  - asd fas fdsf sdf sdfasdf sadf sadf adf asdf sadf sadf dsf sf dsf dsaf asdf 
dsaf df adf dsaf dsaf dfa df asdf dsf adsf dsf dsf adsf dasf adsf dfa sdf dsaf 
dsaf dsa dfa fd fdsa dsf saf dasf df df dsf dsf sdf ds fds d fdf dsaf dsf dsf 
dsf df
- asd fas fdsf sdf sdfasdf sadf sadf adf asdf sadf sadf dsf sf dsf dsaf 
asdf dsaf df adf dsaf dsaf dfa df asdf dsf adsf dsf dsf adsf dasf adsf dfa sdf 
dsaf dsaf dsa dfa fd fdsa dsf saf dasf df df dsf dsf sdf ds fds d fdf dsaf dsf 
dsf dsf df
  - asd fas fdsf sdf sdfasdf sadf sadf adf asdf sadf sadf dsf sf dsf dsaf 
asdf dsaf df adf dsaf dsaf dfa df asdf dsf adsf dsf dsf adsf dasf adsf dfa sdf 
dsaf dsaf dsa dfa fd fdsa dsf saf dasf df df dsf dsf sdf ds fds d fdf dsaf dsf 
dsf dsf df

* asd fas fdsf sdf sdfasdf sadf sadf adf asdf sadf sadf dsf sf dsf dsaf asdf 
dsaf df adf dsaf dsaf dfa df asdf dsf adsf dsf dsf adsf dasf adsf dfa sdf dsaf 
dsaf dsa dfa fd fdsa dsf saf dasf df df dsf dsf sdf ds fds d fdf dsaf dsf dsf 
dsf df
** asd fas fdsf sdf sdfasdf sadf sadf adf asdf sadf sadf dsf sf dsf dsaf asdf 
dsaf df adf dsaf dsaf dfa df asdf dsf adsf dsf dsf adsf dasf adsf dfa sdf dsaf 
dsaf dsa dfa fd fdsa dsf saf dasf df df dsf dsf sdf ds fds d fdf dsaf dsf dsf 
dsf df
*** asd fas fdsf sdf sdfasdf sadf sadf adf asdf sadf sadf dsf sf dsf dsaf asdf 
dsaf df adf dsaf dsaf dfa df asdf dsf adsf dsf dsf adsf dasf adsf dfa sdf dsaf 
dsaf dsa dfa fd fdsa dsf saf dasf df df dsf dsf sdf ds fds d fdf dsaf dsf dsf 
dsf df
 asd fas fdsf sdf sdfasdf sadf sadf adf asdf sadf sadf dsf sf dsf dsaf asdf 
dsaf df adf dsaf dsaf dfa df asdf dsf adsf dsf dsf adsf dasf adsf dfa sdf dsaf 
dsaf dsa dfa fd fdsa dsf saf dasf df df dsf dsf sdf ds fds d fdf dsaf dsf dsf 
dsf df
___
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] importing google docs document into org

2011-02-19 Thread Le Wang
On Fri, Feb 18, 2011 at 8:57 PM, Puneeth Chaganti 
 wrote:
>
> Actually, if you can describe the problems that you were faced with, I
> would be interested in spending some time and trying to fix those
> problems with Pandoc or atleast report issues and get them fixed. (I
> had contributed the original exporter, though my Haskell knowledge is
> negligible.)
>

Upon closer inspection of the google docs exported html, it appears that the
problems I had were not pandoc issues but google docs issues.

Thanks again.

-- 
Le
___
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] 6th todo keyword bug

2011-02-19 Thread Samuel Wales
Found a todo keyword bug.  Sixth one of this type.  :)

If the first word of a headline is the same as a todo keyword except
for being non-uppercase, it will not be exported.

Latest git.

Earlier context:

On 2010-01-14, Carsten Dominik  wrote:
> Thanks for you patient work to find these places.  I have
> fixed this one as well, just like you earlier discoveries.
>
>> 2) This is the 5th bug that I have reported of this type.
>>In all 5 cases, the lower case version of a todo kw at
>>the beginning of a headline caused incorrect behavior.
>>This suggests separate matches.  At least as a
>>possibility.
>
> Yes, these are all individual matches, unfortunately.
>
>>
>>This in turn suggests to me that it might be possible
>>to refactor org.  By this I mean create a wrapper to do
>>the matching and call that wrapper in all of those
>>places.  I wish I could help here, but I cannot.
>
>
> This is possible, but a huge amount of work which might
> introduce more bugs.  I think we really have caught most
> of these now, thanks to you.

Samuel

-- 
The Kafka Pandemic:
http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
I support the Whittemore-Peterson Institute (WPI)
===
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] Re: [PATCH] Markup on same line as text

2011-02-19 Thread Hrvoje Niksic
Roland Kaufmann  writes:

>> htmlize doesn't operate on the level of syntax-based fontification, it
>> examines the display-related properties attached to buffer text (not
>> necessarily by font-lock) and renders them into the corresponding HTML.
>
> Good point.
>
> And, as you point out, it is probably better to deal with the problem
> by removing the formatting on the newlines (probably right after
> font-lock-fontify-buffer in org-export-format-source-code-or-example)
> in the temporary buffer that is htmlize'd, reducing the chance of any
> unintended consequences.

Yes, tweaking the properties seems preferable to tweaking htmlize itself
for this particular case.

In the future I'd like htmlize to be more extensible about converting
buffer contents to HTML.  Currently it only examines the `face' and
`invisible' properties that Emacs itself uses for display.  But
additional properties could be defined, which htmlize would use to
discern hyperlinks, or to add line highlight markup, to override choice
of style sheet, etc.

> I'll try this approach and see how it turns out (i.e. proposal for
> change in htmlize dropped). Thank you for the feedback!

Thanks for sticking with this.  Please let me know how it works for you.

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


Re: [Orgmode] multiple agenda buffers

2011-02-19 Thread Suvayu Ali
Hi Bastien,

On Sat, 19 Feb 2011 12:20:28 +0100
Bastien  wrote:

> Hi all,
> 
> Suvayu Ali  writes:
> 
> > However I was wondering, block agenda commands might work at least
> > for doing multiple searches. But I don't think there is any
> > interactive interface to it.
> 
> inspired by this conversation, I have add a new agenda command:
> 
>   M-x org-agenda-append-agenda RET
> 
> It is bound to `A' in the agenda buffer and lets you append any 
> agenda to the currently displayed one, thus providing some kind
> of interactive interface to build block agendas from simple ones.
> 
> I think it's a neat addition -- especially useful when you want 
> to compare to _small_ list of items.
> 
> Let me know what you think - and thanks Suvayu for the idea!
> 

This is exactly how I was expecting things to work when I proposed the
idea! Wonderful work, lots and lots of thank yous. :)

-- 
Suvayu

Open source is the future. It sets us free.

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


Re: [Orgmode] Sending TODO items automatically to a specified email address

2011-02-19 Thread Marvin Doyley
Hi Matthew,

I would like to send txt files.
Cheers,
M

Sent from my iPhone

On Feb 19, 2011, at 3:48 PM, Matthew Sauer 
wrote:

What format of an attachment would you want to be hooked to the e-mail
(html, xml, txt, pdf)?   I think that once you figure that out, write the
function to generate that the rest is downhill.  I have just started using
GNUS but I imagine it or one of the email programs in emacs or through a
python script an email could easily be sent.

Matthew

On Sat, Feb 19, 2011 at 2:36 PM, Marvin Doyley  wrote:

> Hi there,
>
> Does anybody know how to send TODO as email attachment. What would be nice
> is if the TODO item is in the message and the text below it is an
> attachment. Basically, this is how I remind myself of things that I need to
> get done.
>
> Actually, what would be nice is if I could configured org to send TODOs
> within next week (or some other  time frame) automatically to specified
> email address.
>
> Best  wishes
>
> Marvin
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] ePub and Org mode

2011-02-19 Thread Alan L Tyree
On Sat, 19 Feb 2011 22:46:02 +0100
Christian Moe  wrote:

> Hi,
> 
> I agree exporting 'chapters' in a single Org document to separate
> html files would be a nice option to have.
> 
> Pending someone writing an export function for this, you could
> 
> - post-process the HTML with one of the scripts out there for 
> splitting up web pages, like htsplit available on CPAN;
> 
> - or go the Org -> DocBook -> `chunked' HTML route?

Good idea. In fact, I just did a simple keyboard macro to go through
the file and export subtrees. Only 12 chapters, so not much of a call
for anything more difficult.

> 
> But just out of curiosity, why would you like this for the purpose of 
> making an ePub book? Are you using a tool that requires it? (Unlike, 
> e.g., Calibre, which takes a single HTML file as input, with TOC
> built from e.g. H2 as chapter headings.)

Fair question. Using something like Calibre is what I would normally
do. I have also used Sigil to build ePub books from a single html file.
It is good since you can add some final editing touches.

I got started on it because I was having a look at pandoc which purports
to build ePub directly. But it doesn't split the files.

Anyway, the (dumb) answer is that I was just fooling around looking at
the internals of ePub structure. Trying to avoid real work :-).

Alan

> 
> Yours,
> Christian
> 
> 
> On 2/19/11 10:25 AM, Alan L Tyree wrote:
> > Greetings from Down Under,
> > I am constructing an ePub formatted book. It came to me in plain
> > text and I have formatted in org-mode.
> >
> > It is easy to export to XHTML, the first step in ePub construction,
> > but I would like every chapter to be a separate file. It is easy
> > enough to do this with a macro or a simple function (even though I
> > am no elisp guru). Is there an export function that does this? I
> > didn't see it in the docs and I don't see anything about it doing a
> > Google search.
> >
> > What would really be nice, is a single command to create the ePub
> > file.
> >
> > Any help appreciated.
> >
> > Cheers,
> > Alan
> >
> 


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


___
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] ePub and Org mode

2011-02-19 Thread Christian Moe

Hi,

I agree exporting 'chapters' in a single Org document to separate html 
files would be a nice option to have.


Pending someone writing an export function for this, you could

- post-process the HTML with one of the scripts out there for 
splitting up web pages, like htsplit available on CPAN;


- or go the Org -> DocBook -> `chunked' HTML route?

But just out of curiosity, why would you like this for the purpose of 
making an ePub book? Are you using a tool that requires it? (Unlike, 
e.g., Calibre, which takes a single HTML file as input, with TOC built 
from e.g. H2 as chapter headings.)


Yours,
Christian


On 2/19/11 10:25 AM, Alan L Tyree wrote:

Greetings from Down Under,
I am constructing an ePub formatted book. It came to me in plain text and I 
have formatted in org-mode.

It is easy to export to XHTML, the first step in ePub construction, but I would 
like every chapter to be a separate file. It is easy enough to do this with a 
macro or a simple function (even though I am no elisp guru). Is there an export 
function that does this? I didn't see it in the docs and I don't see anything 
about it doing a Google search.

What would really be nice, is a single command to create the ePub file.

Any help appreciated.

Cheers,
Alan




___
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] Sending TODO items automatically to a specified email address

2011-02-19 Thread Matthew Sauer
What format of an attachment would you want to be hooked to the e-mail
(html, xml, txt, pdf)?   I think that once you figure that out, write the
function to generate that the rest is downhill.  I have just started using
GNUS but I imagine it or one of the email programs in emacs or through a
python script an email could easily be sent.

Matthew

On Sat, Feb 19, 2011 at 2:36 PM, Marvin Doyley  wrote:

> Hi there,
>
> Does anybody know how to send TODO as email attachment. What would be nice
> is if the TODO item is in the message and the text below it is an
> attachment. Basically, this is how I remind myself of things that I need to
> get done.
>
> Actually, what would be nice is if I could configured org to send TODOs
> within next week (or some other  time frame) automatically to specified
> email address.
>
> Best  wishes
>
> Marvin
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] need help with lisp for export function regarding timestamps

2011-02-19 Thread Arun Persaud
Hi

>> but I can't figure out how to check for these? Do I need to write my own
>> reg-exp for this and test the whole entry or is there some org internal
>> function for this? 
> 
> I'm afraid you need to write your own regexp...

thanks for the answer. Played around with it and got it working now.
Will post it in Worg under google sync after I cleaned it up a bit.

Arun

___
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] iCalendar selective export

2011-02-19 Thread Arun Persaud
Hi

On Fri, Feb 11, 2011 at 12:04 PM, Bastien 
wrote:
> You now set ̀org-icalendar-honor-noexport-tag' to t to prevent export of
> entries with a :noexport: tag.

works. Thanks!

Arun

___
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] Sending TODO items automatically to a specified email address

2011-02-19 Thread Marvin Doyley
Hi there,

Does anybody know how to send TODO as email attachment. What would be nice
is if the TODO item is in the message and the text below it is an
attachment. Basically, this is how I remind myself of things that I need to
get done.

Actually, what would be nice is if I could configured org to send TODOs
within next week (or some other  time frame) automatically to specified
email address.

Best  wishes

Marvin
___
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] ePub and Org mode

2011-02-19 Thread Alan L Tyree
On Sat, 19 Feb 2011 11:54:38 +0100
Bastien  wrote:

> Hi Alan,
> 
> Alan L Tyree  writes:
> 
> > It is easy to export to XHTML, the first step in ePub construction,
> > but I would like every chapter to be a separate file. It is easy
> > enough to do this with a macro or a simple function (even though I
> > am no elisp guru). 
> 
> Please share your functions!

I'll be happy to --- once I have written them! I was hoping that the
answer would be 'yes' to the question below.

Thanks for the quick response,
Alan

> 
> > Is there an export function that does this?
> 
> Nope.
> 
> > What would really be nice, is a single command to create the ePub
> > file.
> 
> Agreed.
> 
> Let us know how your manual workarounds work and it might give us
> ideas on how to implement this as a single command.
> 
> -- 
>  Bastien


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206


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


[Orgmode] Bug: org-advertized-archive-subtree: Symbol's function definition is void: org-datetree-find-year-create [7.4 (release_7.4.419.g68114f)]

2011-02-19 Thread Urs Rau (UK)
I am trying to archive completed tasks to a datetree. I am using "Move
Subtree to Archive file" (C-c C-x -C-s) And I get the following error:

release_7.4-419-g68114f
Org-mode version 7.4 (release_7.4.419.g68114f)
afile=/Users/ursr/org/tasksnotes.org_archive
org-advertized-archive-subtree: Symbol's function definition is void:
org-datetree-find-year-create

And I had done a C-c C-x ! to reload all org files, jsut in case. ;-)

I have added the following settings taken from the worg site page:
http://orgmode.org/worg/org-hacks.html

Topic: Archive in a date tree
Posted to Org-mode mailing list by Osamu Okano

(setq org-archive-location "%s_archive::date-tree")
(defadvice org-archive-subtree
 (around org-archive-subtree-to-data-tree activate)
 "org-archive-subtree to date-tree"
 (if
 (string= "date-tree"
  (org-extract-archive-heading
   (org-get-local-archive-location)))
 (let* ((dct (decode-time (org-current-time)))
(y (nth 5 dct))
(m (nth 4 dct))
(d (nth 3 dct))
(this-buffer (current-buffer))
(location (org-get-local-archive-location))
(afile (org-extract-archive-file location))
(org-archive-location
 (format "%s::*** %04d-%02d-%02d %s" afile y m d
 (format-time-string "%A" (encode-time 0 0 0 d m y)
   (message "afile=%s" afile)
   (unless afile
 (error "Invalid `org-archive-location'"))
   (save-excursion
 (switch-to-buffer (find-file-noselect afile))
 (org-datetree-find-year-create y)
 (org-datetree-find-month-create y m)
 (org-datetree-find-day-create y m d)
 (widen)
 (switch-to-buffer this-buffer))
   ad-do-it)
   ad-do-it))
;;

How do I fix this and make sure I can file into a datetree in my archive file? 

Also are these dates going to be based on USA date field orders or will it work 
right with
European dates?

Thanks.

Here is my config:

Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29) of 
2010-05-09 on black.local
ErgoEmacs distribution 1.8.1
Package: Org-mode version 7.4 (release_7.4.419.g68114f)

current state:
==
(setq
 org-empty-line-terminates-plain-lists t
 org-log-done 'time
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-files '("~/org/tasksnotes.org" "~/org/projects.org")
 org-agenda-include-diary t
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-checklist-export-function 'org-export-as-ascii
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-archive-save-context-info '(time file category todo priority itags olpth 
ltags)
 org-agenda-skip-timestamp-if-done t
 org-after-todo-state-change-hook '(org-clock-out-if-current org-checklist)
 org-agenda-todo-ignore-scheduled t
 org-archive-location "%s_archive::date-tree"
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-protocol-protocol-alist '(("org-mac-safari-tabs" :protocol "safari-tabs" 
:function org-mac-safari-tabs :kill-client t)
   ("org-mac-remember" :protocol "mac-remember" 
:function org-mac-protocol-remember
:kill-client t)
   )
 org-agenda-skip-scheduled-if-done t
 org-tags-exclude-from-inheritance '("crypt")
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-reveal-start-hook '(org-decrypt-entry)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-todo-keywords '((sequence "TODO(t)" "STARTED(s)" "WAITING(w)" "APPT(a)" 
"|" "DONE(d)" "CANCELLED(c)" "DEFERRED(f)"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-default-notes-file "~/org/notes.org"
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '((lambda nil (setq org-mouse-context-menu-function (quote 
org-mouse-context-menu))
  (when (memq (quote context-menu) org-mouse-features) 
(org-defkey org-mouse-map [mouse-3] nil)
   (org-defkey org-mode-map [mouse-3] (quote 
org-mouse-show-context-menu)))
  (org-defkey org-mode-map [down-mouse-1] (quote 
org-mouse-down-mouse))
  (when (memq (quote context-menu) org-mouse-features)
   (org-defkey org-mouse-map [C-drag-mouse-1] (quote 
org-mou

[Orgmode] [PATCH] org-export-preprocess-string: Use backend var

2011-02-19 Thread Jambunathan K
>From 2b1f84fdcd7d79ad95e71bc2ca96fb16ad76b446 Mon Sep 17 00:00:00 2001
From: Jambunathan K 
Date: Sat, 19 Feb 2011 22:26:10 +0530
Subject: [PATCH] org-export-preprocess-string: Use backend var

---
 lisp/org-exp.el |   22 +-
 1 files changed, 5 insertions(+), 17 deletions(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 9a35b00..a17091b 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1197,23 +1197,11 @@ on this string to produce the exported version."
   ;; Another hook
   (run-hooks 'org-export-preprocess-before-backend-specifics-hook)
 
-  ;; LaTeX-specific preprocessing
-  (when (eq backend 'latex)
-	(require 'org-latex nil)
-	(org-export-latex-preprocess parameters))
-
-  ;; ASCII-specific preprocessing
-  (when (eq backend 'ascii)
-	(org-export-ascii-preprocess parameters))
-
-  ;; HTML-specific preprocessing
-  (when (eq backend 'html)
-	(org-export-html-preprocess parameters))
-
-  ;; DocBook-specific preprocessing
-  (when (eq backend 'docbook)
-	(require 'org-docbook nil)
-	(org-export-docbook-preprocess parameters))
+  ;; Backend-specific preprocessing
+  (let* ((backend-name (symbol-name backend))
+	 (f (intern (format "org-export-%s-preprocess" backend-name
+	(require (intern (concat "org-" backend-name)) nil)
+	(funcall f parameters))
 
   ;; Remove or replace comments
   (org-export-handle-comments (plist-get parameters :comments))
-- 
1.7.2.3


___
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: unicode chars in org-emphasis-regexp-components

2011-02-19 Thread Eric Abrahamsen
On Sat, Feb 19 2011, Bastien wrote:

> Hi Eric,
>
> Eric Abrahamsen  writes:
>
>> Hi, I do a lot of plain text writing in org, and would love to be able
>> to allow emphasis markup when it's up flush against m-dashes (x2014),
>> n-dashes (x2013), and ellipses (x2026), possibly among other things.
>> When I try to add these characters to org-emphasis-regexp-components via
>> the customize interface, emacs complains about "junk at end of
>> expression: —…–" and won't let me save it. Unicode's not junk!
>
> Can you share the value of your org-emphasis-regexp-components variable
> so that we can test it?  Also please tell us what version of Org/Emacs
> you are using, especially if this turns out to be an Emacs issue.
>
> Thanks,

I don't think I've changed this from the default:

org-emphasis-regexp-components:
("  ('\"{" "-   .,:!?;'\")}\\" "\n,\"'" "." 5)

org-version:
Org-mode version 7.4 (release_7.4.400.gc7700)

emacs-version:
GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of
2010-10-19

I'd kind of suspect the customize interface here, but I really don't
know how to go about setting this variable properly with setq.

Thanks!
Eric


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


[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-19 Thread Roland Kaufmann

htmlize doesn't operate on the level of syntax-based fontification, it
examines the display-related properties attached to buffer text (not
necessarily by font-lock) and renders them into the corresponding HTML.


Good point.

And, as you point out, it is probably better to deal with the problem by 
removing the formatting on the newlines (probably right after 
font-lock-fontify-buffer in org-export-format-source-code-or-example) in 
the temporary buffer that is htmlize'd, reducing the chance of any 
unintended consequences.


I'll try this approach and see how it turns out (i.e. proposal for 
change in htmlize dropped). Thank you for the feedback!


--
   Roland.

___
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: Worg publishing broken?

2011-02-19 Thread Sébastien Vauban
Hi Jambunathan and Bastien,

Bastien wrote:
> Jambunathan K  writes:
>>> 1) Used "shell" instead of "sh" for the source block mode.  Fixed by
>>>commit e4ed828.
>>
>> If known languages are treated as "keywords" in #+begin_src context and
>> fontified appropriately there would be enough visual feedback so that a
>> user's `eye memory' could catch that something is amiss.
>
> Good idea -- I need time to explore org-src.el and I'm pretty sure Eric and
> Sebastien will be faster than me :)

What I can say is that this feature is scheduled (well, not really) on my
private task list for Org. Not only languages, but as well highlight of all
other keywords such as `:vars', `:exports' and the like.

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: convert orgmode to docx

2011-02-19 Thread Jambunathan K
Bastien  writes:

> Hi Fabian,
>
> Fabian Braennstroem  writes:
>
>> I wonder, if anyone tried to convert orgmode to docx format yet!?
>
> Please see Jambunathan's announce here:
>
>   http://article.gmane.org/gmane.emacs.orgmode/36781
>
> You can then convert .odt to .docx from OpenOffice/LibreOffice.

The above instructions assumes that you are comfortable using git. If
you are not comfortable using git you can try downloading a snapshot
from:

http://repo.or.cz/w/org-mode/org-jambu.git

(search for snapshot in the above web page)

Jambunathan K.

___
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: Headlines export problem

2011-02-19 Thread Nicolas
Hello,

PASZTOR Miklos  writes:

>  I'm using org-mode version 7.4. When I export org files to html - having
>  H:2 in the options line -  it seems that  each third level headline
>  becomes a  *separate* unnumbered list.
>
>  Example:
>
> * FIRST HEADLINE
> ** second
> *** These lines will be
> *** separate unnumbered lists,
> *** not just one.
>
>  Becomes:
>
> 
> These lines will be 
> 
> 
> 
> separate unnumbered lists 
> 
> 
> 
> Not just one 
>
>
>  Can I have orgmode to create a *single* unnumbered list from the third level
>  headlines above?

A patch fixing this has been submitted a few days ago.

Regards,

-- 
Nicolas

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


Re: [Orgmode] multiple agenda buffers

2011-02-19 Thread Bastien
Hi all,

Suvayu Ali  writes:

> However I was wondering, block agenda commands might work at least for
> doing multiple searches. But I don't think there is any interactive
> interface to it.

inspired by this conversation, I have add a new agenda command:

  M-x org-agenda-append-agenda RET

It is bound to `A' in the agenda buffer and lets you append any 
agenda to the currently displayed one, thus providing some kind
of interactive interface to build block agendas from simple ones.

I think it's a neat addition -- especially useful when you want 
to compare to _small_ list of items.

Let me know what you think - and thanks Suvayu for the idea!

-- 
 Bastien

___
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] IMPORTANT Modified link escaping in Org mode

2011-02-19 Thread Bastien
Thanks David for the detailed explanations.

Could you add the dmaus-org-check-percent-escapes.el function somewhere
in Worg/org-hacks.org?  This will allow us to link to it when releasing
the next Org version.

Thanks!

-- 
 Bastien

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


Re: [Orgmode] Org-mode HTML export and Blueprint CSS

2011-02-19 Thread Bastien
Hi Chris,

Chris Lowis  writes:

> - suppressing the automatically generated CSS (or customising which
> classes get added on a per-file basis)
> - wrapping specific blocks of markup in the Blueprint-specific classes
> (e.g.  )
> - including my own CSS file - preferably as a multi-line block of CSS
> in my org-file rather than an external file include.

What did you try exactly?  Can you give your relevant settings and a
test .org file? 

Thanks,

-- 
 Bastien

___
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] convert orgmode to docx

2011-02-19 Thread Bastien
Hi Fabian,

Fabian Braennstroem  writes:

> I wonder, if anyone tried to convert orgmode to docx format yet!?

Please see Jambunathan's announce here:

  http://article.gmane.org/gmane.emacs.orgmode/36781

You can then convert .odt to .docx from OpenOffice/LibreOffice.

HTH,

-- 
 Bastien

___
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] unicode chars in org-emphasis-regexp-components

2011-02-19 Thread Bastien
Hi Eric,

Eric Abrahamsen  writes:

> Hi, I do a lot of plain text writing in org, and would love to be able
> to allow emphasis markup when it's up flush against m-dashes (x2014),
> n-dashes (x2013), and ellipses (x2026), possibly among other things.
> When I try to add these characters to org-emphasis-regexp-components via
> the customize interface, emacs complains about "junk at end of
> expression: —…–" and won't let me save it. Unicode's not junk!

Can you share the value of your org-emphasis-regexp-components variable
so that we can test it?  Also please tell us what version of Org/Emacs
you are using, especially if this turns out to be an Emacs issue.

Thanks,

-- 
 Bastien

___
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] Headlines export problem

2011-02-19 Thread PASZTOR Miklos

 Hello,

 I'm using org-mode version 7.4. When I export org files to html - having
 H:2 in the options line -  it seems that  each third level headline
 becomes a  *separate* unnumbered list.

 Example:

* FIRST HEADLINE
** second
*** These lines will be
*** separate unnumbered lists,
*** not just one.

 Becomes:


These lines will be 



separate unnumbered lists 



Not just one 


 Can I have orgmode to create a *single* unnumbered list from the third level
 headlines above?

 Regards,
 Miklós
--

___
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] convert orgmode to docx

2011-02-19 Thread Fabian Braennstroem

Hi,

I wonder, if anyone tried to convert orgmode to docx format yet!?
Do you think it would be straight forward to use the python docx module 
for this?


https://github.com/mikemaccana/python-docx

Or maybe it is easier to implement this directly using lisp...!?

Would be great if this works out!?

Best Regards!
Fabian

___
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] ePub and Org mode

2011-02-19 Thread Bastien
Hi Alan,

Alan L Tyree  writes:

> It is easy to export to XHTML, the first step in ePub construction, but I
> would like every chapter to be a separate file. It is easy enough to do
> this with a macro or a simple function (even though I am no elisp
> guru). 

Please share your functions!

> Is there an export function that does this?

Nope.

> What would really be nice, is a single command to create the ePub
> file.

Agreed.

Let us know how your manual workarounds work and it might give us ideas
on how to implement this as a single command.

-- 
 Bastien

___
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: [Accepted] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-02-19 Thread Bastien
Hi Carsten,

Carsten Dominik  writes:

> wow, you found your way through the agenda code maze.

Yeah, the trip in the code was really a-mazing :)

> Looks good to me!  Thanks for getting this fixed, so
> that Juliens cleaner implementation can stay the basis
> for time span setting.

This basis is quite an improvement, so it deserved the time 
spent to fix this bug (and to learn the code)...

-- 
 Bastien

___
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] indentation for section headings vs bulleted lists

2011-02-19 Thread Bastien
Hi Linus,

Linus Arver  writes:

> I'm running emacs-org-mode 7.4.
> (http://aur.archlinux.org/packages.php?ID=18206).

There has been important changes to the way Org handles lists in the git
repo.  You can either check them but cloning this repo or wait for the
next release.

HTH,

-- 
 Bastien

___
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] ePub and Org mode

2011-02-19 Thread Alan L Tyree
Greetings from Down Under,
I am constructing an ePub formatted book. It came to me in plain text and I 
have formatted in org-mode.

It is easy to export to XHTML, the first step in ePub construction, but I would 
like every chapter to be a separate file. It is easy enough to do this with a 
macro or a simple function (even though I am no elisp guru). Is there an export 
function that does this? I didn't see it in the docs and I don't see anything 
about it doing a Google search.

What would really be nice, is a single command to create the ePub file.

Any help appreciated.

Cheers,
Alan

-- 
Alan L Tyree 

___
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: [PATCH] fix a bug in org-open-at-point

2011-02-19 Thread Nicolas
My bad, wrong manipulation. Here is the patch.

To reproduce the error, you can type the following in a fresh Org
#+begin_src org
target some text <<>> another text target
#+end_src

Using C-c C-o on any of the two links will return an error.

>From f7738f3e9239fc4fddccc7850dad7a0936087a58 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou 
Date: Sat, 19 Feb 2011 09:37:48 +0100
Subject: [PATCH] Fix bug with link to radio target at beginning or end of buffer

* lisp/org.el (org-open-at-point): if a link to a radio target is the
  first, (resp. the last), element of a buffer, function cannot find
  the property change required to get its boundaries, and
  `buffer-substring' is called with an invalid nil argument.
---
 lisp/org.el |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index b92186a..bfe9296 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9214,8 +9214,10 @@ application the system uses for this file type."
 		pos (if (get-text-property (1+ (point)) 'org-linked-text)
 			(1+ (point)) (point))
 		path (buffer-substring
-		  (previous-single-property-change pos 'org-linked-text)
-		  (next-single-property-change pos 'org-linked-text)))
+		  (or (previous-single-property-change pos 'org-linked-text)
+			  (point-min))
+		  (or (next-single-property-change pos 'org-linked-text)
+			  (point-max
 	  (throw 'match t))
 
 	(save-excursion
-- 
1.7.4.1


Regards,

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


[Orgmode] [PATCH] fix a bug in org-open-at-point

2011-02-19 Thread Nicolas
Hello,

This is an improba
-- 
Nicolas

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