Marcin Borkowski | 25 Oct 01:09 2014
Picon

How to check whether the headline the point is on has some tag?

Hi list,

I'd like to implement splitting an org file at tagged entries in my
org-one-to-many library (as requested on the list by Daniel Clemente).
How do I check whether a specific headline (say, one a point is at) has
some tag (but not inherited)?

TIA,

--

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

Sebastien Vauban | 24 Oct 21:10 2014

bug#18785: 24.4.1; Emacs hangs with Org mode when point is in LOGBOOK

Eli Zaretskii wrote:
>> From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg <at> public.gmane.org>
>> Cc: 18785-ubl+/3LiMTaZdePnXv/OxA <at> public.gmane.org
>> Date: Fri, 24 Oct 2014 16:44:03 +0200
>> 
>> > Some, yes.  Now do that again, but instead of typing "finish", type
>> > "bt full" after "thread 1".
>> 
>> Here it is:
>
> Thanks.  What happens if you type "xbacktrace"?  (You might need to
> type "source /path/to/.gdbinit" before that, to get the xbacktrace
> command defined.)

It seems to fail?

I still re-did a backtrace after that, and another xbacktrace at the
end...

--8<---------------cut here---------------start------------->8---
$ gdb -p 8300
GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
(Continue reading)

Sebastien Vauban | 24 Oct 16:44 2014

bug#18785: 24.4.1; Emacs hangs with Org mode when point is in LOGBOOK

Eli Zaretskii wrote:
>> From: Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ <at> public.gmane.org>
>> Cc: 18785-ubl+/3LiMTaZdePnXv/OxA <at> public.gmane.org,  emacs-orgmode-mXXj517/zsQ <at> public.gmane.org
>> Date: Thu, 23 Oct 2014 19:27:26 +0200
>> 
>> 920     c:/msys/home/Dani/emacs/trunk/src/bytecode.c: No such file or directory.
>> Value returned is $50 = 206279014
>> (gdb)
>> Run till exit from #0  0x0118ab67 in exec_byte_code (bytestr=206279014, vector=410, maxdepth=1, args_template=21994650, nargs=21994650, args=0x0) at c:/msys/home/Dani/emacs/trunk/src/bytecode.c:920
>> [New Thread 2888.0x27e8]
>> [New Thread 2888.0x1160]
>> --8<---------------cut here---------------end--------------->8---
>> 
>> Does it give you some meat?
>
> Some, yes.  Now do that again, but instead of typing "finish", type
> "bt full" after "thread 1".

Here it is:

--8<---------------cut here---------------start------------->8---
$ gdb -p 9348
GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
(Continue reading)

Kenneth Jacker | 24 Oct 16:33 2014

Indentation Problem Using LaTeX Export

Good day!

In LaTeX terms, I believe an "\end{itemize}" is closing a list later
that I want.  Its kind of hard to explain, but I'll try via an example ...

I basically have a couple of nested outlines and body text.  Something
like this in Org format:

     * Alpha

     porttitor, elit at imperdiet consequat, nunc nisl dapibus dui, eu
     fermentum ipsum magna et mi. Sed egestas erat et dolor lobortis, sit
     amet cursus

     ** Alpha1

     ** Alpha2

     lorem tincidunt. Vivamus eget bibendum est. Integer justo mauris,
     sodales eget commodo quis, faucibus non est. Nulla facilisi

     
this produces something like:

     1 Alpha

     porttitor, elit at imperdiet consequat, nunc nisl dapibus dui, eu
     fermentum ipsum magna et mi. Sed egestas erat et dolor lobortis, sit
     amet cursus

(Continue reading)

Alan Schmitt | 24 Oct 08:41 2014

Stack overflow in regexp matcher

Hello,

I've just got the following backtrace when opening an org
file. Unfortunately I cannot reproduce it reliably, but I was wondering
if others had seen something similar.

