[O] org-detangle seems broken

2018-06-01 Thread Frederick Giasson
Hi Everybody,

It appears that org-detangle is broken. I am using spacemacs, but even with
a vanilla Emacs (emacs -Q) it appears to be broken.

When I tangle a file with =:comments link= every things works as expected
and the comments are added in the tangled file.

When I just detangle that tangled file, everything get detangled as
expected.

If I change one or two lines, it normally works as expected.

If I change more than 4 lines, I always get the error message "Not in a
block file".

Some debugging shows that the function =org-element-at-point= sometimes tag
the element as =paragraph= instead of =src-block=, like if it doesn't know
where it is... somehow.

Does anybody use that function without experiencing this (apparent major)
issue?

Thanks,

Take care,

Fred


[O] Make org-fill-paragraph behave as Emacs 26.1 fill-paragraph

2018-06-01 Thread Vicente Vera
Hi.

Since Emacs 26.1 ‘fill-paragraph’ doesn't change the buffer contents
if no filling is needed on the current paragraph. It would be nice if
‘org-fill-paragraph’ worked the same way.

Not a very relevant change to make, really, but still. Just to avoid
those pesky false-positive asteriks!



Re: [O] Bug: Args out of range error in HTML export [9.1.13 (9.1.13-elpa @ /home/neil/.emacs.d/elpa/org-20180514/)]

2018-06-01 Thread Neil Jerram
FYI I can avoid this error by adding a space before the open and close
braces; i.e. this is OK:

