[O] Help needed on delegating some maintainance tasks (was: Org maintainance)

2015-05-23 Thread Bastien
Hi all,

I need help on these maintainance tasks :

1. Watching the emacs-diffs mailing list and backport changes on Org
   in the local Org repository (2 hours per month).

2. Adding public keys on the orgmode.org server for org-mode and worg
   contributers (1 hour per month).

3. Maintaining the orgmode.org server and taking care of errors when
   updating Worg (1 hour per month).

4. Merging the last stable release into Emacs repository.  (1 hour
   every release).

5. Releasing Org (.5 hour every release).


I don't need advice on how to make these tasks more quickly or more
efficiently, I just need people who can take care of them.  If anyone
wants to help on any of these tasks, please raise your hand !  This
will help a lot in moving toward a sane situation.

Thanks,

-- 
 Bastien



Re: [O] Help needed on delegating some maintainance tasks

2015-05-23 Thread Rasmus
Hi,

Bastien  writes:

> 1. Watching the emacs-diffs mailing list and backport changes on Org
>in the local Org repository (2 hours per month).
>
> 2. Adding public keys on the orgmode.org server for org-mode and worg
>contributers (1 hour per month).
>
> 3. Maintaining the orgmode.org server and taking care of errors when
>updating Worg (1 hour per month).
>
> 4. Merging the last stable release into Emacs repository.  (1 hour
>every release).
>
> 5. Releasing Org (.5 hour every release).

I can help with 2, 4 *OR* 5 as you prefer.  My git skillz are limited.

—Rasmus

-- 
Not everything that goes around comes back around, you know




Re: [O] Treat custom environment as verbatim on export

2015-05-23 Thread Rasmus
Hi Jacob,

Jacob Gerlach  writes:

> I want to use a one of several custom environments for some babel
> results using, for example, ":wrap myverbatim" as a header argument.
> (Since I have several possible environments, I think I need to use
> :wrap rather than, say, replacing "verbatim" using an export filter).
>
> However, since this block isn't recognized as an actual verbatim
> environment, markup gets processed in undesirable ways.

I remember that you already set custom export for your source blocks.  So
how about just mirroring that?  E.g.

#+BEGIN_SRC sh :exports results :results value code
echo "Hello_world"
#+END_SRC

#+RESULTS:
#+BEGIN_SRC sh
Hello_world
#+END_SRC

BTW: All headers are documented here:

 http://orgmode.org/manual/Specific-header-arguments.html

> - Is there any way I've missed to specify verbatim export as an option
> for an arbitrary block/environment?

The thing is :wrap doesn't play nicely with :results, but I cannot specify
how I expect them to behave.

> - If not, I think that I need a derived exporter to achieve this, but
> the `contents' of a special-block have already had markup transcoded
> by the time the derived backend function sees them. What functions
> would my derived backend need to replace to allow applying verbatim
> formatting to block types of my choosing?

It's a special block, so e.g. org-latex-special-block.  But contents is
already transcoded by the time in arrives to e.g. org-latex-special-block.
To the extend this should be fixed, one way would be to allow a raw option
to special blocks (also needed for e.g. #+{begin,end}_equation) and have
babel insert it as needed.  I don't know how easy this is.

Rasmus

-- 
I feel emotional landscapes they puzzle me




Re: [O] [RFC] Org linting library

2015-05-23 Thread Rainer M Krug
Nicolas Goaziou  writes:

> Rainer M Krug  writes:
>
>> 1) not identifying header argument with +
>> ,
>> | #+PROPERTY: header-args+ :tangle no
>> `
>>
>> results in
>>
>> ,
>> | 87 high  Unknown header argument ""
>> `
>
> This should be fixed.

Thanks.

>
>> 2) not knowing header argument "file-ext" from R
>> ,
>> | #+begin_src R  :exports results :file-ext pdf :results graphics :width 8 
>> :height 8
>> | plotSensMainEffAll(files)
>> | #+end_src
>> `
>>
>> results in
>>
>> ,
>> |   1691 high  Unknown header argument "file-ext"
>> `
>
> Fixed too.

Perfect - thanks.

>
>> 3) I am not to sure about this one, but in LaTeX labels of figures are
>> with the colon. Initially, I had #+LABEL: instead of #+NAME: but changed
>> it as one should use #+NAME instead of #+LABEL, but now I get the following:
>>
>> ,
>> | #+CAPTION: The caption
>> | #+NAME: fig:sensDefault
>> | #+RESULTS: fig_sensDefault
>> | [[file:./output/fig_sensDefault.pdf]]
>> `
>>
>> results in
>>
>> ,
>> |   1686 high  Name "fig:sensDefault" contains a colon; Babel cannot use it 
>> as input
>> `
>>
>> I agree with the fact that Babel can not use it as input, but I do not
>> want to use it as input, only as a label in LaTeX for the figure?
>
> Then you can ignore safely this report.

Concerning ignoring: it would be nice to dynamically exclude certain
types of messages - i.e. hiding them from the results of the
linting. I don't think this is possible at
the moment?

I have literally about 100 names with a colon - so these messages are
overshadowing the really important ones.

>
>> According to the manual this should work:
>>
>> http://orgmode.org/manual/Images-and-tables.html:
>>
>> ,
>> |  #+CAPTION: This is the caption for the next figure link (or table)
>> |  #+NAME:   fig:SED-HR4049
>> |  [[./img/a.jpg]]
>> `
>>
>> So maybe check if this is part of a construct with a CAPTION or if it
>> really is used as an input somewhere?
>
> It is quite complicated to check if it is an input somewhere, e.g., it
> could be used as an input in another document.

