[Orgmode] org-cycle-agenda-files is not cycling through all my 15 agenda files - bug?

2010-06-01 Thread Charles Cave
I restructured my personal productivity system from 3 files to 15 files
all of which are in my agenda file list.

The problem is that when I  used the C-' (org-cycle-agenda-files)
org-mode only cycles through 4 of the files. Needless to say, this
is annoying and I have to go to the menu to call-up the file list
then choose file.

My org-mode is version 6.36c running on GNU Emeacs 23.1.1 on Windows XP.

Here is my file list from .emacs

 '(org-agenda-files (quote (c:/Charles/GTD/taskdiary.org
c:/Charles/GTD/newgtd.org
c:/Charles/GTD/IR.org
c:/Charles/GTD/kyo.org
c:/Charles/GTD/chinglish.org
c:/Charles/GTD/chat_er_pres.org
c:/Charles/GTD/certiv.org
c:/Charles/GTD/cer_publicity.org
c:/Charles/GTD/storytelling.org
c:/Charles/GTD/reading.org
c:/Charles/GTD/drawing.org
c:/Charles/GTD/fitness.org
c:/Charles/GTD/storytelling.org
c:/Charles/GTD/birthday.org
c:/Charles/GTD/music.org
)
   )
)





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


Re: [Orgmode] org-cycle-agenda-files is not cycling through all my 15 agenda files - bug?

2010-06-01 Thread Livin Stephen Sharma

how many does it iterate over? which does it skip?

is the highlighted entry intentionally included twice?


On Jun 01, 2010, at 12:17:32 , Charles Cave wrote:

 '(org-agenda-files (quote (c:/Charles/GTD/taskdiary.org
c:/Charles/GTD/newgtd.org
c:/Charles/GTD/IR.org
c:/Charles/GTD/kyo.org
c:/Charles/GTD/chinglish.org
c:/Charles/GTD/chat_er_pres.org
c:/Charles/GTD/certiv.org
c:/Charles/GTD/cer_publicity.org
c:/Charles/GTD/storytelling.org  repeat ?
c:/Charles/GTD/reading.org
c:/Charles/GTD/drawing.org
c:/Charles/GTD/fitness.org
c:/Charles/GTD/storytelling.org  ?
c:/Charles/GTD/birthday.org
c:/Charles/GTD/music.org
)
   )
)

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


Re: [Orgmode] Org-mode todo and Lotus Notes ToDo

2010-06-01 Thread David Maus
Srinivas wrote:
Has anyone tried to integrate Org-mode todo items with Lotus Notes
ToDo items?  I am interested in at least populating from orgmode to
Lotus Notes and not necessarily looking for reverse population.

I don't know if it is possible to access Lotus Notes ToDo items
directly from outside.  I suppose Lotus Notes is capable of importing
other file formats like iCal, so you could try to keep Lotus Notes up
to date with your Org todo items via exporting from Org to, say, iCal
and then importing iCal into Lotus Notes.

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


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


Re: [Orgmode] byte-code: Key sequence contains invalid event

2010-06-01 Thread David Maus
Alexandre Billon wrote:
[1  multipart/alternative (7bit)]
[1.1  text/plain; UTF-8 (7bit)]

[1.2  text/html; UTF-8 (quoted-printable)]
Dear list members,
I updated my org-mode files a month ago and since then, I get the following 
error message

byte-code: Key sequence contains invalid event 

 when I

1. Try to export files to other formats (LaTex and html)
2. Try to use org-remember
3. create a new .org file

This makes 1 and 2 unsuccessful. Can anyone help?

I am currently using org-mode 6-36c on Mac-OS X either with Acquamacs 2 or 
with Emacs 23.2. 

Could you generate a backtrace that shows which key sequence Emacs is
complaining about?

(setq debug-on-error t)

and reproduce the error.  For a good back trace you might as well
remove the byte compiled Org mode files (*.elc), reload Org and try
again.

HTH
  -- David

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


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


Re: [Orgmode] org-export-as-pdf: Unable to disable timestamp

2010-06-01 Thread David Maus
chandan wrote:
Hi,
I am using org-mode available on GNU Emacs 23.2. org-export-as-pdf
generates a *.pdf file with a timestamp at the beginning even though I
have added the following line in my *.org file.

#+OPTIONS: timestamp:nil


The timestamp option does not work, because the date is not a
timestamp, but whatever the in-buffer option #+DATE is set to or, if
there is no such in-buffer option, (current-time).

It's not exactly an Org mode issue: To create a PDF document, Org mode
first exports the file to LaTeX and than calls the LaTeX processor to
create to PDF file.  Upon exporting to LaTeX Org inserts a line with
the date into the document (e.g. \date{01 Juni 2010}).

But, whether or not the date is displayed in the PDF first depends on
the LaTeX class you use.  E.g. the class (like article, report etc.)
makes an assumption what should be shown in the beginning (title) of
a document.

So, there are two options: Either change the LaTeX class or as a
workaround simply set the #+DATE option to an empty string.

