Re: [O] Make org-cycle outline-mode compatible again
Hello, Jonas Bernoulli writes: > While I realize I probably should not be using `org-cycle' in buffers in > which `outline-minor-mode' is enabled, I have been doing it for a long > time, and while that command certainly is overkill in such buffers, the > only problem I have run into is that I usually have to apply a tiny > patch to make it work. > > That's what is currently necessary: > > diff --git a/lisp/org.el b/lisp/org.el > index f1a573d35..7716c0961 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -6948,7 +6948,10 @@ (defun org-cycle-internal-local () >(if (org-at-item-p) > (org-list-set-item-visibility (point-at-bol) struct 'children) > (org-show-entry) > - (org-with-limited-levels (org-show-children)) > + (org-with-limited-levels > +(if (derived-mode-p 'org-mode) > +(org-show-children) > + (outline-show-children))) I suggest to use a hook instead (maybe `org-tab-first-hook' or some such). Regards, -- Nicolas Goaziou
Re: [O] Two ox-texinfo regressions
Hello, Jonas Bernoulli writes: > 1) Starting with "1b415735e ox-texinfo: Small menu refactoring" >a menu contains not only entries for subnodes but recursively >for all subsub...nodes. > >That's because `org-element-map' is no longer called with `headline' >as NO-RECURSION. > >You can use this trivial source to veryify this: > >.--- >|* a >|** b >|*** c >`--- Fixed. > 2) There no longer is an empty line between headings and content in >texi files. I am not sure what commit introduced that regression. > >You can use this trivial source to veryify this: > >.--- >|* title >| >|content >`--- Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Make org-cycle outline-mode compatible again
Seems like a good idea, thanks for sharing that. :)
Re: [O] agenda configurable entry-text-mode
Hi Alexander, That's a very nice idea. I think it wouldn't be too hard to implement something like that using org-quick-peek. Let me know what you think. I might give it a try myself.
Re: [O] multiple column views
Gee, Nicolas, you make it look so easy... :)
[O] Two ox-texinfo regressions
Hello, 1) Starting with "1b415735e ox-texinfo: Small menu refactoring" a menu contains not only entries for subnodes but recursively for all subsub...nodes. That's because `org-element-map' is no longer called with `headline' as NO-RECURSION. You can use this trivial source to veryify this: .--- |* a |** b |*** c `--- This can be fixed by reverting that commit. 2) There no longer is an empty line between headings and content in texi files. I am not sure what commit introduced that regression. You can use this trivial source to veryify this: .--- |* title | |content `--- This can be fixed by changing the last line of `org-texinfo-headline': .--- |- contents))) |+ "\n" contents))) `--- Best regards, Jonas
[O] Make org-cycle outline-mode compatible again
Hello While I realize I probably should not be using `org-cycle' in buffers in which `outline-minor-mode' is enabled, I have been doing it for a long time, and while that command certainly is overkill in such buffers, the only problem I have run into is that I usually have to apply a tiny patch to make it work. That's what is currently necessary: diff --git a/lisp/org.el b/lisp/org.el index f1a573d35..7716c0961 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6948,7 +6948,10 @@ (defun org-cycle-internal-local () (if (org-at-item-p) (org-list-set-item-visibility (point-at-bol) struct 'children) (org-show-entry) - (org-with-limited-levels (org-show-children)) + (org-with-limited-levels +(if (derived-mode-p 'org-mode) +(org-show-children) + (outline-show-children))) ;; FIXME: This slows down the func way too much. ;; How keep drawers hidden in subtree anyway? ;; (when (memq 'org-cycle-hide-drawers org-cycle-hook) I am considering reviving `outline-cycle' from `outline-magic' eventually, or writing something from scratch. I don't remember the details, but last time I tried using `outline-cycle' it gave me more grieve than just patching `org-cycle-internal-local' as above. I am hoping you will apply this patch or something similar. Thanks, Jonas
Re: [O] How to treat `' as code quote (~~).
Thanks. I would stick with == then ;). Best, > On 25 Jul 2017, at 15:01, Nicolas Goaziou wrote: > > Hello, > > Shiyao MA writes: > >> I wanna quote function name. >> ~~ is really hard to type, and looks to obtrusive. >> >> Possible to add a new code quote as `'? >> I mean use ` ' to replace ~ ~. > > It depends on where you want to replace it. > > Extending syntax is not really possible. However, you could replace > `...' with ~...~ just before exporting a buffer. > > Also, you can hide emphasis markers if they are too intrusive, and use > =...= instead of ~...~ if the latter is too hard to type. > > Regards, > > -- > Nicolas Goaziou
Re: [O] org-protocol documentation
> "Adam" == Adam Porter writes: Adam> Colin Baxter writes: >> I notice that your instructions give (require >> 'org-protocol). Does that mean (setq org-modules (quote >> (org-protocol))) no longer works? Adam> No, that should work too, as long as that is run before Org is Adam> loaded. You may prefer to use the customize interface for Adam> setting org-modules. Thank you. -- -- Colin Baxter m43...@yandex.com GnuPG fingerprint: 68A8 799C 0230 16E7 BF68 2A27 BBFA 2492 91F5 41C8
[O] agenda configurable entry-text-mode
Hello! Is it possible to alter the text shown for each headline after toggling entry-text-mode in the agenda? At the moment, a certain number of lines of the headline's body is displayed. Instead of the lines I would like to display the last note that has been recorded in a LOGBOOK drawer. My scenario: I have an agenda that lists stuck headlines (no child headline is TODO and at least one is BLOCKED). I record a note when transitioning to the BLOCKED state which gives a reason for the blocking. I want to collect the reasons of all the blocked child headlines and display them under the parent headline in the agenda view (when in entry-text-mode). Is this possible to do with what org-mode has to offer at the moment? Kind regards, -- Alexander Baier
Re: [O] No support for generation of 'HELP' setting of org-info.js in HTML export
Hello, Olivier Berger writes: > Unless I'm mistaken, the generation of the init section in HTML export > won't set the HELP variable supported by org-info.js [0], which allows > to display a message advertizing the use of org-info and pointing to its > help. AFAIU it is possible to set it at a global level by tweaking `org-html-infojs-template'. > It would be interesting to be able to set it with #+INFOJS_OPT: > settings. It can probably be done by adding (help HELP some-default-value) to `org-html-infojs-opts-table'. What would be an appropriate default value? Regards, -- Nicolas Goaziou
Re: [O] Suggestion: provide more detailed example of :options for LaTeX special blocks
Hello, Olivier Berger writes: > May I suggest to improve the docs of > [[http://orgmode.org/manual/Special-blocks-in-LaTeX-export.html][Special > blocks in LaTeX export]] to make it more explicit that the special > blocks :options can contain both options or arguments of the LaTeX > environment. > > Here's an example: > > #+ATTR_LATEX: :options [logo=\bcattention]{The warning} > > #+BEGIN_bclogo > Attention, this is a warning > #+END_bclogo > > This requires or course: > #+LaTeX_HEADER: \usepackage[tikz]{bclogo} > > > I've been struggling with trying to do this, until I read the sources of > ox-latex and noticed that it wasn't limited to the '[...]' > options... and much later re-read the manual to finally notice the > "appends as-is to that environment's opening string" ;-) > > Maybe providing an example that uses both the '[...]' and the '{...}' > would save others' time. > > Unfortunately, I'm not fluent enough in LaTeX to suggest a more > "generic" environment than bclogo, readily available in an article, for a > direct patch proposal to the manual sources. I think minipage environment fits the bill. Would the following example, used to put two pictures side by side, clear enough? #+ATTR_LATEX: :options [t]{.5\textwidth} #+BEGIN_minipage [[file:left-image.pdf]] #+END_minipage #+ATTR_LATEX: :options [t]{.5\textwidth} #+BEGIN_minipage [[file:right-image.pdf]] #+END_minipage Regards, -- Nicolas Goaziou
Re: [O] multiple column views
Hello, Hendrik Tews writes: > is there a specific reason why I can only have one buffer with > column view active? I implemented multiple columns views in master. Feedback welcome. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] Specify the message digest for the OpenSSL commands for org-mobile.
Hello, Jeff Larson writes: > org-mobile.el: fix the message digest as MD5 for compatibility across > OpenSSL versions. > > OpenSSL switched to using SHA256 by default for symmetric encryption > in version 1.1. Unfortunately that means that newer versions of the > openssl command line tool can not decrypt encrypted org-mobile files > without the '-md md5' option. This commit changes the shell commands > in org-mobile-encrypt-file and org-mobile-decrypt-file to explicitly > specify MD5 as the hash digest. > > TINYCHANGE Applied. Thank you. Regards, -- Nicolas Goaziou
Re: [O] How to treat `' as code quote (~~).
Hello, Shiyao MA writes: > I wanna quote function name. > ~~ is really hard to type, and looks to obtrusive. > > Possible to add a new code quote as `'? > I mean use ` ' to replace ~ ~. It depends on where you want to replace it. Extending syntax is not really possible. However, you could replace `...' with ~...~ just before exporting a buffer. Also, you can hide emphasis markers if they are too intrusive, and use =...= instead of ~...~ if the latter is too hard to type. Regards, -- Nicolas Goaziou