True - haven't considered that.

>
>> 4) references where :FILE is a normal PROPERTY: (or isn't it?)
>>
>> ,
>> | ** Koivusalo2002 - Snow processes in a forest clearing and in a coniferous 
>> forest
>> | :PROPERTIES:
>> | :TITLE:Snow processes in a forest clearing and in a coniferous forest
>> | :BTYPE:article
>> | :CUSTOM_ID: Koivusalo2002
>> | :AUTHOR:   Koivusalo, H. and Kokkonen, T.
>> | :DOI:  10.1016/S0022-1694(02)00031-8
>> | :FILE: file:./Literature/Koivusalo_2002.pdf
>> | :ISSN: 00221694
>> | :JOURNAL:  Journal of Hydrology
>> | :KEYWORDS: energy,forest,mathematical models,melt,snow,uxes
>> | :MENDELEY-GROUPS: Energy Balance,bibliography
>> | :MONTH:may
>> | :NUMBER:   1-4
>> | :PAGES:145--164
>> | :URL:  http://linkinghub.elsevier.com/retrieve/pii/S0022169402000318
>> | :VOLUME:   262
>> | :YEAR: 2002
>> | :END:
>> | [[file:Literature/Koivusalo2002.pdf]]
>> `
>>
>> results in
>>
>> ,
>> |  11221 high  Special property "FILE" found in a properties drawer
>> `
>
> "FILE" is a special property, i.e., it shouldn't be set in a property
> drawer. See (info "(org) Special properties").

OK - I'll throw it put then.

>
>> I am really happy with org-lint - thanks a lot. This makes working with
>> org files much easier.
>
> Thanks for all the feedback.

Pleasure - I found several undetected problems in my org file by using
the linting library.

Another question: When duplicate names are detected, would it be
possible to specify both (or more) line numbers in the warning? THis
would make finding them much easier.

Cheers,

Rainer

>
>
> Regards,

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


[O] LOGBOOK notes for other drawers?

2015-05-23 Thread Lawrence Bottorff
It seems that when I try to do a note (C-c C-z) I get an automatic LOGBOOK
drawer created with the new note put inside. Is there any way to place a
note inside another type of drawer. I have a drawer like this:

:PROPERTIES:
:CUSTOM_ID:
:SEMANTIC:
:DESC:
:END

and I'd like to place notes -- one after another -- between DESC and END.
Can this be done?

LB


[O] org-latex-classes removed?

2015-05-23 Thread David Dynerman
Hello,

In the master I'm currently seeing that org-latex-classes is
undefined. Is this intended? Has this functionality been replaced by
something else? I didn't see anything in a quick search of the mailing
list archives.

Running emacs -q, in *scratch* I evaluate:

(add-to-list 'load-path "/usr/share/site-lisp/org")
(load-library "org")
(require 'org)
(add-to-list 'org-latex-classes '("book-no-parts" "\\documentclass[11pt]{book}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . 
"\\subsubsection*{%s}")))

Result:

if: Symbol's value as variable is void: org-latex-classes

This is on OS X using a emacsformacosx.com build:

GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 
2015-04-10 on builder10-9.porkrind.org

Org-mode version 8.3beta (release_8.3beta-1159-g71641b @ 
/usr/share/site-lisp/org/)

ProductName:Mac OS X
ProductVersion: 10.10.3
BuildVersion:   14D136

Thank you,
David


signature.asc
Description: PGP signature


Re: [O] org-latex-classes removed?

2015-05-23 Thread David Dynerman
Please disregard - just a silly mistake on my end: forgot (require
'ox-latex).

Thank you,
David

David Dynerman writes:

> Hello,
>
> In the master I'm currently seeing that org-latex-classes is
> undefined. Is this intended? Has this functionality been replaced by
> something else? I didn't see anything in a quick search of the mailing
> list archives.
>
> Running emacs -q, in *scratch* I evaluate:
>
> (add-to-list 'load-path "/usr/share/site-lisp/org")
> (load-library "org")
> (require 'org)
> (add-to-list 'org-latex-classes '("book-no-parts" 
> "\\documentclass[11pt]{book}"
> ("\\chapter{%s}" . "\\chapter*{%s}")
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . 
> "\\subsubsection*{%s}")))
>
> Result:
>
> if: Symbol's value as variable is void: org-latex-classes
>
> This is on OS X using a emacsformacosx.com build:
>
> GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 
> 2015-04-10 on builder10-9.porkrind.org
>
> Org-mode version 8.3beta (release_8.3beta-1159-g71641b @ 
> /usr/share/site-lisp/org/)
>
> ProductName:  Mac OS X
> ProductVersion:   10.10.3
> BuildVersion: 14D136
>
> Thank you,
> David




Re: [O] Help needed on delegating some maintainance tasks

2015-05-23 Thread Kyle Meyer
Hi Bastien,

Bastien  wrote:
>
> I need help on these maintainance tasks :
>
> 1. Watching the emacs-diffs mailing list and backport changes on Org
>in the local Org repository (2 hours per month).
>
> 2. Adding public keys on the orgmode.org server for org-mode and worg
>contributers (1 hour per month).
>
> 3. Maintaining the orgmode.org server and taking care of errors when
>updating Worg (1 hour per month).
>
> 4. Merging the last stable release into Emacs repository.  (1 hour
>every release).
>
> 5. Releasing Org (.5 hour every release).

I'd be happy to help with #1.

-- 
Kyle



Re: [O] LOGBOOK notes for other drawers?

2015-05-23 Thread Lawrence Bottorff
. . . also, is there a way to have several notes in a drawer ordered
oldest-first?

On Sat, May 23, 2015 at 9:32 AM, Lawrence Bottorff 
wrote:

> It seems that when I try to do a note (C-c C-z) I get an automatic LOGBOOK
> drawer created with the new note put inside. Is there any way to place a
> note inside another type of drawer. I have a drawer like this:
>
> :PROPERTIES:
> :CUSTOM_ID:
> :SEMANTIC:
> :DESC:
> :END
>
> and I'd like to place notes -- one after another -- between DESC and END.
> Can this be done?
>
> LB
>


[O] Formatted text (bold/italics) in agenda view

2015-05-23 Thread Ali Tofigh
Hi,

I've noticed that formatting of text, e.g., using *text* or /text/, does not 
show up in agenda view. Is there a way of enabling this?

/ali




Re: [O] Treat custom environment as verbatim on export

2015-05-23 Thread Charles C. Berry

On Fri, 22 May 2015, Jacob Gerlach wrote:


Hello,

I want to use a one of several custom environments for some babel
results using, for example, ":wrap myverbatim" as a header argument.
(Since I have several possible environments, I think I need to use
:wrap rather than, say, replacing "verbatim" using an export filter).

However, since this block isn't recognized as an actual verbatim
environment, markup gets processed in undesirable ways.

For example:

-
#+BEGIN_SRC sh :exports results :wrap myverbatim
echo "Hello_world"
#+END_SRC

#+RESULTS:
#+BEGIN_myverbatim
Hello_world
#+END_myverbatim
-
exports to
-
\begin{myverbatim}
Hello\(_{\text{world}}\)
\end{myverbatim}
-
instead of
-
\begin{myverbatim}
Hello_world
\end{myverbatim}
-

A couple questions:

- Is there any way I've missed to specify verbatim export as an option
for an arbitrary block/environment?




You can use arbritrary latex environments inside a latex block with these 
header arguments:


:  :results raw :wrap latex :post postenv("env-name-goes-here")

If you define a wrapper for the results like this:

#+NAME: postenv
#+BEGIN_SRC emacs-lisp :var env="myverb"  :exports none
(format "\\begin{%s}\n%s\\end{%s}" env *this* env)
#+END_SRC

Then calling

#+header: :results raw :wrap latex :post postenv("myverbatim")
#+BEGIN_SRC sh :exports results
echo "Hello_world"
#+END_SRC

gives:

,
| \begin{myverbatim}
| Hello_world
| \end{myverbatim}
`

under latex export.

The `:results raw' is needed particularly for multiline results.

See the manual for each of those header args for more info.

You can also do this using :prologue and :epilogue, but I think :post is a 
bit neater.



HTH,

Chuck



Re: [O] [Orgmode] Unable to capture the file name generated using matplotlib

2015-05-23 Thread Dror Atariah
I am still helpless here. Any idea how to debug the problem? I would be
happy to provide any kind of help, but I just cannot do it myself.

Further findings:
1) I don't think that matplotlib changes Python's '_', since the tmp file
that contains the content of '_' is correct.
2) Somehow, emacs/orgmode fails to extract the filename.
3) It doesn't work also when using emacs 24.5 and orgmode 8.2.10.


Following is an org file that tries to summarize the issue:

#+TITLE: Integrate matplotlib figures in an org mode buffer
* Goal
The ultimate goal is to use org-babel as a replacement of IPython. The
first motivation is to enable an easier version controling of the
document. The first challenge I faced is integration of plots returned
by ~matplotlib~ in the org buffer.
* Capturing filename

I would like to use (babel) orgmode as an interactive python
notebook. Therefore, in order to allow the various code blocks to
"know" each other, it is important to use the ~:session~
option. However, once ~:session~ is used, together with ~matplotlib~
the desired behavior is no longer in place.

* Clean testing, no Matplotlib
For the sake of testing, the following merely suppose to return the filename

#+BEGIN_SRC python :session no_matplotlib :results file :exports both
x = 'hello '
y = 'world'
z = x + y
'foo.bar'
#+END_SRC

#+RESULTS:
[[file:foo.bar]]

*Passed* Indeed, the ~RESULTS~ block contains a link to the filename
indicated by the last string.

* Importing Matplotlib

The following minimal example should generate a simple figure,
~myfig.png~, and orgmode should capture it and interpret it as a
filename to be used by the following ~RESULTS~ block.

#+BEGIN_SRC python :session with_matplotlib :results file :exports both
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
fig=plt.figure(figsize=(3,2))
plt.plot([1,3,2])
plt.savefig('myfig.png')
'myfig.png'
#+END_SRC

#+RESULTS:
[[file:]]

*Failed!* This time, it doesn't work anymore. The file ~myfig.png~ is
 properly generated, but the last string is not captured by
 ~matplotlib~. Following is the content of the corresponding
 interactive python session:

#+BEGIN_SRC
Process with_matplotlib finished
Python 3.4.3 (default, Mar 10 2015, 14:53:35)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> >>> >>> ,
'''/var/folders/kz/1c2cxn1x60n_t5p2j1p02b18gn/T/py32771xVI''', 'exec'));
import matplotlib
>>> import matplotlib
matplotlib.use('Agg')
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
fig=plt.figure(figsize=(3,2))
fig=plt.figure(figsize=(3,2))
plt.plot([1,3,2])
plt.plot([1,3,2])
plt.savefig('myfig.png')
plt.savefig('myfig.png')
'myfig.png'
'myfig.png'