Debugger entered--Lisp error: (error "Stack overflow in regexp matcher")
  re-search-forward("^[^%]*\\\\usepackage.*{biblatex}" nil t)
  reftex-using-biblatex-p()
  reftex-locate-bibliography-files("/Users/schmitta/Documents/Org/")
  byte-code("…" [file master-dir file-found buf docstruct reftex-keep-temporary-buffers
reftex-locate-file "tex" reftex-get-buffer-visiting buffer-file-name file-error throw exit nil
message "Scanning file %s" reftex-get-file-buffer-force t bof syntax-table ((set-syntax-table
saved-syntax)) set-syntax-table 1 re-search-forward reftex-match-string 0 7 "label{" fboundp
TeX-current-macro LaTeX-current-environment match-data ((byte-code "…"
[save-match-data-internal set-match-data evaporate] 3)) ((byte-code "…"
[save-match-data-internal set-match-data evaporate] 3)) reftex-label-info 3 92 -1 5 "Scanning %s %s
..." rassoc 6 delq mapcar #[(x) "…" [x include-file string-match] 3] reftex-parse-from-file 9
reftex-init-section-numbers appendix 10 ...] 7)
  reftex-parse-from-file("/Users/schmitta/Documents/Org/boardgames-runx.org" nil "/Users/schmitta/Documents/Org/")
  reftex-do-parse(1 nil)
  reftex-access-scan-info((16))
  reftex-parse-all()
  (progn (reftex-parse-all) (reftex-set-cite-format (quote ((98 . "[[bib:%l][%l-bib]]") (99 .
"\\cite{%l}") (110 . "[[note:%l][%l-note]]") (108 . "%t
(%a)\n[[bibdesk:/Users/schmitta/projets/bib/alan.bib::%l][%l-BibDesk]]") (116 . "%t") (104 .
"** %t (%a)\n:PROPERTIES:\n:Custom_ID: %l\n:END:\n[[bib:%l][%l-bib]]\n[[bibdesk:/Users/schmitta/projets/bib/alan.bib::%l][%l-BibDesk]]")))))
  (and (buffer-file-name) (file-exists-p (buffer-file-name)) (progn (reftex-parse-all)
(reftex-set-cite-format (quote ((98 . "[[bib:%l][%l-bib]]") (99 . "\\cite{%l}") (110 .
"[[note:%l][%l-note]]") (108 . "%t
(Continue reading)

Brady Trainor | 24 Oct 04:57 2014

extra newlines in TYPE checkitem for capture-templates


I am prepending a checkboxed plain list item to a file named "pomodoro.org" (I'm not really doing pomodoro
here anymore, it started as this but the unique filename stuck, and it is my ad-hoc datetree). It is
organized much like a datetree, but flatter and newest first, thus the use of prepend. However, the
capture buffer includes two extra newlines, which I must get rid of before or after completing the
capture. 

Is this desired behavior for capture-templates TYPE checkitem? 

I am still on ELPA version of org, 8.2.10. 

Here is my 

#+BEGIN_SRC emacs-lisp
(setq pomodoro "~/pomodoro.org")
(setq org-capture-templates
      `(("p" "pomodoro, checklist" checkitem (file ,pomodoro)
         ""
         :prepend t
         :empty-lines 0
         :empty-lines-before 0
         :empty-lines-after 0
         ;; :unnarrowed t
         )))
#+END_SRC

The result of consecutive captures looks like: 

#+BEGIN_SRC org

(Continue reading)

Sebastien Vauban | 23 Oct 20:49 2014

Re: Adding `sort' in R makes the output fail


"Charles C. Berry" wrote:
> On Thu, 23 Oct 2014, Sebastien Vauban wrote:
>>
>> The following code does return a corrupted answer, while it's supposed
>> to return a sorted dataframe.
>
> Not so. See below.

So, that's RStudio that's wrong, in some way?

>> --8<---------------cut here---------------start------------->8---
>> #+BEGIN_SRC R :results value replace
>> con <- textConnection("
>> index	email
>> A	abc-hcDgGtZH8xNBDgjK7y7TUQ@...
>> B	def-hcDgGtZH8xNBDgjK7y7TUQ@...
>> C	def-hcDgGtZH8xNBDgjK7y7TUQ@...
>> D	ghi-hcDgGtZH8xNBDgjK7y7TUQ@...
>> E	abc-hcDgGtZH8xNBDgjK7y7TUQ@...
>> F	def-hcDgGtZH8xNBDgjK7y7TUQ@...")
>> df <- read.table(con, header = TRUE)
>> sort(table(df$email))
>> #+END_SRC
>>
>> #+results:
>> | 1 |
>> | 2 |
>> | 3 |
>> --8<---------------cut here---------------end--------------->8---
(Continue reading)

Sebastien Vauban | 23 Oct 16:37 2014

Adding `sort' in R makes the output fail

Hello,

The following code does return a corrupted answer, while it's supposed
to return a sorted dataframe.

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC R :results value replace
con <- textConnection("
index	email
A	abc@...
B	def@...
C	def@...
D	ghi@...
E	abc@...
F	def@...")
df <- read.table(con, header = TRUE)
sort(table(df$email))
#+END_SRC

#+results:
| 1 |
| 2 |
| 3 |
--8<---------------cut here---------------end--------------->8---

See video at http://screencast.com/t/4u4Sj1Mkycwp to see the effect of
adding `sort', and see the output in RStudio (correct in both cases:
with and without `sort') on the right side of the video.

What's wrong here?
(Continue reading)

Tak Kunihiro | 23 Oct 15:47 2014
Picon

orgtbl-to-matlab

Since LaTeX + radiotable is so comfortable, I start to use it on
MATLAB coding.  The translator may be useful for some and I want to
let you know.

%{
#+ORGTBL: SEND tbl:radiotable orgtbl-to-matlab :no-escape t
|    x |     y | symbol |
|------+-------+--------|
| 0.79 | 0.243 | +      |
| 0.78 | 0.230 | x      |
| 0.78 | 0.242 | .      |
%}
% BEGIN RECEIVE ORGTBL tbl:radiotable
x = [0.79 0.78 0.78];
y = [0.243 0.230 0.242];
symbol = {'+','x','.'};
% END RECEIVE ORGTBL tbl:radiotable

(defun orgtbl-to-matlab (table params)
  "Convert the orgtbl-mode table to MATLAB statements."
  (let* ((*list-is-num* org-table-last-alignment)
         (*table-flip* (orgtbl-to-orgtbl-flip table))
         (*index* (number-sequence 0 (1- (length *table-flip*)))))
    (mapconcat (lambda (ii) (orgtbl-to-matlab--column
                             (nth ii *table-flip*) params (nth ii *list-is-num*)))
               *index* "\n")))

(defun orgtbl-to-matlab--column (table-nth-col params is-num-p)
  "Convert a column of the orgtbl-mode table to a MATLAB statement."
  (let ((params2 (list
(Continue reading)

Puneeth Chaganti | 23 Oct 14:34 2014
Picon

[patch] Minor worg patch for org-drill documentation

Hi,

This is a minor patch to the documentation of org-drill.

Thanks for the wonderful extension to org, Paul!

--

-- 
Puneeth
Igor Sosa Mayor | 23 Oct 12:02 2014
Picon

Yank "normal" text as item in list

Hi,

often I have to yank 'normal' text, that means, text which is not
indented into a item of a list. In other words, maybe, to convert it
into a list item.

I have always the problem that, when the text over one line goes, it
does not get the correct indentation.

Is there maybe a magical function to get this?

Many thanks in advance!

--

-- 
:: Igor Sosa Mayor     :: joseleopoldo1792 <at> gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::


Gmane