[O] Better default for org-texinfo-info-process

2017-07-26 Thread Jonas Bernoulli
Hello,

For some reason the authors of `makeinfo' thought it would be a good
idea to split the generated info file into two files by default once
its size reaches a certain undocumented threshold.

When that happened to me for the first time I was very surprised and
thought that "foo-1.info" and "foo-2.info" were some intermediate
files, added appropriate rules to ".gitignore", and went on shipping
an outdated "foo.info" for a while.  (Off topic:  I no longer ship
"*.info" files, just "*.texi".)

Since I have figured out what is going on, I am using this:

  (setq org-texinfo-info-process '("makeinfo --no-split %f"))

Please consider making this the default value.

  Best regards,
  Jonas



[O] Disable indent-tabs-mode in org-src buffers if appropriate

2017-07-26 Thread Jonas Bernoulli
Me again,

For the most part Org now honors the file-local value of
`indent-tabs-mode' as set in an Org file.  When that value is `nil' and
a buffer used to edit a source block from that file contains lines that
begin with tabs, then those tabs are being replaced with spaces before
the text is written back into the Org file.

So far so good.  Unfortunately inside the buffer used to edit the source
block `indent-tabs-mode' is not disabled when appropriate.  That doesn't
matter that much since it is just a transient buffer, but it is still
distracting.

I suggest that you fix that by adding the following at the appropriate
place in `org-src--edit-element':

  (when (= source-tab-width 0)
(setq indent-tabs-mode nil))

Thanks,
Jonas



[O] How to hide a specific subtree during startup?

2017-07-26 Thread Shiyao Ma
Hi,

I'd like to hide a specific *subtree* (not the whole document) after initial 
open, how to achieve that?


I'd anticipate there is some magic property drawer under that subtree headline.


Better, if that subtree will avoid participating in the global visibility 
cycling. It will get expanded/collapsed only when the cursor is *on* that 
subtree and I press tab-s.




Best,

Shiyao


Re: [O] How to hide a specific subtree during startup?

2017-07-26 Thread Kaushal Modi
On Wed, Jul 26, 2017, 8:42 PM Shiyao Ma  wrote:

> Hi,
>
> I'd like to hide a specific *subtree* (not the whole document) after
> initial open, how to achieve that?
>

Tag that subtree as ARCHIVE (note the all uppercase).

I'd anticipate there is some magic property drawer under that subtree
> headline.
>
> Better, if that subtree will avoid participating in the global visibility
> cycling. It will get expanded/collapsed only when the cursor is *on* that
> subtree and I press tab-s.
>

Archived subtrees will not expand on global cycling. They will also not
expand on TAB; you'll need C-TAB instead.

> --

Kaushal Modi


Re: [O] How to hide a specific subtree during startup?

2017-07-26 Thread Shiyao MA
Thanks.

This solves my problem.



> On 27 Jul 2017, at 08:58, Kaushal Modi  wrote:
> 
> On Wed, Jul 26, 2017, 8:42 PM Shiyao Ma  wrote:
> Hi,
> 
> I'd like to hide a specific *subtree* (not the whole document) after initial 
> open, how to achieve that?
> 
> Tag that subtree as ARCHIVE (note the all uppercase).
> 
> I'd anticipate there is some magic property drawer under that subtree 
> headline.
> 
> Better, if that subtree will avoid participating in the global visibility 
> cycling. It will get expanded/collapsed only when the cursor is *on* that 
> subtree and I press tab-s.
> 
> Archived subtrees will not expand on global cycling. They will also not 
> expand on TAB; you'll need C-TAB instead. 
> -- 
> Kaushal Modi
>