open('/var/folders/kz/1c2cxn1x60n_t5p2j1p02b18gn/T/babel-32771x4j/python-32771-fO',
'w').write(str(_))
open('/var/folders/kz/1c2cxn1x60n_t5p2j1p02b18gn/T/babel-32771x4j/python-32771-fO',
'w').write(str(_))




'org_babel_python_eoe'
'org_babel_python_eoe'
>>> []
>>> 'myfig.png'
>>> >>> 9
>>> >>> >>> 'org_babel_python_eoe'
>>>
#+END_SRC

* Some background

** Python Version
#+BEGIN_SRC python :session background :results raw
import sys
sys.version
#+END_SRC

#+RESULTS:
3.4.3 (default, Mar 10 2015, 14:53:35)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)]

** Matplotlib version
#+BEGIN_SRC python :session background :results raw
import matplotlib
matplotlib.__version__
#+END_SRC

#+RESULTS:
1.4.3

** System
I am running Emacs version ~GNU Emacs 24.5.1 (x86_64-apple-darwin14.1.0, NS
apple-appkit-1344.72) of 2015-04-19 on tenten-slave.macports.org~

The orgmode version is: ~Org-mode version 8.2.10
(8.2.10-40-gc763fa-elpaplus @
/Users/drorata/.emacs.d/elpa/org-plus-contrib-20150518/)~

