[O] install confusion

2019-04-22 Thread Lawrence Bottorff
I've got this in my init, which is in an org file with embedded elisp blocks: (use-package org-plus-contrib :defer t :ensure t ) then right after I have (use-package org :ensure t :bind (("C-c a" . org-agenda) ("C-c c" . org-capture) ("C-c l" .

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Tim Cross
YMMV, but personally, I think the real problem here is combining your tests with your definition. i.e. square = lambda x: x * x is your real code block while the return line is really just part of testing/debugging and should not be in your definition block. Tests are very important, but I find

Re: [O] [latex export/babel] pass arguments to \includegraphics from code blocks

2019-04-22 Thread Jakob Schöttl
Am 22.04.19 um 21:13 schrieb Nick Dokos: Jakob Schöttl writes: Hi, I want to use code blocks to generate and include images of sheet music: #+BEGIN_SRC lilypond :file test.png :exports results \header{tagline=""} { a b c } #+END_SRC When doing a latex export the result is: \begin{center}

[O] Regression in org-table-recalculate-buffer-tables and #+startup: shrink [devel branch]

2019-04-22 Thread Kaushal Modi
Hello, Lately (past week), I have noticed a failure for all functions to run from my org-mode-hook, because I got an error like: File mode specification error: (user-error Not at a table) This error happens if: 1. I call M-x org-table-recalculate-buffer-tables (I have that function in my

Re: [O] orgalist and refill a paragraph

2019-04-22 Thread Tim Cross
Just in case it is relevant, if your using a recent emacs, you might be running into a bug which was recently reported to do with changes in text-mode. The bug was found by an orglist user and affected subsequent line indentation. See the emacs devel list archives for details (was within the

Re: [O] [latex export/babel] pass arguments to \includegraphics from code blocks

2019-04-22 Thread Nick Dokos
Jakob Schöttl writes: > Hi, I want to use code blocks to generate and include images of sheet music: > > #+BEGIN_SRC lilypond :file test.png :exports results > \header{tagline=""} > { a b c } > #+END_SRC > > > When doing a latex export the result is: > > \begin{center} >

Re: [O] orgalist and refill a paragraph

2019-04-22 Thread Nicolas Goaziou
Hello, Uwe Brauer writes: > I am using orgalist-mode in mail buffers via. > > (add-hook 'mail-mode-hook #'orgalist-mode) > (add-hook 'message-mode-hook #'orgalist-mode) > > > The filling works nicely if I start like this > > 1. Akja kjkajsdk fjadkfjaksdjfa kajskfj sajflksajdf

[O] [latex export/babel] pass arguments to \includegraphics from code blocks

2019-04-22 Thread Jakob Schöttl
Hi, I want to use code blocks to generate and include images of sheet music: #+BEGIN_SRC lilypond :file test.png :exports results \header{tagline=""} { a b c } #+END_SRC When doing a latex export the result is: \begin{center} \includegraphics[width=.9\linewidth]{test.png} \end{center} Is

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Berry, Charles
> On Apr 22, 2019, at 10:15 AM, Dmitrii Korobeinikov wrote: > > Thank you! > That's a handy technique and it does help. > As I understand, there's no way to extend that to multiple lines? AFAICS, no there is no way to split the :epilogue arg to multiple lines. Of course, you can always

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Dmitrii Korobeinikov
Thank you! That's a handy technique and it does help. As I understand, there's no way to extend that to multiple lines? One-liners for tests are enough sometimes, but not always. For those cases, it is cumbersome to split as well. пн, 22 апр. 2019 г. в 22:51, Berry, Charles : > It looks like you

Re: [O] source-block 'uncomment-region' comments out a second time

2019-04-22 Thread Berry, Charles
> On Apr 22, 2019, at 3:49 AM, Daniel Herzig wrote: > > I found a minor problem when editing source code blocks. I am on > Org-Mode 8.2.10 that comes with Emacs 25.1.1 on Debian. With more modern versions (9.2.3, for example), the behavior you describe does not occur. viz., (un)commenting

Re: [O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Berry, Charles
It looks like you want the :epilogue header argument. See inline. > On Apr 22, 2019, at 2:00 AM, Dmitrii Korobeinikov wrote: > > When I write several source blocks, which depend on one another, I tend to > debug them one by one. > > So, I write this function and test it: > > #+NAME: square >

[O] orgalist and refill a paragraph

2019-04-22 Thread Uwe Brauer
Hi I am using orgalist-mode in mail buffers via. (add-hook 'mail-mode-hook #'orgalist-mode) (add-hook 'message-mode-hook #'orgalist-mode) The filling works nicely if I start like this 1. Akja kjkajsdk fjadkfjaksdjfa kajskfj sajflksajdf lkjsaljfksadjf ksajfdkajsd fkjsadlkfj

Re: [O] html export entire code block including template?

2019-04-22 Thread Lawrence Bottorff
Just found it here . On Tue, Apr 16, 2019 at 12:08 AM Lawrence Bottorff wrote: > I'm doing this: > > #+begin_example > #+begin_src emacs-lisp :var table=sandbox :exports both

Re: [O] [PATCH] Feature proposal : support "scale=" includegraphics option in the builtin latex exporter.

2019-04-22 Thread Emmanuel Charpentier
Le lundi 22 avril 2019 à 15:26 +0200, Nicolas Goaziou a écrit : > Emmanuel Charpentier writes: > > > Do you want a direct answer or a partch against /etc/ORG-NEWS ? > > Anything that suits you. A patch it is (enclosed). If this documentation is customaty, this should be mentioned in the

Re: [O] Tracking time from one state to another?

2019-04-22 Thread Ken Mankoff
Hi Malcom, On 2019-04-17 at 14:20 +0200, Malcolm Matalka wrote... > Is it possible in org-mode to track, and report, the duration of > certain state transitions in org-mode? In particular, I'm interested > in tracking how long it takes me to go from a state that means I'm > actively working on

Re: [O] Tracking time from one state to another?

2019-04-22 Thread Malcolm Matalka
Marcin Borkowski writes: > On 2019-04-18, at 17:34, Malcolm Matalka wrote: > >> Marcin Borkowski writes: >> >>> On 2019-04-17, at 14:20, Malcolm Matalka wrote: >>> Hello, Is it possible in org-mode to track, and report, the duration of certain state transitions in

[O] table --> org-drill

2019-04-22 Thread Matt Price
Hello everyone, I'm taking an informal but intensive Nepali language class. There's no textbook, and vocabulary comes rapidly from the teacher during lcass. I end up with notes that look like this: yo & tyo-based constructions *yo* | yatti | this much | | katti | how much | | yaha

Re: [O] [PATCH] Feature proposal : support "scale=" includegraphics option in the builtin latex exporter.

2019-04-22 Thread Emmanuel Charpentier
Possible duplicate answer (my email provider isn't very reliable at the moment...). Le lundi 22 avril 2019 à 14:04 +0200, Nicolas Goaziou a écrit : > Hello, > > Emmanuel Charpentier writes: > > > Attached is my proposal for the feature I suggested. My quick tests > > pass[1]. Better tests by

Re: [O] [PATCH] Feature proposal : support "scale=" includegraphics option in the builtin latex exporter.

2019-04-22 Thread Nicolas Goaziou
Hello, Emmanuel Charpentier writes: > Attached is my proposal for the feature I suggested. My quick tests > pass[1]. Better tests by someone knowledgeable in graphics would be > useful, as well as a test in the test suite. Applied, with some slight fixes. Could you provide an entry in

[O] source-block 'uncomment-region' comments out a second time

2019-04-22 Thread Daniel Herzig
Hi all! I found a minor problem when editing source code blocks. I am on Org-Mode 8.2.10 that comes with Emacs 25.1.1 on Debian. My source code block looks something like: #+BEGIN_SRC sh :shebang abc :tangle xyz do this do that and that #+END_SRC If I enter the block with C-c ' and comment out

[O] [Proposal] Source Blocks with Post-Extensions

2019-04-22 Thread Dmitrii Korobeinikov
For your convenience, I have attached this e-mail as an org-mode file. When I write several source blocks, which depend on one another, I tend to debug them one by one. So, I write this function and test it: #+NAME: square #+BEGIN_SRC python square = lambda x: x * x return square(5)

Re: [O] Is is possible to summarize contents of a task in the agenda headings?

2019-04-22 Thread David Masterson
writes: > Say I have a bunch of tasks like this: > > * TODO task with many subtasks > ** TODO subtask 1 > ** TODO subtask 2 > * TODO another task with many subtasks > ** TODO another subtask 1 > ** TODO another subtask 2 > > And so on. > > Now, in the agenda, I would like some kind of

[O] Agenda Views and Hyperlinks Bug ?

2019-04-22 Thread David Masterson
Does Org Mode's Agenda Views handle Hyperlinks properly? That is, if I have an outline with header containing a hyperlink of the form: [[#LINK][DESCRIPTION]] what should the Agenda View do with the link? I would think that, if it cannot make the link work as normal, then it should remove