Re: New org-store-link on headlines contains tags

2020-03-22 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Nicolas Goaziou  writes:

> Hello,
>
> stardiviner  writes:
>
>> I found the new org-store-link on headlines contains tags. I don't think 
>> this is
>> a good way. Because some users like me might change tags. Will that caused 
>> Org
>> open link failure in future if this open link function modified or others. I
>> think just headline text is good. WDYT?
>
> Fixed. Thank you.
>
> Regards,

Hi, Nicolas, I found the link part is fixed, Another itch is that the link
description part still contains the statistic cookie [1/2]. For example:

#+begin_src org
* headline statistics [/]

[[*headline statistics][headline statistics [/]​]]
#+end_src

- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl54HLwUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsPjHggAttzjnd2mrU0Uk0DvX55UmlrEEn8b
JGBDCi8bJTSK+uajeBVxffO468pYYjXbG/mMhYrTAzdNMsz9S4c+k/LaaMrj0P85
nxd7tPm2g+GyDz/iv8SO58b3V76VO9LhJPushgN46ayNvJ0Tckmxp1MTqsHLNBZ7
FRcDD/YJwDZsgzjm8rxvIixAmPneregRGTvJ1wfDBK4DvfakIEJIcUWJxNv1xCqx
QGiAaQFqXb9VY/sLoyI/kt/d2mp04fvFwfxvVoVk0LVUr+Sm4I/T+Usy4uZmB2qu
sonlfS2IE8EQzrJEQedCcCA4zXtQsIinneYFkkdchWGTmt0jXhG5sdrpGQ==
=cgk6
-END PGP SIGNATURE-



Re: org-pop-mode

2020-03-22 Thread Ihor Radchenko


> Inline tasks seem to be limited to just body text; you 
> can't put sub-headings inside them, etc.  Org-pop digressions can 
> contain sub-headings and whatever other structure, even further 
> digressions and "pop"s.  So that's something significant that inline 
> headings lack.

Thanks for clarifying. Do you actually use this feature? It was hard for
me to come out with anything fitting my workflow.

I tried to play very little with org-pop just now. Generally it looks a
lot like inline tasks, but indeed a lot less integrated with standard
org features.

Some observations:
- the visual appearance looks same as normal org structure. While, as
you said, inline tasks are generally indented too much, the org-pop
approach shows little indication that "inline" headlines are actually
any different from normal org subheadings. Yes, you have cycling, but it
will not be really useful for entries having more than a screen full of
text. Probably, the "inline" headlines should be highlighted in some
way. 
- refiling does not touch the :contd: heading
- org-metaright and similar functions mess up the :contd: part
- creating the :contd: headline feels too manual for me. A command to
create the :contd: headline would be useful, I think.
- Archiving does not work

In summary, my impression is that hacking the existing inlinetask
functionality to change visual appearance of inlinetasks (maybe less
indentation) and to allow subtasks could be easier if you really want to
integrate the whole thing with org-mode. 

Best,
Ihor



"Mark E. Shoulson"  writes:

> On 3/18/20 3:00 AM, Ihor Radchenko wrote:
>>> Any feedback?
>> >From the first glance it does not look too different from inline
>> headings. Could you highlight the difference?
>>
>> Best,
>> Ihor
>
> Oh! And I forgot a crucial feature that org-pop has over inline tasks: 
> you can put any amount of org-mode tree-structure inside an org-pop 
> digression.  Inline tasks seem to be limited to just body text; you 
> can't put sub-headings inside them, etc.  Org-pop digressions can 
> contain sub-headings and whatever other structure, even further 
> digressions and "pop"s.  So that's something significant that inline 
> headings lack.
>
> ~mark
>
>

-- 
Ihor Radchenko,
PhD,
Center for Advancing Materials Performance from the Nanoscale (CAMP-nano)
State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong 
University, Xi'an, China
Email: yanta...@gmail.com, ihor_radche...@alumni.sutd.edu.sg



Bug: JS code in code block isn't executed, it throws an error [9.3.6 (9.3.6-25-g685b2c-elpaplus @ /Users/serg/.spacemacs-emacs/elpa/28.0/develop/org-plus-contrib-20200316/)]