,
| #+DATE:
`

HTH
  -- David

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


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


Re: [Orgmode] Re: Bug with footnote mode + org-mode ?

2010-06-01 Thread Carsten Dominik


On May 31, 2010, at 7:42 PM, Alexandre Billon wrote:


The problem disappears when I comment out those two lines


(add-hook 'org-mode-hook 'footnote-mode)


Org-mode has its own footnote support, are you sure you want to use  
footnote-mode?






(setq footnote-prefix [[(control c) (f)]])


This syntax looks wrong to me.  The following should work:

(setq footnote-prefix \C-cf)

or alternatively

(setq footnote-prefix [(control c) ?f])

Where did you find the syntax you were trying?

HTH

- Carsten



When I do not comment them out, I get the following backtraces :


1. When I create a new org file testest.org
Debugger entered--Lisp error: (error Key sequence contains invalid  
event)
  define-key((keymap) [[(control c) (f)]] (keymap (115 . Footnote- 
set-style) (114 . Footnote-renumber-footnotes) (103 . Footnote-goto- 
footnote) (100 . Footnote-delete-footnote) (99 . Footnote-cycle- 
style) (98 . Footnote-back-to-message) (97 . Footnote-add-footnote)))
  byte-code(\303 \304 \n#\210 )\207 [map footnote-prefix  
footnote-mode-map make-sparse-keymap define-key] 4)
  (defvar footnote-minor-mode-map (byte-code \303 \304 \n#\210 ) 
\207 [map footnote-prefix footnote-mode-map make-sparse-keymap  
define-key] 4) (/Applications/Aquamacs.app/Contents/Resources/lisp/ 
mail/footnote.elc . 19879))

  footnote-mode()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(t t)
  find-file-noselect-1(#buffer testestest.org ~/Documents/Textes/ 
org/testestest.org nil nil ~/Documents/Textes/org/testestest.org  
nil)
  find-file-noselect(~/Documents/Textes/org/testestest.org nil nil  
t)
  (let ((value ...)) (if tabbar-mode (if ... ... ...)  
(if ... ... ...)))

  aquamacs-find-file-2(~/Documents/Textes/org/testestest.org t)
  call-interactively(aquamacs-find-file-2)
  (if filename (aquamacs-find-file-2 filename) (call-interactively  
(quote aquamacs-find-file-2)))
  (if (or (not one-buffer-one-frame) filename ( ... 2)) (if  
filename (aquamacs-find-file-2 filename) (call-interactively ...))  
(new-empty-buffer nil (quote fundamental-mode)) (let (...) (unwind- 
protect ... ...)))

  aquamacs-find-file()
  call-interactively(aquamacs-find-file nil nil)
  recursive-edit()
  byte-code(\306 @\307=\203!


2. When I convert to html the fragment JJJ 
Debugger entered--Lisp error: (error Key sequence contains invalid  
event)
  define-key((keymap) [[(control c) (f)]] (keymap (115 . Footnote- 
set-style) (114 . Footnote-renumber-footnotes) (103 . Footnote-goto- 
footnote) (100 . Footnote-delete-footnote) (99 . Footnote-cycle- 
style) (98 . Footnote-back-to-message) (97 . Footnote-add-footnote)))
  byte-code(\303 \304 \n#\210 )\207 [map footnote-prefix  
footnote-mode-map make-sparse-keymap define-key] 4)
  (defvar footnote-minor-mode-map (byte-code \303 \304 \n#\210 ) 
\207 [map footnote-prefix footnote-mode-map make-sparse-keymap  
define-key] 4) (/Applications/Aquamacs.app/

Contents/Resources/lisp/mail/footnote.elc . 19879))
  footnote-mode()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  org-export-preprocess-string(#(\n\n 0 1 (fontified t) 1 6  
(fontified t)) :emph-multiline t :for-html t :skip-before-1st- 
heading nil :drawers nil :todo-keywords t :tags not-in-toc :priority  
nil :footnotes t :timestamps t :archived-trees headline :select-tags  
(export) :exclude-tags (noexport) :add-text nil :LaTeX-fragments  
nil)

  org-export-as-html(nil nil nil *Org HTML Export*)
  org-export-as-html-to-buffer(nil)
  call-interactively(org-export-as-html-to-buffer)
  org-export(nil)
  call-interactively(org-export nil nil)








2010/5/30 Alexandre Billon abil...@gmail.com
Dear list members,
I updated my org-mode files a month ago and since then, I get the  
following error message


byte-code: Key sequence contains invalid event 

 when I

1. Try to export files to other formats (LaTex and html)
2. Try to use org-remember
3. create a new .org file

This makes 1 and 2 unsuccessful. Can anyone help?

I am currently using org-mode 6-36c on Mac-OS X either with  
Acquamacs 2 or with Emacs 23.2.


Best regards,

Alexandre





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


- Carsten




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


Re: [Orgmode] latex-export + columnview: misinterpretation of section prefixes as emphasis

2010-06-01 Thread Carsten Dominik

Hi Juan,
On May 31, 2010, at 5:38 AM, Juan Pechiar wrote:


Hi!

The test file below contains a columnview table showing section
headers.

Export to HTML works OK: the asterisks inside the table are
transformed into indentation.

Export to LaTeX: asterisk pairs are interpreted as emphasis, resulting
in an incorrect renering of asterisks and bold asterisks.

Following the code, I got lost at org-export-latex-fontify.

I will keep searching for what is happening, but any guidance will be
appreciated.


I have fixed at least part of the problem, so the stars will no longer  
be

interpreted as emphasis.

However, I am still getting strange results.  FOrmatting a latex file
with this:

\begin{center}
\begin{tabular}{l}
 ITEM \\
\hline
* There comes the table  \\
* first  \\
** second\\
*** third\\
*** other third  \\
 fourth  \\
** other second  \\
\end{tabular}
\end{center}

somehow swallows some of the stars, but seemingly random.
For example, the star before There remains, but the star
before first disappears.

This must be some strange LaTeX thing - does anyone
understand what is going on here?

- Carsten




Thanks!

.j.


Test file:

#+COLUMNS: %25ITEM

* There comes the table

#+BEGIN: columnview :vlines 1 :id global
|   | ITEM|
|---+-|
|   | * There comes the table |
|   | * first |
|   | ** second   |
|   | *** third   |
|   | *** other third |
|   |  fourth |
|   | ** other second |
| / |   |
#+END:

* first
** second
*** third
*** other third
 fourth
** other second


LaTeX output:

\begin{tabular}{l}
ITEM \\
\hline
* There comes the table  \\
* first  \\
** second\\
*** third\\
\textbf{*} other third   \\
\textbf{**} fourth   \\
** other second  \\
\end{tabular}


And the PDF display reads:

ITEM
* There comes the table
first
* second
** third
* other third
** fourth
* other second




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


- Carsten




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


Re: [Orgmode] export of emphasized link

2010-06-01 Thread Carsten Dominik

Hi Michael,

On May 30, 2010, at 2:53 PM, Michael Brand wrote:


Hi all,

An org-mode line with an emphasized link like that one taken from  
current Worg:

--
*Drop an email to [[mailto:bzg%20AT%20altern%20DOT%20org][Bastien]]*  
mentioning your username on repo.or.cz


I would write this as

   *Drop an email to* [[mailto:bzg%20AT%20altern%20DOT%20org][Bastien]]

i.e. take the link out of the bold section.


--
shows the bold face in the Emacs Org buffer like expected. But it  
does not convert the emphasis and still shows `*' when exported to  
some formats:

- HTML: not converted
- LaTeX: could not check because of a missing setup on my side,
  from the source code I guess that it converts
- DocBook: not converted
- ...: don't know about other formats and what they should support

After removing org-bracket-link-regexp from org-html-expand


What do you mean by this sentence?  What exactly did you do?

and org-docbook-expand the HTML and DocBook exports _are_ converted  
and look similar to the highlighting in the Emacs Org buffer. But  
the doc string of both functions tell:

If there are links in the string, don't modify these.
Why should links be modified in org-mode but not in HTML or DocBook?

If there will be any change I would also like this:
--
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3285,6 +3285,7 @@ example *bold*, _underlined_ and /italic/.   
This variable
characters, the face to be used by font-lock for highlighting in Org- 
mode

Emacs buffers, and the HTML tags to be used for this.
For LaTeX export, see the variable `org-export-latex-emphasis-alist'.
+For DocBook export, see the variable `org-export-docbook-emphasis- 
alist'.

Use customize to modify this, or restart Emacs after changing it.
  :group 'org-appearance
  :set 'org-set-emph-re
--


I have applied this patch.



And: wouldn't it be nice for maintenance to have only one function  
for some sets of functions like

- org-html-expand, org-docbook-expand and possibly more
- org-html-do-expand, org-docbook-do-expand and possibly more
- org-export-html-convert-emphasize, org-export-docbook-convert- 
emphasize and possibly more
- org-export-html-convert-sub-super, org-export-docbook-convert-sub- 
super and possibly more

- possibly more
because they have almost all code in common.


Yes, that would be nice.  It would also be nice if all exporters
would basically use the same code - but this is not how things
happened, unfortunately.

- Carsten


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


Re: [Orgmode] insert a remember template at point

2010-06-01 Thread Carsten Dominik


On May 30, 2010, at 12:04 AM, Eraldo Helal wrote:


How can I insert a remember template at point?

Until now I had identical remember templates and yasnippets.
This is only a workaround and I would prefer to be able to insert a  
remember template at point since I have found it to have features I  
could not reproduce.


Hi Eraldo,

currently there is no easy way to do this.

One way to hack it would be to write a function that temporarily  
modifies to make

all remember templates point to the current location.

So something like (untested)

