[O] org 9.1.9 fails to open the document with many radio targets in Emacs 26.1

2018-07-21 Thread bill sun
Hello,

Recently I upgraded my emacs 25.3 to Emacs 26.1 for window. In the emacs
25.3, it installed the org version 8.2.10 by default, and the newer emacs
26.1 builds with org version 9.1.9.

When I want to open a org document(19M) with org version 9.1.9. It seems to
take long time for opening this document, the emacs seem to be paused. So I
change the emacs 26.1 to use org 8.2.10, simply replace
/emacs-26.1-x86_64/share/emacs/26.1/lisp/org with the files of org 8.2.10.
The result is good, It open the same file smoothly. So I guess whether If
there are some issues in org 9.1.9, they need much more time to open this
document?  By the way, The file that cannot be opened contain a large
number of radio targets, which may be the reason that it is slow to open

The above testing document is so heavy, that the mailing list of orgmode
can't to load, So if you want to verify the situation I met, please send
the mail to me, I will send it to you directly. Thanks!

The best

Bill Sun

Shanghai China


[O] exporting HTML to Dotclear platform

2018-07-21 Thread Van L
Hello,

Is there a way to export a clipping of
headline, paragraph, image and caption
from an HTML block to the import mechanic
on the Dotclear platform?

I want to edit in Org Mode and do the
extra key punches to save directly to
Dotclear without using the webpages’ editor in the web browser.

https://en.wikipedia.org/wiki/Dotclear


[O] deleting trailing whitespace can change org structure

2018-07-21 Thread Samuel Wales
just a heads up on something that is kind of obvious, but just in case:

a blogger recommend delete-trailing-whitespace [in a tangling init,
thus heavy org use].  many likely do this and whitespace-cleanup.  he
recommended it on a save hook.

the problem for org is if you have a header like "^** $".

deleting trailing whitespace will make those headers become text under
the previous header.

some people habitually do a sequential m-ret to create blank headers
to fill in.  this was recommended in an org tutorial or so.

blank headers are likely to be created by accident.  it is possible
that this corruption occurs without the user knowing.  especially
using a save hook or when there are a lot of lines to fix.



Re: [O] Json readable error

2018-07-21 Thread Doyley, Marvin M.
Thanks,

I will do the same, since I really use ipython in emacs.

Cheers,
M

