Re: [O] [feature request] support content level in #+startup

2019-03-06 Thread Eric S Fraga
On Wednesday,  6 Mar 2019 at 10:50, Zhang Haijun wrote:
> Thank you. They works. But an option in startup line is easier to use for me.

I agree but, in the meantime, the following at the end of your org file
will accomplish the same:

#+begin_src org
  ,* file local variables:noexport:
  # Local Variables:
  # eval: (org-content 2)
  # End:
#+end_src
-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.1-242-g7e98c5



Re: [O] [feature request] support content level in #+startup

2019-03-06 Thread Eric S Fraga
On Wednesday,  6 Mar 2019 at 01:43, Zhang Haijun wrote:
> I want to show headlines whose level is less than 3(level 1 and 2). Can 
> you support this? For example, support the following option:
>
> content:2 show headlines whose level is no larger than 2

If you eval (org-content 2), you will get what you want.  You can create
a simple inline src block that will evaluated this for you by C-c C-c:

   src_elisp{(org-content 2)}

or you can put this in your file local variables (which is what I do) so
that you get the opening view of the file as you want it.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.1-242-g7e98c5



[O] [feature request] support content level in #+startup

2019-03-06 Thread Zhang Haijun
The manual says there are following options deals with the initial 
visibility of the outline tree:

overview top-level headlines only
content  all headlines
showall  no folding of any entries
showeverything   show even drawer contents

I want to show headlines whose level is less than 3(level 1 and 2). Can 
you support this? For example, support the following option:

content:2 show headlines whose level is no larger than 2




[O] Bug: Typo in org-archive-subtree comment [9.2.2 (9.2.2-elpaplus @ /home/n/.emacs.d/elpa/org-plus-contrib-20190304/)]

2019-03-06 Thread No Wayman
Just a small typo in the body of org-archive-subtree:

";; Save all relevant TODO keyword-relatex variables"

s/relatex/related


[O] babel detangling visits a large number of files

2019-03-06 Thread Eric S Fraga
Hello,

motivated by having just watched this video,

https://www.youtube.com/watch?time_continue=479=BLomb52wjvE

I decided to play around a bit with detangling.

When I try, it takes some time to get to the original src block.  Even
though the comment entry before the code looks very reasonable, e.g.:

#+begin_src julia
  # [[file:~/s/research/strawberry/src/fresa.org::modulestart][modulestart]]
  module Fresa
[... code elided ...]
  end
  # modulestart ends here
#+end_src

invoking org-babel-tangle-jump-to-org proceeds to visit a large number
of files (I only know because many of them require accepting some local
file variable settings when the files are visited) and org further
complains about a large number of multiply defined IDs.

Given that the detangling information in the comment has the file
explicitly stated, why should the detangling procedure care about IDs
and why does it need to visit so many files?  Have I configured
something wrongly?

And a side question: what can I do about my 95 duplicate IDs?

Thanks,
eric

PS - running latest org from git as of a few minutes ago.
-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.2-249-g51444a