2020-03-22 Thread Sergey



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

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

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


# The code block

```
#+BEGIN_SRC js
console.log('test')
#+END_SRC
```

# The error itself

```
/private/var/folders/1t/d2tthcgx6pqd831qg5nbc5vmgn/T/babel-pRbyYA/js-script-RJxHlE:1
require('sys').print(require('sys').inspect(function(){
   ^

TypeError: require(...).print is not a function
at Object. 
(/private/var/folders/1t/d2tthcgx6pqd831qg5nbc5vmgn/T/babel-pRbyYA/js-script-RJxHlE:1:16)
at Module._compile (internal/modules/cjs/loader.js:1147:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
at Module.load (internal/modules/cjs/loader.js:996:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Function.executeUserEntryPoint [as runMain] 
(internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

```


Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.3.0, NS 
appkit-1894.30 Version 10.15.3 (Build 19D76))
of 2020-03-21
Package: Org mode version 9.3.6 (9.3.6-25-g685b2c-elpaplus @ 
/Users/serg/.spacemacs-emacs/elpa/28.0/develop/org-plus-contrib-20200316/)

current state:
==
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
org-link-shell-confirm-function 'yes-or-no-p
org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-src-tab-acts-natively t
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-imenu-depth 8
org-download-annotate-function 'org-download-annotate-default
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-mode-hook '(#[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-show-all append local] 
5]
 #[0 "\300\301\302\303\304$\207"
   [add-hook change-major-mode-hook org-babel-show-result-all 
append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes
 #[0 "\301\211\207" [imenu-create-index-function 
org-imenu-get-tree] 2]
 spacemacs/org-setup-evil-surround spacemacs/load-yasnippet 
toc-org-enable
 org-download-enable org-bullets-mode 
dotspacemacs//prettify-spacemacs-docs
 spacemacs//org-babel-do-load-languages 
spacemacs//evil-org-mode org-eldoc-load
 spacemacs//init-company-org-mode company-mode)
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-archive-hook '(org-attach-archive-delete-maybe)
org-agenda-restore-windows-after-quit t
org-confirm-elisp-link-function 'yes-or-no-p
org-startup-with-inline-images t
org-download-file-format-function 'org-download-file-format-default
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-babel-pre-tangle-hook '(save-buffer)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-babel-load-languages '((js . t) (shell . t) (emacs-lisp . t))
org-log-done 'time
org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS 
WIDTH)"]
org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" . php) ("C" 
. c) ("C++" . c++)
  ("asymptote" . asy) ("bash" . sh) ("beamer" . latex) 
("calc" . fundamental)
  ("cpp" . c++) ("ditaa" . artist) ("dot" . fundamental) 
("elisp" . emacs-lisp)
  ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . 
sh) ("sqlite" . sql))
org-occur-hook '(org-first-headline-recenter)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
org-clock-persist-file "/Users/serg/.spacemacs-emacs/.cache/org-clock-save.el"
org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
org-latex-prefer-user-labels t
org-publish-timestamp-directory 
"/Users/serg/.spacemacs-emacs/.cache/.org-timestamps/"
org-export-async-init-file 
"/Users/serg/.spacemacs-emacs/layers/+emacs/org/local/org-async-init.el"
org-id-locations-file "/Users/serg/.spacemacs-emacs/.cache/.org-id-locations"
org-confirm-shell-link-function 'yes-or-no-p
org-link-parameters '(("attachment" :follow org-a

Re: org-pop-mode

2020-03-22 Thread Mark E. Shoulson

On 3/18/20 3:00 AM, Ihor Radchenko wrote:

Any feedback?

>From the first glance it does not look too different from inline
headings. Could you highlight the difference?

Best,
Ihor


Oh! And I forgot a crucial feature that org-pop has over inline tasks: 
you can put any amount of org-mode tree-structure inside an org-pop 
digression.  Inline tasks seem to be limited to just body text; you 
can't put sub-headings inside them, etc.  Org-pop digressions can 
contain sub-headings and whatever other structure, even further 
digressions and "pop"s.  So that's something significant that inline 
headings lack.


~mark