** Stackoverflow reference
I also posted a question in the SE network:
[[
http://emacs.stackexchange.com/questions/11075/org-mode-python-session-does-not-return-a-file-name
]]

* Question
So, my question is how to tackle/debug this issue? Can someone give me
a hand here? That would be really great! Thanks!


Re: [O] Help needed on delegating some maintainance tasks (was: Org maintainance)

2015-05-23 Thread Robert Klein
On Sat, 23 May 2015 10:47:49 +0200
Bastien  wrote:

> Hi all,
> 
> I need help on these maintainance tasks :
> 
> 1. Watching the emacs-diffs mailing list and backport changes on Org
>in the local Org repository (2 hours per month).
> 
> 2. Adding public keys on the orgmode.org server for org-mode and worg
>contributers (1 hour per month).
> 
> 3. Maintaining the orgmode.org server and taking care of errors when
>updating Worg (1 hour per month).
> 
> 4. Merging the last stable release into Emacs repository.  (1 hour
>every release).
> 
> 5. Releasing Org (.5 hour every release).
> 

I'd like to help with 3 but would need an introduction.

Best regards
Robert



Re: [O] LOGBOOK notes for other drawers?

2015-05-23 Thread Nicolas Goaziou
Hello,

Lawrence Bottorff  writes:

