Re: Add 'readonly' option to ob-sqlite

2024-06-23 Thread dmg
src-block'." (member :html others) separator) "" "-csv")) + (cons "readonly" + (if readonly-p "-readonly" "")) (cons "db" (or db "" ;; body of the code block (org-babel-expand-body:sqlite body params))) -- 2.45.2 -- Daniel M. German ""Geek" is a badge of honor." Eric Schmidt, CEO of Novell http://turingmachine.org/ http://silvernegative.com/ dmg (at) uvic (dot) ca replace (at) with @ and (dot) with .

bug processing non emacs-lisp blocks

2021-07-28 Thread dmg
he Regular expression should be more stringent, so it does match exactly the string and not a substring. I think this is a regression. I used to comment out blocks from my .org init files by simply adding a XXX (as in emacs-lisp). In current org these blocks are tangled :( -- --dmg ---

[O] patch to worg: documenting perl support in babel blocks

2018-06-27 Thread dmg
hi everybody, I have a patch to contribute to the website. I have an account in the git repo, but I cannot push. I am attaching the patch. thank you, -- --dmg --- D M German http://turingmachine.org From f265fe36a1633dc9b43c98a93eabcb31607939e5 Mon Sep 17 00:00:00 2001 From: D German

[O] how to save script created when executing a babel block?

2018-06-20 Thread dmg
hi everybody, is there a way to save the script created by babel that is being executed? thank you, -- --dmg --- D M German http://turingmachine.org

[O] bug report: + is not escaped in org-link-escape

2017-12-06 Thread dmg
variable may be risky if used as a file-local variable. I use org-link-escape to jump from an email in gnus to gmail by searching the message-id. But if when the message-id contains +, this character must be escaped. thank you, -- --dmg --- Daniel M. German http://turingmachine.org

Re: [O] how to select a source code block and print it to a postscript file

2017-09-09 Thread dmg
selection and print that selection to ps, then convert to pdf, and open using org-open -- (defcustom dmg-org-src-export-pdf-font-size 12 "Size of font to use " :type 'number :version 25 :group 'dm

[O] how to select a source code block and print it to a postscript file

2017-09-09 Thread dmg
(progn (goto-char (cdr blockp)) (previous-line) (point) )) ) (narrow-to-region block-start block-end)) (user-error "Not in a block")) (ps-print-buffer-with-faces ps-file) (she

Re: [O] Bug report: export to HTML does not escape * in example

2017-02-27 Thread dmg
he * in the RESULTS block? thanks again, --daniel​ -- --dmg --- Daniel M. German http://turingmachine.org

[O] Bug report: export to HTML does not escape * in example

2017-02-26 Thread dmg
0.3, under emacs-25. Table of Contents 1. Example 2. hello world 2 1 Example hello world 1 #+beginexample 2 hello world 2 #+endexample -- --dmg --- Daniel M. German http://turingmachine.org

[O] bug report: ox-html with coderef links needs a space between attributes in element (with patch)

2017-01-24 Thread dmg
over=\"CodeHighlightOn(this, \ '%s');\" onmouseout=\"CodeHighlightOff(this, '%s');\"" fragment fragment) attributes -- --dmg --- Daniel M. German http://turingmachine.org

[O] function to select text of in a cell of a table

2016-12-30 Thread dmg
hi everybody, has anybody written a function to select the text in a cell of a table? I needed to write a macro/command, but could not find one. Ideally it should trim the whitespace in the ends. Otherwise, I'll just write one. thank you, --daniel -- --dmg --- Daniel M. German

[O] question about org-coderef-label-format and HTML export

2016-12-05 Thread dmg
the expected behaviour? or am I doing something wrong? my version of org-mode is: 9.0.1 thank you! --daniel -- --dmg --- Daniel M. German http://turingmachine.org

[O] adding code before org-babel sql execution (postgres engine)

2016-09-06 Thread dmg
is there a clean, easy way to do this? Any hints on how to do it? thank you very much, --daniel -- --dmg --- Daniel M. German http://turingmachine.org

[O] wishful thinking: using SQL to process tables. in the meantime, use R

2016-07-20 Thread dmg
value :colnames yes merge(a,b,by.x="column") #+END_SRC merge can do left joins, right joins, full joins, joins, https://stat.ethz.ch/R-manual/R-devel/library/base/html/merge.html but there is nothing like the power of SQL to process tables, though. -- --dmg --- Daniel M. G

