Re: [O] replying to emai with org-mode syntax in mu4e

2016-10-28 Thread Thibault Marin

I believe you can add a hook to `'mu4e-compose-mode-hook'.

something like the following (not tested) may work:

(add-hook 'mu4e-compose-mode-hook
  (defun do-compose-stuff ()
  "My settings for message composition."
  (org-mu4e-compose-org-mode)))

Matt Price writes:

> On Fri, Oct 28, 2016 at 7:48 PM, Thibault Marin 
> wrote:
>
>>
>> It looks like you may be looking for `org-mu4e-compose-org-mode'.
>>
>
>   duh...
>
> Thank you. So, if I want this to be on by default, do you happen to know
> where I should add a hook?
>
> Really appreciate the help,
> m




Re: [O] replying to emai with org-mode syntax in mu4e

2016-10-28 Thread Matt Price
On Fri, Oct 28, 2016 at 7:48 PM, Thibault Marin 
wrote:

>
> It looks like you may be looking for `org-mu4e-compose-org-mode'.
>
> Hmm, just tested it, andthe message I sent didn't seem to get ocnverted to
html. And I found this on github:

https://github.com/djcb/mu/issues/392


[O] saving outgoing mail from org-mime

2016-10-28 Thread Matt Price
I've been using org-mime for a while but now that I have mu4e up and
running I would like to save the outgoing mails sent but message-mode to
the default mu4e sent folder (which is in a Maildir). Is there a
straightforward way to do this?


Re: [O] replying to emai with org-mode syntax in mu4e

2016-10-28 Thread Matt Price
On Fri, Oct 28, 2016 at 7:48 PM, Thibault Marin 
wrote:

>
> It looks like you may be looking for `org-mu4e-compose-org-mode'.
>

  duh...

Thank you. So, if I want this to be on by default, do you happen to know
where I should add a hook?

Really appreciate the help,
m


Re: [O] replying to emai with org-mode syntax in mu4e

2016-10-28 Thread Thibault Marin

It looks like you may be looking for `org-mu4e-compose-org-mode'.

Matt Price writes:

> I've just switched to mu4e. It's unbelievably great, thank you everyone
> who's recommended it over the years.
>
> However, I would like to compose my replies in org-mode and send them out
> as HTML.  I guess the older tools for doing this are officially deprecated.
> Nonetheless, does anyone use them? Would you be willing to share your
> workflow, and thoughts about what pain points you still have?? I see John
> K. has written some cool posts about, e.g., sending headings out, but not
> about org-ifying the compose buffer.
>
> Thank you!
> Matt




[O] replying to emai with org-mode syntax in mu4e

2016-10-28 Thread Matt Price
I've just switched to mu4e. It's unbelievably great, thank you everyone
who's recommended it over the years.

However, I would like to compose my replies in org-mode and send them out
as HTML.  I guess the older tools for doing this are officially deprecated.
Nonetheless, does anyone use them? Would you be willing to share your
workflow, and thoughts about what pain points you still have?? I see John
K. has written some cool posts about, e.g., sending headings out, but not
about org-ifying the compose buffer.

Thank you!
Matt


Re: [O] org-return on non-keyword does not insert newline

2016-10-28 Thread Samuel Wales
On 10/28/16, Nicolas Goaziou  wrote:
> `case-fold-search' set to nil. I spotted and fixed a few places where
> this wasn't the case. I also added a note about it in the docstring.

thanks.

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

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

Denmark: free Karina Hansen NOW.
  UPDATE 2016-10: home, but not fully free



Re: [O] org-return on non-keyword does not insert newline

2016-10-28 Thread Nicolas Goaziou
Hello,

Samuel Wales  writes:

> in recent maint seemingly
>
>   * |Whatever
>
> will not return with RET, if WHATEVER is a todo kw.

Fixed. Thank you.

> a potentially amusing note: if this is correct, then this is around
> the 9th bug i have reported over many years on todo kw case.  this
> could mean that there were about 9 non-refactored hardcodes.  :)
>
> possible cause: perhaps case-fold-search should be nil when using
> looking-at on the complex heading regexp.

Indeed. Matching `org-complex-heading-regexp' must be done with
`case-fold-search' set to nil. I spotted and fixed a few places where
this wasn't the case. I also added a note about it in the docstring.

Regards,

-- 
Nicolas Goaziou



[O] subtree level bind? separating overlay from mode line?

2016-10-28 Thread Samuel Wales
i'd like org-time-clocksum-use-fractional to be nil in some tasks and
t in other tasks.

alternatively, i'd like it too be t in the overlays and nil in the mode line.

there does not appear to be a property setting for the first one.  is
there a subtree-level bind so that i can make it depend on the
subtree?

and there does not appear to be support for the second one.  the
variable controls both outline and mode line.  i wonder if this should
allow two settings, one for each.

thanks.

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

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

Denmark: free Karina Hansen NOW.
  UPDATE 2016-10: home, but not fully free



[O] org-return on non-keyword does not insert newline

