Re: [O] label and ref in latex export

2012-10-11 Thread Thomas S. Dye
You might want to check the .tex file to see if the label is there.
Also, compiling with LaTeX yields a detailed log, which will tell you
the line number of errors and warnings. You could look there to pinpoint
the error(s).

Tom

Vikas Rawal vikasli...@agrarianresearch.org writes:

 Aloha Vikas,
 
 Perhaps table * - table*?
 

 I have corrected that. But it still says Exporting to PDF...done, with some
 errors: [undefined reference]

 The warning [undefined reference] seems to be on account of not
 finding the label reference.

 Vikas



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



Re: [O] Suggestion: Replace #+SETUP_FILE with #+INCLUDE

2012-10-11 Thread Sebastien Vauban
Hello Nicolas,

François Pinard wrote:
 Nicolas Goaziou n.goaz...@gmail.com writes:

 Therefore, I don't see any reason to keep maintaining the #+SETUP_FILE
 keyword. I'd rather remove it and suggest to use #+INCLUDE: keyword
 instead.  Any objection?

 None really.  I use both and distinguish them in some validation tool,
 which I would happily and easily adapt! :-)

Fine with me. This makes a lot of sense, when they don't differ that much, and
when we don't know exactly which one to use in which context (= my view).

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] label and ref in latex export

2012-10-11 Thread Vikas Rawal
On Wed, Oct 10, 2012 at 09:15:52PM -1000, Thomas S. Dye wrote:
 You might want to check the .tex file to see if the label is there.
 Also, compiling with LaTeX yields a detailed log, which will tell you
 the line number of errors and warnings. You could look there to pinpoint
 the error(s).

I was using this in the preamble:
#+LaTeX_HEADER: \usepackage[hmargin=3cm,vmargin=3.5cm]{geometry}

This was conflicting with my use of tabulary. I remove this line and
the errors disappeared.

Thanks very much for pointers.

Vikas



Re: [O] Error on reload but none in Messages Buffer?

2012-10-11 Thread Suvayu Ali
Hi Achim,

On Wed, Oct 10, 2012 at 06:05:59PM +0200, Achim Gratz wrote:
 Achim Gratz writes:
  What is not working is re-loading of org-export-latex.  How it manages to 
  drop
  the name and make nil out of this I don't know (yet).
 
 Some files in Org provide more than one feature and at least one of
 those then doesn't have a name that corresponds to the filename.  It
 turns out that there is a fuction to ask for the filename a feature was
 loaded from, so I'll just use this one instead of the symbol name.  This
 should fix that bug for real…
 

I have a couple of third party org libraries that are causing this
problem for me.  I couldn't follow the discussion properly, could you
please elaborate how I might fix these libraries so that org-reload
works properly?

Here are my messages:

  Some error occured while reloading Org features
  (org-occur-goto org-search-goto)
  Please check *Messages*!
  Org-mode version 7.9.2 (release_7.9.2-434-gc23dea @ ...)

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Remaining work/progress report: nearly useful, help needed

2012-10-11 Thread Myles English

Just an update to say I have managed to do one of the things I was
asking for help with.  As with most things, it was easier than I
thought.


Myles English writes:

 Hi orgees,

 In March I had a go at making a Remaining work/progress report[1].
 Having make some progress, I am looking for:

 - help,
 - collaborators,
 - opinions on whether this would be useful enough to be worth the
   effort,
 - whether anyone else has something like this (but better) and
 - any other wisdom,

 with a view to contributing it.

[yaddayadda]

 4 Improvements necessary to make it truly useful
 

   1. include a captured column view of the INCLUDEd file b.org: the file's
  headings are included in the TOC because it uses the new exporter, but
  not in the column-view.  Maybe exporting as org first and then
  taking the column view of that buffer would work.

