Re: [O] Setting a parametric org-agenda-skip-function?

2013-06-23 Thread Alan Schmitt
Hello,

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

 Hello,

 I'm trying to have a custom agenda where I say I want to skip some
 tags. I wrote a function that does what I want (it takes two arguments:
 the list of tags to keep, and a boolean that says whether entries with
 no tags should be kept). The function works well, but for some reason it
 is not called. Here is how I try to call it:

  (w Work Agenda
   ((agenda 
((org-agenda-skip-function 
  '(org-agenda-skip-entry-unless-tags 
my-work-tags
t

 I make org-agenda-skip-entry-unless-tags as debugged, and when I call
 this agenda view, I don't go in the debugger, so I guess it is not
 called.

I'm still trying to investigate this, but I can't find out how to step
in the debugger for this. I tried using a skip everything function,
defined as:

(defun as/skip-everything ()
  (let ((next-headline (save-excursion (or (outline-next-heading) 
(point-max)
next-headline))
)

and it is taken into account. However, I can't seem to debug this
function (if I C-u C-M-x it, running the agenda generation command
works, and everything is skipped, but I don't get into the
debugger). This is quite strange because I can debug skipping functions
for tags-todo blocks, but for some reason I cannot debug skipping
functions for agenda blocks.

Is there something special about how skipping functions work with agenda
blocks? I'd appreciate any hint on how to try to debug this.

Thanks,

Alan



Re: [O] Displaying regression results from R in beamer

2013-06-23 Thread Eric Schulte
Vikas Rawal vikasli...@agrarianresearch.org writes:

 I want to display regression results from an R source block in a
 beamer export. The best I could find was to use R libraries stargazer
 or texreg to produce latex code from the regression results.

 However, when I use 

 #+BEGIN_SRC R :results value latex

Your problem is the word value, which will cause thing which look like
tables to be interpreted as tables.  I'd try removing value, or adding
scalar to :results.

Cheers,

 
 R source block here #+END_SRC

 The output I get is enclosed in | on both sides:

 #+BEGIN_LaTeX
 | 
 |
 | % Table created by StarGazer v.3.0.1 by Marek Hlavac, Harvard University. 
 E-mail: hlavac at fas.harvard.edu |
 | % Date and time: Sun, Jun 23, 2013 - 07:41:02   
 |
 | \begin{table}[htb] \centering   
 |
 | \caption{}  
 |
 | \label{}
 |
 | \footnotesize   
 |
 | 
 |
 | \begin{tabular}{@{\extracolsep{5pt}}lc} 
 |
 | \\[-1.8ex]\hline
 |
 | \hline \\[-1.8ex]   
 |
 |  \multicolumn{1}{c}{\textit{Dependent variable:}} \\   
 |
 | \cline{2-2} 
 |
 | \\[-1.8ex]  Days\_per\_capita\_men \\  
 |
 | \hline \\[-1.8ex]   
 |
 | Land\_cultivated  $0.015$ \\   
 |
 |  $(0.027)$ \\  
 |
 |  \\
 |
 | Social\_groupScheduled tribe  $0.336^{***}$ \\ 
 |
 |  $(0.076)$ \\  
 |
 |  \\
 |
 | Social\_groupMuslim  $-0.022$ \\   
 |
 |  $(0.098)$ \\  
 |
 |  \\
 |
 | Social\_groupOthers  $0.141^{**}$ \\   
 |
 |  $(0.063)$ \\  
 |
 |  \\
 |
 | Household\_type2  $0.775^{***}$ \\ 
 |
 |  $(0.105)$ \\  
 |
 |  \\
 |
 | Household\_type3  $0.987^{***}$ \\ 
 |
 |  $(0.100)$ \\  
 |
 |  \\
 |
 | Household\_type4  $-0.277^{**}$ \\ 
 |
 |  $(0.120)$ \\  
 |
 |  \\
 |
 | Household\_type9  $0.684^{***}$ \\ 
 |
 |  $(0.175)$ \\  
 |
 |  \\   

[O] Bastien as maintainer on the web page

2013-06-23 Thread Karl Voit
Hi!

Since I updated the german Wikipedia article on Org-mode[1] I
noticed that on the official Org-mode web page[2] maintainership is
still listed with Bastien. The same goes for the online
documentation (appendix).

Is there a reason that Carsten is not listed as maintainer yet?[3]


  1. https://de.wikipedia.org/wiki/Org-mode
  2. http://orgmode.org/
  3. http://article.gmane.org/gmane.emacs.orgmode/70755
-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] :session question -- and changes to #+Property: syntax

2013-06-23 Thread Achim Gratz
Achim Gratz writes:
 Eric Schulte writes:
 Oh, I understand now.  I would also be happy with using *no* header
 arguments for this ephemeral elisp block if that is easily accomplished.

 I'll make a patch for testing this.

I'll have to think about his some more.  The info block produced from
the header arguments is used in two places and there's another
not-quite-exact copy of this in ob-exp that would need attention at the
same time.

 Hopefully the simpler solution which uses the existing value of
 `org-babel-current-src-block-location' will prove sufficient (once
 someone implements it that is...).

 I'll implement it and see if this seems more useful than the current
 behaviour.  If it is, then we'll have to decide if that new behaviour
 replaces the old one or yet another header argument or option switches
 between old and new.  I guess it could be arranged so that the old-style
 properties kept the old behaviour and the new-style properties followed
 the new…

I've pushed this to master, with documentation and testing.  Old style
property-based header arguments keep the old behaviour of looking up the
properties at the point of source block definition for backwards
compatibility and are now deprecated.  The new header-args[:lang]
properties use the location of the call as recorded in
`org-babel-current-src-block-location'.



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

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




Re: [O] [RFC] Replace some HTML related keywords with OPTIONS items

2013-06-23 Thread Carsten Dominik

On 21.6.2013, at 22:41, Achim Gratz strom...@nexgo.de wrote:

 Nicolas Goaziou writes:
 Here is a preliminary patch. It doesn't update org.texi yet.
 
 I find the new syntax weird for one character keys:
 
  #+OPTIONS: :* t :e t :: t :f t :- t :^ t :| t
 
 Maybe we should expand them in order to make them less cryptic.
 
 Indeed, too much punctuation.  How about something along these lines?
 
 #+OPTIONS: :enable *e: :disable ^|

Hi,

I agree with this proposal.  The property-lit like style should
use longer names and avoid the short ones.  And we should also
keep supporting the old compact style, and document it with a foot note
in the manual.

- Carsten

 
 
 Regards,
 Achim.
 -- 
 +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+
 
 SD adaptation for Waldorf rackAttack V1.04R1:
 http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
 
 




[O] Can org regenerate the cache automatically?

2013-06-23 Thread Samuel Wales
When Org says this:

   Please regenerate the refile cache with `C-0 C-c C-w'

I wonder if it makes sense to:

  1) regenerate the cache automatically
 - probably usually the user still wants to refile
  2) for a massive increase in speed, ONLY regenerate it for
 whichever file is out of date

Thanks.

Samuel

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

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] Displaying regression results from R in beamer

2013-06-23 Thread Vikas Rawal

  #+BEGIN_SRC R :results value latex
 
 Your problem is the word value, which will cause thing which look like
 tables to be interpreted as tables.  I'd try removing value, or adding
 scalar to :results.

:results scalar latex

works beautifully. 

Thanks,

Vikas