2016-10-28 Thread Samuel Wales
in recent maint seemingly

  * |Whatever

will not return with RET, if WHATEVER is a todo kw.

a potentially amusing note: if this is correct, then this is around
the 9th bug i have reported over many years on todo kw case.  this
could mean that there were about 9 non-refactored hardcodes.  :)

possible cause: perhaps case-fold-search should be nil when using
looking-at on the complex heading regexp.

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

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

Denmark: free Karina Hansen NOW.
  UPDATE 2016-10: home, but not fully free



Re: [O] “Match data clobbered by buffer modification hooks”

2016-10-28 Thread Saša Janiška
Kaushal Modi  writes:

> What is your org mode version? :)

Org-mode version 8.3.6 (8.3.6-7-g4d7d52-elpa @
/home/gour/.emacs.d/elpa/org-20161024/)

GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.1)
 of 2016-10-11, modified by Debian
 
> This bug did occur before emacs 25.1 was released. But it was fixed
> in that release ( https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23917
>  ).

Yeah, I know about it.

> Can you check if you see this bug on the org mode version build from
> the latest commit on the master branch? 

My org version is pretty fresh. but will try with the master…


Sincerely,
Gour

-- 
When your intelligence has passed out of the dense forest
of delusion, you shall become indifferent to all that has
been heard and all that is to be heard.




Re: [O] “Match data clobbered by buffer modification hooks”

2016-10-28 Thread Kaushal Modi
On Fri, Oct 28, 2016 at 10:21 AM Saša Janiška  wrote:

>
> Which Emacs/org-mode?
>

What is your org mode version? :)

This bug did occur before emacs 25.1 was released. But it was fixed in that
release ( https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23917 ).

Can you check if you see this bug on the org mode version build from the
latest commit on the master branch?
-- 

Kaushal Modi


Re: [O] “Match data clobbered by buffer modification hooks”

2016-10-28 Thread Saša Janiška
Nicolas Goaziou  writes:

> FWIW, I cannot reproduce it.

Which Emacs/org-mode?


Sincerely,
Gour

-- 
Before giving up this present body, if one is able to tolerate
the urges of the material senses and check the force of desire and
anger, he is well situated and is happy in this world.




Re: [O] “Match data clobbered by buffer modification hooks”

2016-10-28 Thread Nicolas Goaziou
Hello,

Saša Janiška  writes:

> after upgrading to 25.1 (Debian Sid) whenever (or almost always) when I
> try to complete some of my recurring tasks (having deadlines) with:
>
> C-c C-t
>
> I get:
>
> org--align-node-property: Match data clobbered by buffer modification hooks
>
> I’ve followed advice and re-installed org, but the problem does
> persist.

FWIW, I cannot reproduce it.


Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: ox-latex math in headings export error [8.3.6 (release_8.3.6-1257-g33f8f8 @ /Users/stefanos/org-mode/lisp/)]

2016-10-28 Thread Stefanos Carlström
Thanks!

Den fre 28 okt. 2016 15:48Nicolas Goaziou  skrev:

> Hello,
>
> Stefanos Carlström  writes:
>
> > Exporting a simple document such as
> >
> >   * Section heading with math \(\pi\) bug
> >
> > with ox-latex on HEAD gives the attached output, which does not compile,
> > due to the newline in the exported heading.
>
> [...]
>
> >   \section{Section heading with math \(\pi\)
> >
> >   bug}
>
> Fixed. Thank you.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Bug: ox-latex math in headings export error [8.3.6 (release_8.3.6-1257-g33f8f8 @ /Users/stefanos/org-mode/lisp/)]

2016-10-28 Thread Nicolas Goaziou
Hello,

Stefanos Carlström  writes:

> Exporting a simple document such as
>
>   * Section heading with math \(\pi\) bug
>
> with ox-latex on HEAD gives the attached output, which does not compile,
> due to the newline in the exported heading.

[...]

>   \section{Section heading with math \(\pi\)
>   
>   bug}

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] Bug: ox-latex math in headings export error [8.3.6 (release_8.3.6-1257-g33f8f8 @ /Users/stefanos/org-mode/lisp/)]

2016-10-28 Thread Stefanos Carlström
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.


Exporting a simple document such as

  * Section heading with math \(\pi\) bug

with ox-latex on HEAD gives the attached output, which does not compile,
due to the newline in the exported heading.

  % Created 2016-10-28 Fri 12:31
  % Intended LaTeX compiler: pdflatex
  \documentclass[11pt]{article}
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage{graphicx}
  \usepackage{grffile}
  \usepackage{longtable}
  \usepackage{wrapfig}
  \usepackage{rotating}
  \usepackage[normalem]{ulem}
  \usepackage{amsmath}
  \usepackage{textcomp}
  \usepackage{amssymb}
  \usepackage{capt-of}
  \usepackage{hyperref}
  \author{Stefanos Carlström}
  \date{\today}
  \title{}
  \hypersetup{
   pdfauthor={Stefanos Carlström},
   pdftitle={},
   pdfkeywords={},
   pdfsubject={},
   pdfcreator={Emacs 25.1.1 (Org mode 8.3.6)}, 
   pdflang={English}}
  \begin{document}
  
  \tableofcontents
  
  \section{Section heading with math \(\pi\)
  
  bug}
  \label{sec:org16a7736}
  \end{document}
  
  which does not compile.
  
  Emacs  : GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 