> On Jul 21, 2018, at 2:31 PM, Xu Chunyang  wrote:
> 
> 
> Doyley, Marvin M. writes:
> 
>> Hi there,
>> 
>> For some strange reason whenever I switch to org-mode (M-x org-mode), I get 
>> json readtable error: 84, which I have been trying to resolve without much 
>> success.
>> 
>> Have anyone encountered this before or know how to resolve it?  This problem 
>> could be due to recent change that I have made to my default python (changed 
>> from anaconda 3.4 to intel’s python 3.4), but I am not sure why doing this 
>> would cause a problem.
>> 
>> Best Wishes,
>> M
>> 
>> Here is the backtrace.
>> 
>> Debugger entered--Lisp error: (json-readtable-error 84)
>>  signal(json-readtable-error (84))
>>  json-read()
>>  json-read-array()
>>  json-read()
>>  json-read-from-string("[TerminalIPythonApp] WARNING | Subcommand `ipython 
>> kernelspec` is deprecated and will be removed in future 
>> versions.\n[TerminalIPythonApp] WARNING | You likely want to use `jupyter 
>> kernelspec` in the future\n{\n  \"kernelspecs\": {\n\"python3\": {\n 
>>  \"resource_dir\": \"/anaconda/share/jupyter/kernels/python3\",\n  
>> \"spec\": {\n\"argv\": [\n  \"/anaconda/bin/python\",\n  
>> \"-m\",\n  \"ipykernel_launcher\",\n  \"-f\",\n  
>> \"{connection_file}\"\n],\n\"env\": {},\n
>> \"display_name\": \"Python 3\",\n\"language\": \"python\",\n
>> \"interrupt_mode\": \"signal\",\n\"metadata\": {}\n  }\n}\n  
>> }\n}\n")
>>  ob-ipython--get-kernels()
>>  ob-ipython-auto-configure-kernels()
>>  run-hooks(change-major-mode-after-body-hook text-mode-hook 
>> outline-mode-hook org-mode-hook)
>>  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook 
>> outline-mode-hook org-mode-hook))
>>  run-mode-hooks(org-mode-hook)
>>  org-mode()
>>  funcall-interactively(org-mode)
>>  call-interactively(org-mode record nil)
>>  command-execute(org-mode record)
>>  helm-M-x(nil #("org-mode" 0 8 (match-part "org-mode")))
>>  funcall-interactively(helm-M-x nil #("org-mode" 0 8 (match-part 
>> "org-mode")))
>>  call-interactively(helm-M-x nil nil)
>>  command-execute(helm-M-x)
> 
> I encountered the same issue a few days ago, it is due to python version
> upgrade (jupyter no longer worked) and ob-ipython.el doesn't handle
> error very well, and ob-ipython.el also installs some code on
> org-mode-hook unconditionally. I simply delete ob-ipython.el and delete
> configuration of it in the init.el, then restart Emacs, since I've
> not used ob-ipython.el for a long time.



Re: [O] Json readable error

2018-07-21 Thread Xu Chunyang


Doyley, Marvin M. writes:

> Hi there,
>
> For some strange reason whenever I switch to org-mode (M-x org-mode), I get 
> json readtable error: 84, which I have been trying to resolve without much 
> success.
>
> Have anyone encountered this before or know how to resolve it?  This problem 
> could be due to recent change that I have made to my default python (changed 
> from anaconda 3.4 to intel’s python 3.4), but I am not sure why doing this 
> would cause a problem.
>
> Best Wishes,
> M
>
> Here is the backtrace.
>
> Debugger entered--Lisp error: (json-readtable-error 84)
>   signal(json-readtable-error (84))
>   json-read()
>   json-read-array()
>   json-read()
>   json-read-from-string("[TerminalIPythonApp] WARNING | Subcommand `ipython 
> kernelspec` is deprecated and will be removed in future 
> versions.\n[TerminalIPythonApp] WARNING | You likely want to use `jupyter 
> kernelspec` in the future\n{\n  \"kernelspecs\": {\n\"python3\": {\n  
> \"resource_dir\": \"/anaconda/share/jupyter/kernels/python3\",\n  
> \"spec\": {\n\"argv\": [\n  \"/anaconda/bin/python\",\n   
>\"-m\",\n  \"ipykernel_launcher\",\n  \"-f\",\n  
> \"{connection_file}\"\n],\n\"env\": {},\n
> \"display_name\": \"Python 3\",\n\"language\": \"python\",\n
> \"interrupt_mode\": \"signal\",\n\"metadata\": {}\n  }\n}\n  
> }\n}\n")
>   ob-ipython--get-kernels()
>   ob-ipython-auto-configure-kernels()
>   run-hooks(change-major-mode-after-body-hook text-mode-hook 
> outline-mode-hook org-mode-hook)
>   apply(run-hooks (change-major-mode-after-body-hook text-mode-hook 
> outline-mode-hook org-mode-hook))
>   run-mode-hooks(org-mode-hook)
>   org-mode()
>   funcall-interactively(org-mode)
>   call-interactively(org-mode record nil)
>   command-execute(org-mode record)
>   helm-M-x(nil #("org-mode" 0 8 (match-part "org-mode")))
>   funcall-interactively(helm-M-x nil #("org-mode" 0 8 (match-part 
> "org-mode")))
>   call-interactively(helm-M-x nil nil)
>   command-execute(helm-M-x)

I encountered the same issue a few days ago, it is due to python version
upgrade (jupyter no longer worked) and ob-ipython.el doesn't handle
error very well, and ob-ipython.el also installs some code on
org-mode-hook unconditionally. I simply delete ob-ipython.el and delete
configuration of it in the init.el, then restart Emacs, since I've
not used ob-ipython.el for a long time.



Re: [O] Bug: Variable comment-start-skip in the function org-agenda-skip is nil but should be a string. [9.1.13 (9.1.13-elpa @ ~/.emacs.d/elpa/org-20180716/)]

2018-07-21 Thread Pierre-Henry F.
Ok, I found how to correct it:

(defun proposition_org/extract_posts (x)
  "file_name → [proposition_org]"
  (let ((file_name (expand-file-name x)))
(cond ((file-exists-p file_name)
   (with-temp-buffer
 (insert-file-contents file_name)
 (org-mode)  ;; <--- THIS IS WHAT WAS MISSING
 (proposition_org/list_propositions_in_buffer)))
  (t '()
Best,
PHF

‐‐‐ Original Message ‐‐‐
On July 21, 2018 6:28 PM, Pierre-Henry F.  wrote:

> Hello dear list and thank you for looking at this stuff down below as
> well as org-mode and many other things.
>
> Best,
> PHF
>
> I get:
>
>   Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> looking-at(nil)
> org-agenda-skip()
> org-scan-tags(proposition_org/if_proposition_then_get_content_else_nil t 
> nil nil)
> org-map-entries(proposition_org/if_proposition_then_get_content_else_nil 
> t)
> (seq-filter 'not (org-map-entries 
> 'proposition_org/if_proposition_then_get_content_else_nil t))
> proposition_org/list_propositions_in_buffer()
> (progn (insert-file-contents file_name) 
> (proposition_org/list_propositions_in_buffer))
> (unwind-protect (progn (insert-file-contents file_name) 
> (proposition_org/list_propositions_in_buffer)) (and (buffer-name temp-buffer) 
> (kill-buffer temp-buffer)))
> (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn 
> (insert-file-contents file_name) 
> (proposition_org/list_propositions_in_buffer)) (and (buffer-name temp-buffer) 
> (kill-buffer temp-buffer
> (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer 
> (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents 
> file_name) (proposition_org/list_propositions_in_buffer)) (and (buffer-name 
> temp-buffer) (kill-buffer temp-buffer)
> (cond ((file-exists-p file_name) (let ((temp-buffer (generate-new-buffer 
> " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect 
> (progn (insert-file-contents file_name) 
> (proposition_org/list_propositions_in_buffer)) (and (buffer-name temp-buffer) 
> (kill-buffer temp-buffer)) (t 'nil))
> (let ((file_name (expand-file-name x))) (cond ((file-exists-p file_name) 
> (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer 
> (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents 
> file_name) (proposition_org/list_propositions_in_buffer)) (and (buffer-name 
> temp-buffer) (kill-buffer temp-buffer)) (t 'nil)))
> proposition_org/extract_posts("~/tmp.org")
> (message (proposition_org/extract_posts "~/tmp.org"))
> eval((message (proposition_org/extract_posts "~/tmp.org")) nil)
> elisp--eval-last-sexp(nil)
> eval-last-sexp(nil)
> funcall-interactively(eval-last-sexp nil)
> call-interactively(eval-last-sexp nil nil)
> command-execute(eval-last-sexp)
>
> By executing this program:
>
>   ;; Import
>
>   (require 'seq)
>   (require 'cl-lib)
>   (require 'org)
>
>   ;; Define
>
>   (defun proposition_org/extract_posts (x)
> "file_name → [proposition_org]"
> (let ((file_name (expand-file-name x)))
>   (cond ((file-exists-p file_name)
>  (with-temp-buffer
>(insert-file-contents file_name)
>(proposition_org/list_propositions_in_buffer)))
> (t '()
>
>   (defun proposition_org/list_propositions_in_buffer ()
> "current_buffer → [proposition_org]"
>
> (seq-filter 'not (org-map-entries 
> 'proposition_org/if_proposition_then_get_content_else_nil t)))
>
>   (defun proposition_org/if_proposition_then_get_content_else_nil ()
> "current_heading → nil | proposition_org"
> (cond ((proposition_org/is_publication) (proposition_org/get_content))
>   (t nil)))
>
>   (defun proposition_org/get_content ()
> "current_heading → string"
> (org-narrow-to-subtree)
> (let ((content (buffer-string)))
>   (widen)
>   content))
>
>   (defun proposition_org/is_publication ()
> "current_heading → boolean"
> (eq (proposition_org/is_proposition_properties (org-entry-properties)) 
> 'true))
>
>   (defun proposition_org/is_proposition_properties (properties)
> "properties ≡ [[key,value]]
>
>  properties → 'true | 'false"
>
> (let ((proposition_properties_pattern
>(list
> (cons
>  (lambda (x) (equal "PUBLIC" x))
>  (lambda (x) (equal "true" x)))
>
> (cons
>  (lambda (x) (equal "TARGET_ID" x))
>  (lambda (x) (stringp x)))
>
> (cons
>  (lambda (x) (equal "PREVIOUS_VERSION" x))
>  (lambda (x) (stringp x)))
>
> (cons
>  (lambda (x) (equal "AUTHOR" x))
>  (lambda (x) (stringp x)))
>
> (cons
>  (lambda (x) (equal "TYPE_NAME" x))
>  (lambda (x) (equal "proposition_org" x)))
>
> (cons
>  

[O] Json readable error

2018-07-21 Thread Doyley, Marvin M.
Hi there,

For some strange reason whenever I switch to org-mode (M-x org-mode), I get 
json readtable error: 84, which I have been trying to resolve without much 
success. 

Have anyone encountered this before or know how to resolve it?  This problem 
could be due to recent change that I have made to my default python (changed 
from anaconda 3.4 to intel’s python 3.4), but I am not sure why doing this 
would cause a problem.  

Best Wishes,
M 

Here is the backtrace.

Debugger entered--Lisp error: (json-readtable-error 84)
  signal(json-readtable-error (84))
  json-read()
  json-read-array()
  json-read()
  json-read-from-string("[TerminalIPythonApp] WARNING | Subcommand `ipython 
kernelspec` is deprecated and will be removed in future 
versions.\n[TerminalIPythonApp] WARNING | You likely want to use `jupyter 
kernelspec` in the future\n{\n  \"kernelspecs\": {\n\"python3\": {\n  
\"resource_dir\": \"/anaconda/share/jupyter/kernels/python3\",\n  \"spec\": 
{\n\"argv\": [\n  \"/anaconda/bin/python\",\n  
\"-m\",\n  \"ipykernel_launcher\",\n  \"-f\",\n  
\"{connection_file}\"\n],\n\"env\": {},\n
\"display_name\": \"Python 3\",\n\"language\": \"python\",\n
\"interrupt_mode\": \"signal\",\n\"metadata\": {}\n  }\n}\n  
}\n}\n")
  ob-ipython--get-kernels()
  ob-ipython-auto-configure-kernels()
  run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook 
org-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook 
outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  funcall-interactively(org-mode)
  call-interactively(org-mode record nil)
  command-execute(org-mode record)
  helm-M-x(nil #("org-mode" 0 8 (match-part "org-mode")))
  funcall-interactively(helm-M-x nil #("org-mode" 0 8 (match-part "org-mode")))
  call-interactively(helm-M-x nil nil)
  command-execute(helm-M-x)