Re: [O] how to update and add info to babel documentation?

2016-07-19 Thread dmg
Thanks Tom, Here is my patch. On Tue, Jul 19, 2016 at 10:05 AM, Thomas S. Dye wrote: > Aloha dmg, > > You can find instructions here: > > http://orgmode.org/worg/worg-git.html > > Thanks for your help. > > All the best, > Tom > > dmg writes: > > &g

[O] how to update and add info to babel documentation?

2016-07-18 Thread dmg
variables in the mode. I had to read its source code to know that you can to prefix the variable name with $ for it to work, eg: #+BEGIN_SRC sqlite :db /tmp/rip.db :var x="table" select * from $x; #+END_SRC ​thank you,​ -- --dmg --- Daniel M. German http://turingmachine.org

Re: [O] evaluation of perl in babel

2013-02-25 Thread dmg
eed. A bit cumbersome, but I can live with it #+begin_src perl :results html " a " #+end_src #+RESULTS: #+BEGIN_HTML a #+END_HTML thanks again for the explanation, -- --dmg --- Daniel M. German http://turingmachine.org

Re: [O] evaluation of perl in babel

2013-02-24 Thread dmg
Mm, I didn't include :results value I think that :results value should do what it does now: return the value of the last expression. --dmg On Sun, Feb 24, 2013 at 1:08 PM, D M German wrote: > > Hi Everybody, > > I looked a bit more onto the way that perl is evaluated. I know

Re: [O] bug in expansion of variables in babel Perl

2013-02-24 Thread dmg
Mm, I also noticed that when :results output is used, there is no way to insert perl code before or after the executed code. org-babel-perl-wrapper-method only works for all the methods but output. It would be nice to have a variable that does this for any output type. --dmg On Sun, Feb 24, 2013

Re: [O] babel and postgresql

2013-02-23 Thread dmg
ms to be the same. Sorry for the confusion. --daniel On Sat, Feb 23, 2013 at 10:42 PM, dmg wrote: > Hi everybody, Eric, > > I have been starting using Babel with postgresql, R and perl, and I am > loving it. I really want to thank everybody for their work. > > I have found one

[O] babel and postgresql

2013-02-23 Thread dmg
(cons 'hline (cdr-safe x)) + ) + ) + (org-table-to-lisp)) (org-babel-pick-name (cdr (assoc :colname-names params)) (cdr (assoc :colnames params))) (org-babel-pick-name (cdr (assoc :rowname-names params)) -

Re: [O] a window with my agenda at all times

2011-06-27 Thread dmg
here is a patch worg (org-hacks.org) describing the hack. Hopefully somebody with write access to can commit it. --dmg diff --git a/org-hacks.org b/org-hacks.org index 024eaf3..19b67c9 100644 --- a/org-hacks.org +++ b/org-hacks.org @@ -2259,3 +2259,30 @@ position in the track. See the file

Re: [O] a window with my agenda at all times

2011-06-27 Thread dmg
//orgmode.org/worg/org-hacks.html I will > > Thanks! > > -- >  Bastien > -- --dmg --- Daniel M. German http://turingmachine.org

Re: [Orgmode] Re: org-protocol: non-ASCII characters

2010-02-12 Thread dmg
tocol://remember://docview/tmp/00%C3%A1%C3%A9%C3%AD%C3%B3%C3%BA.pdf::1' the filename is /tmp/00áéíóú.pdf But emacs incorrectly stops parsing the link after tmp/ By the way, xournal now supports store-link --dmg > > > > > The function that does the decoding is `org-protocol-un

Re: [Orgmode] org-remember support in xournal

2010-02-03 Thread dmg
>> >> In both cases the protocol is docview: >> >> emacsclient 'org-protocol://remember://docview:filename::pagenumber > > Can you add a second menu item ("Store Link"), which uses > 'org-protocol://store-link://docview:filename::pagenumber'? > I will

[Orgmode] Re: org-remember support in xournal

2010-01-31 Thread dmg
> > My branch of xournal is available at github: > > http://github.com/jboecker/xournal My apologies. I pointed to the wrong branch of xournal, mine is: http://github.com/dmgerman/xournal --dmg ___ Emacs-orgmode mailing list Please us