Re: [O] OT: Gmail and cloud-dependencies

2015-01-11 Thread Daniele Pizzolli
Karl Voit writes: > * Paul Rudin wrote: >> Karl Voit writes: >> > >>> * Paul Rudin wrote: [] >>> You'll lose some more. At least you are going to lose your labels >>> AFAIR. >> >> Labels map to mailboxes if you access your gmail via imap IIRC, so you >> don't really lose that information. > > AF

Re: [O] doc patch: move footnote in external links

2015-01-11 Thread Alan Schmitt
On 2015-01-11 23:00, Nicolas Goaziou writes: > Alan Schmitt writes: > >> Here is an updated patch. I can push it or not, depending on the issue >> below. > > Thanks. The patch is OK. Great. I won't commit it, though, as I prefer to solve the space thing. >> I have looked at the code and it wor

Re: [O] Tabs in export of code

2015-01-11 Thread Charles C. Berry
On Sun, 11 Jan 2015, Giuseppe Lipari wrote: Dear all, I am preparing a set of slides with examples of java code. I am using the beamer exporter, configured for using minted with the following options: [snip] Ok, now the problem.I want to export a slide with this snippet: #+BEGIN_SRC jav

Re: [O] Table of contents for just one section?

2015-01-11 Thread Rasmus
Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> Ah, it's much easier to use \stopcontents[level-i] to end contents >> collection. Revising the example: >> >> \documentclass{book} >> \usepackage{titletoc} >> \begin{document} >> \part{p1} >> \startcontents[level-

Re: [O] doc patch: move footnote in external links