> It seems that when I try to do a note (C-c C-z) I get an automatic LOGBOOK
> drawer created with the new note put inside. Is there any way to place a
> note inside another type of drawer. I have a drawer like this:
>
> :PROPERTIES:
> :CUSTOM_ID:
> :SEMANTIC:
> :DESC:
> :END
>
> and I'd like to place notes -- one after another -- between DESC and END.
> Can this be done?

You can replace "LOGBOOK" with something else customizing
`org-log-into-drawer'. However, "properties" drawers right after
a headline (and possibly a planning line) are treated specially and
cannot contain arbitrary text.


Regards,

-- 
Nicolas Goaziou



Re: [O] LOGBOOK notes for other drawers?

2015-05-23 Thread Nicolas Goaziou
Hello,

Lawrence Bottorff  writes:

> . . . also, is there a way to have several notes in a drawer ordered
> oldest-first?

See `org-log-states-order-reversed'.


Regards,

-- 
Nicolas Goaziou



[O] [PATCH] org-src: Fix reference to free variable

2015-05-23 Thread Kyle Meyer
Hello,

The attached patch fixes a void variable error that occurs when remote
editing an empty footnote.  (This was introduced by commit
71641bc3a08.)

>From 9ba6a2f4af05c1104c678d959ff285bc7df5a70a Mon Sep 17 00:00:00 2001
From: Kyle Meyer 
Date: Sat, 23 May 2015 15:18:07 -0400
Subject: [PATCH] org-src: Fix reference to free variable

* lisp/org-src.el (org-src--contents-area): Replace a let with let*.
---
 lisp/org-src.el | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/org-src.el b/lisp/org-src.el