Done!  It can be achieved by making this change to my-progress.el:

 (with-current-buffer (if view-file
  (get-file-buffer view-file)
(current-buffer))
+  ;; do everything in a copy of the current buffer
+  (org-export-with-current-buffer-copy
+  (org-export-expand-include-keyword)
   (save-excursion (setq mytoc (reverse (toc-alist
   (save-excursion
 (save-restriction

   (org-columns)
   (setq tbl (org-columns-capture-view maxlevel skip-empty-rows))
   (setq nfields (length (car tbl)))
-(org-columns-quit
+  (org-columns-quit)
 (goto-char pos)
 (move-marker pos nil)
 (when tbl


   2. Accumulate the time Remaining in the same way that CLOCKSUM does;
  it propagates upwards to higher level headings so that you can see
  (e.g.) how long Chapter 1 will take in total

   3. Refresh all the Remaining properties automatically

   I would really appreciate some help, particularly with 1.

2  3



 Thanks,

 Myles


 Footnotes: 
 [1]  http://comments.gmane.org/gmane.emacs.orgmode/53567




Re: [O] Remembrance Agent and Orgmode

2012-10-11 Thread Alan Schmitt
Dear all,

I'm trying to set up the remembrance agent, but I'm not able to get the
binaries to work. I'm on OS X Mountain Lion, and the binaries from
http://www.remem.org/ tell me bad CPU type. I tried building it from
source, but I'm getting an error about strnlen.

If someone knows how to build these binaries, I'd gladly use some help.

Thanks a lot,

Alan



Re: [O] [PATCH] org-insert-link: allow ido usage when inserting links

2012-10-11 Thread Nicolas Goaziou
Hello,

tony day zygom...@gmail.com writes:

Thanks for submitting a patch. Here are a few comments.

 From a8f301277e15bc786fa63bbcce3ba1afb85c46aa Mon Sep 17 00:00:00 2001
 From: Tony Day zygom...@gmail.com
 Date: Mon, 10 Sep 2012 13:54:38 +1000
 Subject: [PATCH 41/41] org-insert-link: allow ido usage when inserting
 links
 * lisp/org.el (org-insert-link): added all-links to cleanly create prefix+st
 (org-i-read-file-name): new defun to allow ido to read a file: link if
 allowed

Entries should end with a period (not the title, though). Also, if you
haven't signed FSF papers yet, you should append TINYCHANGE on a line
on its own.

 ---
  lisp/org.el |   39 +--
  1 file changed, 25 insertions(+), 14 deletions(-)

 diff --git a/lisp/org.el b/lisp/org.el
 index 1c18d70..a918cfc 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -9397,7 +9397,7 @@ be used as the default description.
tmphist ; byte-compile incorrectly complains about this
(link link-location)
(abbrevs org-link-abbrev-alist-local)
 -  entry file all-prefixes auto-desc)
 +  entry file all-links all-prefixes auto-desc)
  (cond
   (link-location) ; specified by arg, just use it.
   ((org-in-regexp org-bracket-link-regexp 1)
 @@ -9443,19 +9443,19 @@ Use TAB to complete link prefixes, then RET for 
 type-specific completion support
org-link-types))
(unwind-protect
 (progn
 + (setq all-links (append
 +  (mapcar 'car org-stored-links)
 +  (mapcar 'cadr org-stored-links)
 +  (mapcar (lambda (x) (concat x :))
 +  all-prefixes)))
 + (setq all-links (delete nil all-links))

This should be (delq nil all-links).

   (setq link
 -   (let ((org-completion-use-ido nil)
 - (org-completion-use-iswitchb nil))
 - (org-completing-read
 -  Link: 
 -  (append
 -   (mapcar (lambda (x) (list (concat x :)))
 -   all-prefixes)
 -   (mapcar 'car org-stored-links)
 -   (mapcar 'cadr org-stored-links))
 -  nil nil nil
 -  'tmphist
 -  (caar org-stored-links
 +   (org-completing-read
 +Link: 
 +all-links
 +nil nil nil
 +'tmphist
 +(caar org-stored-links)))

I don't see the interest of this change nor how it is related to
allowing ido usage to insert links. Can

  (append
(mapcar (lambda (x) (list (concat x :))) all-prefixes)
(mapcar 'car org-stored-links)
(mapcar 'cadr org-stored-links))

contain nil values?

If so, adding a (delq nil (append ...)) should be enough. This should be
a separate patch anyway.

 +(defun org-i-read-file-name (rest args)
 +  Read-file-name using `ido-mode' speedup if available.
 +  (org-without-partial-completion
 +   (if (and org-completion-use-ido
 +(fboundp 'ido-read-file-name)
 +(boundp 'ido-mode) ido-mode
 +(listp (second args)))
 +   (let ((ido-enter-matching-directory nil))
 + (apply 'ido-read-file-name args))
 + (apply 'read-file-name args

Ok. There are a couple of places where this could be used
(`org-file-complete-link' for example). You should describe ARGS in the
docstring, though (writing, at least, that they refer to arguments from
`read-file-name').

Also, I'm not sure about the name. `completing-read' became
`org-icompleting-read'. Shouldn't `read-file-name' become
`org-iread-file-name'? 


Regards,

-- 
Nicolas Goaziou



[O] New exporter

2012-10-11 Thread Sebastien Vauban
Hello Nicolas,

I want to (really) start using the new exporter as of now. I think it's high
time for me to benefit from it...

Here some first comments and questions.

I've been hit by trying to export with `C-c E p' [1] to PDF, but had troubles
doing so. In fact, I had to do `C-c l p' -- though the new dispatcher is much
more clear and _easy_ to use, I thought there was a problem.

Why? Because there was no beep to say that `p' entered at that moment was a
wrong choice, nor other form of message. I think that'd help, if there was
such a sound produced, for example. Right now, the bad keys are simply ignored
without further notice.

Second thing that puzzled me: the focus (active modeline) is on the window
with the Org source, not on the window with the dispatcher. It was the same
with the old exporter, but I wonder whether it must be like that, or whether
that could be changed, to emphasize that the key events are well going to the
dispatcher window?

At first, I thought that my first problem (`p' not doing anything was due to
that -- dispatcher window not active). I wanted to switch over to it (via
`F6' [2]) and ended with garbage in the echo area... C-c E p f6 p p f6...

Does this make sense?

Best regards,
  Seb

[1] I have `C-c E' mapped to `org-export-dispatch'.

[2] I have `f6' mapped to `other-window'.

-- 
Sebastien Vauban




[O] New exporter and Beamer

2012-10-11 Thread Sebastien Vauban
Nicolas,

Wouldn't you make the following a default in the new exporter?

#+begin_src emacs-lisp
(add-to-list 'org-e-latex-classes
 '(beamer
   \\documentclass[presentation]{beamer}
\[DEFAULT-PACKAGES]
\[PACKAGES]
\[EXTRA]
   (\\section{%s} . \\section*{%s})
   (\\subsection{%s} . \\subsection*{%s})
   (\\subsubsection{%s} . \\subsubsection*{%s})))
#+end_src

That'd make Beamer another first-class citizen among the possible export
targets.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] orgtbl-insert-radio-table forbid blanks in the table name

2012-10-11 Thread Nicolas Goaziou
Hello,

Pascal Wittmann pascalwittm...@gmx.net writes:

 I noticed that its possible to enter a name containing blanks when
 calling orgtbl-insert-radio-table. I don't think that this is intended,
 because blanks are used as separators in the #+ORGTBL line.

 Entering a the name first table will result in the following error
 message:

   No such transformation function table

 For me (as a novice) it was at first not obvious what I did wrong. My
 suggestion is to chose an other input method that forbids blanks.

Documentation uses table_name in order to describe the name of the
table, implying there shouldn't be any space in that name. Maybe it
could be made more explicit, with, i.e. a footnote somewhere.

 I fixed this locally with the attached patch, but I'm sure there are
 better solutions (I find it unintuitive that blanks terminate the
 input).

Another possibility is to return an error if the string read contains
any whitespace character.


Regards,

-- 
Nicolas Goaziou



[O] how to customise Emacs to recognise 13.10. as 13th of October this year instead of 2010-10-13?

2012-10-11 Thread Gregor Zattler
Dear org-moders,

today (2012-10-11) I yanked Kommt am 13.10. um 14:00 zum into
the date/time prompt: the date is recognised as 2010-10-13 Mi
14:00 instead of 2012-10-13 Sa 14:00 as I would expect since
I have the following customisations (excerpt):

(custom-set-variables
;[...]
 '(calendar-date-style (quote european))
;[...]
 '(diary-date-forms (quote ((day \\. ? month \\. ?[^0-9]) 
   (day \\. ? month \\. ? year [^0-9]) 
   (day / month [^/0-9]) 
   (day / month / year [^0-9]) 
   (backup day  * monthname 
\\W+([^*0-9]\\|\\([0-9]+[:aApP]\\)\\)) 
   (day  * monthname  * year [^0-9]) 
   (dayname \\W
;[...]
)

as part of my .init.el.


I thought the first diary date form would match this text but it
doesn't.  Even Kommt am 13.10.2012 um 14:00 zum is parsed as 
2010-10-13 Mi 14:00.  I thought the second diary date form
would match this.

Before I realised this I captured several events with wrong dates.

Any Ideas?

Ciao, Gregor



[O] [New exporter] Wrong export to LaTeX

2012-10-11 Thread Sebastien Vauban
Hi Nicolas,

When I try to export the following ECM:

--8---cut here---start-8---
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+OPTIONS: H:2
#+BEAMER_FRAME_LEVEL: 2

* First section

** First frame

Introduction: why?

** Second frame

Objective is...

* Second section

** Third frame

Conclusions are...
--8---cut here---end---8---

I get with the *old exporter*:

--8---cut here---start-8---
  % Created 2012-10-11 Thu 14:56
  \documentclass[presentation]{beamer}
  % ...

  \title{ecm}
  \author{Sebastien Vauban}
  \date{\today}
  \hypersetup{
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs Org-mode version 7.9.2}}

  \begin{document}

  \maketitle

  \begin{frame}
  \frametitle{Agenda}
  \setcounter{tocdepth}{2}
  \tableofcontents
  \end{frame}

  \section{First section}
  \label{sec-1}
  \begin{frame}
  \frametitle{First frame}
  \label{sec-1-1}


  Introduction: why?
  \end{frame}
  \begin{frame}
  \frametitle{Second frame}
  \label{sec-1-2}


  Objective is\ldots{}
  \end{frame}
  \section{Second section}
  \label{sec-2}
  \begin{frame}
  \frametitle{Third frame}
  \label{sec-2-1}


  Conclusions are\ldots{}
  \end{frame}

  \end{document}
--8---cut here---end---8---

and the following with the *new exporter*:

--8---cut here---start-8---
  % Created 2012-10-11 Thu 14:57
  \documentclass[presentation]{beamer}
  % ...

  \author{Sebastien Vauban}
  \date{\today}
  \title{ecm}
  \hypersetup{
pdfkeywords={},
pdfsubject={},
pdfcreator={}}
  \begin{document}

  \maketitle
  \tableofcontents
  \vspace*{1cm}


  \section{First section}
  \label{sec-1}

  \subsection{First frame}
  \label{sec-1-1}

  Introduction: why?
  \subsection{Second frame}
  \label{sec-1-2}

  Objective is\ldots{}
  \section{Second section}
  \label{sec-2}

  \subsection{Third frame}
  \label{sec-2-1}

  Conclusions are\ldots{}
  \end{document}
--8---cut here---end---8---

Notable differences:

- No frames are created!?
- (detail) PDFCreator is not set to Org-mode blah-blah (wished like that?)

Am I missing something?

Best regards,
  Seb

GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-29 on MARVIN
Org-mode version 7.9.2 (release_7.9.2-428-ge2e545 @ 
d:/home/sva/src/org-mode/lisp/)

-- 
Sebastien Vauban




[O] Combining multiple org files as chapters in a thesis

2012-10-11 Thread Subhasis Ray
Hi,
 I am trying to write my thesis using org-mode and followed this thread:
http://lists.gnu.org/archive/html/emacs-orgmode/2007-12/msg00034.html.
But instead of putting everything in one file, I was creating one file for
each chapter with the assumption that like LaTeX I should be able to
combine them in one master file.
I am able to export each chapter individually into PDF. I tried to include
them in the master file as this:

#+include ~/Documents/thesis/introduction.org
#+include ~/Documents/thesis/chapter1.org
#+include ~/Documents/thesis/chapter2.org
#+include ~/Documents/thesis/discussion.org

 but when I tried to export the master file, I get error messages on
figures that I created using tikz package (topbot is a shape I define using
tikz):

8---8-
Latexmk: Reference `fig:figure1' on page 18 undefined
...
...
! Package pgfkeys Error: I do not know the key '/tikz/topbot' and I am
going to
 ignore it. Perhaps you misspelled it.

8---8-

I have the same LaTeX headers in each file. I tried moving it to the top of
the master file but that did not help.
Concatenating all the files into one sort-of works but when I replaced
biblatex' \printbibliography[heading=none] at the end of each file with
\newrefsection[biliographyfile] in the combined file, the reference
sections become empty.

Is there a nice way to combine multiple org-files that I am missing?

Thanks,
  Subha


Re: [O] [New exporter] Wrong export to LaTeX

2012-10-11 Thread Suvayu Ali
Hello Seb,

On Thu, Oct 11, 2012 at 03:04:42PM +0200, Sebastien Vauban wrote:
 Hi Nicolas,
 
 When I try to export the following ECM:
 
 --8---cut here---start-8---
 #+LaTeX_CLASS: beamer
 #+LaTeX_CLASS_OPTIONS: [presentation]
 #+BEAMER_THEME: default
 #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
 %8BEAMER_opt(Opt)
 #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
 #+OPTIONS: H:2
 #+BEAMER_FRAME_LEVEL: 2

The above line is not needed anymore.  The OPTIONS line above determines
the structure.  So in your case just remove the BEAMER_FRAME_LEVEL line
and everything should be good.

If you want to override a particular headline and want to export it as a
frame anyway, you can use org-beamer-mode to set that headline with the
frame environment.

Hope this helps.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Combining multiple org files as chapters in a thesis

2012-10-11 Thread Suvayu Ali
Hi Subhasis,

Just a small remark:

On Thu, Oct 11, 2012 at 06:52:56PM +0530, Subhasis Ray wrote:
 Hi,
  I am trying to write my thesis using org-mode and followed this thread:
 http://lists.gnu.org/archive/html/emacs-orgmode/2007-12/msg00034.html.
 But instead of putting everything in one file, I was creating one file for
 each chapter with the assumption that like LaTeX I should be able to
 combine them in one master file.
 I am able to export each chapter individually into PDF. I tried to include
 them in the master file as this:
 
 #+include ~/Documents/thesis/introduction.org
 #+include ~/Documents/thesis/chapter1.org
 #+include ~/Documents/thesis/chapter2.org
 #+include ~/Documents/thesis/discussion.org
 

I believe your syntax here is incorrect.  It should be:

  #+include: /path/to/org/file.org

Welcome to Org mode; I wrote my thesis in Org mode last year although I
went with the one-big-file way.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] how to customise Emacs to recognise 13.10. as 13th of October this year instead of 2010-10-13?

2012-10-11 Thread Memnon Anon
Hi Gregor,

 today (2012-10-11) I yanked Kommt am 13.10. um 14:00 zum into
 the date/time prompt: the date is recognised as 2010-10-13 Mi
 14:00 instead of 2012-10-13 Sa 14:00 as I would expect since
 I have the following customisations (excerpt):

I just tried, it seems to work just fine here.

Not sure which customization is different. You may want to have a look
at http://memnon.sdf-eu.org/emacs.org and compare.

ELISP (emacs-version)
GNU Emacs 24.2.50.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2012-10-09 on dex, modified by Debian
ELISP (org-version)
7.9.2

Memnon




[O] Keyboard command to force done

2012-10-11 Thread Nathan Neff
Hello,

I'd like to create a keyboard shortcut to set a TODO
state to done and ignore any dependencies/blocking (like todo items
in subheadings, or checkboxes).

From the documentation for (org-todo) I see that I need to specify
the argument prefix of C-u C-u C-u

I have other keyboard shortcuts that do this also, but I can't successfully call
org-todo with a done argument.  Can anyone correct this function to be able
to specify done as an argument to 'org-todo?


(defun njn/force-done ()
(interactive)
(setq current-prefix-arg '(64)) ; specify universal argument as
C-u C-u C-u (4*4*4)
(call-interactively 'org-todo))  ; don't know the syntax to pass
'done to 'org-todo
)

Thanks,
--Nate



Re: [O] [New exporter] Wrong export to LaTeX

2012-10-11 Thread Sebastien Vauban
Hello Suvayu,

Suvayu Ali wrote:
 On Thu, Oct 11, 2012 at 03:04:42PM +0200, Sebastien Vauban wrote:
 When I try to export the following ECM:
 
 --8---cut here---start-8---
 #+LaTeX_CLASS: beamer
 #+LaTeX_CLASS_OPTIONS: [presentation]
 #+BEAMER_THEME: default
 #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
 %8BEAMER_opt(Opt)
 #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
 #+OPTIONS: H:2
 #+BEAMER_FRAME_LEVEL: 2

 The above line is not needed anymore.  The OPTIONS line above determines
 the structure.  So in your case just remove the BEAMER_FRAME_LEVEL line
 and everything should be good.

I know that -- but you're right repeating it anyway. If I have written it,
it's with the objective of having an ECM that compiles both with the new and
the old exporter.

However, I did not have the BEAMER_FRAME_LEVEL line to begin with the new
exporter, and it did not work. Reason why I tried the old one.

So, in my case, removing the above line does not solve anything.

There must be something obviously wrong somewhere (in my setup?) but I don't
find what at this moment...

 If you want to override a particular headline and want to export it as a
 frame anyway, you can use org-beamer-mode to set that headline with the
 frame environment.

 Hope this helps.

Not yet ;-(

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Combining multiple org files as chapters in a thesis

2012-10-11 Thread Subhasis Ray
On Thu, Oct 11, 2012 at 7:20 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote:

 Hi Subhasis,

 Just a small remark:

 On Thu, Oct 11, 2012 at 06:52:56PM +0530, Subhasis Ray wrote:
  Hi,
   I am trying to write my thesis using org-mode and followed this thread:
  http://lists.gnu.org/archive/html/emacs-orgmode/2007-12/msg00034.html.
  But instead of putting everything in one file, I was creating one file
 for
  each chapter with the assumption that like LaTeX I should be able to
  combine them in one master file.
  I am able to export each chapter individually into PDF. I tried to
 include
  them in the master file as this:
 
  #+include ~/Documents/thesis/introduction.org
  #+include ~/Documents/thesis/chapter1.org
  #+include ~/Documents/thesis/chapter2.org
  #+include ~/Documents/thesis/discussion.org
 

 I believe your syntax here is incorrect.  It should be:

   #+include: /path/to/org/file.org

 Welcome to Org mode; I wrote my thesis in Org mode last year although I
 went with the one-big-file way.

 Cheers,

 Thanks for your response. I just checked that both forms work. Actually I
had inserted the files interactively using the org key binding: I TAB.
I did come across your posts in the mailing list. Your contributions have
been useful.
Subhasis


Re: [O] how to customise Emacs to recognise 13.10. as 13th of October this year instead of 2010-10-13?

2012-10-11 Thread Gregor Zattler
Hi Memnon,
* Memnon Anon gegendosenflei...@googlemail.com [11. Oct. 2012]:
 today (2012-10-11) I yanked Kommt am 13.10. um 14:00 zum into
 the date/time prompt: the date is recognised as 2010-10-13 Mi
 14:00 instead of 2012-10-13 Sa 14:00 as I would expect since
 I have the following customisations (excerpt):
 
 I just tried, it seems to work just fine here.
 
 Not sure which customization is different. You may want to have a look
 at http://memnon.sdf-eu.org/emacs.org and compare.

This is strange: I searched your Emacs.org dor `date' and the
only relevant customisations are IMHO 

(setq european-calendar-style t ; obsolete!
calendar-date-style 'european
...

I tried with emacs-snapshot -Q and this single customisation: No
luck. 


 ELISP (emacs-version)
 GNU Emacs 24.2.50.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2)
  of 2012-10-09 on dex, modified by Debian
 ELISP (org-version)
 7.9.2

Ah, sorry: 

GNU Emacs 24.2.50.1 (i486-pc-linux-gnu, X toolkit, Xaw scroll
bars) of 2012-10-09 on dex, modified by Debian

Org-mode version 7.9.2 (release_7.9.2-434-gc23dea @


Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-



Re: [O] Combining multiple org files as chapters in a thesis

2012-10-11 Thread Subhasis Ray
On Thu, Oct 11, 2012 at 6:52 PM, Subhasis Ray ray.subha...@gmail.comwrote:

 Concatenating all the files into one sort-of works but when I replaced
 biblatex' \printbibliography[heading=none] at the end of each file with
 \newrefsection[biliographyfile] in the combined file, the reference
 sections become empty.


I figured out that I misunderstood the docs for \newrefsection which is
showed with example here:
http://stackoverflow.com/questions/2503555/using-latex-how-can-i-have-a-list-of-references-at-the-end-of-each-section

Now I can make the chapter title the top level header in each file and then
put \newrefsection just after it and insert \printbibliography at the end
and the includes work with proper bibliography. Now the tikz issue remains
to be resolved. I'd love it if #+TITLE: chapter title automatically
became a section and everything under that turned into subsections at
proper depths though.
Thanks,
  Subhasis


[O] Use default value if a variable is not defined

2012-10-11 Thread Nathan Neff
Hello,

I'm trying to create a function that will tell org-capture
dynamically where to put the captured item.

I have it almost working -- where I'm getting hung up on is
with basic Emacs lisp.  I want to basically implement this
pseudo code:

IF I have defined a variable called njn/current-q-file then
(find-file njn/current-q-file)
ELSE
   (find-file (questions.org)))



However, if I do not define my njn/current-q-file then
I get a Symbol's value as variable is void error when Emacs starts up.

How do I test for the existence (and non-nil ness of a variable in Emacs)

Thanks,
--Nate



Re: [O] [New exporter] Wrong export to LaTeX

2012-10-11 Thread Nicolas Goaziou


Hello,

Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 When I try to export the following ECM:

 #+LaTeX_CLASS: beamer
 #+LaTeX_CLASS_OPTIONS: [presentation]

[...]

 Notable differences:

 - No frames are created!?
 - (detail) PDFCreator is not set to Org-mode blah-blah (wished like that?)

 Am I missing something?

That's because Beamer is now a back-end on its own, not a patch over the
LaTeX one. In the old exporter, Beamer translation was triggered with
#+latex_class: beamer. This is not necessary anymore.

All you have to do is to (require 'org-e-beamer) and use the appropriate
entry in the dispatcher menu. You can have a Beamer translation on any
class, including article and so on.

That's why (add-to-list 'org-e-latex-classes beamer ...) doesn't make
much sense anyway (as suggested in another post).


Regards,

-- 
Nicolas Goaziou




Re: [O] New exporter

2012-10-11 Thread Yagnesh Raghava Yakkala



Hello Sebastien,

Unless you found a bug in org-export-dispatch, I think its `C-c E l p' (since
you have C-c E for org-export-dispatch). Watch the highlighted characters as
you press `l'. The difference is you need to press two keys instead of one as
in old one in the dispatcher window.

Actually I found that the new dispatch command is designed more sophisticated
way even though there is an extra key press.

 Of course there is also obvious another way `M-x org-e-latex-export-to-pdf'.



Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org
writes:

 Hello Nicolas,

 I want to (really) start using the new exporter as of now. I think it's high
 time for me to benefit from it...

 Here some first comments and questions.

 I've been hit by trying to export with `C-c E p' [1] to PDF, but had troubles
 doing so. In fact, I had to do `C-c l p' -- though the new dispatcher is much
 more clear and _easy_ to use, I thought there was a problem.

 Why? Because there was no beep to say that `p' entered at that moment was a
 wrong choice, nor other form of message. I think that'd help, if there was
 such a sound produced, for example. Right now, the bad keys are simply ignored
 without further notice.

 Second thing that puzzled me: the focus (active modeline) is on the window
 with the Org source, not on the window with the dispatcher. It was the same
 with the old exporter, but I wonder whether it must be like that, or whether
 that could be changed, to emphasize that the key events are well going to the
 dispatcher window?

 At first, I thought that my first problem (`p' not doing anything was due to
 that -- dispatcher window not active). I wanted to switch over to it (via
 `F6' [2]) and ended with garbage in the echo area... C-c E p f6 p p f6...

 Does this make sense?

 Best regards,
   Seb

 [1] I have `C-c E' mapped to `org-export-dispatch'.

 [2] I have `f6' mapped to `other-window'.


Thanks.,
-- 
ఎందరో మహానుభావులు అందరికి వందనములు
YYR




Re: [O] [New exporter] Wrong export to LaTeX

2012-10-11 Thread Suvayu Ali
Hi Nicolas,

On Thu, Oct 11, 2012 at 03:21:06PM +0200, Nicolas Goaziou wrote:
 
 
 Hello,
 
 Sebastien Vauban
 wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:
 
  When I try to export the following ECM:
 
  #+LaTeX_CLASS: beamer
  #+LaTeX_CLASS_OPTIONS: [presentation]
 
 [...]
 
  Notable differences:
 
  - No frames are created!?
  - (detail) PDFCreator is not set to Org-mode blah-blah (wished like that?)
 
  Am I missing something?
 
 That's because Beamer is now a back-end on its own, not a patch over the
 LaTeX one. In the old exporter, Beamer translation was triggered with
 #+latex_class: beamer. This is not necessary anymore.
 
 All you have to do is to (require 'org-e-beamer) and use the appropriate
 entry in the dispatcher menu. You can have a Beamer translation on any
 class, including article and so on.
 
 That's why (add-to-list 'org-e-latex-classes beamer ...) doesn't make
 much sense anyway (as suggested in another post).
 

I believe you are refering to my minimal setup.  However when I try to
export to beamer (Seb's ECM) without the

  (add-to-list 'org-e-latex-classes '(beamer ...))

bit, I get a backtrace (attached).  Is that a bug?

-- 
Suvayu

Open source is the future. It sets us free.
Debugger entered--Lisp error: (void-function org-macro-initialize-templates)
  (org-macro-initialize-templates)
  org-export-expand-macro((:author (Suvayu Ali) :creator Generated by Org 
mode 7.9.2 in Emacs 24.2.50.1. :date ((latex-fragment (:value \\today :begin 
1 :end 7 :post-blank 0 :parent nil))) :description nil :email 
jal...@kuru.dyndns-at-home.com :exclude-tags (noexport) :headline-levels 2 
:keywords nil :language en :preserve-breaks nil :section-numbers t 
:select-tags (export) :time-stamp-file t :title beamer-test 
:with-archived-trees headline :with-author t :with-clocks nil :with-creator 
comment :with-drawers nil :with-email nil :with-emphasize t :with-entities t 
:with-fixed-width t :with-footnotes t :with-inlinetasks t ...))
  (if noexpand nil (org-export-expand-include-keyword) 
(org-update-radio-target-regexp) (org-export-expand-macro info) (let 
((org-current-export-file buf)) (org-export-blocks-preprocess)))
  (progn (if noexpand nil (org-export-expand-include-keyword) 
(org-update-radio-target-regexp) (org-export-expand-macro info) (let 
((org-current-export-file buf)) (org-export-blocks-preprocess))) (goto-char 
(point-min)) (run-hook-with-args (quote org-export-before-parsing-hook) 
backend) (org-element-parse-buffer nil visible-only))
  (let ((buffer-invisibility-spec nil)) (org-clone-local-variables 
--original-buffer 
^\\(org-\\|orgtbl-\\|major-mode$\\|outline-\\(regexp\\|level\\)$\\)) (insert 
--buffer-string) (mapc (lambda (ov) (move-overlay ov (- (overlay-start ov) 
--offset) (- (overlay-end ov) --offset) (current-buffer))) --overlays) 
(goto-char (point-min)) (progn (if noexpand nil 
(org-export-expand-include-keyword) (org-update-radio-target-regexp) 
(org-export-expand-macro info) (let ((org-current-export-file buf)) 
(org-export-blocks-preprocess))) (goto-char (point-min)) (run-hook-with-args 
(quote org-export-before-parsing-hook) backend) (org-element-parse-buffer nil 
visible-only)))
  (progn (let ((buffer-invisibility-spec nil)) (org-clone-local-variables 
--original-buffer 
^\\(org-\\|orgtbl-\\|major-mode$\\|outline-\\(regexp\\|level\\)$\\)) (insert 
--buffer-string) (mapc (lambda (ov) (move-overlay ov (- (overlay-start ov) 
--offset) (- (overlay-end ov) --offset) (current-buffer))) --overlays) 
(goto-char (point-min)) (progn (if noexpand nil 
(org-export-expand-include-keyword) (org-update-radio-target-regexp) 
(org-export-expand-macro info) (let ((org-current-export-file buf)) 
(org-export-blocks-preprocess))) (goto-char (point-min)) (run-hook-with-args 
(quote org-export-before-parsing-hook) backend) (org-element-parse-buffer nil 
visible-only
  (unwind-protect (progn (let ((buffer-invisibility-spec nil)) 
(org-clone-local-variables --original-buffer 
^\\(org-\\|orgtbl-\\|major-mode$\\|outline-\\(regexp\\|level\\)$\\)) (insert 
--buffer-string) (mapc (lambda (ov) (move-overlay ov (- (overlay-start ov) 
--offset) (- (overlay-end ov) --offset) (current-buffer))) --overlays) 
(goto-char (point-min)) (progn (if noexpand nil 
(org-export-expand-include-keyword) (org-update-radio-target-regexp) 
(org-export-expand-macro info) (let ((org-current-export-file buf)) 
(org-export-blocks-preprocess))) (goto-char (point-min)) (run-hook-with-args 
(quote org-export-before-parsing-hook) backend) (org-element-parse-buffer nil 
visible-only (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (let 
((buffer-invisibility-spec nil)) (org-clone-local-variables --original-buffer 
^\\(org-\\|orgtbl-\\|major-mode$\\|outline-\\(regexp\\|level\\)$\\)) (insert 
--buffer-string) (mapc (lambda (ov) (move-overlay ov (- ... --offset) (- ... 
--offset) (current-buffer))) --overlays) (goto-char 

Re: [O] C-c ^ for plain lists? Why not?

2012-10-11 Thread François Pinard
James Harkins jamshar...@gmail.com writes:

 But I'm running into the limitation that plain lists can't be sorted
 *by their checklist status*.  You can sort alphabetically, numerically
 or by time or function.

Hi, Org people.

Just quickly perusing this list, this message reminds me of an old
annoyance in Org sorting, by which [[A]][C]] and [[B]] were sorted along
A-C followed by B, while I would have hoped to see B first and C second.
In other words, they were sorted according to invisible criteria, while
I would have hoped them to be sorted according to what I see.  But I did
not recently check if this has been addressed since then.

François



Re: [O] [New exporter] Wrong export to LaTeX

2012-10-11 Thread Nicolas Goaziou
Hello,

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

 That's why (add-to-list 'org-e-latex-classes beamer ...) doesn't make
 much sense anyway (as suggested in another post).
 
 I believe you are refering to my minimal setup.

No, I was referring to Sébastien Vauban's previous post, in which he
suggested to add a default beamer entry in `org-e-latex-classes'.

 However when I try to export to beamer (Seb's ECM) without the

   (add-to-list 'org-e-latex-classes '(beamer ...))

With a minimal setup, the ECM won't export because the file explicitly
asks for a beamer class, which isn't defined.

In other words, you can use Beamer back-end on any class, as long as
this class is defined in `org-e-latex-classes'. It doesn't have to be
named beamer.

 bit, I get a backtrace (attached).  Is that a bug?

This is strange. The error comes from a void function, although it is
defined in org.el. I suppose you get the error because you use
`load-library' instead of `require'. You may want to (load-library
org) to fix it.


Regards,

-- 
Nicolas Goaziou



Re: [O] Error on reload but none in Messages Buffer?

2012-10-11 Thread Achim Gratz
Suvayu Ali writes:
 I have a couple of third party org libraries that are causing this
 problem for me.  I couldn't follow the discussion properly, could you
 please elaborate how I might fix these libraries so that org-reload
 works properly?

Whatever your problem is, it's clearly different from the one that was
discussed.

 Here are my messages:

   Some error occured while reloading Org features
   (org-occur-goto org-search-goto)
   Please check *Messages*!
   Org-mode version 7.9.2 (release_7.9.2-434-gc23dea @ ...)

So did you check *Messages*?  What do these libraries return when loaded
(they should return t).


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

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




Re: [O] Error on reload but none in Messages Buffer?

2012-10-11 Thread Suvayu Ali
Hi Achim,

On Thu, Oct 11, 2012 at 08:17:57PM +0200, Achim Gratz wrote:
 Suvayu Ali writes:
  Here are my messages:
 
Some error occured while reloading Org features
(org-occur-goto org-search-goto)
Please check *Messages*!
Org-mode version 7.9.2 (release_7.9.2-434-gc23dea @ ...)
 
 So did you check *Messages*?  What do these libraries return when loaded
 (they should return t).
 

I thought I skimmed through it, but I apparently missed them!  Anyway
they do return t but it is obvious from the message below that
org-reload does not like that these libraries are not in the usual org
directories (they are not part of contrib).

  Loading /home/jallad/.emacs.d/lisp/org-occur-goto.el (source)...done
  Had to fall back onto load-path, something is not quite right...
  
  [...]
  
  Loading /home/jallad/.emacs.d/lisp/org-search-goto...done
  Had to fall back onto load-path, something is not quite right...

Does this mean I will have to live with it or is there a work around?

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Error on reload but none in Messages Buffer?

2012-10-11 Thread Achim Gratz
Suvayu Ali writes:
 I thought I skimmed through it, but I apparently missed them!  Anyway
 they do return t but it is obvious from the message below that
 org-reload does not like that these libraries are not in the usual org
 directories (they are not part of contrib).

They are not part of Org, but you've put them into the namespace of Org.

 Does this mean I will have to live with it or is there a work around?

You can put them into the contrib dir (which is found by looking up
where org-contribdir would load from).  There can only one such place.
Or you rename them so that they don't start with org.


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Error on reload but none in Messages Buffer?

2012-10-11 Thread Suvayu Ali
On Thu, Oct 11, 2012 at 09:06:42PM +0200, Achim Gratz wrote:
 Suvayu Ali writes:
  I thought I skimmed through it, but I apparently missed them!  Anyway
  they do return t but it is obvious from the message below that
  org-reload does not like that these libraries are not in the usual org
  directories (they are not part of contrib).
 
 They are not part of Org, but you've put them into the namespace of Org.
 

Well, I just got them from Emacswiki; they were originally posted on
this list.

  Does this mean I will have to live with it or is there a work around?
 
 You can put them into the contrib dir (which is found by looking up
 where org-contribdir would load from).  There can only one such place.
 Or you rename them so that they don't start with org.
 

Thanks a lot for both suggestions.  I will see which one suits me best.

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Error on reload but none in Messages Buffer?

2012-10-11 Thread Nicolas Goaziou
Hello,

Achim Gratz strom...@nexgo.de writes:

 Suvayu Ali writes:
 I thought I skimmed through it, but I apparently missed them!  Anyway
 they do return t but it is obvious from the message below that
 org-reload does not like that these libraries are not in the usual org
 directories (they are not part of contrib).

 They are not part of Org, but you've put them into the namespace of
 Org.

By the way shouldn't testing/ and testing/lisp/ directories be allowed
to contain features? At the moment reloading with feature `org-test'
present returns errors like:

  Loading ~/.emacs.d/org-mode/testing/org-test.el (source)...done
  Had to fall back onto load-path, something is not quite right...


Regards,

-- 
Nicolas Goaziou



Re: [O] Error on reload but none in Messages Buffer?

2012-10-11 Thread Achim Gratz
Nicolas Goaziou writes:
 By the way shouldn't testing/ and testing/lisp/ directories be allowed
 to contain features? At the moment reloading with feature `org-test'
 present returns errors like:

It's a warning, not an error.  It's there so that you aren't missing
when a file is not loaded from where it should be loaded from.  In this
case it's easy to see that only the org-test files are involved and you
don't even need to look into *Messages*.

   Loading ~/.emacs.d/org-mode/testing/org-test.el (source)...done
   Had to fall back onto load-path, something is not quite right...

IMHO, org-test and org-test-ob-consts should probably not be reloaded by
org-reload, so they could be filtered out.  Taking a leaf from babel and
perhaps the new exporter, giving them a prefix of ot- rather than
org-test might be an idea for the future.


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

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] New exporter

2012-10-11 Thread Nicolas Goaziou


Hello,

Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 I've been hit by trying to export with `C-c E p' [1] to PDF, but had troubles
 doing so. In fact, I had to do `C-c l p' -- though the new dispatcher is much
 more clear and _easy_ to use, I thought there was a problem.

 Why? Because there was no beep to say that `p' entered at that moment was a
 wrong choice, nor other form of message. I think that'd help, if there was
 such a sound produced, for example. Right now, the bad keys are simply ignored
 without further notice.

 Second thing that puzzled me: the focus (active modeline) is on the window
 with the Org source, not on the window with the dispatcher. It was the same
 with the old exporter, but I wonder whether it must be like that, or whether
 that could be changed, to emphasize that the key events are well going to the
 dispatcher window?

 At first, I thought that my first problem (`p' not doing anything was due to
 that -- dispatcher window not active). I wanted to switch over to it (via
 `F6' [2]) and ended with garbage in the echo area... C-c E p f6 p p f6...

 Does this make sense?

It does. I've implemented suggested changes in master. Thanks for
suggesting them.


Regards,

-- 
Nicolas Goaziou




Re: [O] [PATCH] org-insert-link: allow ido usage when inserting links

2012-10-11 Thread Samuel Wales
Slighly different from this, I wonder if anybody has anything similar:

I have blog entries with a :Live-URL: property.  What I'd like is to
use ido to complete on the header that contains that property, and
create a link with the value of that property as the URL and the
header offered as default for the description.

Maybe this is too different?

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com



Re: [O] Publishing using the new exporter

2012-10-11 Thread Nicolas Goaziou
Hello,

Robert Klein klein...@mpip-mainz.mpg.de writes:

 I did some more tests and it seems the issue happens when Emacs is just 
 started and nothing (much) done in it.

 Test description below.

Thank you for the thorough testing. I was able to reproduce the bug and
you're right: setting default-directory is the only way out. I've
committed a patch doing this.

If you confirm that the problem is solved, I'll also apply the same
changes to e-texinfo, e-man and e-groff back-ends.


Regards,

-- 
Nicolas Goaziou



[O] link creation, ido usage, and headers

2012-10-11 Thread tony day
Hi Sam,

On 12 Oct 2012, at 07:17, Samuel Wales samolog...@gmail.com wrote:

 Slighly different from this, I wonder if anybody has anything similar:
 
 I have blog entries with a :Live-URL: property.  What I'd like is to
 use ido to complete on the header that contains that property, and
 create a link with the value of that property as the URL and the
 header offered as default for the description.
 
 Maybe this is too different?
 

Not too different.  Expanding the org-insert-link types to include headers was 
on my todo list (somewhere).  I think much of the functionality you need is 
already in the org-refile process.  In particular, the help for 
org-refile-targets says:

#+begin_quote
  A specification of how to find candidate refile targets.  This may be
  any of:
  - a cons cell (:tag . TAG) to identify refile targets by a tag.
This tag has to be present in all target headlines, inheritance will
not be considered.
 #+end_quote
  
Rerouting the org refile technology to the link tech may be a one liner, or may 
be hard.  Others will have a better sense of the scope.

Tony


Re: [O] [PATCH] org-insert-link: allow ido usage when inserting links

2012-10-11 Thread tony day


On 11 Oct 2012, at 23:23, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Thanks for submitting a patch. Here are a few comments.

Hi Nicolas, thanks for taking the time to go through the code.  I will resubmit 
the patch in a separate mail (I didn't know whether I could respond to your 
suggestions and submit a new patch in the same mail).

 Entries should end with a period (not the title, though). Also, if you
 haven't signed FSF papers yet, you should append TINYCHANGE on a line
 on its own.

I have signed the FSF papers and they have been processed.

 I don't see the interest of this change nor how it is related to
 allowing ido usage to insert links. Can
 
  (append
(mapcar (lambda (x) (list (concat x :))) all-prefixes)
(mapcar 'car org-stored-links)
(mapcar 'cadr org-stored-links))
 
 contain nil values?
 
 If so, adding a (delq nil (append ...)) should be enough. This should be
 a separate patch anyway.

The problem is actualy the list bit, which causes a bug when using ido (but not 
when using normal completion).

Having gone through it again, I don't think the append can contain nil values, 
so I removed that bit.

 Shouldn't `read-file-name' become
 `org-iread-file-name'? 

Agreed and changed.

I don't think the patch can be split into two - the bug from list is only a bug 
if ido is used.

Here's some test code it case it helps:

- unit test
#+begin_src emacs-lisp
  ;;(setq org-stored-links nil)
  (setq org-stored-links 
'((#(file:~/stuff/org/bugz.org::*current debugging 28 35 
(fontified t org-category bugz line-prefix #(* 0 1 (face org-hide)) 
wrap-prefix #( 0 4 (face org-indent)) face org-level-2) 36 45 (fontified 
t org-category bugz line-prefix #(* 0 1 (face org-hide)) wrap-prefix #(
 0 4 (face org-indent)) face org-level-2)) current debugging)))
  ;;(setq org-stored-links
  ;;  '((#(file:~/stuff/org/bugz.org::*test link 2 28 32 (fontified t 
line-prefix #(** 0 2 (face org-hide)) wrap-prefix #(   0 6 (face 
org-indent)) face org-level-3) 33 37 (fontified t line-prefix #(** 0 2 (face 
org-hide)) wrap-prefix #(   0 6 (face org-indent)) face org-level-3) 38 
39 (fontified t line-prefix #(** 0 2 (face org-hide)) wrap-prefix #(   
0 6 (face org-indent)) face org-level-3)) test link 2) 
(#(file:~/stuff/org/bugz.org::*test link 1 28 32 (fontified t line-prefix 
#(** 0 2 (face org-hide)) wrap-prefix #(   0 6 (face org-indent)) face 
org-level-3) 33 37 (fontified t line-prefix #(** 0 2 (face org-hide)) 
wrap-prefix #(   0 6 (face org-indent)) face org-level-3) 38 39 
(fontified t line-prefix #(** 0 2 (face org-hide)) wrap-prefix #(   0 6 
(face org-indent)) face org-level-3)) test link 1)))
  (setq abbrevs org-link-abbrev-alist-local)
  (setq all-prefixes (append org-link-types
 (mapcar 'car abbrevs)
 (mapcar 'car org-link-abbrev-alist)))
  (setq all-links (append
   (mapcar 'cadr org-stored-links)
   (mapcar (lambda (x) (concat x :))
   all-prefixes)
   (mapcar 'car org-stored-links)))
  ;;(setq all-links (delete nil all-links))
  (print (loop for link in all-links
   collect
   (list link)))  
   
  #+end_src


Tony








[O] [PATCH] * org-insert-link: use ido when inserting links

2012-10-11 Thread tony day

org.el (org-insert-link): removed a list within the list of link
creation that was causing a bug when using ido.  Removed the hard coded
iswitch and ido switches. Changed the order of prefixes so http came
up first.

(org-iread-file-name): created a function that can use
ido-read-file-name if flagged as ok.

(org-file-complete-link): referenced org-iread-file-name.
---
 lisp/org.el |   44 
 1 file changed, 28 insertions(+), 16 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index bdfc919..41c2572 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9311,24 +9311,22 @@ Use TAB to complete link prefixes, then RET for 
type-specific completion support
   ;; Fake a link history, containing the stored links.
   (setq tmphist (append (mapcar 'car org-stored-links)
org-insert-link-history))
-  (setq all-prefixes (append (mapcar 'car abbrevs)
-(mapcar 'car org-link-abbrev-alist)
-org-link-types))
+  (setq all-prefixes (append org-link-types
+ (mapcar 'car abbrevs)
+ (mapcar 'car org-link-abbrev-alist)))
   (unwind-protect
  (progn
(setq link
- (let ((org-completion-use-ido nil)
-   (org-completion-use-iswitchb nil))
-   (org-completing-read
-Link: 
-(append
- (mapcar (lambda (x) (list (concat x :)))
- all-prefixes)
- (mapcar 'car org-stored-links)
- (mapcar 'cadr org-stored-links))
-nil nil nil
-'tmphist
-(caar org-stored-links
+ (org-completing-read
+   Link: 
+  (append
+   (mapcar 'cadr org-stored-links)
+   (mapcar (lambda (x) (concat x :))
+   all-prefixes)
+   (mapcar 'car org-stored-links))
+  nil nil nil
+   'tmphist
+   (cadr org-stored-links)))
(if (not (string-match \\S- link))
(error No link selected))
(mapc (lambda(l)
@@ -9422,7 +9420,7 @@ Use TAB to complete link prefixes, then RET for 
type-specific completion support
 (defun org-file-complete-link (optional arg)
   Create a file link using completion.
   (let (file link)
-(setq file (read-file-name File: ))
+(setq file (org-iread-file-name File: ))
 (let ((pwd (file-name-as-directory (expand-file-name .)))
  (pwd1 (file-name-as-directory (abbreviate-file-name
 (expand-file-name .)
@@ -9440,6 +9438,20 @@ Use TAB to complete link prefixes, then RET for 
type-specific completion support
(t (setq link (concat file: file)
 link))
 
+(defun org-iread-file-name (rest args)
+  Read-file-name using `ido-mode' speedup if available.
+ARGS are arguments that may be passed to `ido-read-file-name' or 
`read-file-name'.
+See `read-file-name' for a description of parameters.
+
+  (org-without-partial-completion
+   (if (and org-completion-use-ido
+(fboundp 'ido-read-file-name)
+(boundp 'ido-mode) ido-mode
+(listp (second args)))
+   (let ((ido-enter-matching-directory nil))
+ (apply 'ido-read-file-name args))
+ (apply 'read-file-name args
+
 (defun org-completing-read (rest args)
   Completing-read with SPACE being a normal character.
   (let ((enable-recursive-minibuffers t)
-- 
1.7.9.6 (Apple Git-31.1)