[O] Can ELPA package split contrib part?

2014-04-01 Thread Satoru KURASHIKI
hi, While I use "org-plus-contrib" package from orgmode ELPA, With other package which requires (updated) "org", it isn't recognized as I expect. So, I'm glad if orgmode ELPA provides: - org - org-contrib (requires "org") regards, -- KURASHIKI Satoru

[O] Get counting of items

2014-04-01 Thread Martin Gross
Dear helpers, I would like to get a counting of the first level items in a buffer (or even better in a region). Since I‘m not a programmer I tried this, which doesn‘t work: (defun org-items-counting () "Print a message with the counting of the first level outline items in the current buffer"

Re: [O] Get counting of items

2014-04-01 Thread Thorsten Jolitz
Martin Gross writes: > Dear helpers, > > I would like to get a counting of the first level items in a buffer > (or even better in a region). Since I‘m not a programmer I tried > this, which doesn‘t work: > > (defun org-items-counting () > "Print a message with the counting of the first level o

Re: [O] New headline after no content (empty headline)

2014-04-01 Thread Brady Trainor
On 3/30/2014 10:55 PM, Bastien wrote: Hi Brady, Brady Trainor writes: For `org-insert-heading' (M-RET), I wanted the following action on empty headlines: "* " |--> "* \n* ", rather than "*\n* ". I'm not sure I understand this, can you make it more explicit? Thanks! I mean that if I us

[O] Controlling example block export?

2014-04-01 Thread Heikki Lehvaslaiho
I am using example blocks as inline notes where I paste snippets of (pre-formatted) text. I'd like to be able to control the exporting of those block individually (per document would also be useful). I do not seem to be able to find documentation about anything along those lines. Here is a mock-u

[O] Possible regexp bug in org.el

2014-04-01 Thread Thorsten Jolitz
Hi List, here is a possible regexp bug in org.el I discovered by accident: ,- | 7734: (and (not (looking-back "^\*+")) `- #+begin_src emacs-lisp (and (not (looking-back "^\*+")) ; missing backslash?

Re: [O] Controlling example block export?

2014-04-01 Thread Thorsten Jolitz
Heikki Lehvaslaiho writes: > I am using example blocks as inline notes where I paste snippets of > (pre-formatted) text. I'd like to be able to control the exporting of > those block individually (per document would also be useful). I do not > seem to be able to find documentation about anything

Re: [O] Possible regexp bug in org.el

2014-04-01 Thread Nicolas Richard
Thorsten Jolitz writes: > here is a possible regexp bug in org.el I discovered by accident: > > ,- > | 7734: (and (not (looking-back "^\*+")) > `- It's almost certainly a typo, but it introduces no bug b

Re: [O] Controlling example block export?

2014-04-01 Thread Heikki Lehvaslaiho
Thanks, Torsten. Very illuminating. The org-syntax.html says of blocks: #+BEGIN_NAME PARAMETERS CONTENTS #+END_NAME NAME can contain any non-whitespace character. PARAMETERS can contain any character other than new line, and can be omitted. If NAME is "CENTER", it will be a "center block". If

[O] problem with call lines with post block that are not exported (elpa org)

2014-04-01 Thread Alan Schmitt
Hello, I'm writing a paper with some colleagues for a conference, and we've just stumbled on a strange bug. My colleague is using org from elpa, and is having the problem, whereas I'm compiling using a very current org version and everything works for me. The problem is as follows. Given this or

[O] org-dblock-write:myownfunc does not split my window?

2014-04-01 Thread Martin
Hi there: Using a minimal example: Creating an org file with somewhere: #+BEGIN: myownfunc #+END And using scratch (or this email) with (defun org-dblock-write:myownfunc (params) (interactive) (split-window nil -15) (insert "window should be splitted")) This just inserts the text "wind

Re: [O] Controlling example block export?

2014-04-01 Thread Thorsten Jolitz
Heikki Lehvaslaiho writes: > Unless someone beats me to it, I'll write it one day. :) What about: #+begin_src emacs-lisp (defun tj/toggle-example-and-comment-blocks () "Toggle example and comment blocks in current buffer." (interactive) (org-block-map (lambda () (org-m

Re: [O] Controlling example block export?

2014-04-01 Thread Thorsten Jolitz
Thorsten Jolitz writes: > Heikki Lehvaslaiho writes: > >> Unless someone beats me to it, I'll write it one day. :) > > What about: > > #+begin_src emacs-lisp > (defun tj/toggle-example-and-comment-blocks () > "Toggle example and comment blocks in current buffer." > (interactive) >

Re: [O] Controlling example block export?

2014-04-01 Thread Nicolas Goaziou
Hello, Heikki Lehvaslaiho writes: > I am using example blocks as inline notes where I paste snippets of > (pre-formatted) text. I'd like to be able to control the exporting of > those block individually (per document would also be useful). I do not seem > to be able to find documentation about

Re: [O] Controlling example block export?

2014-04-01 Thread Nicolas Goaziou
Hello, Heikki Lehvaslaiho writes: > The org-syntax.html says of blocks: > > #+BEGIN_NAME PARAMETERS > CONTENTS > #+END_NAME > > NAME can contain any non-whitespace character. > PARAMETERS can contain any character other than new line, and can be > omitted. > If NAME is "CENTER", it will be a "ce

[O] Add TODO from external app?

2014-04-01 Thread Lawrence Bottorff
I've seen various things for interacting with org mode from external apps. I found org-protocol, as well as a Mutt-to-org mode article. Per the tittle, I want to be able to add new TODO items from, say, an email or a PHP-based web page form. Is this just brute force external file manipulation, i.e.

Re: [O] Controlling example block export?

2014-04-01 Thread Charles Berry
Heikki Lehvaslaiho gmail.com> writes: > > > > I am using example blocks as inline notes where I paste snippets of > (pre-formatted) text. I'd like to  be able to control the exporting of > those block individually (per document would also be useful). I do not > seem to be able to find docum

Re: [O] Add TODO from external app?

2014-04-01 Thread Anthony Lander
Hi Lawrence, Here is a Python script I use to scrape TODOs from emails. I haven't polished it up and put it on github yet, but you are welcome to give it a whirl (anyone else is too, obviously). You need python 2.5 or greater to run this. Configure by modifying the variables at the top of the file

[O] Is it possible to add a class to a paragraph in HTML export?

2014-04-01 Thread Marcin Borkowski
Hi, I'd like to have a in export. I tried #+ATTR_HTML :class myfunnyclass but it didn't work. Is there any way to do it? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University

Re: [O] Is it possible to add a class to a paragraph in HTML export?

2014-04-01 Thread Bastien
Hi Marcin, Marcin Borkowski writes: > I'd like to have a in export. I tried > #+ATTR_HTML :class myfunnyclass > but it didn't work. You can't for now but this patch will make it work. diff --git a/lisp/ox-html.el b/lisp/ox-html.el index a843441..76472c7 100644 --- a/lisp/ox-html.el +++ b/lis

[O] Incremental search only within visble text

2014-04-01 Thread Ali Tofigh
Sometimes I just want to do an incremental search in the visible text of a partially folded org file. In other words, I want the search to ignore text that is invisible due to folding. I know that there is an org-copy-visible command. Is there an equivalent command for searching? /ali

Re: [O] Is it possible to add a class to a paragraph in HTML export?

2014-04-01 Thread Marcin Borkowski
Dnia 2014-04-01, o godz. 21:37:06 Bastien napisał(a): > Hi Marcin, > > Marcin Borkowski writes: > > > I'd like to have a in export. I tried > > #+ATTR_HTML :class myfunnyclass > > but it didn't work. > > You can't for now but this patch will make it work. > Wow, thanks a lot? Any chance

Re: [O] `org-attach-file-list' doesn't allow dotfiles

2014-04-01 Thread John Wiegley
No reason I can think of. John On Mar 12, 2014, at 1:39 PM, Bastien wrote: > Hi Oleh, > > Oleh writes: > >> I wanted to store this file as an attachment in an org document, so I >> don't forget about it, but this attachment can't be opened due >> to `org-attach-file-list` ignoring all files

[O] Is the worg/code/org-info-js page broken?

2014-04-01 Thread Bill Ashmanskas
It seems that the page http://orgmode.org/worg/code/org-info-js/ doesn't display anything sensible. There's just a heading and a non-functioning "Show Org Source" button. But using links found in other places, it seems possible to read directly some of the contents: http://orgmode.org/worg/cod

Re: [O] Generate a table of contents without exporting

2014-04-01 Thread Charles Berry
RG Williams gmail.com> writes: > > Hi, > I know you can generate a table of contents when exporting, but can you do > it just within org? For context, I'm uploading an .org file to github and I > don't need to export it to another format because github recognizes and > displays it just fine. It'

Re: [O] Incremental search only within visble text

2014-04-01 Thread Anthony Lander
Hi Ali, If you install isearch+ (in elpa) you can toggle invisible text searching with C-+. Hope this helps, -Anthony On Tue, Apr 1, 2014 at 3:43 PM, Ali Tofigh wrote: > Sometimes I just want to do an incremental search in the visible text > of a partially folded org file. In other words, I

[O] Creating changelog with magit

2014-04-01 Thread Thorsten Jolitz
Hi List, reading this , | http://orgmode.org/worg/org-contribute.html ` I find: ,--- | If you are using magit.el in Emacs, the ChangeLog for

Re: [O] Incremental search only within visble text

2014-04-01 Thread Samuel Wales
(define-key global-map "\C-\M-r" 'alpha-isearch-backward-visible) ;; also for dired filename search (define-key global-map "\C-\M-s" 'alpha-isearch-visible) (defun alpha-isearch-backward-visible () (interactive) (let ((search-invisible)) (isearch-backward-regexp))) (defun alpha-isearch-visi

Re: [O] Generate a table of contents without exporting

2014-04-01 Thread Nick Dokos
Charles Berry writes: > RG Williams gmail.com> writes: > >> >> Hi, >> I know you can generate a table of contents when exporting, but can you do >> it just within org? For context, I'm uploading an .org file to github and I >> don't need to export it to another format because github recognizes

Re: [O] Incremental search only within visble text

2014-04-01 Thread Ali Tofigh
Thanks! This is exactly what I was looking for. /ali On Tue, Apr 1, 2014 at 5:47 PM, Samuel Wales wrote: > (define-key global-map "\C-\M-r" 'alpha-isearch-backward-visible) > ;; also for dired filename search > (define-key global-map "\C-\M-s" 'alpha-isearch-visible) > (defun alpha-isearch-backw

[O] Org-set-repeat

2014-04-01 Thread R. Michael Weylandt
I see that Org provides a `org-cancel-repeater` and `org-get-repeat` but I don't see a `org-set-repeat` (or function which can be made to do so). Is there something like that that I've missed or should I write a wrapper around `org-deadline`? Michael

[O] [PATCH] ob-scheme.el: Fix scheme code blocks execution error in batch mode

2014-04-01 Thread KDr2
The bug: write file ~/scheme-test.org with the content below: ---8<-- #+BEGIN_SRC scheme :exports results :results output raw (display "Hello Scheme in OrgMode") #+END_SRC ---8<-- and run: emacs --batch --eval='(load "~/.emacs.d/init.el")' ~/scheme-test.org -f or

[O] Request for worg page -- escaping questions

2014-04-01 Thread Rustom Mody
Over time in using org Ive come up with some issues. Some have been solved. Some I was shown workarounds. Some remain unsolved. Many of these issues can be clubbed together under what computer folk call 'escaping'. Can we have a worg page for such as the following? 1. How to put a '=' into co