#+BEGIN_SRC sh
 {
cat < writes:

> With this Org source:
>
> #+BEGIN_SRC sh
> {
> cat <   failsafeInboundHostPorts:
> EOF
> }
> #+END_SRC
>
> With `C-c C-e h h', to export that as HTML, I get:
>
> Debugger entered--Lisp error: (args-out-of-range # 0 1)
>   parse-partial-sexp(1 0)
>   syntax-ppss(0)
>   sh--inside-noncommand-expression(0)
>   sh--inside-noncommand-expression(10)
>   sh-font-lock-open-heredoc(10 "EOF" 16)
>   sh-syntax-propertize-function(1 50)
>   syntax-propertize(50)
>   font-lock-fontify-syntactically-region(1 50 nil)
>   font-lock-default-fontify-region(1 50 nil)
>   font-lock-fontify-region(1 50 nil)
>   font-lock-default-fontify-buffer()
>   #[(_beg _end) "?\205\302 \210  ?\205\303\211\207" [font-lock-fontified 
> font-lock-mode font-lock-default-fontify-buffer nil] 2](1 50)
>   org-font-lock-ensure()
>   org-html-fontify-code("{\ncat < failsafeInboundHostPorts:\nEOF\n}" "sh")
>   org-html-do-format-code("{\ncat < failsafeInboundHostPorts:\nEOF\n}" "sh" nil t nil)
>   org-html-format-code((src-block (:language "sh" :switches nil :parameters 
> nil :begin 2 :end 77 :number-lines nil :preserve-indent nil :retain-labels t 
> :use-labels t :label-fmt nil :value "{\ncat < failsafeInboundHostPorts:\nEOF\n}\n" :post-blank 0 :post-affiliated 2 :parent 
> (section (:begin 2 :end 77 :contents-begin 2 :contents-end 77 :post-blank 0 
> :post-affiliated 2 :parent (org-data nil #2)) #0))) (:export-options nil 
> :back-end [cl-struct-org-export-backend html nil ((bold . org-html-bold) 
> (center-block . org-html-center-block) (clock . org-html-clock) (code . 
> org-html-code) (drawer . org-html-drawer) (dynamic-block . 
> org-html-dynamic-block) (entity . org-html-entity) (example-block . 
> org-html-example-block) (export-block . org-html-export-block) 
> (export-snippet . org-html-export-snippet) (fixed-width . 
> org-html-fixed-width) (footnote-definition . org-html-footnote-definition) 
> (footnote-reference . org-html-footnote-reference) (headline . 
> org-html-headline) (horizontal-rule . org-html-horizontal-rule) 
> (inline-src-block . org-html-inline-src-block) (inlinetask . 
> org-html-inlinetask) (inner-template . org-html-inner-template) (italic . 
> org-html-italic) (item . org-html-item) (keyword . org-html-keyword) 
> (latex-environment . org-html-latex-environment) (latex-fragment . 
> org-html-latex-fragment) (line-break . org-html-line-break) (link . 
> org-html-link) (node-property . org-html-node-property) (paragraph . 
> org-html-paragraph) (plain-list . org-html-plain-list) (plain-text . 
> org-html-plain-text) (planning . org-html-planning) (property-drawer . 
> org-html-property-drawer) (quote-block . org-html-quote-block) (radio-target 
> . org-html-radio-target) (section . org-html-section) (special-block . 
> org-html-special-block) (src-block . org-html-src-block) (statistics-cookie . 
> org-html-statistics-cookie) (strike-through . org-html-strike-through) 
> (subscript . org-html-subscript) (superscript . org-html-superscript) (table 
> . org-html-table) (table-cell . org-html-table-cell) (table-row . 
> org-html-table-row) (target . org-html-target) (template . org-html-template) 
> (timestamp . org-html-timestamp) (underline . org-html-underline) (verbatim . 
> org-html-verbatim) (verse-block . org-html-verse-block)) ((:html-doctype 
> "HTML_DOCTYPE" nil org-html-doctype) (:html-container "HTML_CONTAINER" nil 
> org-html-container-element) (:description "DESCRIPTION" nil nil newline) 
> (:keywords "KEYWORDS" nil nil space) (:html-html5-fancy nil "html5-fancy" 
> org-html-html5-fancy) (:html-link-use-abs-url nil "html-link-use-abs-url" 
> org-html-link-use-abs-url) (:html-link-home "HTML_LINK_HOME" nil 
> org-html-link-home) (:html-link-up "HTML_LINK_UP" nil org-html-link-up) 
> (:html-mathjax "HTML_MATHJAX" nil "" space) (:html-postamble nil 
> "html-postamble" org-html-postamble) (:html-preamble nil "html-preamble" 
> org-html-preamble) (:html-head "HTML_HEAD" nil org-html-head newline) 
> (:html-head-extra "HTML_HEAD_EXTRA" nil org-html-head-extra newline) 
> (:subtitle "SUBTITLE" nil nil parse) (:html-head-include-default-style nil 
> "html-style" org-html-head-include-default-style) (:html-head-include-scripts 
> nil "html-scripts" org-html-head-include-scripts) 
> (:html-allow-name-attribute-in-anchors nil nil 
> org-html-allow-name-attribute-in-anchors) (:html-divs nil nil org-html-divs) 
> (:html-checkbox-type nil nil org-html-checkbox-type) (:html-extension nil nil 
> org-html-extension) (:html-footnote-format nil nil org-html-footnote-format) 
> (:html-footnote-separator nil nil org-html-footnote-separator) 
> (:html-footnotes-section nil nil org-html-footnotes-section) 
> (:html-format-drawer-function nil nil org-html-format-drawer-function) 
> (:html-format-headline-function nil nil org-html-format-headline-function) 
> 

[O] Bug: Args out of range error in HTML export [9.1.13 (9.1.13-elpa @ /home/neil/.emacs.d/elpa/org-20180514/)]

2018-06-01 Thread Neil Jerram
With this Org source:

#+BEGIN_SRC sh
{
cat < 0 1)
  parse-partial-sexp(1 0)
  syntax-ppss(0)
  sh--inside-noncommand-expression(0)
  sh--inside-noncommand-expression(10)
  sh-font-lock-open-heredoc(10 "EOF" 16)
  sh-syntax-propertize-function(1 50)
  syntax-propertize(50)
  font-lock-fontify-syntactically-region(1 50 nil)
  font-lock-default-fontify-region(1 50 nil)
  font-lock-fontify-region(1 50 nil)
  font-lock-default-fontify-buffer()
  #[(_beg _end) "?\205\302 \210   ?\205\303\211\207" 
[font-lock-fontified font-lock-mode font-lock-default-fontify-buffer nil] 2](1 
50)
  org-font-lock-ensure()
  org-html-fontify-code("{\ncat 

[O] Suppress *org caldav sync result* buffer

2018-06-01 Thread Loris Bennett
Hi,

>From Bastian's setup here:

  https://github.com/bzg/dotemacs/blob/master/emacs.el

I stole (thanks, Bastian!) and modified some code to get:

  (defun lb/caldav-sync-priv ()
  (interactive)
  (let ((org-caldav-inbox "~/org/calendar.org")
  (org-caldav-url "https://some.server.de/remote.php/dav/;)
  (org-caldav-calendar-id "calendars/loris/priv/")
  (org-caldav-files nil))
(call-interactively 'org-caldav-sync)))

When I run this, it produces a buffer called *org caldav sync result*.
This is fine, except that it replaces the buffer which is currently
active.

How can I make the sync results buffer stay somewhere in the background?

Cheers,

Loris

-- 
This signature is currently under construction.




Re: [O] [PATCH] Add support for Babel with Eshell, (updated PATCH)

2018-06-01 Thread stardiviner


Nicolas Goaziou  writes:

> Hello,
>
> stardiviner  writes:
>
>> Subject: [PATCH] ob-eshell.el: Add Eshell support for Babel.
>
> Applied on "next" branch. Thank you.

Aha, Thanks, Nicolas, I almost forget this patch. That's great!

>
> Regards,


-- 
[ stardiviner ] don't need to convince with trends.
   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3