index 5201dca..88c8dd2 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -273,10 +273,10 @@ (defun org-src--contents-area (datum)
   (let ((type (org-element-type datum)))
 (cond
  ((eq type 'footnote-definition)
-  (let ((beg (org-with-wide-buffer
-		  (goto-char (org-element-property :post-affiliated datum))
-		  (search-forward "]")))
-	(end (or (org-element-property :contents-end datum) beg)))
+  (let* ((beg (org-with-wide-buffer
+		   (goto-char (org-element-property :post-affiliated datum))
+		   (search-forward "]")))
+	 (end (or (org-element-property :contents-end datum) beg)))
 	(list beg end (buffer-substring-no-properties beg end
  ((org-element-property :contents-begin datum)
   (list (org-element-property :contents-begin datum)
-- 
2.4.1


--
Kyle


Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-23 Thread Nicolas Goaziou
Rasmus  writes:

> Actually when calling just backward-sentence this still seems broken.
>
> (mapcar (lambda (mode)
> (with-temp-buffer
>   (text-mode)
>   (funcall mode)
>   (insert"- foo
>   bar")
>   (backward-sentence)
>   (point)))
>   '(text-mode org-mode turn-on-orgstruct++))
> => (1 9 9)
>
> It only works if I explicitly call org-backward-sentence, not
> backward-sentence.  In orgstruct-mode this seems unfortunate.

I think the best we can do is to hijack M-a/M-e when `orgstruct-mode' is
used. `orgtbl-mode' already does it actually.

WDYT?


Regards,



Re: [O] [PATCH] ob-core: Fix indented cached result returning nil

2015-05-23 Thread Nicolas Goaziou
Bjarte Johansen  writes:

> Fix a problem where a source block would return nil oif the result was
> cached and it was indented.

Thank you. 

However, the test you provide fails. I suggest to create "test.txt" in
`temporary-file-directory' instead of `default-directory'.

Regards,



Re: [O] [PATCH] org-src: Fix reference to free variable

2015-05-23 Thread Nicolas Goaziou
Hello,

Kyle Meyer  writes:

> The attached patch fixes a void variable error that occurs when remote
> editing an empty footnote.  (This was introduced by commit
> 71641bc3a08.)

Applied. Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-23 Thread Rasmus
Nicolas Goaziou  writes:

> I think the best we can do is to hijack M-a/M-e when `orgstruct-mode' is
> used. `orgtbl-mode' already does it actually.
>
> WDYT?

It wouldn't solve my particular issue, as I use (a package that uses)
backward-sentence for asserting whether to capitalize a word.  I could
maintain my own copy of the package, though.

I guess we could, and maybe should, remap the function in orgstruct modes.

Rasmus

-- 
To err is human. To screw up 10⁶ times per second, you need a computer



Re: [O] How to elegantly and effectively quote org fragments?

2015-05-23 Thread Nicolas Goaziou
alain.coch...@unistra.fr writes:

> Ah, thank you.  If I understand correctly, though, once one does that
> (in an SRC org block, say) one looses the ability to edit the block as
> org code using org-edit-special (C-c ').

You can, in development version.

> I understand that the indentation is virtual; it is just that I would
> (ideally) expect for the quoted example to visually look the same as
> it does in an org buffer.

That's not possible.

> OK.  I had missed this footnote.  I will live with this, but am still
> surprised by this fact -- the SRC org block looks ugly to me.  When we
> enter [[xx]] (say) the brackets become invisible, so I had assumed
> that a similar mechanism could exist here; I guess there are
> advantages to the present situation that I do not see...

I am not sure about what situation you're talking about, fontification
or escaping mechanism.

About the latter, the idea was to make it as little intrusive as
possible. In most languages, you never need to escape anything. Of
course, Org is an exception since many lines could conflict with
enclosing document.

Regards,



Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-23 Thread Nicolas Goaziou
Rasmus  writes:

> It wouldn't solve my particular issue, as I use (a package that uses)
> backward-sentence for asserting whether to capitalize a word.  I could
> maintain my own copy of the package, though.

You can use `advice-add' in this case.

Regards,



Re: [O] [bug] orgstruct++-mode breaks backward-sentence

2015-05-23 Thread Rasmus
Nicolas Goaziou  writes:

> You can use `advice-add' in this case.

Or just add-function.

*I* can solve it one way or the other.  But that does not
necessarily mean that it's not a bug.  And that was the question.

—Rasmus

-- 
. . . It begins of course with The Internet.  A Net of Peers




[O] org-clock-persistence-insinuate not working anymore (25.0.5)

2015-05-23 Thread Tory S. Anderson
I've been using the following code for several months to make it easy to clock 
back in to my frequent tasks as I track my time usage:

--8<---cut here---start->8---
(org-clock-persistence-insinuate)
(setq org-clock-persist t)
--8<---cut here---end--->8---

A few days ago I updated emacs to the dev master and my clock is no longer 
persisting; the list of recent tasks is perpetually "nil". Any ideas on how to 
fix this, or what happened?




[O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)]

2015-05-23 Thread Titus von der Malsburg

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


I’m exporting the following document to LaTeX

#+BEGIN_SRC R :results table :exports results :colnames yes :rownames yes
  x <- data.frame(a=1:2, b=3:4)
  rownames(x) <- c("One:", "Two:")
#+END_SRC

and expect a table with the following layout:

 a b
One: 1 3
Two: 2 4

Instead I got this:

   x
 1 One:
 2 Two:

Here’s the LaTeX code:

\begin{tabular}{rl}
 & x\\
\hline
1 & One:\\
2 & Two:\\
\end{tabular}

Emacs  : GNU Emacs 25.0.50.5 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2015-05-12 on montana
Package: Org-mode version 8.3beta (release_8.3beta-1157-g8ddb84 @ 
/home/malsburg/usr/share/emacs/site-lisp/org/)



signature.asc
Description: PGP signature