(defun my-remember-here ()
  (interactive)
  (let ((file buffer-file-name)
(heading (org-get-heading 'no-tags))
(org-remember-templates
 (mapcar (lambda (x) (list (nth 0 x) (nth 1 x) (nth 2 x) file heading))
 org-remember-templates)))
(call-interatively 'org-remember)))


- Carsten

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


Re: [Orgmode] export of emphasized link

2010-06-01 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes:

 I would write this as

*Drop an email to* [[mailto:bzg%20AT%20altern%20DOT%20org][Bastien]]

 i.e. take the link out of the bold section.

Done. 

-- 
 Bastien

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


Re: [Orgmode] latex-export + columnview: misinterpretation of section prefixes as emphasis

2010-06-01 Thread Tim Burt


Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Juan,
 On May 31, 2010, at 5:38 AM, Juan Pechiar wrote:

 Hi!

 The test file below contains a columnview table showing section
 headers.

 Export to HTML works OK: the asterisks inside the table are
 transformed into indentation.

 Export to LaTeX: asterisk pairs are interpreted as emphasis, resulting
 in an incorrect renering of asterisks and bold asterisks.

 Following the code, I got lost at org-export-latex-fontify.

 I will keep searching for what is happening, but any guidance will be
 appreciated.

 I have fixed at least part of the problem, so the stars will no longer
 be
 interpreted as emphasis.

 However, I am still getting strange results.  FOrmatting a latex file
 with this:

 \begin{center}
 \begin{tabular}{l}
  ITEM \\
 \hline
 * There comes the table  \\
 * first  \\
 ** second\\
 *** third\\
 *** other third  \\
  fourth  \\
 ** other second  \\
 \end{tabular}
 \end{center}

 somehow swallows some of the stars, but seemingly random.
 For example, the star before There remains, but the star
 before first disappears.

 This must be some strange LaTeX thing - does anyone
 understand what is going on here?

This is indeed a LaTeX thing.  The newline sequence (\\) has more than
one signature
 - \\ :: simple newline
 - \\[additionalSpace] :: newline with additionalSpace
 - \\*[additionalSpace] :: same as above but will not break a page  
After the \\ sequence, LaTeX looks for a [ or a * in case the optional
argument exists.  In the example above the star is found as _part of a
command sequence_ and is therefore not available as something to
typeset.  

One solution in this situation is to put an empty group before the
stars: 
   \begin{center}
   \begin{tabular}{l}
ITEM \\
   \hline
   {}* There comes the table  \\
   {}* first  \\
   {}** second\\
   {}*** third\\
   {}*** other third  \\
   {} fourth  \\
   {}** other second  \\
   \end{tabular}
   \end{center}

I will think on other possible options.  I hope this helps.
Tim



 - Carsten



 Thanks!

 .j.


 Test file:
 
 #+COLUMNS: %25ITEM

 * There comes the table

 #+BEGIN: columnview :vlines 1 :id global
 |   | ITEM|
 |---+-|
 |   | * There comes the table |
 |   | * first |
 |   | ** second   |
 |   | *** third   |
 |   | *** other third |
 |   |  fourth |
 |   | ** other second |
 | / |   |
 #+END:

 * first
 ** second
 *** third
 *** other third
  fourth
 ** other second
 

 LaTeX output:
 
 \begin{tabular}{l}
 ITEM \\
 \hline
 * There comes the table  \\
 * first  \\
 ** second\\
 *** third\\
 \textbf{*} other third   \\
 \textbf{**} fourth   \\
 ** other second  \\
 \end{tabular}
 

 And the PDF display reads:
 
 ITEM
 * There comes the table
 first
 * second
 ** third
 * other third
 ** fourth
 * other second
 



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

 - Carsten




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

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


[Orgmode] Re: org-cycle-agenda-files is not cycling through all my 15 agenda files - bug?

2010-06-01 Thread Charles Cave
Livin Stephen Sharma livin.stephen at gmail.com writes:
 how many does it iterate over? which does it skip?
 is the highlighted entry intentionally included twice?

Well spotted!  That was the problem.  I edited the .emacs file
at my work place and mistakenly duplicated the file.  With my home
computer I added the files using the org-mode menu so no
duplications.

A problem with my lack of attention to detail. Thank you!
Org-mode works fine ... 

Charles



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


[Orgmode] How to get the last version of org-mode supporting emacs21?

2010-06-01 Thread Steinar Bang
I have some RHEL4 machines where I have no admin privileges where I
would like to use org-mode, without having to build a newer version of
emacs myself and install it under my own user.

Is it possible to figure out how to use git to get to the last version
prior to removing the emacs 21 compatibility code?

Is it possible to take the compatibility code removal changes and apply
them to the most recent version of the code?  (I think not, but I don't
know just how much such magic git is capable of...)

Or is it better to just get the last released version that has the emacs
21 compatiblity code, than to use git? (since I can't upgrade to newer
versions anyway...)

Thanx!


- Steinar


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


Re: [Orgmode] latex-export + columnview: misinterpretation of section prefixes as emphasis

2010-06-01 Thread Carsten Dominik


On Jun 1, 2010, at 12:51 PM, Tim Burt wrote:




Carsten Dominik carsten.domi...@gmail.com writes:


Hi Juan,
On May 31, 2010, at 5:38 AM, Juan Pechiar wrote:


Hi!

The test file below contains a columnview table showing section
headers.

Export to HTML works OK: the asterisks inside the table are
transformed into indentation.

Export to LaTeX: asterisk pairs are interpreted as emphasis,  
resulting

in an incorrect renering of asterisks and bold asterisks.

Following the code, I got lost at org-export-latex-fontify.

I will keep searching for what is happening, but any guidance will  
be

appreciated.


I have fixed at least part of the problem, so the stars will no  
longer

be
interpreted as emphasis.

However, I am still getting strange results.  FOrmatting a latex file
with this:

\begin{center}
\begin{tabular}{l}
ITEM \\
\hline
* There comes the table  \\
* first  \\
** second\\
*** third\\
*** other third  \\
 fourth  \\
** other second  \\
\end{tabular}
\end{center}

somehow swallows some of the stars, but seemingly random.
For example, the star before There remains, but the star
before first disappears.

This must be some strange LaTeX thing - does anyone
understand what is going on here?


This is indeed a LaTeX thing.  The newline sequence (\\) has more than
one signature
- \\ :: simple newline
- \\[additionalSpace] :: newline with additionalSpace
- \\*[additionalSpace] :: same as above but will not break a page
After the \\ sequence, LaTeX looks for a [ or a * in case the optional
argument exists.  In the example above the star is found as _part of a
command sequence_ and is therefore not available as something to
typeset.

One solution in this situation is to put an empty group before the
stars:
  \begin{center}
  \begin{tabular}{l}
   ITEM \\
  \hline
  {}* There comes the table  \\
  {}* first  \\
  {}** second\\
  {}*** third\\
  {}*** other third  \\
  {} fourth  \\
  {}** other second  \\
  \end{tabular}
  \end{center}

I will think on other possible options.  I hope this helps.


Well, it certainly helps!  Thanks a lot. At least I understand
now what is going on.  I guess one solution would be to add an empty  
column into the Org table and export this as an empty column.   
Whatever we do, it will be a hack.


- Carsten



Tim




- Carsten




Thanks!

.j.


Test file:

#+COLUMNS: %25ITEM

* There comes the table

#+BEGIN: columnview :vlines 1 :id global
|   | ITEM|
|---+-|
|   | * There comes the table |
|   | * first |
|   | ** second   |
|   | *** third   |
|   | *** other third |
|   |  fourth |
|   | ** other second |
| / |   |
#+END:

* first
** second
*** third
*** other third
 fourth
** other second


LaTeX output:

\begin{tabular}{l}
ITEM \\
\hline
* There comes the table  \\
* first  \\
** second\\
*** third\\
\textbf{*} other third   \\
\textbf{**} fourth   \\
** other second  \\
\end{tabular}


And the PDF display reads:

ITEM
* There comes the table
first
* second
** third
* other third
** fourth
* other second




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


- Carsten




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


- Carsten




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


Re: [Orgmode] Re: Bug: LaTeX export and LaTeX environment

2010-06-01 Thread Carsten Dominik


On May 19, 2010, at 9:20 PM, Mark Elston wrote:


Ulf, Carsten,


On 5/19/2010 12:27 AM, Ulf Stegemann wrote:

Hi Carsten,

Carsten Dominikcarsten.domi...@gmail.com  wrote:


On May 19, 2010, at 8:34 AM, Ulf Stegemann wrote:


...
the LaTeX exporter seems to cease to work when encountering a LaTeX
environment.


it has always been like this,

check out this entire thread for work-arounds and other solutions

http://thread.gmane.org/gmane.emacs.orgmode/12977


I must have been blind, thanks for the pointer! It works like a charm
with org-special-blocks.

Ulf


I have not looked into the contrib directory lately (for quite a  
while,

actually) so was not aware of the org-special-blocks stuff.  This is
pretty cool and *almost* what I was about to ask for as well.

The only problem I have with it is I need (for specific  
environments) to
pass a parameter to the \begin{xxx} call on latex export.  I think  
what
is there is a more than adequate basis for what I am looking to do  
and I

will add my stuff to it and try it out.

My question is:  Is there a preferred way of doing this?  I can do a
local enhancement that hard-codes what I am trying to do but would
prefer to do this is a more open-ended (even elegant) way.  At the
end of the day it simply has to work.  But I would prefer doing it
right. :)


Hi Mark,

several environments already to accept parameters, and in all cases it  
is
done by just listing the arguments after the begin statement,  
separated by spaces.


So what you could implement is that if a user writes

#+begin_xxx {aa}[bb]{cc}

that org-special-blocks will then create

\begin{xxx}{aa}[bb]{cc}

I think we must ask for the space, to make sure that all old code will  
work.
A patch to org-special-blocks for this goal would be very useful, I  
think.


- Carsten





Mark

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


- Carsten




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


Re: [Orgmode] Display inline images patch

2010-06-01 Thread Carsten Dominik

Hi Russel,

looks like you are not running the latest version, I think this is  
already fixed



- Carsten

On May 31, 2010, at 9:30 PM, Russell Adams wrote:


I got irritated by my point jumping to the end of the buffer every
time I toggled inline image display, so lets save excursion. ;]

$ diff -Narub org.el~ org.el
--- org.el~   2010-05-20 10:12:45.0 -0500
+++ org.el2010-05-31 14:28:21.0 -0500
@@ -15489,6 +15489,7 @@
is how it will work for export.  When INCLUDE-LINKED is set, also
links
with a description part will be inlined.
  (interactive P)
+  (save-excursion
  (org-remove-inline-images)
  (goto-char (point-min))
  (let ((re (concat \\[\\[\\(file:\\|\\./\\)\\(~?
  [-+./_0-9a-zA-Z]+
@@ -15501,7 +15502,7 @@
  (setq ov (make-overlay (match-beginning 0) (match-end 0)))
  (overlay-put ov 'display (create-image file))
  (overlay-put ov 'face 'default)
-  (push ov org-inline-image-overlays)
+  (push ov org-inline-image-overlays))

(defun org-remove-inline-images ()
  Remove inline display of images.






--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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


- Carsten




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


[Orgmode] problem with remember template

2010-06-01 Thread Tyler Smith
Hi,

I'm having trouble with a remember template. My template definitions
are:

(setq org-remember-templates
  '((Todo ?t * TODO %^{Brief Description} %^G\n%?Added: %U
~/org/todo.org Tasks)
(Notes   ?n ** %^{Head Line} %U %^G\n%i%?
   ~/org/notes.org Notes)
(Appointment ?a
* %^{What}\n   %^{When}T\n   %^{Where}\n   %? Added: %U
~/org/appts.org Appointments)))

This used to work as expected for all three templates. However, when I
use the appointment template now, it halts processing after I enter the
What string. When it gets to %^{When}T: it deletes the string
%^{When}T, leaving point at that location, and leaves the following
prompt unaltered in the remember buffer.

I have tried various modifications, including emacs -Q and loading only
my org-mode setup. When I do that I get the same result, with the
message text Don't know how to make a let-bound variable an alias
appearing in the minibuffer. This doesn't appear when I use my full
.emacs.d/init.el file.

What have I messed up here?

Thanks,

Tyler
GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.0) of
2010-04-30 on eku238261
org-version 6.35i

my org config file:

;; org-mode
(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
(define-key global-map \C-cl 'org-store-link)
(define-key global-map \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(setq org-cycle-global-at-bob t)
(defun my-org-mode-hook ()
  (setq fill-column 80))
(add-hook 'org-mode-hook 'my-org-mode-hook)
(setq my-org-refile-targets (quote (~/org/todo.org
  ~/org/notes.org ~/org/bio131.org ~/org/research.org
  ~/org/multivariate.org)))
(setq org-refile-targets '((my-org-refile-targets . (:maxlevel . 5
(setq org-log-done nil) ;; prompt for closing note? No.
(setq org-todo-keywords
  '((sequence TODO(t) WAIT(w) STARTED(s) |
  DONE(d) CANCELED(c

(define-key mode-specific-map [?a] 'org-agenda)

(require 'remember)

(add-hook 'remember-mode-hook 'org-remember-apply-template)

(define-key global-map [f5] 'remember)

(custom-set-variables
 '(org-agenda-files (quote (~/org/todo.org ~/org/notes.org
~/org/appts.org ~/org/bio131.org
~/org/research.org ~/org/multivariate.org)))
 '(org-default-notes-file ~/org/notes.org)
 '(org-agenda-ndays 7)
 '(org-deadline-warning-days 14)
 '(org-agenda-show-all-dates t)
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-start-on-weekday nil)
 '(org-reverse-note-order t)
 '(org-fast-tag-selection-single-key (quote expert))
 '(org-remember-store-without-prompt t)
 '(remember-annotation-functions (quote (org-remember-annotation)))
 '(remember-handler-functions (quote (org-remember-handler)))
 '(remember-in-new-frame t))

(setq org-tag-alist '((@office . ?o) (@home . ?h) (@lab . ?l)
  (@errand . ?e) (@computer . ?c)
  (@maywoods . ?m) (@LCW . ?w) (bio131 . ?b)
  (teaching . ?t) (research . ?r)
  (service . ?s) (social . ?S)))

(setq org-remember-templates
  '((Todo ?t * TODO %^{Brief Description} %^G\n%?Added: %U
~/org/todo.org Tasks)
(Notes   ?n ** %^{Head Line} %U %^G\n%i%?
   ~/org/notes.org Notes)
(Appointment ?a
* %^{What}\n   %^{When}t\n   %^{Where}\n   %? Added: %U
~/org/appts.org Appointments)))



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


[Orgmode] Re: Bug: LaTeX export and LaTeX environment

2010-06-01 Thread Chris Gray
Carsten Dominik wrote:

 Hi Mark,

 several environments already to accept parameters, and in all cases it
 is
 done by just listing the arguments after the begin statement,
 separated by spaces.

 So what you could implement is that if a user writes

 #+begin_xxx {aa}[bb]{cc}

 that org-special-blocks will then create

 \begin{xxx}{aa}[bb]{cc}

 I think we must ask for the space, to make sure that all old code will
 work.
 A patch to org-special-blocks for this goal would be very useful, I
 think.

Hi Carsten,

I actually needed this yesterday, so I'll make a patch and try to send
it in the next couple of days.

Should anything be done for the HTML exporter if there are arguments?

Cheers,
Chris


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


[Orgmode] Re: problem with remember template

2010-06-01 Thread Mikael Fornius

I will take a look at this.

-- 
Mikael Fornius

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


[Orgmode] Scheduling bug? [was: problem with remember template]

2010-06-01 Thread Tyler Smith
Sorry, I've just realized that the problem described in my previous
email (below) is not a remember template issue at all. I get the same
(or similar) issue when using the schedule function in org.

To reproduce:
run 'emacs -Q'
open a file in org mode (test.org)
Enter a headline (*test)
Try to schedule it (C-c C-s)

At this point I get the message Don't know how to make a let-bound
variable an alias

I get this problem in the latest Emacs on my system:

GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.0) of
2010-04-30 on eku238261
org-version 6.35i

But not in the previous version on my system:

GNU Emacs 23.1.90.2 (i686-pc-linux-gnu, GTK+ Version 2.18.6) of
2010-02-16 on eku238261 
org-version 6.33x

So I think this is a bug that crept into org-mode or emacs, and not a
problem in my config files.

I also confirmed that the problem reported below doesn't occur in Emacs
23.1.90.2

Thanks,

Tyler


Tyler Smith tyler.sm...@eku.edu writes:

 Hi,

 I'm having trouble with a remember template. My template definitions
 are:

 (setq org-remember-templates
   '((Todo ?t * TODO %^{Brief Description} %^G\n%?Added: %U
 ~/org/todo.org Tasks)
   (Notes   ?n ** %^{Head Line} %U %^G\n%i%?
~/org/notes.org Notes)
   (Appointment ?a
 * %^{What}\n   %^{When}T\n   %^{Where}\n   %? Added: %U
 ~/org/appts.org Appointments)))

 This used to work as expected for all three templates. However, when I
 use the appointment template now, it halts processing after I enter the
 What string. When it gets to %^{When}T: it deletes the string
 %^{When}T, leaving point at that location, and leaves the following
 prompt unaltered in the remember buffer.

 I have tried various modifications, including emacs -Q and loading only
 my org-mode setup. When I do that I get the same result, with the
 message text Don't know how to make a let-bound variable an alias
 appearing in the minibuffer. This doesn't appear when I use my full
 .emacs.d/init.el file.

 What have I messed up here?

 Thanks,

 Tyler
 GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.0) of
 2010-04-30 on eku238261
 org-version 6.35i

 my org config file:

 ;; org-mode
 (add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
 (define-key global-map \C-cl 'org-store-link)
 (define-key global-map \C-ca 'org-agenda)
 (global-set-key \C-cb 'org-iswitchb)
 (setq org-cycle-global-at-bob t)
 (defun my-org-mode-hook ()
   (setq fill-column 80))
 (add-hook 'org-mode-hook 'my-org-mode-hook)
 (setq my-org-refile-targets (quote (~/org/todo.org
   ~/org/notes.org ~/org/bio131.org ~/org/research.org
   ~/org/multivariate.org)))
 (setq org-refile-targets '((my-org-refile-targets . (:maxlevel . 5
 (setq org-log-done nil) ;; prompt for closing note? No.
 (setq org-todo-keywords
   '((sequence TODO(t) WAIT(w) STARTED(s) |
   DONE(d) CANCELED(c

 (define-key mode-specific-map [?a] 'org-agenda)

 (require 'remember)

 (add-hook 'remember-mode-hook 'org-remember-apply-template)

 (define-key global-map [f5] 'remember)

 (custom-set-variables
  '(org-agenda-files (quote (~/org/todo.org ~/org/notes.org
 ~/org/appts.org ~/org/bio131.org
 ~/org/research.org ~/org/multivariate.org)))
  '(org-default-notes-file ~/org/notes.org)
  '(org-agenda-ndays 7)
  '(org-deadline-warning-days 14)
  '(org-agenda-show-all-dates t)
  '(org-agenda-skip-deadline-if-done t)
  '(org-agenda-skip-scheduled-if-done t)
  '(org-agenda-start-on-weekday nil)
  '(org-reverse-note-order t)
  '(org-fast-tag-selection-single-key (quote expert))
  '(org-remember-store-without-prompt t)
  '(remember-annotation-functions (quote (org-remember-annotation)))
  '(remember-handler-functions (quote (org-remember-handler)))
  '(remember-in-new-frame t))

 (setq org-tag-alist '((@office . ?o) (@home . ?h) (@lab . ?l)
   (@errand . ?e) (@computer . ?c)
   (@maywoods . ?m) (@LCW . ?w) (bio131 . ?b)
 (teaching . ?t) (research . ?r)
   (service . ?s) (social . ?S)))

 (setq org-remember-templates
   '((Todo ?t * TODO %^{Brief Description} %^G\n%?Added: %U
 ~/org/todo.org Tasks)
   (Notes   ?n ** %^{Head Line} %U %^G\n%i%?
~/org/notes.org Notes)
   (Appointment ?a
 * %^{What}\n   %^{When}t\n   %^{Where}\n   %? Added: %U
 ~/org/appts.org Appointments)))



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


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


[Orgmode] Re: Scheduling bug?

2010-06-01 Thread Mikael Fornius

 I get this problem in the latest Emacs on my system:

I remember vaguely that I have read something about a change in let-bound
behavior with new emacs. Maybe I can find it again...

 So I think this is a bug that crept into org-mode or emacs, and not a
 problem in my config files.

Probably.

 I also confirmed that the problem reported below doesn't occur in Emacs
 23.1.90.2

Great!

-- 
Mikael Fornius

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


[Orgmode] Re: Scheduling bug?

2010-06-01 Thread Mikael Fornius
Mikael Fornius m...@abc.se writes:

 Maybe I can find it again...

I think it was this 

--8---cut here---start-8---
* Lisp changes in Emacs 24.1

** frame-local variables cannot be let-bound any more.
--8---cut here---end---8---

in emacs NEWS file I was thinking about and it is probably not relevant
here.
 
As you found out the problem is fixed in later versions of emacs, thanks
for telling!

-- 
Mikael Fornius

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


Re: [Orgmode] New development organization - DRAFT, please comment

2010-06-01 Thread David Maus
Eric Schulte wrote:
Hi David,

David Maus dm...@ictsoc.de writes:

 Hi Eric,
I just used this file to record a babel change, and I really like the
overall idea and the layout.  A couple of things that occurred to me.

- would it be desirable to have a headline property (e.g. ASSIGNEE or
  somesuch) so that users can take responsibility of issues, and search
  for issues to which they've been assigned.

 Sounds reasonable.


Great,

I will start using this if there are cases when I want to sign up for an
issue, but won't fix it immediately.

I've added a hint on this property in the issue file's head and
modified the functions I use to operate on the file so issues which
are assigned cannot be closed.

Thanks David, indeed the function your posted does work, and I was able
to use it with the url you posted above to quickly access the gmane
thread of this email.

Your function below raises the idea that it may be nice to have a single
place to host a small collection of functions related to use of
org-issues.org.  Maybe some form of the following simple functions could
be useful.

Well, I've started to polish the functions I use and will publish them
in a add-on or something.  These two go into this file.

Regards,

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


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


Re: [Orgmode] latex-export + columnview: misinterpretation of section prefixes as emphasis

2010-06-01 Thread tcburt

 Carsten Dominik carsten.domi...@gmail.com wrote: 
 
 On Jun 1, 2010, at 12:51 PM, Tim Burt wrote:
 
 
 
  Carsten Dominik carsten.domi...@gmail.com writes:
 
  Hi Juan,
  On May 31, 2010, at 5:38 AM, Juan Pechiar wrote:
 
  Hi!
 
  The test file below contains a columnview table showing section
  headers.
 
  Export to HTML works OK: the asterisks inside the table are
  transformed into indentation.
 
  Export to LaTeX: asterisk pairs are interpreted as emphasis,  
  resulting
  in an incorrect renering of asterisks and bold asterisks.
 
  Following the code, I got lost at org-export-latex-fontify.
 
  I will keep searching for what is happening, but any guidance will  
  be
  appreciated.
 
  I have fixed at least part of the problem, so the stars will no  
  longer
  be
  interpreted as emphasis.
 
  However, I am still getting strange results.  FOrmatting a latex file
  with this:
 
  \begin{center}
  \begin{tabular}{l}
  ITEM \\
  \hline
  * There comes the table  \\
  * first  \\
  ** second\\
  *** third\\
  *** other third  \\
   fourth  \\
  ** other second  \\
  \end{tabular}
  \end{center}
 
  somehow swallows some of the stars, but seemingly random.
  For example, the star before There remains, but the star
  before first disappears.
 
  This must be some strange LaTeX thing - does anyone
  understand what is going on here?
 
  This is indeed a LaTeX thing.  The newline sequence (\\) has more than
  one signature
  - \\ :: simple newline
  - \\[additionalSpace] :: newline with additionalSpace
  - \\*[additionalSpace] :: same as above but will not break a page
  After the \\ sequence, LaTeX looks for a [ or a * in case the optional
  argument exists.  In the example above the star is found as _part of a
  command sequence_ and is therefore not available as something to
  typeset.
 
  One solution in this situation is to put an empty group before the
  stars:
\begin{center}
\begin{tabular}{l}
 ITEM \\
\hline
{}* There comes the table  \\
{}* first  \\
{}** second\\
{}*** third\\
{}*** other third  \\
{} fourth  \\
{}** other second  \\
\end{tabular}
\end{center}
 
  I will think on other possible options.  I hope this helps.
 
 Well, it certainly helps!  Thanks a lot. At least I understand
 now what is going on.  I guess one solution would be to add an empty  
 column into the Org table and export this as an empty column.   
 Whatever we do, it will be a hack.

I have not found a hack-free solution yet.  Here are some other things I've 
tried that would be less hackish, but have all failed:
 - Replace \\ with \tabularnewline :: Same behavior as with \\
 - Replace \\ with \\{} :: Extra horizontal space before the *
 - Replace \\ with \tabularnewline{} :: Same behavior as \\{}

I just now tried another solution that does work, but may still be considered a 
hack.  In short, use the optional argument explicitly:
 - Replace \\ with \\[0pt] :: This has the expected behavior for the * and for 
the spacing

Tim


 
 - Carsten
 
 
  Tim
 
 
 
  - Carsten
 
 
 
  Thanks!
 
  .j.
 
 
  Test file:
  
  #+COLUMNS: %25ITEM
 
  * There comes the table
 
  #+BEGIN: columnview :vlines 1 :id global
  |   | ITEM|
  |---+-|
  |   | * There comes the table |
  |   | * first |
  |   | ** second   |
  |   | *** third   |
  |   | *** other third |
  |   |  fourth |
  |   | ** other second |
  | / |   |
  #+END:
 
  * first
  ** second
  *** third
  *** other third
   fourth
  ** other second
  
 
  LaTeX output:
  
  \begin{tabular}{l}
  ITEM \\
  \hline
  * There comes the table  \\
  * first  \\
  ** second\\
  *** third\\
  \textbf{*} other third   \\
  \textbf{**} fourth   \\
  ** other second  \\
  \end{tabular}
  
 
  And the PDF display reads:
  
  ITEM
  * There comes the table
  first
  * second
  ** third
  * other third
  ** fourth
  * other second
  
 
 
 
  ___
  Emacs-orgmode mailing list
  Please use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
  - Carsten
 
 
 
 
  ___
  Emacs-orgmode mailing list
  Please use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 - 

[Orgmode] feature request: C-k safety

2010-06-01 Thread Scott Otterson
For what must be the dozenth time, I've just accidentally deleted a large
tree by typing C-k while in a headline.

This is really easy to do because emacs users have C-k deletes to the end
of the line worn deeply into their neural pathways -- it's so automatic for
me that the keystroke is close to subconscious.  A mistaken C-k is
especially hard to detect because org-mode displays the result exactly like
what your subconscious expects, that is, a collapsed headline is deleted to
the end -- and the tree underneath is wiped out with no noticeable warning.

Feature request: add an option preventing tree deletion with C-k without
user confirmation.  Actually, I'd like an option to prevent it period.

If this option is already in there, then you're encouraged to tell me to
RTFM.  But then also please tell me where it is, because I can't find it.

Thanks much,

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


[Orgmode] Re: Scheduling bug?

2010-06-01 Thread Tyler Smith
Mikael Fornius m...@abc.se writes:

 As you found out the problem is fixed in later versions of emacs, thanks
 for telling!

Sorry, you misunderstood. It's fixed in an earlier version (23), but
broken in the later version (24).

Tyler


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


[Orgmode] Re: Bug: LaTeX export and LaTeX environment

2010-06-01 Thread Chris Gray
Chris Gray wrote:
 I actually needed this yesterday, so I'll make a patch and try to send
 it in the next couple of days.

Here is the patch for the LaTeX exporter.  I'm not much of an HTML
person, so I don't know if arguments would be useful there.

Cheers,
Chris

commit 7a34d757ffbdeb97e7818411c5fe33e6339312e1
Author: Chris Gray chrismg...@gmail.com
Date:   Tue Jun 1 16:52:52 2010 +0200

Add arguments to environments in the LaTeX expansion of org-special-blocks

* contrib/lisp/org-special-blocks.el
  (org-special-blocks-convert-latex-special-cookies): Implement the
  change by slightly altering the regexp.

	Modified contrib/lisp/org-special-blocks.el
diff --git a/contrib/lisp/org-special-blocks.el b/contrib/lisp/org-special-blocks.el
index af50b30..a6064b1 100644
--- a/contrib/lisp/org-special-blocks.el
+++ b/contrib/lisp/org-special-blocks.el
@@ -64,13 +64,14 @@ seen.  This is run after a few special cases are taken care of.
 (defun org-special-blocks-convert-latex-special-cookies ()
   Converts the special cookies into LaTeX blocks.
   (goto-char (point-min))
-  (while (re-search-forward ^ORG-\\(.*\\)-\\(START\\|END\\)$ nil t)
+  (while (re-search-forward ^ORG-\\([^ \t\n]*\\)[ \t]*\\(.*\\)-\\(START\\|END\\)$ nil t)
 (replace-match
- (if (equal (match-string 2) START)
-	 (concat \\begin{ (match-string 1) })
+ (if (equal (match-string 3) START)
+	 (concat \\begin{ (match-string 1) } (match-string 2))
(concat \\end{ (match-string 1) }))
  t t)))
 
+
 (add-hook 'org-export-latex-after-blockquotes-hook
 	  'org-special-blocks-convert-latex-special-cookies)
 

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


[Orgmode] Re: Scheduling bug?

2010-06-01 Thread Mikael Fornius
Tyler Smith tyler.sm...@eku.edu writes:

 Sorry, you misunderstood. It's fixed in an earlier version (23), but
 broken in the later version (24).

Sorry :)

I have now upgraded both org-mode and emacs to latest development version
and I get the same error as you described:

--8---cut here---start-8---
Debugger entered--Lisp error: (error Don't know how to make a let-bound 
variable an alias)
  defvaralias(view-diary-entries-initially calendar-view-diary-initially-flag 
nil)
--8---cut here---end---8---

It looks like a problem in emacs calendar. I will see if I can understand
or fix it.

-- 
Mikael Fornius

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


Re: [Orgmode] feature request: C-k safety

2010-06-01 Thread Scot Becker
Scott,

You asked:
 Feature request: add an option preventing tree deletion with C-k without
 user confirmation.  Actually, I'd like an option to prevent it period.
 If this option is already in there, then you're encouraged to tell me to
 RTFM.  But then also please tell me where it is, because I can't find it.

In the FAQ, you can find this:

(setq org-special-ctrl-k t) before losing your work.

It's a clever compromise, though I suspect it doesn't give as much
protection as you want.

Here's what it does. From the docstring:

When t, the following will happen while the cursor is in the headline:

- When the cursor is at the beginning of a headline, kill the entire
  line and possible the folded subtree below the line.
- When in the middle of the headline text, kill the headline up to the tags.
- When after the headline text, kill the tags.

Scot

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


[Orgmode] Re: Scheduling bug?

2010-06-01 Thread Mikael Fornius

I was wrong it does work for me with this fresh from today setup:

GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-01 on 
eee
Org-mode version 6.36trans (release_6.36.141.gbc53b)

(earlier I forgot to load the latest org-mode from $HOME).

Does it for you?

-- 
Mikael Fornius

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


[Orgmode] Re: Scheduling bug?

2010-06-01 Thread Tyler Smith
Mikael Fornius m...@abc.se writes:

 I was wrong it does work for me with this fresh from today setup:

 GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-06-01 on 
 eee
 Org-mode version 6.36trans (release_6.36.141.gbc53b)

 (earlier I forgot to load the latest org-mode from $HOME).

 Does it for you?

It does, thanks! Updating to org-mode 6.36trans from the git repository
fixed the problem. 

GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.0) of
2010-04-30 on eku238261
org-version 6.36trans 

Cheers,

Tyler



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


Re: [Orgmode] Re: Bug: LaTeX export and LaTeX environment

2010-06-01 Thread Carsten Dominik


On Jun 1, 2010, at 3:57 PM, Chris Gray wrote:


Carsten Dominik wrote:


Hi Mark,


several environments already to accept parameters, and in all cases  
it

is
done by just listing the arguments after the begin statement,
separated by spaces.



So what you could implement is that if a user writes



#+begin_xxx {aa}[bb]{cc}



that org-special-blocks will then create



\begin{xxx}{aa}[bb]{cc}


I think we must ask for the space, to make sure that all old code  
will

work.
A patch to org-special-blocks for this goal would be very useful, I
think.


Hi Carsten,

I actually needed this yesterday, so I'll make a patch and try to send
it in the next couple of days.

Should anything be done for the HTML exporter if there are arguments?


Hi Chris

I can't think of anything useful - unless we do something like

#+begin_xxx -largs {aa}[bb]{cc} -hargs aa=\xxx\ bb=\uuu\

and then use the largs for LaTeX and the hargs as additional attributes
in the HTML div.

But right now I don't see many applications for this in HTML, so
I am not sure it is worth the trouble.  Maybe just ignore these  
additional

arguments, or put them as a string into some special attribute like

div class=xxx latex_block_args={aa}[bb]{cc}

so that some javascript hacker can do something with these
arguments.

I am not sure what the right cause of action is, and I would
be happy already with a patch that attaches the rest of the line
in LaTeX and throws it away in HTML.

I am starting to think we should have this package in the
core - can I get you to sign the papers with the FSF for
your contributions to Org-mode?  Instructions are here:

http://orgmode.org/worg/org-contribute.php

Cheers

- Carsten


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


Re: [Orgmode] Re: A request: Moving away from ChangeLog

2010-06-01 Thread Carsten Dominik

Hi Christian,

are we ready to install org-taskjuggler.el into Org-mode?
Where do you want it, core or contrib?

I did not yet hear from you that the FSF assignment process
is done, could you please update me on that?

Thanks.

- Carsten

On May 21, 2010, at 11:10 PM, Christian Egli wrote:


Hi all

John Wiegley jwieg...@gmail.com writes:


The Emacs ChangeLog is a file which predates the existence of freely
available, project-wide version control. It was a way to see, in one
place, the stream of changes occurring in a project -- something  
which

RCS could not do for you.


The only problem is that we need to have a Changelog for upstream,  
i.e.

Emacs.


However, in this modern era of project-wide, atomic commits, the
ChangeLog is not only an archaism, but is a continuous source of  
merge

conflicts. For example, when I reverted Russell's latest change -- a
one-liner that was minor in the extreme -- I had to do with a merge
conflict in lisp/ChangeLog.


If the real problem you're trying to solve is the merge conflicts you
get with the Changelog files then the solution might be Bruno Haible’s
git merge driver for GNU-style ChangeLog files[1] (available in  
gnulib[2]).


Automatic generation of the Changelog file sounds like a fine solution
and I'm all for it, but when it comes down to the actual  
requirements of
the Changelog (such as file and especially function names) things  
don't
look that rosy anymore (doesn't work outside of Emacs, can no longer  
use

M-x add-change-log-entry, etc).

So before pouring out the baby with the bathwater maybe we should at
least try if the git merge driver solves the main problem we have with
the Changelog files.

Thanks
Christian

Footnotes:
[1]  http://www.mail-archive.com/bug-gnu...@gnu.org/msg09183.html
[2]  
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/git-merge-changelog.c

--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland


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


- Carsten




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


Re: [Orgmode] export of emphasized link

2010-06-01 Thread Michael Brand

On 10-06-01 09:44 , Carsten Dominik wrote:

After removing org-bracket-link-regexp from org-html-expand


What do you mean by this sentence? What exactly did you do?


To understand the implementation I tried the following temporary
change (the line prefix `:' will bypass the nice patch extract
http://patchwork.newartisans.com/project/org-mode/list
for this time I hope):

:--- a/lisp/org-html.el
:+++ b/lisp/org-html.el
:@@ -2025,8 +2025,7 @@ that uses these same face definitions.
: (defun org-html-expand (string)
:   Prepare STRING for HTML export.  Applies all active conversions.
: If there are links in the string, don't modify these.
:-  (let* ((re (concat org-bracket-link-regexp \\|
:-(org-re [ \t]+\\(:[[:alnum:]_@:]+:\\)[ \t]*$)))
:+  (let* ((re (org-re [ \t]+\\(:[[:alnum:]_@:]+:\\)[ \t]*$))
: m s l res)
: (if (string-match ^[ \t]*\\+-[-+]*\\+[ \t]*$ string)
:string


With this trial the export to HTML of emphasized links is supported.
But this should not happen as I understand the doc string of
org-html-expand and org-docbook-expand:
If there are links in the string, don't modify these.
Why should emphasized links not be supported for the export to HTML
and DocBook (and maybe more export formats?) while the org-mode
buffer display (and maybe some export formats?) supports them?

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


[Orgmode] Date Prompt Bug (or Anomoly)

2010-06-01 Thread Daniel E . Doherty
All,

In playing around with the date prompt (C-.), I ran across the following
puzzling behavior from rather simple inputs.

I entered the following on June 1, 2010.  Here is a date entered as
3/15: 2011-03-15 Tue.  It interpreted it as the upcoming March 15 as
expected.

But here is a date entered as 5/21: 2021-06-05 Sat.  Note how it
interpreted the 21 as the year 2021, not at all what I expected from
the documentation or the analogous 3/15 example.

Maybe there is some underlying logic here that I'm not getting.  Perhaps
it has to do with how 2-digit years are interpreted?

What's going on here?  I am using org-version 6.36trans on emacs 23.1.

Regards,
-- 

Daniel E. Doherty
7300 W. 110th Street, Suite 930
Overland Park, KS 66210
913.338.7182 (Phone)
913,338.7164 (FAX)

Up the airy mountain,
Down the rushy glen,
We daren't go a-hunting,
For fear of little men.
  --- William Allingham (Donegal, Ireland)


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


[Orgmode] Re: byte-code: Key sequence contains invalid event

2010-06-01 Thread Bernt Hansen
David Maus dm...@ictsoc.de writes:

 For a good back trace you might as well
 remove the byte compiled Org mode files (*.elc), reload Org and try
 again.

C-u M-x org-reload
should load uncompiled versions of the code if they are available
without requiring you to remove the compiled files and rebuild them
later.

-Bernt

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


Re: [Orgmode] Re: Bug: LaTeX export and LaTeX environment

2010-06-01 Thread Mark Elston

Wow!  I had hoped to start looking at this over the long weekend
but had other things grabbing my attention.  Now Chris has already
submitted a patch for it!

Chris, I take it that the following:

  #+begin_refquote {Albert Einstein}
  Make things as simple as possible, but no simpler.
  #+end_refquote

would then translate into:

  \begin{refquote}{Albert Einstein}
  Make things as simple as possible, but no simpler.
  \end{refquote}

This is exactly what I was looking for.

Mark


On 6/1/2010 8:02 AM, Chris Gray wrote:

Chris Gray wrote:

I actually needed this yesterday, so I'll make a patch and try to send
it in the next couple of days.


Here is the patch for the LaTeX exporter.  I'm not much of an HTML
person, so I don't know if arguments would be useful there.

Cheers,
Chris




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



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


[Orgmode] [PATCH] add modification hook for inline images

2010-06-01 Thread Martin Pohlack
Hi,

this patch adds a modification hook to remove inline-image overlays if
the underlying text is modified.  This prevents blind editing of text
behind images.

Cheers,
Martin Pohlack
diff --git a/lisp/org.el b/lisp/org.el
index 62131be..5a00236 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15565,8 +15565,17 @@ BEG and END default to the buffer boundaries.
(overlay-put ov 'display img)
(overlay-put ov 'face 'default)
(overlay-put ov 'org-image-overlay t)
+   (overlay-put ov 'modification-hooks
+(list 'org-display-inline-modification-hook))
(push ov org-inline-image-overlays)
 
+(defun org-display-inline-modification-hook (ov after beg end optional len)
+  Remove inline-display overlay if a corresponding region is modified.
+  (let ((inhibit-modification-hooks t))
+(when (and ov after)
+  (delete ov org-inline-image-overlays)
+  (delete-overlay ov
+
 (defun org-remove-inline-images ()
   Remove inline display of images.
   (interactive)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Emacs 22 support

2010-06-01 Thread Bernt Hansen
* contrib/lisp/org-special-blocks.el: Emacs 22 doesn't have string-match-p
---
This patch is available at git://git.norang.ca/org-mode.git emacs22

 contrib/lisp/org-special-blocks.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/lisp/org-special-blocks.el 
b/contrib/lisp/org-special-blocks.el
index af50b30..4a2bc3c 100644
--- a/contrib/lisp/org-special-blocks.el
+++ b/contrib/lisp/org-special-blocks.el
@@ -51,7 +51,7 @@ seen.  This is run after a few special cases are taken care 
of.
   (when (or htmlp latexp)
 (goto-char (point-min))
 (while (re-search-forward ^#\\+\\(begin\\|end\\)_\\(.*\\)$ nil t)
-  (unless (string-match-p org-special-blocks-ignore-regexp (match-string 
2))
+  (unless (string-match org-special-blocks-ignore-regexp (match-string 2))
(replace-match
 (if (equal (downcase (match-string 1)) begin)
 (concat ORG- (match-string 2) -START)
-- 
1.7.1.240.g225c


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


[Orgmode] Re: [PATCH] Emacs 22 support

2010-06-01 Thread Štěpán Němec
Bernt Hansen be...@norang.ca writes:

 * contrib/lisp/org-special-blocks.el: Emacs 22 doesn't have string-match-p
 ---
 This patch is available at git://git.norang.ca/org-mode.git emacs22

  contrib/lisp/org-special-blocks.el |2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

 diff --git a/contrib/lisp/org-special-blocks.el
 b/contrib/lisp/org-special-blocks.el
 index af50b30..4a2bc3c 100644
 --- a/contrib/lisp/org-special-blocks.el
 +++ b/contrib/lisp/org-special-blocks.el
 @@ -51,7 +51,7 @@ seen. This is run after a few special cases are taken care
 of.
(when (or htmlp latexp)
  (goto-char (point-min))
  (while (re-search-forward ^#\\+\\(begin\\|end\\)_\\(.*\\)$ nil t)
 - (unless (string-match-p org-special-blocks-ignore-regexp (match-string 2))
 + (unless (string-match org-special-blocks-ignore-regexp (match-string 2))
   (replace-match
(if (equal (downcase (match-string 1)) begin)
(concat ORG- (match-string 2) -START)

I didn't look at the code, but I doubt this is correct. The whole point
of using `string-match-p' is to not affect the match data, so I would
expect this change to possibly break the immediately following
(match-string 1) etc. (depending on the exact regexp of course -- as I
say I didn't actually check it, but in any case this is not a safe
change AFAIK). You could try wrapping the `string-match' form inside
`save-match-data' to prevent that.

   Štěpán

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


Re: [Orgmode] insert a remember template at point

2010-06-01 Thread Eraldo Helal
Carsten Dominik carsten.domi...@gmail.com writes:

 currently there is no easy way to do this.
While I have hoped to hear the opposite, it's good to know the truth. :)

 One way to hack it would be to write a function that temporarily
 modifies to make
 all remember templates point to the current location.
I am again baffled how fast you get from request to code. ^^
I will definitely try out the function you posted.
Thanks a lot for that.
I will give feedback on it soon.

Is there anything else I can do (besides speeding up projects like
learning lisp) to make that feature part of remember?
That would go in org-remember if I understand that correctly.

Greetings from Austria,
Eraldo

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


[Orgmode] Possible html publish inline image bug

2010-06-01 Thread Birch Browning
Dear all,

I used to be able to do this:

[[file:myfile.pdf][file:myfile.jpg]]

to show an image on the html page that was a link to the PDF file. This now
seems to be honked up.

All I get now on the html page is 'file:myfile.jpg' as a link.

The html produced is:

a href=myfile.pdfalt=poster image title=Click to download
PDF.myfile.jpg/a

Org-mode version 6.36trans (release_6.36.141.gbc53b)

[[file:myfile.jpg]]

shows the image file inline, but obviously does not link.

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


[Orgmode] Re: [PATCH] Emacs 22 support

2010-06-01 Thread Bernt Hansen
Štěpán Němec step...@gmail.com writes:

 Bernt Hansen be...@norang.ca writes:

 * contrib/lisp/org-special-blocks.el: Emacs 22 doesn't have string-match-p
 ---
 This patch is available at git://git.norang.ca/org-mode.git emacs22

  contrib/lisp/org-special-blocks.el |2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

 diff --git a/contrib/lisp/org-special-blocks.el
 b/contrib/lisp/org-special-blocks.el
 index af50b30..4a2bc3c 100644
 --- a/contrib/lisp/org-special-blocks.el
 +++ b/contrib/lisp/org-special-blocks.el
 @@ -51,7 +51,7 @@ seen. This is run after a few special cases are taken care
 of.
(when (or htmlp latexp)
  (goto-char (point-min))
  (while (re-search-forward ^#\\+\\(begin\\|end\\)_\\(.*\\)$ nil t)
 - (unless (string-match-p org-special-blocks-ignore-regexp (match-string 2))
 + (unless (string-match org-special-blocks-ignore-regexp (match-string 2))
  (replace-match
   (if (equal (downcase (match-string 1)) begin)
   (concat ORG- (match-string 2) -START)

 I didn't look at the code, but I doubt this is correct. The whole point
 of using `string-match-p' is to not affect the match data, so I would
 expect this change to possibly break the immediately following
 (match-string 1) etc. (depending on the exact regexp of course -- as I
 say I didn't actually check it, but in any case this is not a safe
 change AFAIK). You could try wrapping the `string-match' form inside
 `save-match-data' to prevent that.

Thanks for the review.  I was just emulating what Carsten did in a
similar fix in git commit 8dd4baf without much thought of side effects.

I used this change to test a recent post about using org-special-blocks.
I don't normally use org-special-blocks in my setup and this change made
it work for me for the simple test case on the mailing list.

I'll try to post a better patch for this tomorrow.

Regards,
Bernt


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


[Orgmode] [babel] writing my .Rprofile in orgmode, issue with emacsclient

2010-06-01 Thread Erik Iverson

Hello,

In the spirit of the examples of writing your .emacs file in orgmode, I wrote my 
.Rprofile (R's startup file) in orgmode.  I do have one issue where I have no 
idea what is going wrong, and would appreciate any information!


Basic setup, GNU Emacs 23.1, latest git org-mode, running on Linux.  I start 
emacs with emacs --daemon on startup, and always just use emacsclient to do 
everything.  So for my org-mode .Rprofile,


1) I create a ~/.Rprofile.org file that uses org-mode syntax and includes all R 
code in R source blocks that will be tangled into a .Rprofile.R file.


2) In my actual .Rprofile, I have the following, which actually works.  The 
basic idea was taken from 
http://orgmode.org/worg/org-contrib/babel/reference.php#sec-6 .  I simply want 
to tangle the .Rprofile.org file from (1) above into .Rprofile.R and source it. 
I know the lisp isn't as simple as it could be, since I adapted it from the more 
complex setup referenced, but this actually works for me.


#BEGIN .Rprofile
invisible(system(emacsclient -t --eval \(progn
(add-to-list 'load-path (expand-file-name \\\~/lisp/org-mode/lisp/\\\))
(add-to-list 'load-path (expand-file-name 
\\\~/lisp/org-mode/contrib/lisp/\\\))
(require 'org)(require 'org-exp)(require 'org-babel)
(mapc (lambda (file)
   (find-file (expand-file-name file \\\/home/erik\\\))
   (org-babel-tangle)) '(\\\.Rprofile.org\\\)))\, intern = TRUE, 
ignore.stderr = TRUE))


source(~/.Rprofile.R)
#END .Rprofile

Then I do 'M-x R' in emacs, and R tangles the org-mode file, sources the result, 
and everything works.  This even works without the '-t' option given above to 
emacsclient.


The problem is when I try to C-c C-c on an R source block in an org-mode file. 
My issue is, that *without* the '-t' option to emacsclient, (-t says it opens a 
new emacs frame on the current terminal), org-babel-execute-src-block hangs 
when I press C-c C-c in an R code block using the above setup.  It definitely 
relates to the emacsclient call in my .Rprofile,  because I can simply comment 
that system call out of my .Rprofile and all is well.  If I use :session, 
everything is fine.


The best lead I have is that if I change org-babel-R-evaluate in the following 
way, my setup also works without the -t option:


Give the R call in the following line

(point-min) (point-max) R --no-save nil 'replace (current-buffer)))

the --vanilla option.  Obviously this just doesn't run my problematic .Rprofile, 
but the point is that this is the exact location in the chain of calls where 
it's getting 'stuck'.  Emacs just hangs with the 'busy' mouse cursor until I C-g.


If I watch the system process list, the R process does get started, and a new 
(2nd) instance of emacsclient is also started, but it doesn't return.


Like I said, I have 'fixed' this with -t, but I really want to know why it 
wasn't working in the first place, and if this is really a fix.  Notice how I 
have to also ignore.stderr = TRUE in my 'system' R call, because if I don't, all 
my org-babel output contains


#+results:
: emacsclient: could not get terminal name
...further output...

if my source block has :results output as opposed to :results value.

I just don't get why my setup works with M-x R but not with 
org-babel-execute-src-block, there is some interaction between those two and I 
can't see what it is.


Sorry for the long post, I hope my question makes sense!

Best Regards,
Erik Iverson

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