Version 10.9.5 (Build 13F1911))
   of 2016-09-21
  Package: Org mode version 8.3.6 (release_8.3.6-1257-g33f8f8 @ 
/Users/stefanos/org-mode/lisp/)
  
  current state:
  ==
  (setq
   org-hide-leading-stars t
   org-pandoc-epub-rights "Copyright 2016 Stefanos Carlström <>"
   org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
   outline-minor-mode-hook '(outshine-hook-function)
   org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
   ("article" "\\documentclass[11pt]{article}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
   ("report" "\\documentclass[11pt]{report}"
("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
   ("book" "\\documentclass[11pt]{book}"
("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
   ("landau-book" "\\documentclass[11pt]{book}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
   )
   org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
   org-occur-hook '(org-first-headline-recenter)
   org-metaup-hook '(org-babel-load-in-session-maybe)
   org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
   org-format-latex-options '(:foreground default :background default :scale 2
  :html-foreground "Black" :html-background 
"Transparent"
  :html-scale 1.0 :matchers
  ("begin" "$1" "$" "$$" "\\(" "\\["))
   org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
   org-confirm-shell-link-function 'yes-or-no-p
   org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
   org-latex-pdf-process '("latexmk -pdflatex='pdflatex -shell-escape' -pdf %f")
   org-preview-latex-default-process 'imagemagick
   org-babel-clojure-backend 'cider
   org-latex-format-headline-function 
'org-latex-format-headline-default-function
   org-default-notes-file "/Users/stefanos/org/notes.org"
   org-after-todo-state-change-hook '(org-clock-out-if-current)
   org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
   org-odt-format-headline-function 

Re: [O] html export with editable/runnable js src blocks?

2016-10-28 Thread Rasmus
Matt Price  writes:

> I feel like I've seen people do this before but my search today did not
> turn up a working example online. I'd like to be able to export to html
> (and by extension, to a blog or a reveal.js presentation) and have my
> source code blocks -- at leas t the javascript ones -- placed in an editing
> environment that allows you to actually run the code. the idea is to help
> students experiment with code as you're talking about it in class.

You could add contenteditable="true" to your  tags.  E.g.



On this page there’s some ideas for making it live. 

   http://html5doctor.com/the-contenteditable-attribute/

> Has anyone done this? I know it's not too hard to embed codemirror or ace
> in aweb page, but I odn't know how to get org to set the blocks up right.
> Would love some suggestions or examples. Thank you!

Unfortunately, org-html-src-block does not allow you to insert random keys
into .  Thus, you would either have to prepare your pages with JS
on pageload, do the correction with org-export-filter-body-functions or
maybe change org-html-src-block to allow the flexibility you need.  You
might need to figure out what you want the final output to be like first.

The IPython notebook (which has some other name these days) might also be
appropriate here, though I don’t know if it does JS...

Hope it helps,
Rasmus

-- 
You people at the NSA are becoming my new best friends!




Re: [O] “Match data clobbered by buffer modification hooks”

2016-10-28 Thread Saša Janiška
Saša Janiška  writes:

> I get:
>
> org--align-node-property: Match data clobbered by buffer modification hooks

Here is debugger’s output:

Debugger entered--Lisp error: (error "Match data clobbered by buffer
  modification hooks") replace-match(#(" :LAST_REPEAT: [2016-10-28
  Pet 11:18]" 0 3 (org-category "gour" fontified nil) 3 4 (fontified
  nil) 4 15 (fontified nil) 15 16 (fontified nil) 17 39 (fontified
  nil)) t t) org--align-node-property() org-indent-line()
  org-entry-put(nil "LAST_REPEAT" "[2016-10-28 Pet 11:18]")
  org-auto-repeat-maybe("DONE") org-todo(nil)
  funcall-interactively(org-todo nil) call-interactively(org-todo
  nil nil) command-execute(org-todo)

> Sincerely,
> Gour

-- 
Many, many births both you and I have passed. I can remember
all of them, but you cannot, O subduer of the enemy!




[O] “Match data clobbered by buffer modification hooks”

2016-10-28 Thread Saša Janiška
Hello,

after upgrading to 25.1 (Debian Sid) whenever (or almost always) when I
try to complete some of my recurring tasks (having deadlines) with:

C-c C-t

I get:

org--align-node-property: Match data clobbered by buffer modification hooks

I’ve followed advice and re-installed org, but the problem does persist.

I’ve found a thread in emacs-devel list in regard, but not sure what to
do and whether it’s better to downgrade to 24.5?


Sincerely,
Gour

-- 
Whenever and wherever there is a decline in religious practice,
O descendant of Bharata, and a predominant rise of irreligion —
at that time I descend Myself.