Re: [O] html checkbox output

2014-01-04 Thread Bastien
Hi Nicolas and Rick,

Nicolas Goaziou n.goaz...@gmail.com writes:

 A new buffer keyword (which needs to be documented in org.texi),
 a defcustom with a completely free sexp... Isn't it a bit too much for
 mere checkboxes?

Personally I think the defcustom is enough, as this choice is likely
to be made for all Org documents.

 Filters provide almost the same functionality:

   (defun my-checkbox-filter (item backend info)
 (when (org-export-derived-backend-p backend 'html)
   (replace-regexp-in-string 
 \\`.*\\(code\\[\\(X\\|#xa0;\\|-\\)\\]/code\\).*$
 (lambda (rep)
   (let ((check (match-string 2 rep)))
 (cond ((equal check X) #x2611;)
   ((equal check -) #x2610;)
   (t #x2610;
 item
 nil nil 1)))
   (add-to-list 'org-export-filter-item-functions 'my-checkbox-filter)

Yes, but a defcustom would be easier.

 Anyway, here are a few comments.

 +(defcustom org-html-checkbox-type ascii
 +  The type of checkboxes to use for html export. See

 First line of a docstring has to be a single complete sentence.

 +(defun org-html-checkbox (checkbox info)
 +  Format CHECKBOX into HTML. This can be overriden on a

 Ditto.

 +(cdr
 + (assoc checkbox

   (assq checkbox

 +(if (listp checkboxes) checkboxes
 +  (if (string-equal (substring checkboxes 0 1) ()

   (if (eq (aref checkboxes 0) ?\()

 +  (read checkboxes)

 This looks cheesy. `read'? Do you really want to parse arbitrary
 Sexps?

Can we re-work Rick's patch/code and add this feature?  Rick,
are you still on it?

Thanks,

-- 
 Bastien



Re: [O] org-grep news

2014-01-04 Thread Alan Schmitt
Hi François,

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

 This is about my little org-grep tool, available at:

https://github.com/pinard/org-grep

 Right out of the README: This tool allows for grepping files in a set
 of Org directories, formatting the results as a separate Org buffer.
 This buffer is assorted with a few specific navigation commands so it
 works a bit like M-x rgrep.

This is very nice. I'm using deft at the moment
(http://jblevins.org/projects/deft/) but I'm trying this as a
lightweight replacement. It looks promising.

Thanks a lot,

Alan



Re: [O] Let's discuss citation and Org syntax

2014-01-04 Thread Joseph Vidal-Rosset
Dear John,

Thanks for your efforts to help me. I have good news.

2014/1/3 John Hendy jw.he...@gmail.com

 Can you post:
 - Minimal .org file


Here is a minimal-paper.org

#+OPTIONS: LaTeX:verbatim
#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [a4paper,twoside,twocolumn]
#+LaTeX_CLASS_OPTIONS: [captions=tableheading]
#+LATEX_HEADER: \usepackage[AUTO]{inputenc}
#+LATEX_HEADER: \usepackage{fitch}
#+LATEX_HEADER: \usepackage{bussproofs}
#+LaTeX_CLASS: article
#+TITLE:Minimal reference
#+AUTHOR: Max IMIN
#+BEGIN_abstract
 Mini test
#+END_abstract
#+OPTIONS: tex:imagemagick
* First section

Tennant [[cite:tennant96]] wrote :

#+BEGIN_QUOTE
quotation of Tennnant's paper...
#+END_QUOTE

#+BIBLIOGRAPHY: minimal-bibliography plain option:-a

 - Reproducible .emacs with what you currently have setup to get things
 working


I do not know if this list accept the attachment, but I know that in
general, attachments are not welcome. So here is the minimal set up of org
in my minimal init.el (I do not reproduce here what concerns bitex,
biblatex, latex and reftex in this email):

;; org-mode
(add-to-list 'load-path ~/.emacs.d/elpa/org-20131230)
;;répertoire contrib : org-plus-contrib
(add-to-list 'load-path ~/.emacs.d/elpa/org-plus-contrib-20131230/)

(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))

(global-set-key \C-cl 'org-store-link)
 (global-set-key \C-cc 'org-capture)
 (global-set-key \C-ca 'org-agenda)
 (global-set-key \C-cb 'org-iswitchb)

(require 'org)
(require 'ob-latex)
(require 'ox-latex)
(require 'org-mime)
(require 'ox-html)
(require 'ox-ascii)
(require 'ox-org)
(require 'ox-bibtex)


  - The matching minimal bibliography file


Here is my minimal-bibliography.bib:

@Article{tennant96,
  author =  {Tennant, N.},
  title =  {{The Law of Excluded Middle is Synthetic A Priori, if Valid}},
  journal =  {Philosophical Topics},
  year =  1996,
  number =  24,
  pages =  {241-266}
}


 - Perhaps the output you want (in LaTeX or whatever output language)



I am happy to tell you that the export works in latex as well as in html !
Thanks to all !

Now just details , how to converts correctly the latex syntax : \cite[p.
1]{key} ? , and how is it possible to use easily reftex ? I do not succeed
to find ebib very convenient.

Again, many many thanks !

Jo.


Re: [O] [PATCH] Re: \newpage in HTML export

2014-01-04 Thread Bastien
Hi Andreas,

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 It is a very small thing and I am very much happy with using a filter based
 approach here.

One thing really worth improving is the tutorials around filters on
Worg.  Or maybe: let's create a place similar to org-hacks.org called
org-filters.org listing useful filters.

Any taker?

-- 
 Bastien



Re: [O] New version of org-index.el

2014-01-04 Thread Bastien
Marc Ihm m...@ihm.name writes:

 just uploaded version 2.4 of org-index.el into contrib/lisp, so it
 will be part of daily snapshots and the next stable release.

Thanks for the update!

-- 
 Bastien



Re: [O] Authorship and copyright of derived exporters

2014-01-04 Thread Bastien
vilib...@wvi.cz writes:

 I've shared it on github, please see
 https://github.com/w-vi/ox-wk.el

Great, thanks for sharing!

-- 
 Bastien



Re: [O] org-grep news

2014-01-04 Thread Bastien
François Pinard pin...@iro.umontreal.ca writes:

 This is about my little org-grep tool, available at:

https://github.com/pinard/org-grep

This is great -- thanks, and a happy new year!

-- 
 Bastien



Re: [O] html to org-mode

2014-01-04 Thread Bastien
York Zhao gtdplatf...@gmail.com writes:

 What is org-rss, I couldn't find it. Can you give a link?

This is ox-rss.el in contrib/lisp/ if you clone Org or get it
as a .zip/.tar.gz archive.

-- 
 Bastien



Re: [O] [RFC] ox-ascii.el: fixing variable width character handling

2014-01-04 Thread Yasushi SHOJI
Hi,

At Fri, 03 Jan 2014 10:34:08 +0100,
Nicolas Goaziou wrote:
 
 Thank you. It looks mostly good, but I cannot apply it on top of master
 branch. Could you rebase and send an updated version?

Opps.  Rebased version attached.

 The usual format is
 
   (org-ascii--build-title, org-ascii--build-toc, ...): Likewise.
 
 IOW, you don't need a new line for each function.

Thanks.  I've now checked Emacs' Changelog.  It seems like each line
have open and close parentheses.  Am I right?

  -(let ((struct (org-element-property :structure parent-item))
  -  (beg-item (org-element-property :begin parent-item)))
  +(let* ((struct (org-element-property :structure parent-item))
  +   (beg-item (org-element-property :begin parent-item))
  +   (tag (org-list-get-tag beg-item struct))
  +   (bullet (org-list-get-bullet beg-item struct)))
 
 Since you don't use these variables below, you can skip both tag and
 bullet binding.

My bad.  Deleted.  New patch attached.

- 8 - 8 - 8 -
Subject: [PATCH] ox-ascii: Convert `length' to `string-width' where
 appropriate

* lisp/ox-ascii.el (org-ascii--current-text-width): Convert `length'
  to `string-width'.
  (org-ascii--build-title, org-ascii--build-toc)
  (org-ascii--list-listings, org-ascii--list-tables)
  (org-ascii-template--document-title)
  (org-ascii-inner-template, org-ascii-format-inlinetask-default)
  (org-ascii-format-inlinetask-default, org-ascii-item
  (org-ascii--table-cell-width, org-ascii-table-cell)
  (org-ascii--current-text-width): Likewise.

I've checked all occurrences of the function `length' in ox-ascii.el.
It turns out that the most of them are calculating the width of given
string. To support fullwidth characters, we better use `string-width'
instead of `length'.

Some characters in UCS are categorized as East Asian Ambiguous[1].
The return value of `string-width' with those characters depends on
how Emacs is setup.  We leave those ambiguous character handling to
Emacs.

Two usages of `length' in `ox-ascii.el' were left as-is, because those
were used for:

 - bullet depth calculation in `org-ascii-headline', and
 - cell position calculation in `org-ascii--table-cell-width'.

[1]: http://www.unicode.org/reports/tr11/#Ambiguous
---
 lisp/ox-ascii.el | 71 +++-
 1 file changed, 40 insertions(+), 31 deletions(-)

diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el
index b278ab6..4b20afd 100644
--- a/lisp/ox-ascii.el
+++ b/lisp/ox-ascii.el
@@ -527,15 +527,16 @@ INFO is a plist used as a communication channel.
 ;; the list and current item bullet's length.  Also
 ;; remove checkbox length, and tag length (for
 ;; description lists) or bullet length.
-(let ((struct (org-element-property :structure parent-item))
-  (beg-item (org-element-property :begin parent-item)))
+(let* ((struct (org-element-property :structure parent-item))
+   (beg-item (org-element-property :begin parent-item)))
   (+ (- (org-list-get-ind beg-item struct)
 (org-list-get-ind
  (org-list-get-top-point struct) struct))
- (length (org-ascii--checkbox parent-item info))
- (length
+ (string-width (or (org-ascii--checkbox parent-item info) 
))
+ (string-width
   (or (org-list-get-tag beg-item struct)
-  (org-list-get-bullet beg-item struct)
+  (org-list-get-bullet beg-item struct)
+  
 
 (defun org-ascii--build-title
   (element info text-width optional underline notags toc)
@@ -591,7 +592,8 @@ possible.  It doesn't apply to `inlinetask' elements.
  (when tags
(format
(format  %%%ds
-   (max (- text-width  (1+ (length first-part))) (length tags)))
+   (max (- text-width (1+ (string-width first-part)))
+(string-width tags)))
tags))
  ;; Maybe underline text, if ELEMENT type is `headline' and an
  ;; underline character has been defined.
@@ -602,7 +604,9 @@ possible.  It doesn't apply to `inlinetask' elements.
  org-ascii-underline)
 (and under-char
  (concat \n
- (make-string (length first-part) under-char
+ (make-string (/ (string-width first-part)
+ (char-width under-char))
+  under-char
 
 (defun org-ascii--has-caption-p (element info)
   Non-nil when ELEMENT has a caption affiliated keyword.
@@ -649,7 +653,7 @@ which the table of contents generation has been initiated.
   (let ((title (org-ascii--translate Table of 

Re: [O] [patch] fix the behavior of C-u C-u TAB

2014-01-04 Thread Bastien
Hi Aaron,

I just fixed C-u C-u TAB with a less complicated patch:
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=44acd000

Let me know if I overlooked some use-cases.

And thanks for raising this,

-- 
 Bastien



Re: [O] [PATCH] Re: \newpage in HTML export

2014-01-04 Thread Andreas Leha
Bastien b...@gnu.org writes:

 Hi Andreas,

 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 It is a very small thing and I am very much happy with using a filter based
 approach here.

 One thing really worth improving is the tutorials around filters on
 Worg.  Or maybe: let's create a place similar to org-hacks.org called
 org-filters.org listing useful filters.

I agree.  an org-filters collection would be awesome!


 Any taker?

Not me, I am afraid, since I am completely out of time right now(so that
I should actually not read or write anything on this list...).

I am very sorry -- would have been a nice way to contribute.

Regards,
Andreas




Re: [O] html to org-mode

2014-01-04 Thread John Kitchin
It was actually org-feed (http://orgmode.org/worg/org-contrib/org-feed.html
).

Here is an example usagethat downloads recent org-mode maillist entries and
formats them in a list of org-headings. The formatter function does some
character replacements, and makes the headings TODO items. I also defined a
little function to speed up deleting headlines I don't want to keep.

#+BEGIN_SRC emacs-lisp
(defun textify (s)
strip control and escaped html ^M lt; gt; etc
(let ((output s))
;  (setq output (replace-regexp-in-string 
\\|
;   s))
  (setq output (replace-regexp-in-string lt;  output))
  (setq output (replace-regexp-in-string gt;  output))
  (setq output (replace-regexp-in-string quot; \ output))
  (setq output (replace-regexp-in-string br \ 
 output))
  (setq output (replace-regexp-in-string br\ 
 output))
  output))

(defun my-formatter (e)
  format for rss feed to eventually do something useful
  (format * TODO %S
%s

%s (textify (plist-get e :title))
  (or (and (plist-get entry :guid-permalink)
   (plist-get entry :guid))
  (plist-get entry :link))
  (textify (plist-get e :description

(let* ((org-feed-alist
`((org http://rss.gmane.org/messages/complete/gmane.emacs.orgmode;
feeds-org.org org-mode :formatter my-formatter
  (org-feed-update-all))

;; convenience to delete uninteresting articles
(defun delete-headline ()
  (interactive)
  (org-mark-subtree)
  (delete-forward-char 1))

(global-set-key (kbd f5) 'delete-headline)
#+END_SRC

John

---
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Sat, Jan 4, 2014 at 5:54 AM, Bastien b...@gnu.org wrote:

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

  What is org-rss, I couldn't find it. Can you give a link?

 This is ox-rss.el in contrib/lisp/ if you clone Org or get it
 as a .zip/.tar.gz archive.

 --
  Bastien




Re: [O] are heading properties always strings?

2014-01-04 Thread Bastien
Hi John,

John Kitchin jkitc...@andrew.cmu.edu writes:

 excellent, that is exactly where I would have expected it, in the
 documentation for org-entry-put. 

 it would also make sense to say in org-entry-get that you get a
 string.

I just added

Return the value as a string.

in the docstring.

Thanks,

-- 
 Bastien



Re: [O] Bug: org-capture clock-in/clock-out [8.2.3a (release_8.2.3a @ /usr/share/emacs/24.3.50/lisp/org/)]

2014-01-04 Thread Bastien
Ryan Timmins r...@12ginteractive.com writes:

 On clock-out in the .notes buffer, tasks in the buffer get removed.

I'm not able to reproduce this with latest Emacs.
Can you recompile Emacs and check if this is still
a problem?

Thanks,

-- 
 Bastien



Re: [O] possible org-refile bug fix

2014-01-04 Thread Bastien
Hi Li,

Li Zhuo fantans...@gmail.com writes:

 I may have found a bug relate to org-refile function,though I have
 not push privileges,I submit a patch using git format-patch.

Thanks for the patch and the bug report: note that the bug was more
general, it also appeared if you don't use ido at all.  I fixed this
in maint.

Please see http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=45b0d2
for an example on how to format commit messages, and thanks again for
the patch!

Best,

-- 
 Bastien



Re: [O] [PATCH] Re: \newpage in HTML export

2014-01-04 Thread Bastien
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 I am very sorry -- would have been a nice way to contribute.

No problem, I just wanted to verbalize this wish so that someone
with more time at hand can take the challenge :)

-- 
 Bastien



Re: [O] Global TODO: display more than the TODO heading line?

2014-01-04 Thread Bastien
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Maybe you can use `org-after-todo-state-change-hook' to store a note
 in a property, then display the content of this property in the column
 view -- but this is a bit hackish anyway.

 I've wanted this too -- if we're logging into a drawer (ie LOGBOOK),
 shouldn't there be a relatively simple way of getting the drawer
 contents, and taking the top (or bottom) log entry? 

 On the other hand, looking at `org-add-log-setup', maybe it wouldn't be
 all that easy, either.

We could have a new special property like LAST_NOTE that would
retrieve the last note, but I doubt the use-case is general enough
to require such a new special property.  The implementation would
be 100% ad hoc...  if many users need this, please speak up!

-- 
 Bastien



Re: [O] Remote References to Tables in Included Files.

2014-01-04 Thread Bastien
Hi Ian,

quoting the manual:

  Remote references
  .
  
  You may also reference constants, fields and ranges from a different
  table, either in the current file or even in a different file.  The
  syntax is
  
   remote(NAME-OR-ID,REF)
  
  where NAME can be the name of a table in the current file as set by
  a `#+NAME: Name' line before the table.  It can also be the ID of an
  entry, even in a different file, and the reference then refers to
  the first table in that entry.  REF is an absolute field or range
  reference as described above for example `@3$3' or `$somename',
  valid in the referenced table.

For remote references in other files, you need to use entry IDs,
not tables names.  At least this is how I understand it.

HTH,

-- 
 Bastien



Re: [O] feature request/discussion: org-forms

2014-01-04 Thread Bastien
Hi Khaije,

khaije rock khai...@gmail.com writes:

 I've found on some occasions that I wish for the ability to simply
 export my org-mode notes, (procedural instructions, status/inventory
 tables, work log)  into a simple fill-able form, (w/ content derived
 from the enclosed content and properties), and either print it or
 record inputs directly through the form in some organized way, (to a
 table perhaps) [fn:1] into emacs.

If I understand correctly, you may want templates -- i.e. an entry
skeleton that you can use for inserting data.

You might be interested in yasnippet:
  http://www.emacswiki.org/emacs/Yasnippet

For something fancier like Org entry-HTML form, I guess you'll have
to hack something together.

HTH,

-- 
 Bastien



Re: [O] rmail: difficulty

2014-01-04 Thread Bastien
Hi François,

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

 Hi, Org people.

 In one of my Org files, I have:

 - rmail:~/ubity/Mail/admin

 Of course, ~/ubity/Mail/admin is an mbox format email folder.  Whenever
 I mouse-click on it (or use C-c C-o), I get this error:

This is now fixed, thanks for reporting this!

-- 
 Bastien



Re: [O] Filter for recursive counting (org-hierarchical-todo-statistics)

2014-01-04 Thread Bastien
Hi Fletcher,

Fletcher Charest fletcher.char...@gmail.com writes:

 My org-hierarchical-todo-statistics variable is set to nil in order
 to obtain a recursive count of my TODO items in subtrees. However, I
 would like to know if it is possible to filter this count to include
 only some TODO keywords.

You may want to customize `org-provide-todo-statistics' and set it to
a list of TODO keywords for which you want statistics.

HTH,

-- 
 Bastien



Re: [O] multiple agenda custom commands causes tag-filter-preset not to work?

2014-01-04 Thread Bastien
Miro Bezjak bezjak.m...@gmail.com writes:

 I've implemented the solution to my problem by using
 `agenda-skip-entry-if' instead of `org-agenda-tag-filter-preset'.

Thanks for sharing your solution!

Best,

-- 
 Bastien



Re: [O] Bug: HTML Export doesn't handle internal link with spaces [8.0.7 (8.0.7-6-g13cb28-elpa @ /home/jbalint/.emacs.d/elpa/org-20130812/)]

2014-01-04 Thread Bastien
Hi Nicolas,

Nicolas Goaziou n.goaz...@gmail.com writes:

 Also, I think there will be a problem if an internal link contains
 brackets. E.g, how to create an internal link to the following headline?

  * Some [headline]

Maybe we can just escape square brackets for such internal links.
At least this would solve the OP problem.

Let me know if you can think of other side-effect this change would
have.

-- 
 Bastien



Re: [O] html5 generation minor bug

2014-01-04 Thread Bastien
Hi Rick,

Rick Frankel r...@rickster.com writes:

 Bastien-

 I will look at making this the default when i have time if the doctype
 is html5 (`org-html-html5-p' is true), but it requires some work to
 get the info structure passed down to `org-html--anchor'.

Sure -- please let us know when you have more time for this,
I'll not touch anything in this area.

Best,

-- 
 Bastien



Re: [O] Force blank line above level 1 heading

2014-01-04 Thread Bastien
Hi François,

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

 Just for the record, I have the same need for some of my Org files.
 However, I find it easy enough to add the blank line myself.

Well, this is likely to be the solution for years to come, as adapting
blank line insertion based on the level of headlines seems complicated
at this point.

-- 
 Bastien



Re: [O] different achiving mode

2014-01-04 Thread Bastien
Hi David,

David Belohrad da...@belohrad.ch writes:

 for a certain time I'm using ordinary archiving. I.e. moving DONE marked
 tags to archive file. For this I'm using

 (org-advertized-archive-subtree optional FIND-DONE)

 with shortcut C-u C-c C-x C-s, hence it will find all DONE items and
 move them to archive.

 I have a trouble with 'how' the items are moved. If I look into archive,
 the hiearchy is 'flattened'. What I'd like to see there is the same
 hierarchy as I have in the original file, the same tags, but with
 ARCHIVE tag added (eventually having entire file marked with ARCHIVE
 tag).

Mhh... I don't see how we could not flatten the hierarchy in some
circumstances.

For example:

* TODO Headline
** DONE Task

If you want to archive the DONE Task to another file, you cannot 
archive the TODO Headline with it.

Or maybe I didn't understand your use-case correctly.

Best,

-- 
 Bastien



Re: [O] Let's discuss citation and Org syntax

2014-01-04 Thread John Hendy
On Jan 4, 2014 4:17 AM, Joseph Vidal-Rosset joseph.vidal.ros...@gmail.com
wrote:

 Dear John,

 Thanks for your efforts to help me. I have good news.

 2014/1/3 John Hendy jw.he...@gmail.com

 Can you post:
 - Minimal .org file


 Here is a minimal-paper.org

 #+OPTIONS: LaTeX:verbatim
 #+LaTeX_CLASS: article
 #+LaTeX_CLASS_OPTIONS: [a4paper,twoside,twocolumn]
 #+LaTeX_CLASS_OPTIONS: [captions=tableheading]
 #+LATEX_HEADER: \usepackage[AUTO]{inputenc}
 #+LATEX_HEADER: \usepackage{fitch}
 #+LATEX_HEADER: \usepackage{bussproofs}
 #+LaTeX_CLASS: article
 #+TITLE:Minimal reference
 #+AUTHOR: Max IMIN
 #+BEGIN_abstract
  Mini test
 #+END_abstract
 #+OPTIONS: tex:imagemagick
 * First section

 Tennant [[cite:tennant96]] wrote :

 #+BEGIN_QUOTE
 quotation of Tennnant's paper...
 #+END_QUOTE

 #+BIBLIOGRAPHY: minimal-bibliography plain option:-a

 - Reproducible .emacs with what you currently have setup to get things
working


 I do not know if this list accept the attachment, but I know that in
general, attachments are not welcome. So here is the minimal set up of org
in my minimal init.el (I do not reproduce here what concerns bitex,
biblatex, latex and reftex in this email):

 ;; org-mode
 (add-to-list 'load-path ~/.emacs.d/elpa/org-20131230)
 ;;répertoire contrib : org-plus-contrib
 (add-to-list 'load-path ~/.emacs.d/elpa/org-plus-contrib-20131230/)

 (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))

 (global-set-key \C-cl 'org-store-link)
  (global-set-key \C-cc 'org-capture)
  (global-set-key \C-ca 'org-agenda)
  (global-set-key \C-cb 'org-iswitchb)

 (require 'org)
 (require 'ob-latex)
 (require 'ox-latex)
 (require 'org-mime)
 (require 'ox-html)
 (require 'ox-ascii)
 (require 'ox-org)
 (require 'ox-bibtex)


 - The matching minimal bibliography file


 Here is my minimal-bibliography.bib:

 @Article{tennant96,
   author = {Tennant, N.},
   title = {{The Law of Excluded Middle is Synthetic A Priori, if Valid}},
   journal = {Philosophical Topics},
   year = 1996,
   number = 24,
   pages = {241-266}
 }


 - Perhaps the output you want (in LaTeX or whatever output language)



 I am happy to tell you that the export works in latex as well as in html
! Thanks to all !


A lovely post that will hopefully help many others down the road! Thanks
for obliging :)

Glad you got it working,
John

 Now just details , how to converts correctly the latex syntax : \cite[p.
1]{key} ? , and how is it possible to use easily reftex ? I do not succeed
to find ebib very convenient.

 Again, many many thanks !

 Jo.





Re: [O] Implementing Org-mode tools in languages other than ELISP

2014-01-04 Thread Bastien
Karl Voit devn...@karl-voit.at writes:

 Therefore, I develop all my Org-mode tools with Python which I am
 comfortably with. I have done various things and put it on
 http://github.com/novoid

FWIW, I think it's good to develop tools for Org not only in Elisp but
also in other languages: Org is not just an Emacs module, it's also a
format, used outside Emacs.  E.g. .org files on github.

-- 
 Bastien



Re: [O] Drag images from Firefox to org-mode

2014-01-04 Thread Oleh
Hi all,

Here's a patch to add org-download to org-mode.
I've had the additional features (the screenshots and local files)
implemented some time ago,
but never got around to wrapping it up.
Feedback welcome.

regards
Oleh

 There's still two functionality bits that I want to add:
 local files and forwarding to default dnd handlers in the case it's
 not an image.
 But that can be added in later.
 Please make the changes that you think are necessary and commit to org.

 regards,
 Oleh
From 6d76577e80f8af2795321a9cb0f0e92bb02b8341 Mon Sep 17 00:00:00 2001
From: Oleh Krehel ohwoeo...@gmail.com
Date: Sat, 4 Jan 2014 15:17:00 +0100
Subject: [PATCH] Add image drag-and-drop and screenshot support to org-mode.

---
 lisp/org-download.el | 336 +++
 1 file changed, 336 insertions(+)
 create mode 100644 lisp/org-download.el

diff --git a/lisp/org-download.el b/lisp/org-download.el
new file mode 100644
index 000..39312cf
--- /dev/null
+++ b/lisp/org-download.el
@@ -0,0 +1,336 @@
+;;; org-download.el --- Image drag-and-drop for Emacs org-mode
+
+;; Copyright (C) 2014 Free Software Foundation, Inc.
+
+;; Author: Oleh Krehel
+;; Keywords: images, screenshots, download
+;; Homepage: http://orgmode.org
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see http://www.gnu.org/licenses/.
+
+;;; Commentary:
+;;
+;; This extension facilitates moving images from point A to point B.
+;;
+;; Point A (the source) can be:
+;; 1. An image inside your browser that you can drag to Emacs.
+;; 2. An image on your file system that you can drag to Emacs.
+;; 3. A local or remote image address in kill-ring.
+;;Use the `org-download-yank' command for this.
+;;Remember that you can use 0 w in `dired' to get an address.
+;; 4. An screenshot taken using `gnome-screenshot' or `scrot' or `gm'.
+;;Use the `org-download-screenshot' command for this.
+;;Customize the backend with  `org-download-screenshot-method'.
+;;
+;; Point B (the target) is an Emacs `org-mode' buffer where the inline
+;; link will be inserted.  Several customization options will determine
+;; where exactly on the file system the file will be stored.
+;;
+;; They are:
+;; `org-download-method':
+;; a. 'attach = use `org-mode' attachment machinery
+;; b. 'directory = construct the directory in two stages:
+;;1. first part of the folder name is:
+;;   * either . (current folder)
+;;   * or `org-download-image-dir' (if it's not nil).
+;; `org-download-image-dir' becomes buffer-local when set,
+;; so each file can customize this value, e.g with:
+;; # -*- mode: Org; org-download-image-dir: ~/Pictures/foo; -*-
+;;2. second part is:
+;;   * `org-download-heading-lvl' is nil = 
+;;   * `org-download-heading-lvl' is n = the name of current
+;; heading with level n. Level count starts with 0,
+;; i.e. * is 0, ** is 1, *** is 2 etc.
+;; `org-download-heading-lvl' becomes buffer-local when set,
+;; so each file can customize this value, e.g with:
+;; # -*- mode: Org; org-download-heading-lvl: nil; -*-
+;;
+;; `org-download-timestamp':
+;; optionally add a timestamp to the file name.
+;;
+;; Customize `org-download-backend' to choose between `url-retrieve'
+;; (the default) or `wget' or `curl'.
+;;
+;;; Code:
+
+
+(eval-when-compile
+  (require 'cl))
+(require 'url-parse)
+(require 'url-http)
+
+(defgroup org-download nil
+  Image drag-and-drop for org-mode.
+  :group 'org
+  :prefix org-download-)
+
+(defcustom org-download-method 'directory
+  The way images should be stored.
+  :type '(choice
+  (const :tag Directory directory)
+  (const :tag Attachment attach))
+  :group 'org-download)
+
+(defcustom org-download-image-dir nil
+  If set, images will be stored in this directory instead of \.\.
+See `org-download--dir-1' for more info.
+  :type '(choice
+  (const :tag Default nil)
+  (string :tag Directory))
+  :group 'org-download)
+(make-variable-buffer-local 'org-download-image-dir)
+
+(defcustom org-download-heading-lvl 0
+  Heading level to be used in `org-download--dir-2'.
+  :group 'org-download)
+(make-variable-buffer-local 'org-download-heading-lvl)
+
+(defcustom org-download-backend t
+  Method to use for downloading.
+  :type '(choice
+  (const :tag wget wget \%s\ -O \%s\)
+  (const :tag 

Re: [O] A small hack to document programs externally

2014-01-04 Thread Bastien
Hi Alan,

Alan Schmitt alan.schm...@polytechnique.org writes:

 I've just written a small hack to refer to code in other files from an
 org-mode buffer, so that the referred code would be copied in the buffer
 to be exported when exporting the org buffer. (Our use case is a large
 Coq development which we want to document online. Our may constraint is
 that we need the documentation to live in files outside the code, yet
 still refer to the actual code.)

It would be nice to have this on worg/org-hacks.org !

-- 
 Bastien



Re: [O] [RFC] About `org-export-with-\(fixed-width\|tables\)'

2014-01-04 Thread Eric Abrahamsen
Florian Beck f...@miszellen.de writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 I don't think option 2 is really useful, but I don't mind either way.

 Actually, I would find it useful (because I sometimes export my notes as
 an ebook and tables get garbled on the way).

Hey, are you actually exporting to an epub? How are you doing that?




[O] dates in orgtbl-sqlinsert

2014-01-04 Thread Thierry Banel
Hi all

I have slightly modified the Jason Riedy's orgtbl-sqlinsert.el package
to take into account Org dates.
The output format is configurable through the :datefmt parameter.
The default format is suitable for Sqlite.
(git patch attached)

An example:

Here is the source table:

#+ORGTBL: SEND faraway orgtbl-to-sqlinsert :splice nil :skipcols (5)
:datefmt '%Y-%m-%d %H:%M:%S' :sqlname thetable
| date|  quty | color  | status  | useless |
|-+---++-+-|
| [2013-04-17 wed. 11:34] | 123.4 | red| yes ok nogo | a   |
| [2014-04-18 fri.]   |  75.3 | yellow | no ko go| bb  |
| 2015-04-19 sun. 11:35 | 355.1 | blue   | no ok go| ccc |
| 2016-04-20 wed.   | 233.7 | white  | yes ko go   | |

And here is the result:

-- BEGIN RECEIVE ORGTBL faraway
BEGIN TRANSACTION;
INSERT INTO thetable( date, quty, color, status ) VALUES ( '2013-04-17
11:34:00' , '123.4' , 'red' , 'yes ok nogo' );
INSERT INTO thetable( date, quty, color, status ) VALUES ( '2014-04-18
00:00:00' , '75.3' , 'yellow' , 'no ko go' );
INSERT INTO thetable( date, quty, color, status ) VALUES ( '2015-04-19
11:35:00' , '355.1' , 'blue' , 'no ok go' );
INSERT INTO thetable( date, quty, color, status ) VALUES ( '2016-04-20
00:00:00' , '233.7' , 'white' , 'yes ko go' );
COMMIT;
-- END RECEIVE ORGTBL faraway

Have fun
Thierry

From 41013e13d10bf4be4790670105615b2900cb1944 Mon Sep 17 00:00:00 2001
From: Thierry Banel tbanelweb...@free.fr
Date: Sat, 4 Jan 2014 15:45:39 +0100
Subject: [PATCH] convert org-date to sql-date in orgtbl-sqlinsert.el

---
 contrib/lisp/orgtbl-sqlinsert.el |   37 +++--
 1 file changed, 35 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/orgtbl-sqlinsert.el b/contrib/lisp/orgtbl-sqlinsert.el
index b00c93d..82e9e6a 100644
--- a/contrib/lisp/orgtbl-sqlinsert.el
+++ b/contrib/lisp/orgtbl-sqlinsert.el
@@ -2,7 +2,8 @@
 
 ;; Copyright (C) 2008-2013  Free Software Foundation
 
-;; Author: Jason Riedy ja...@acm.org
+;; Author: Jason Riedy ja...@acm.org,
+;; modified by Thierry Banel  tbanelwebmin at free dot fr
 ;; Keywords: org, tables, sql
 
 ;; This file is not part of GNU Emacs.
@@ -25,6 +26,32 @@
 ;; Converts an orgtbl to a sequence of SQL insertion commands.
 ;; Table cells are quoted and escaped very conservatively.
 
+;;  Example:
+;;  Using this table as source,
+;;  adding somewhere in the same file a block like this:
+;; -- BEGIN RECEIVE ORGTBL faraway
+;; -- END RECEIVE ORGTBL faraway
+;;  and typing C-c C-c on the first pipe of the table,
+;;  fills the BEGIN RECEIVE ORGTBL block
+;;  
+;;  #+ORGTBL: SEND faraway orgtbl-to-sqlinsert :splice nil :skipcols (5) :datefmt '%Y-%m-%d %H:%M:%S' :sqlname thetable
+;;  | date|  quty | color  | status  | useless |
+;;  |-+---++-+-|
+;;  | [2013-04-17 wed. 11:34] | 123.4 | red| yes ok nogo | a   |
+;;  | [2014-04-18 fri.]   |  75.3 | yellow | no ko go| bb  |
+;;  | 2015-04-19 sun. 11:35 | 355.1 | blue   | no ok go| ccc |
+;;  | 2016-04-20 wed.   | 233.7 | white  | yes ko go   | |
+;;  
+;;  
+;;  -- BEGIN RECEIVE ORGTBL faraway
+;;  BEGIN TRANSACTION;
+;;  INSERT INTO thetable( date, quty, color, status ) VALUES ( '2013-04-17 11:34:00' , '123.4' , 'red' , 'yes ok nogo' );
+;;  INSERT INTO thetable( date, quty, color, status ) VALUES ( '2014-04-18 00:00:00' , '75.3' , 'yellow' , 'no ko go' );
+;;  INSERT INTO thetable( date, quty, color, status ) VALUES ( '2015-04-19 11:35:00' , '355.1' , 'blue' , 'no ok go' );
+;;  INSERT INTO thetable( date, quty, color, status ) VALUES ( '2016-04-20 00:00:00' , '233.7' , 'white' , 'yes ko go' );
+;;  COMMIT;
+;;  -- END RECEIVE ORGTBL faraway
+
 ;;; Code:
 
 (defun orgtbl-to-sqlinsert (table params)
@@ -47,6 +74,9 @@ are:
 
 :nowebname If not nil, used as a wrapping noweb fragment name.
 
+:datefmt   The format used for converting Ord dates
+   by defaut it is '%Y-%m-%d %H:%M:%S', suitable for Sqlite
+
 The most important parameters of ORGTBL-TO-GENERIC for SQL are:
 
 :spliceWhen set to t, return only insert statements, don't wrap
@@ -87,6 +117,7 @@ this function is called.
 	   :lend  );
 	   :sep  , 
 	   :hline nil
+	   :datefmt '%Y-%m-%d %H:%M:%S'
 	   :remove-nil-lines t))
 	 (params (org-combine-plists params2 params))
  (sqlname (plist-get params :sqlname)))
@@ -108,7 +139,9 @@ this function is called.
 (defun orgtbl-sql-strip-and-quote (str)
   Apply ORGBTL-SQL-QUOTE and ORGTBL-SQL-STRIP-DOLLARS-ESCAPES-TILDES
 to sanitize STR for use in SQL statements.
-  (cond ((stringp str)
+  (cond ((string-match org-ts-regexp0 str)
+ (format-time-string (plist-get params :datefmt) (org-time-string-to-time str)))
+((stringp str)
  (orgtbl-sql-quote (orgtbl-sql-strip-dollars-escapes-tildes str)))
 ((sequencep str) (mapcar 

Re: [O] Global TODO: display more than the TODO heading line?

2014-01-04 Thread Eric Abrahamsen
Bastien b...@gnu.org writes:

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 Maybe you can use `org-after-todo-state-change-hook' to store a note
 in a property, then display the content of this property in the column
 view -- but this is a bit hackish anyway.

 I've wanted this too -- if we're logging into a drawer (ie LOGBOOK),
 shouldn't there be a relatively simple way of getting the drawer
 contents, and taking the top (or bottom) log entry? 

 On the other hand, looking at `org-add-log-setup', maybe it wouldn't be
 all that easy, either.

 We could have a new special property like LAST_NOTE that would
 retrieve the last note, but I doubt the use-case is general enough
 to require such a new special property.  The implementation would
 be 100% ad hoc...  if many users need this, please speak up!

No, that sounds like a bad idea... Unless log entries were later made
into first-class citizens, I think home-rolled ad hoc solutions are all
we should bother with.

E




Re: [O] Drag images from Firefox to org-mode

2014-01-04 Thread Bastien
Hi Oleh,

Oleh ohwoeo...@gmail.com writes:

 Here's a patch to add org-download to org-mode.

Great, thanks.

Please add this to contrib/lisp/ -- we try to keep Org's core
minimalistic because core is merged to Emacs.

Best,

-- 
 Bastien



[O] please. Hekp me to start

2014-01-04 Thread Renato

Hi,
I know, ther's a lot of doc around there. But: can someone show me the 
best road map to start using (and learning) org-mode?


I've past the few days, learning emacs, and now, I think I'm able to 
start using org-mode.


TIA

Renato



Re: [O] sum up variables from different org-mode tables

2014-01-04 Thread Michael Brand
Hi all

On Fri, Nov 16, 2012 at 4:16 PM, Michael Brand
michael.ch.br...@gmail.com wrote:
 [...]
A nice solution for variant 2 would be if
@2$3..@2$7 = remote(A, @$$#) :: @3$3..@3$7 = remote(B, @$$#)
could be simplified to
@2$3..@3$7 = remote($8, @$$#)
 [...]

Because I need the above indirection of remote references I
implemented it a few days ago, see the attached patches. Comments are
welcome, otherwise I will push the changes to the Org repo in a few
days.

This is the use case that is checked in the Emacs Regression Test
test-org-table/remote-reference-indirect in
testing/lisp/test-org-table.el:

#+NAME: 2012
| amount |
||
|  1 |
|  2 |
||
|  3 |
#+TBLFM: @$1 = vsum(@I..@II)

#+NAME: 2013
| amount |
||
|  4 |
|  8 |
||
| 12 |
#+TBLFM: @$1 = vsum(@I..@II)

#+NAME: summary
|  year | amount |
|---+|
|  2012 |  3 |
|  2013 | 12 |
|---+|
| total | 15 |
#+TBLFM: @$2..@$2 = remote($, @$1) :: @$2 = vsum(@I..@II)

Michael
From 21152c2045345135fd18749e016367aa0388ae4b Mon Sep 17 00:00:00 2001
From: Michael Brand michael.ch.br...@gmail.com
Date: Sat, 4 Jan 2014 16:21:28 +0100
Subject: [PATCH 1/2] TBLFM remote ref: Add ERT for summary table

* testing/lisp/test-org-table.el
(test-org-table/remote-reference-indirect): Add a use case of
summarizing two tables with a sum into one table for the total; as a
preparation for remote reference indirection.
---
 testing/lisp/test-org-table.el | 80 ++
 1 file changed, 80 insertions(+)

diff --git a/testing/lisp/test-org-table.el b/testing/lisp/test-org-table.el
index edb51c4..a4f8caa 100644
--- a/testing/lisp/test-org-table.el
+++ b/testing/lisp/test-org-table.el
@@ -793,6 +793,86 @@ See also `test-org-table/copy-field'.
 ;; Do a calculation: Use Calc (or Lisp ) formula
 $2 = 2 * remote(table, @1$2
 
+(ert-deftest test-org-table/remote-reference-indirect ()
+  Access to remote reference with indirection of name or ID.
+  (let ((source-tables 
+#+NAME: 2012
+| amount |
+||
+|  1 |
+|  2 |
+||
+|  3 |
+#+TBLFM: @$1 = vsum(@I..@II)
+
+#+NAME: 2013
+| amount |
+||
+|  4 |
+|  8 |
+||
+| 12 |
+#+TBLFM: @$1 = vsum(@I..@II)
+))
+
+;; Read several remote references from same column
+(org-test-table-target-expect
+ (concat source-tables 
+#+NAME: summary
+|  year | amount  |
+|---+-|
+|  2012 | replace |
+|  2013 | replace |
+|---+-|
+| total | replace |
+)
+ (concat source-tables 
+#+NAME: summary
+|  year | amount |
+|---+|
+|  2012 |  3 |
+|  2013 | 12 |
+|---+|
+| total | 15 |
+)
+ 1
+ ;; Calc formula
+ (concat #+TBLFM: 
+@2$2 = remote(2012, @$1) :: 
+@3$2 = remote(2013, @$1) :: 
+@$2 = vsum(@I..@II))
+ ;; Lisp formula
+ (concat #+TBLFM: 
+@2$2 = '(identity remote(2012, @$1)); N :: 
+@3$2 = '(identity remote(2013, @$1)); N :: 
+@$2 = '(+ @I..@II); N))
+
+;; Read several remote references from same row
+(org-test-table-target-expect
+ (concat source-tables 
+#+NAME: summary
+| year   |2012 |2013 | total   |
+|+-+-+-|
+| amount | replace | replace | replace |
+)
+ (concat source-tables 
+#+NAME: summary
+| year   | 2012 | 2013 | total |
+|+--+--+---|
+| amount |3 |   12 |15 |
+)
+ 1
+ ;; Calc formula
+ (concat #+TBLFM: 
+@2$2 = remote(2012, @$1) :: 
+@2$3 = remote(2013, @$1) :: 
+@2$ = vsum($..$))
+ ;; Lisp formula
+ (concat #+TBLFM: 
+@2$2 = '(identity remote(2012, @$1)); N :: 
+@2$3 = '(identity remote(2013, @$1)); N :: 
+@2$ = '(+ $..$); N
+
 (ert-deftest test-org-table/org-at-TBLFM-p ()
   (org-test-with-temp-text-in-file
   
-- 
1.7.12.4 (Apple Git-37)

From 38ad5df8ab16713f3e32d1c2106f2b1cf1e6ea42 Mon Sep 17 00:00:00 2001
From: Michael Brand michael.ch.br...@gmail.com
Date: Sat, 4 Jan 2014 16:25:42 +0100
Subject: [PATCH 2/2] TBLFM remote ref: Add indirection of name or ID

* doc/org.texi (References): Add description for indirection of
NAME-OR-ID.

* lisp/org-table.el (org-table-eval-formula): Make use of
`org-table-remote-reference-indirection'.
(org-table-remote-reference-indirection): New function.

* testing/lisp/test-org-table.el
(test-org-table/remote-reference-indirect): Change to use remote
reference indirection.
---
 doc/org.texi   |  6 ++
 lisp/org-table.el  | 25 +
 testing/lisp/test-org-table.el | 18 --
 3 files changed, 35 insertions(+), 14 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index bf5dafd..f710971 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -2630,6 +2630,12 @@ table in that entry.  REF is an 

Re: [O] please. Hekp me to start

2014-01-04 Thread Bastien
Hi Renato,

Renato renato.pontef...@gmail.com writes:

 I've past the few days, learning emacs, and now, I think I'm able to
 start using org-mode.

I'd start with this tutorial:
  http://orgmode.org/worg/org-tutorials/orgtutorial_dto.html

Then continue exploring this page:
  http://orgmode.org/worg/org-tutorials/index.html

-- 
 Bastien



Re: [O] Remote References to Tables in Included Files.

2014-01-04 Thread Michael Brand
Hi Ian

On Thu, Dec 12, 2013 at 3:32 PM, Ian Barton li...@wilkesley.net wrote:
 I am trying to combine summary data from org tables.
 [...]
 #+TBLFM: @2$2 = remote(october2012,@2$2)::@3$2 = remote(november2013,@3$2)::
 [...]

Just a few days ago I have implemented remote reference indirection
for name or ID which you might find useful for your use case. Please
see here:
http://lists.gnu.org/archive/html/emacs-orgmode/2014-01/msg00118.html

Michael



[O] Exporting markdown specific string

2014-01-04 Thread Ista Zahn
Hi all,

I'm trying to figure out how to export a line (say foo) only when
exporting to markdown.

For latex there is
'#+LATEX: foo'
and for html there is
'#+HTML: foo'
but neither
'#+MD: foo'
nor
'#+MARKDOWN: foo'
does the trick.

Of course
'#+HTML: foo'
exports foo to markdown since the markdown exporter is derived from
the html exporter. But I'd really like to include stuff in the
markdown export that does not also get included in the html export.

Suggestions? I'm using org-plus-contrib: Org-mode version 8.2.4
(8.2.4-18-g4ee7e6-elpaplus) installed using M-x install-packages.

Thanks,
Ista



Re: [O] rmail: difficulty

2014-01-04 Thread François Pinard
Bastien b...@gnu.org writes:
 François Pinard pin...@iro.umontreal.ca writes:

 - rmail:~/ubity/Mail/admin

 This is now fixed, thanks for reporting this!

Thanks, it now works! :-)

François



Re: [O] A small hack to document programs externally

2014-01-04 Thread Alan Schmitt
Bastien b...@gnu.org writes:

 Hi Alan,

 Alan Schmitt alan.schm...@polytechnique.org writes:

 I've just written a small hack to refer to code in other files from an
 org-mode buffer, so that the referred code would be copied in the buffer
 to be exported when exporting the org buffer. (Our use case is a large
 Coq development which we want to document online. Our may constraint is
 that we need the documentation to live in files outside the code, yet
 still refer to the actual code.)

 It would be nice to have this on worg/org-hacks.org !

I'm not promising anything, but I've added such a task on my (long)
org-related hacking todo list.

Best,

Alan



Re: [O] Implementing Org-mode tools in languages other than ELISP

2014-01-04 Thread François Pinard
Bastien b...@gnu.org writes:

 Karl Voit devn...@karl-voit.at writes:

 Therefore, I develop all my Org-mode tools with Python which I am
 comfortably with. I have done various things and put it on
 http://github.com/novoid

 FWIW, I think it's good to develop tools for Org not only in Elisp but
 also in other languages: Org is not just an Emacs module, it's also a
 format, used outside Emacs.  E.g. .org files on github.

I dream of having a general Python parser for Org mode files, knowing
every bit about the current syntax for Org files, surrounded by enough
Python machinery to make it useful.

One non-negligible problem is that such a tool, to be very complete,
would need an Emacs Lisp interpreter, which is all of an undertaking in
itself.  Maybe that some half-heated compromise could be developed?  A
hundredth-hearted compromise is likely the most I could do!  :-)

François



Re: [O] Missing contrib packages

2014-01-04 Thread Achim Gratz
Bastien writes:
 htmlize.el was not included so far when packaging the org-plus-contrib
 ELPA package, I fixed this, thanks.

Again, this isn't our file and we shouldn't distribute it via package
manager.  It screws up everyone who installs htmlize via ELPA or MELPA,
please revert that commit.


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

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] Missing contrib packages

2014-01-04 Thread Bastien
Achim Gratz strom...@nexgo.de writes:

 Bastien writes:
 htmlize.el was not included so far when packaging the org-plus-contrib
 ELPA package, I fixed this, thanks.

 Again, this isn't our file and we shouldn't distribute it via package
 manager.  It screws up everyone who installs htmlize via ELPA or MELPA,
 please revert that commit.

Can you do it and provide a way to make org-plus-contrib depends on
the correct version of the htmlize package?

Thanks,

-- 
 Bastien



Re: [O] please. Hekp me to start

2014-01-04 Thread Nick Dokos
Renato renato.pontef...@gmail.com writes:

 Hi,
 I know, ther's a lot of doc around there. But: can someone show me
 the best road map to start using (and learning) org-mode?


Org is a swiss army knife: if you open up all the blades and try to use
them at once, you are going to hurt yourself.

Start with one or two things that are interesting to you and ignore
everything else: e.g. agenda and TODO lists for organizing your life;
writing up notes for latex or html export. I mention these two because
they account for about 95% of my personal usage, but you will have to
adjust to taste.

Resist the temptation to learn everything at once. Once you've used org
for a while for the things that matter to *you*, extensions and further
uses will come naturally.

For example, learning about tables comes naturally in the note-taking
process; then you learn about the spreadsheet and doing data analysis in
org; then you go on to babel and reproducible research. That might
lead to citations (a field of active research on the list
currently). Then you might want to publish your notes so others can read
them; or start a blog...

Or you decide to organize your life even more and start clocking all
your activities; track your habits; go on to quantify your life...

All of these things and more are possible with org, but just because
they are possible does not mean that you have to do them all (and
certainly not all at once) in order to use org productively.

Just remember: one blade at a time.

 I've past the few days, learning emacs, and now, I think I'm able to
 start using org-mode.

 TIA

 Renato



-- 
Nick




Re: [O] Missing contrib packages

2014-01-04 Thread Bastien
Bastien b...@gnu.org writes:

 Can you do it and provide a way to make org-plus-contrib depends on
 the correct version of the htmlize package?

Actually I just did so myself.  In retrospect, htmlize.el is not a
dependency, just something used.

-- 
 Bastien



Re: [O] Exporting markdown specific string

2014-01-04 Thread Bastien
Hi Ista,

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

 I'm trying to figure out how to export a line (say foo) only when
 exporting to markdown.

#+BEGIN_MD
...
#+END_MD

will do.

#+HTML and the likes are special shortcuts for historical export
backends, we don't plan to add more.

HTH,

-- 
 Bastien



Re: [O] Agenda view: do not display tasks of projects scheduled in the future

2014-01-04 Thread Bastien
Hi Alan,

Alan Schmitt alan.schm...@polytechnique.org writes:

 #+BEGIN_SRC emacs-lisp
 (defun as/skip-future-tasks ()
   Skip future tasks
   (save-restriction
 (widen)
 (let ((subtree-end (save-excursion (org-end-of-subtree t
   (cond
((org-entry-scheduded-in-future-p)
 subtree-end)
(t
 nil)
 #+END_SRC

 Any suggestion as how I might write such a predicate?

Coming late so maybe it's not useful anymore, but here is a stab:

(defun org-entry-scheduded-in-future-p ()
  (interactive)
  (let ((sc (org-get-scheduled-time (point)))
;; (dl (org-get-deadline-time (point)))
;; (ts (org-time-string-to-time (org-entry-get (point) TIMESTAMP)))
(ct (current-time)))
(time-less-p ct sc)))

-- 
 Bastien



Re: [O] Org-drill installation

2014-01-04 Thread Bastien
Hi Todd,

Todd Neufeld todd.neuf...@gmail.com writes:

 My org:
 Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @
 /usr/share/emacs/24.3/lisp/org/)

I suggest you try using a more recent version, either
through Git

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

  [And adjust your load-path accordingly...]

or by installing Org through GNU ELPA.  See the manual
for detailed instructions.

-- 
 Bastien



Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Bastien bzg at gnu.org writes:

 
 Hi Ista,
 
 Ista Zahn istazahn at gmail.com writes:
 
  I'm trying to figure out how to export a line (say foo) only when
  exporting to markdown.
 
 #+BEGIN_MD
 ...
 #+END_MD
 
 will do.
 
[snip]

No it won't. 

ox-md.el does not define a transcoder for keyword and falls back to its 
parent:

--8---cut here---start-8---
#+BEGIN_SRC emacs-lisp :exports both
(org-version)
#+END_SRC

#+RESULTS:
: 8.2.4

#+BEGIN_SRC emacs-lisp :exports both
(assoc 'keyword (org-export-get-all-transcoders 'md))
#+END_SRC

#+RESULTS:
: (keyword . org-html-keyword)
--8---cut here---end---8---

HTH,

Chuck





Re: [O] Exporting markdown specific string

2014-01-04 Thread Bastien
Charles Berry ccbe...@ucsd.edu writes:

 No it won't. 

 ox-md.el does not define a transcoder for keyword and falls back to its 
 parent:

Thanks.

I just added this transcoder to the master branch.

-- 
 Bastien



Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Charles Berry ccberry at ucsd.edu writes:

 
 Bastien bzg at gnu.org writes:
 
  
  Hi Ista,
  
  Ista Zahn istazahn at gmail.com writes:
  
   I'm trying to figure out how to export a line (say foo) only when
   exporting to markdown.
  
  #+BEGIN_MD
  ...
  #+END_MD
  
  will do.
  
 [snip]
 
 No it won't. 
 
 ox-md.el does not define a transcoder for keyword and falls back to its 
 parent:


OOPS!

I meant 'export-block'

--8---cut here---start-8---
#+BEGIN_SRC emacs-lisp :exports both
(assoc 'export-block (org-export-get-all-transcoders 'md))
#+END_SRC

#+RESULTS:
: (export-block . org-html-export-block)
--8---cut here---end---8---


Chuck







Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Bastien bzg at gnu.org writes:

 
 Charles Berry ccberry at ucsd.edu writes:
 
  No it won't. 
 
  ox-md.el does not define a transcoder for keyword and falls back to its 
  parent:
 
 Thanks.
 
 I just added this transcoder to the master branch.
 

Looking at org-md-export-block shouldn't it export HTML export blocks as 
well, since markdown allows literal html?

HTH,

Chuck




Re: [O] Exporting markdown specific string

2014-01-04 Thread Ista Zahn
On Sat, Jan 4, 2014 at 1:40 PM, Charles Berry ccbe...@ucsd.edu wrote:
 Bastien bzg at gnu.org writes:


 Charles Berry ccberry at ucsd.edu writes:

  No it won't.
 
  ox-md.el does not define a transcoder for keyword and falls back to its
  parent:

 Thanks.

 I just added this transcoder to the master branch.


 Looking at org-md-export-block shouldn't it export HTML export blocks as
 well, since markdown allows literal html?

Yes, and as far as I can tell it does. But as I explained in my
original question I want certain text exported to markdown but not to
html.

Best,
Ista


 HTH,

 Chuck





Re: [O] Exporting markdown specific string

2014-01-04 Thread Nicolas Goaziou
Hello,

Bastien b...@gnu.org writes:

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

 I'm trying to figure out how to export a line (say foo) only when
 exporting to markdown.

 #+BEGIN_MD
 ...
 #+END_MD

 will do.

I added #+begin_markdown...#+end_markdown too, as defined by the
back-end.

 #+HTML and the likes are special shortcuts for historical export
 backends, we don't plan to add more.

What? Every back-end introduces its own specific keyword
(#+beamer: #+ascii ...). I just added them (#+md: and #+markdown:) for
md back-end.

Should we remove all of them?


Regards,

-- 
Nicolas Goaziou



Re: [O] [RFC] ox-ascii.el: fixing variable width character handling

2014-01-04 Thread Nicolas Goaziou
Hello,

Yasushi SHOJI ya...@atmark-techno.com writes:

 Opps.  Rebased version attached.

Thank you. However, I'm still unable to apply it. Odd.

 Thanks.  I've now checked Emacs' Changelog.  It seems like each line
 have open and close parentheses.  Am I right?

That's correct, although I don't apply this rule.

 +  (let* ((struct (org-element-property :structure parent-item))
 + (beg-item (org-element-property :begin parent-item)))

You forgot to turn back `let*' into `let'.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] Re: \newpage in HTML export

2014-01-04 Thread Sebastien Vauban
Andreas Leha wrote:
 Could you expand on what you mean by less portable? I'm interested in
 portability from a reproducible research perspective and want to avoid
 habits that don't port well to other researchers' systems.


 I did not want to include these words in the first place.  The words 'less
 portable' are too strong here.

 You won't be affected, since you ship your emacs / Org configuration
 with the document, IIUC.  (Which is the only possible way to achieve
 something like reproducibility with Org...)
 In that case you can simply include such a filter in that configuration.

 The non-portable part comes from the need to share that filter.
 Anybody without that filter will not be able to export your document in
 the intended way.

Shouldn't, then, some filters be available by default in core Org?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Exporting markdown specific string

2014-01-04 Thread Charles Berry
Nicolas Goaziou n.goaziou at gmail.com writes:

 
 Hello,
 
 Bastien bzg at gnu.org writes:
 
  Ista Zahn istazahn at gmail.com writes:
 
  I'm trying to figure out how to export a line (say foo) only when
  exporting to markdown.
 
  #+BEGIN_MD
  ...
  #+END_MD
 
  will do.
 
 I added #+begin_markdown...#+end_markdown too, as defined by the
 back-end.

Doesn't org-md-export-block want

 (org-export-with-backend 'html export-block contents info)

at its end?

Chuck




[O] Export each top level heading to separate file

2014-01-04 Thread Ista Zahn
Hi all,

I'm looking for a way to export each top-level heading to a separate
markdown file. Ideally I would like to have the exported files named
according to the heading. For example I would like this org file

---
* Section one
Section one text
* Section two
** Section two a
Section two text
* Section three
Section three text
---

To generate three files:

--- Section one.md ---
Section one text

---

--- Section two.md---
## Section two a

Section two text

---

--- Section three.md -
# Section three

Section three text

---

I suspect that the publishing framework might support this, but I've
thus far avoided it because it looks pretty complicated to set up.
Before I dive in I'd like to know if the publishing framework is the
correct place to look for this functionality or if there is an easier
way to do it.

Thanks,
Ista



Re: [O] different achiving mode

2014-01-04 Thread David Belohrad
Hi Bastien,

learning recently new things about org mode i think i have requested a
bullshit. Basically the idea was to somehow 'retain' the project tree,
or at least be able to restore its form from archive when needed. Seeing
complexity of this, it does not look like something easy to implement...

.d.


Bastien b...@gnu.org writes:

 Hi David,

 David Belohrad da...@belohrad.ch writes:

 for a certain time I'm using ordinary archiving. I.e. moving DONE marked
 tags to archive file. For this I'm using

 (org-advertized-archive-subtree optional FIND-DONE)

 with shortcut C-u C-c C-x C-s, hence it will find all DONE items and
 move them to archive.

 I have a trouble with 'how' the items are moved. If I look into archive,
 the hiearchy is 'flattened'. What I'd like to see there is the same
 hierarchy as I have in the original file, the same tags, but with
 ARCHIVE tag added (eventually having entire file marked with ARCHIVE
 tag).

 Mhh... I don't see how we could not flatten the hierarchy in some
 circumstances.

 For example:

 * TODO Headline
 ** DONE Task

 If you want to archive the DONE Task to another file, you cannot 
 archive the TODO Headline with it.

 Or maybe I didn't understand your use-case correctly.

 Best,

 -- 
  Bastien



Re: [O] Export each top level heading to separate file

2014-01-04 Thread Charles Millar

Ista and all,

On 1/4/2014 5:29 PM, Ista Zahn wrote:

Hi all,

I'm looking for a way to export each top-level heading to a separate
markdown file. Ideally I would like to have the exported files named
according to the heading. For example I would like this org file

---
* Section one
Section one text
* Section two
** Section two a
Section two text
* Section three
Section three text
---

To generate three files:

--- Section one.md ---
Section one text

---

--- Section two.md---
## Section two a

Section two text

---

--- Section three.md -
# Section three

Section three text

---

I suspect that the publishing framework might support this, but I've
thus far avoided it because it looks pretty complicated to set up.
Before I dive in I'd like to know if the publishing framework is the
correct place to look for this functionality or if there is an easier
way to do it.




I have a similar question regarding LaTeX export. How to export a 
heading (any heading, regardless of level) within a file to heading.tex 
instead of file.tex? So far the only solution I have cobbled together is 
to C-x C-f 'file.tex and then C-x C-w heading.tex .  I then typeset 
heading.tex using TeXworks. Perhaps I should note that my exported 
heading is tagged so that the heading is ignored.


Charlie Millar

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com




Re: [O] Exporting markdown specific string

2014-01-04 Thread Nicolas Goaziou
Hello,

Charles Berry ccbe...@ucsd.edu writes:

 Doesn't org-md-export-block want

  (org-export-with-backend 'html export-block contents info)

 at its end?

Done. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: HTML Export doesn't handle internal link with spaces [8.0.7 (8.0.7-6-g13cb28-elpa @ /home/jbalint/.emacs.d/elpa/org-20130812/)]

2014-01-04 Thread Nicolas Goaziou
Hello,

Bastien b...@gnu.org writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 Also, I think there will be a problem if an internal link contains
 brackets. E.g, how to create an internal link to the following headline?

  * Some [headline]

 Maybe we can just escape square brackets for such internal links.
 At least this would solve the OP problem.

I'm not sure to understand. IIUC, one reason for url-hexification is to
avoid forbidden characters in Org links, i.e., Org hexifies links to
escape characters like brackets.

Do you mean using another escape mechanism? If so, I think the problem
would be the same as before (impossible to know if link at point was
escaped or not in the first place).

Another idea would be to get rid of automatic hexification in all cases,
and have more tolerant regexps for links.


Regards,

-- 
Nicolas Goaziou



Re: [O] [RFC] About `org-export-with-\(fixed-width\|tables\)'

2014-01-04 Thread Nicolas Goaziou
Hello,

Bastien b...@gnu.org writes:

 Florian Beck f...@miszellen.de writes:

 I don't think option 2 is really useful, but I don't mind either way.

 Actually, I would find it useful (because I sometimes export my notes as
 an ebook and tables get garbled on the way).

 +1.

Patch attached. WDYT?


Regards,

-- 
Nicolas Goaziou
From ddc02dddeff02b9e339a1a78e66ab706697032c2 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Sun, 5 Jan 2014 01:13:54 +0100
Subject: [PATCH] ox: Change meaning of `org-export-with-\(table\|fixed-width\)

* lisp/ox.el (org-export-with-fixed-width, org-export-with-tables):
  Change docstring to reflect new meaning.
(org-export--skip-p): Completely ignore tables and fixed-width areas
if appropriate option is nil.
* testing/lisp/test-ox.el (test-org-export/handle-options): Add tests.
---
 lisp/ox.el  | 30 ++
 testing/lisp/test-ox.el | 24 +++-
 2 files changed, 33 insertions(+), 21 deletions(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index d26d0c1..c2ff063 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -457,19 +457,12 @@ This option can also be set with the EXCLUDE_TAGS keyword.
   :type '(repeat (string :tag Tag)))
 
 (defcustom org-export-with-fixed-width t
-  Non-nil means lines starting with \:\ will be in fixed width font.
-
-This can be used to have pre-formatted text, fragments of code
-etc.  For example:
-  : ;; Some Lisp examples
-  : (while (defc cnt)
-  :   (ding))
-will be looking just like this in also HTML.  See also the QUOTE
-keyword.  Not all export backends support this.
-
+  Non-nil means export lines starting with \:\.
 This option can also be set with the OPTIONS keyword,
 e.g. \::nil\.
   :group 'org-export-general
+  :version 24.4
+  :package-version '(Org . 8.0)
   :type 'boolean)
 
 (defcustom org-export-with-footnotes t
@@ -703,16 +696,12 @@ e.g. \toc:nil\ or \toc:3\.
 	  (integer :tag TOC to level)))
 
 (defcustom org-export-with-tables t
-  If non-nil, lines starting with \|\ define a table.
-For example:
-
-  | Name| Address  | Birthday  |
-  |-+--+---|
-  | Arthur Dent | England  | 29.2.2100 |
-
+  Non-nil means export tables.
 This option can also be set with the OPTIONS keyword,
 e.g. \|:nil\.
   :group 'org-export-general
+  :version 24.4
+  :package-version '(Org . 8.0)
   :type 'boolean)
 
 (defcustom org-export-with-tags t
@@ -1440,7 +1429,7 @@ The back-end could then be called with, for example:
 ;;   - category :: option
 ;;   - type :: symbol (nil, t)
 ;;
-;; + `:with-fixed-width' :: Non-nil if transcoder should interpret
+;; + `:with-fixed-width' :: Non-nil if transcoder should export
 ;;  strings starting with a colon as a fixed-with (verbatim) area.
 ;;   - category :: option
 ;;   - type :: symbol (nil, t)
@@ -1482,8 +1471,7 @@ The back-end could then be called with, for example:
 ;;   - category :: option
 ;;   - type :: symbol (nil, {}, t)
 ;;
-;; + `:with-tables' :: Non-nil means transcoding should interpret
-;;  tables.
+;; + `:with-tables' :: Non-nil means transcoding should export tables.
 ;;   - category :: option
 ;;   - type :: symbol (nil, t)
 ;;
@@ -2091,6 +2079,7 @@ a tree with a select tag.
 		  (if (eq (car with-drawers-p) 'not)
 		  (member-ignore-case name (cdr with-drawers-p))
 		(not (member-ignore-case name with-drawers-p
+(fixed-width (not (plist-get options :with-fixed-width)))
 ((footnote-definition footnote-reference)
  (not (plist-get options :with-footnotes)))
 ((headline inlinetask)
@@ -2128,6 +2117,7 @@ a tree with a select tag.
 (planning (not (plist-get options :with-planning)))
 (property-drawer (not (plist-get options :with-properties)))
 (statistics-cookie (not (plist-get options :with-statistics-cookies)))
+(table (not (plist-get options :with-tables)))
 (table-cell
  (and (org-export-table-has-special-column-p
 	   (org-export-get-parent-table blob))
diff --git a/testing/lisp/test-ox.el b/testing/lisp/test-ox.el
index 0b148e0..78347af 100644
--- a/testing/lisp/test-ox.el
+++ b/testing/lisp/test-ox.el
@@ -430,6 +430,17 @@ Paragraph
 	  (org-test-with-temp-text :FOO:\nkeep\n:END:\n:BAR:\nremove\n:END:
 	(org-export-as (org-test-default-backend)
 			   nil nil nil '(:with-drawers (not BAR))
+  ;; Fixed-width.
+  (should
+   (equal : A\n
+	  (org-test-with-temp-text : A
+	(org-export-as (org-test-default-backend) nil nil nil
+			   '(:with-fixed-width t)
+  (should
+   (equal 
+	  (org-test-with-temp-text : A
+	(org-export-as (org-test-default-backend) nil nil nil
+			   '(:with-fixed-width nil)
   ;; Footnotes.
   (should
(equal Footnote?
@@ -498,7 +509,18 @@ Paragraph
(equal 
 	  (org-test-with-temp-text [0/0]
 	(org-export-as (org-test-default-backend)
-			   nil nil nil '(:with-statistics-cookies nil))
+			   nil nil nil '(:with-statistics-cookies nil)
+  ;; Tables.
+  (should
+   (equal 

Re: [O] Export each top level heading to separate file

2014-01-04 Thread Ista Zahn
On Sat, Jan 4, 2014 at 6:41 PM, Alan L Tyree alanty...@gmail.com wrote:
 On 05/01/14 09:45, Charles Millar wrote:

 Ista and all,

 On 1/4/2014 5:29 PM, Ista Zahn wrote:

 Hi all,

 I'm looking for a way to export each top-level heading to a separate
 markdown file. Ideally I would like to have the exported files named
 according to the heading. For example I would like this org file

 ---
 * Section one
 Section one text
 * Section two
 ** Section two a
 Section two text
 * Section three
 Section three text
 ---

 To generate three files:

 --- Section one.md ---
 Section one text

 ---

 --- Section two.md---
 ## Section two a

 Section two text

 ---

 --- Section three.md -
 # Section three

 Section three text

 ---

 I suspect that the publishing framework might support this, but I've
 thus far avoided it because it looks pretty complicated to set up.
 Before I dive in I'd like to know if the publishing framework is the
 correct place to look for this functionality or if there is an easier
 way to do it.



 I have a similar question regarding LaTeX export. How to export a heading
 (any heading, regardless of level) within a file to heading.tex instead of
 file.tex? So far the only solution I have cobbled together is to C-x C-f
 'file.tex and then C-x C-w heading.tex .  I then typeset heading.tex
 using TeXworks. Perhaps I should note that my exported heading is tagged so
 that the heading is ignored.

 Charlie Millar

 ---
 This email is free from viruses and malware because avast! Antivirus
 protection is active.
 http://www.avast.com



 Use properties to set the export file name -- example:
   :PROPERTIES:
   :EXPORT_TITLE: Internet banking fraud
   :EXPORT_FILE_NAME: internet-fraud
   :EXPORT_AUTHOR: Alan L Tyree
   :Citation: (2011) 22 JBFLP 214
   :EXPORT_OPTIONS: num:nil toc:nil
   :END:

Thanks, gets me half the way there. Setting properties as you
described and exporting each sub-tree works properly. Now how can I do
this for all the top-level headings in a file?

Best,
Ista


 If I understood your question properly.

 Cheers,
 Alan



 --
 Alan L Tyreehttp://www2.austlii.edu.au/~alan
 Tel:  04 2748 6206  sip:typh...@iptel.org





Re: [O] Export each top level heading to separate file

2014-01-04 Thread Alan L Tyree

Ista Zahn writes:

 On Sat, Jan 4, 2014 at 6:41 PM, Alan L Tyree alanty...@gmail.com wrote:
 On 05/01/14 09:45, Charles Millar wrote:

 Ista and all,

 On 1/4/2014 5:29 PM, Ista Zahn wrote:

 Hi all,

 I'm looking for a way to export each top-level heading to a separate
 markdown file. Ideally I would like to have the exported files named
 according to the heading. For example I would like this org file

 ---
 * Section one
 Section one text
 * Section two
 ** Section two a
 Section two text
 * Section three
 Section three text
 ---

 To generate three files:

 --- Section one.md ---
 Section one text

 ---

 --- Section two.md---
 ## Section two a

 Section two text

 ---

 --- Section three.md -
 # Section three

 Section three text

 ---

 I suspect that the publishing framework might support this, but I've
 thus far avoided it because it looks pretty complicated to set up.
 Before I dive in I'd like to know if the publishing framework is the
 correct place to look for this functionality or if there is an easier
 way to do it.



 I have a similar question regarding LaTeX export. How to export a heading
 (any heading, regardless of level) within a file to heading.tex instead of
 file.tex? So far the only solution I have cobbled together is to C-x C-f
 'file.tex and then C-x C-w heading.tex .  I then typeset heading.tex
 using TeXworks. Perhaps I should note that my exported heading is tagged so
 that the heading is ignored.

 Charlie Millar

 ---
 This email is free from viruses and malware because avast! Antivirus
 protection is active.
 http://www.avast.com



 Use properties to set the export file name -- example:
   :PROPERTIES:
   :EXPORT_TITLE: Internet banking fraud
   :EXPORT_FILE_NAME: internet-fraud
   :EXPORT_AUTHOR: Alan L Tyree
   :Citation: (2011) 22 JBFLP 214
   :EXPORT_OPTIONS: num:nil toc:nil
   :END:

 Thanks, gets me half the way there. Setting properties as you
 described and exporting each sub-tree works properly. Now how can I do
 this for all the top-level headings in a file?

Sorry, that's beyond my pay grade :-). I would also be interested in
knowing the answer.

Cheers,
Alan


 Best,
 Ista


 If I understood your question properly.

 Cheers,
 Alan



 --
 Alan L Tyreehttp://www2.austlii.edu.au/~alan
 Tel:  04 2748 6206  sip:typh...@iptel.org




-- 
Alan L Tyree   http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206 sip:172...@iptel.org



[O] Local key binding gone wrong!

2014-01-04 Thread Sharon Kimble
Whilst trying to set a key binding to archive 'DONE' todo items, by
trying to bind F13 [aka CapsLock] to '2', so the finished intended
result would have been - F13 + 2 = DONE  ARCHIVED. This is a global
key binding, although I was trying for a local one. How do I know its
'global'? Because CapsLock now does not work for me to use in this
email! 

So, how do I revert CapsLock to being its intended F13 please? And how
do I set up a local key binding to avoid this situation in the future
please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.4.2
Registered Linux user 561944


signature.asc
Description: PGP signature


[O] Single formula line applied to multiple tables

2014-01-04 Thread bsun
hello all,

I wonder if we can apply a single table formula line to multiple
tables.

Many thanks.

Regards,
Bing



Re: [O] [PATCH] Re: \newpage in HTML export

2014-01-04 Thread Bastien


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 Shouldn't, then, some filters be available by default in core Org?

I don't think so: my understanding is that default filters would
then be implemented without relying on filters -- so filters are
really optional by nature.  Nicolas will correct me if I'm wrong.

But building a page on Worg listing useful filters is a separate
task, and a good one.

-- 
 Bastien




Re: [O] Single formula line applied to multiple tables

2014-01-04 Thread Bastien
Hi,

b...@pku.edu.cn writes:

 I wonder if we can apply a single table formula line to multiple
 tables.

Nope, sorry!

-- 
 Bastien



Re: [O] [RFC] About `org-export-with-\(fixed-width\|tables\)'

2014-01-04 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes:

 Patch attached. WDYT?

'looks good!

-- 
 Bastien



Re: [O] Exporting markdown specific string

2014-01-04 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes:

 #+HTML and the likes are special shortcuts for historical export
 backends, we don't plan to add more.

 What? Every back-end introduces its own specific keyword
 (#+beamer: #+ascii ...). I just added them (#+md: and #+markdown:) for
 md back-end.

Ah, my mistake.

(I had a memory of a conversation about #+HTML looked too ad hoc,
and in my memories you convinced me that we should not add more of
these keywords.  But maybe you didn't convince me then!)

 Should we remove all of them?

No, no.

-- 
 Bastien



Re: [O] Bug: HTML Export doesn't handle internal link with spaces [8.0.7 (8.0.7-6-g13cb28-elpa @ /home/jbalint/.emacs.d/elpa/org-20130812/)]

2014-01-04 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes:

 I'm not sure to understand. IIUC, one reason for url-hexification is to
 avoid forbidden characters in Org links, i.e., Org hexifies links to
 escape characters like brackets.

 Do you mean using another escape mechanism?

No, I mean to url-hexify URLs that correspond to a link type (through
org-link-types) and for internal links, to escape only [ and ], which
are the only two problematic characters (aren't they?)

 If so, I think the problem
 would be the same as before (impossible to know if link at point was
 escaped or not in the first place).

Yes...

 Another idea would be to get rid of automatic hexification in all cases,
 and have more tolerant regexps for links.

This seems incertain.

Or maybe we can just live with the current problem.

-- 
 Bastien