2015-01-11 Thread Nicolas Goaziou
Alan Schmitt writes: > Here is an updated patch. I can push it or not, depending on the issue > below. Thanks. The patch is OK. > I have looked at the code and it works *very* differently. I think I can > make the `org-export-resolve-fuzzy-link' take spaces into accounts for > headlines, but I

Re: [O] Table of contents for just one section?

2015-01-11 Thread Nicolas Goaziou
Hello, Rasmus writes: > Ah, it's much easier to use \stopcontents[level-i] to end contents > collection. Revising the example: > > \documentclass{book} > \usepackage{titletoc} > \begin{document} > \part{p1} > \startcontents[level-0] > \printcontents[level-0]{}{0}{\

Re: [O] Tabs in export of code

2015-01-11 Thread Grant Rettke
Unsure but perhaps these are involved, what are your setting for: org-src-preserve-indentation and org-edit-src-content-indentation On Sun, Jan 11, 2015 at 12:30 PM, Giuseppe Lipari wrote: > Dear Eric, > > thanks for your quick answer. However this does not solve the problem. > I use source c

Re: [O] Redirecting stderr to stdout with babel/shell

2015-01-11 Thread Achim Gratz
Karl Voit writes: > However with an additional "echo" at the end: You need to understand what you're doing or at least copy the code exactly. The last line in my example is a colon ":" so that the shell exit code is always zero. If not, Babel will ignore the output since it interprets any non-ze

Re: [O] Tabs in export of code

2015-01-11 Thread Eric S Fraga
On Sunday, 11 Jan 2015 at 17:31, Giuseppe Lipari wrote: [...] > There is not tab in this snipper (I never use tabs in code, only spaces). > Unfortunately, when opening the tex file, I see that a tab has been > introduced whenever 8 consecutive spaces are found, in particular at line 4. Shot in t

Re: [O] Tabs in export of code

2015-01-11 Thread Giuseppe Lipari
Dear Eric, thanks for your quick answer. However this does not solve the problem. I use source code fontification for source blocks in org mode: #+begin_src emacs-lisp (setq org-src-fontify-natively t) (setq org-src-tab-acts-natively t) #+end_src Normally, when I program in C or java, I di

Re: [O] Redirecting stderr to stdout with babel/shell

2015-01-11 Thread Karl Voit
* John Kitchin wrote: > Karl Voit writes: > > Weird. It works for me on MacOSX with bash. Out of curiosity, did you > try the source: > http://kitchingroup.cheme.cmu.edu/org/2015/01/04/Redirecting-stderr-in-org-mode-shell-blocks.org? I did it now. What I found out: #+BEGIN_SRC sh echo '#!/usr

Re: [O] Org-mode execute functions upon opening and closing

2015-01-11 Thread John Kitchin
John Kitchin writes: I guess this technically only runs when you open it. To run something on closing, you might add something to kill-buffer-hook. That function would need to check if it should run, e.g. if you are closing an org-buffer that meets some criteria. You could also look at find-fil

Re: [O] Org-mode execute functions upon opening and closing

2015-01-11 Thread John Kitchin
* Load lisp code on opening an org-file Put this at the end of your org-file: #+BEGIN_EXAMPLE ### Local Variables: ### mode: org ### eval: (load-file "my-lib.el") ### End: #+END_EXAMPLE Create my-lib.el, e.g. #+BEGIN_SRC emacs-lisp :tangle my-lisp.el (message-box "Loaded!") #+END_SRC The next

Re: [O] Redirecting stderr to stdout with babel/shell

2015-01-11 Thread John Kitchin
Karl Voit writes: Weird. It works for me on MacOSX with bash. Out of curiosity, did you try the source: http://kitchingroup.cheme.cmu.edu/org/2015/01/04/Redirecting-stderr-in-org-mode-shell-blocks.org? I updated the web page with Achim's simpler solution. > * John Kitchin wrote: >> Check out

[O] Tabs in export of code

2015-01-11 Thread Giuseppe Lipari
Dear all, I am preparing a set of slides with examples of java code. I am using the beamer exporter, configured for using minted with the following options: #+BEGIN_SRC emacs-lisp :exports none :results silent (setq org-latex-minted-options '(("frame" "lines") ("bgcolor" "myb

Re: [O] Redirecting stderr to stdout with babel/shell

2015-01-11 Thread Karl Voit
* Achim Gratz wrote: > Karl Voit writes: >> echo "testing stderr with manual redirect" 2>&1 >&2 > > The last redirection ">&2" is nonsense, it only works because STDERR is > already reopened on STDOUT and redirection to the same file descriptor > is ignored. Absolutely right. Must have been a non

Re: [O] OT: Gmail and cloud-dependencies

2015-01-11 Thread Karl Voit
* Paul Rudin wrote: > Karl Voit writes: > >> * Paul Rudin wrote: >>> >>> Sure, but that kind of thing could happen with pretty much any third >>> party service. >> >> Yes. That's the point, when you do not consider open source services >> as third party services. > > Aren't you mixing up two dif

Re: [O] OT: Gmail and cloud-dependencies

2015-01-11 Thread Paul Rudin
Karl Voit writes: > * Paul Rudin wrote: >> Karl Voit writes: >> >>> * Paul Rudin wrote: But you can pull all your email out of gmail via pop or imap, so it's not like you'll lose your emails. >>> >>> There are cases where people lost access to Gmail instantly because >>> of fal

Re: [O] Lentic.0.6 and org mode

2015-01-11 Thread joakim
Thierry Banel writes: > Nice! I also tried it and found it really interesting! > > I spent some time figuring out how to use it. > > This is what I did eventually: > M-xlentic-mode > M-xlentic-mode ;; twice > M-x lentic-mode-split-window-below > Then change the new buffer to the desired

Re: [O] Redirecting stderr to stdout with babel/shell

2015-01-11 Thread Achim Gratz
Karl Voit writes: > echo "testing stderr with manual redirect" 2>&1 >&2 The last redirection ">&2" is nonsense, it only works because STDERR is already reopened on STDOUT and redirection to the same file descriptor is ignored. And to solve your original problem: #+BEGIN_SRC sh :results output ex

Re: [O] Org-mode execute functions upon opening and closing

2015-01-11 Thread Karl Voit
Hello Eduardo! This is not an answer to your original question regarding hooks where http://www.emacswiki.org/emacs/LocalVariables together with a bit of Elisp might be a possible solution. However, we seem to share the same mind-set or motivation to use Org-mode in order to get independent fro

Re: [O] Redirecting stderr to stdout with babel/shell

2015-01-11 Thread Karl Voit
* John Kitchin wrote: > Check out this solution: > > http://kitchingroup.cheme.cmu.edu/blog/2015/01/04/Redirecting-stderr-in-org-mode-shell-blocks/ Hm. This does not work on my machine: Debian Wheezy GNU/Linux Testing the current satus (again): #+BEGIN_SRC sh :results output echo "testing stdou

[O] OT: privacy-aware web search via startpage.com (was: OT: Cloud-dependencies, privacy, decentralization)

2015-01-11 Thread Karl Voit
* Rasmus wrote: > Karl Voit writes: > >> I do not use any Google service at all besides Google search >> which is giving me better search results than DuchDuckGo - >> unfortunately. > > Did you try startpage.com? It can also be searched directly from DDG, I > think. Oh, this looks great - than

Re: [O] OT: Gmail and cloud-dependencies

2015-01-11 Thread Karl Voit
* Paul Rudin wrote: > Karl Voit writes: > >> * Paul Rudin wrote: >>> >>> But you can pull all your email out of gmail via pop or imap, so >>> it's not like you'll lose your emails. >> >> There are cases where people lost access to Gmail instantly because >> of false accusations or idendity thef