[O] Fontification of block delimiting lines

2019-08-12 Thread Carsten Dominik
Hi,

upon request from Emacs developers, it is now configurable if org-mode
fortifies the block delimiting lines #+begin... and #+end... up and
including the final newline or not.  This is something you will only notice
when you have a font for this using a background color or an
over/underline.  This can cause problems with the Emacs display engine,
apparently.

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36858

  related:
https://lists.gnu.org/archive/html/emacs-devel/2019-08/msg00132.html

There is now a new variable `org-fontify-whole-block-delimiter-line',
default is t.  In the process I cleaned up the corresponding fontification
function.  Please report if with my recent commit any fontification issues
or errors start to appear.

Thank you.

Carsten


Re: [O] NLS/Augment

2019-08-12 Thread Jean Louis
* Steve Quezadas  [2019-08-12 05:59]:
> Guys,
> 
> This is a slightly offtopic, but I've been using org-mode and I love love
> loveit. Was the writing of org-mode related in any way to Douglas
> Engelbart's NLS/Augment system? A lot of the features seem to crossover. Or
> is this simply coincidence?

I have been watching the demonstration on these pages:
http://dougengelbart.org/content/view/216/000/#Augment

and videos by Christina Engelbart,
https://www.youtube.com/watch?list=PLCGFadV4FqU15vunAfsTDzeEPnHDaf7n0&v=STRuciV6L38

Org mode look similar to that Augment browser, definitely. With
differences. But it looks as nice information management system.

It would be good that Org mode gets some kind of "buttons follow the
mouse" feature upon turning it on, just as shown on this video:
https://vimeo.com/81238285

as that would then easy mouse actions to open outlines, close
outlines. 

The Augment hierarchy reminds more on Koutline from GNU Hyperbole:
https://www.gnu.org/software/hyperbole/ and  remind more to
Hyperbole type of explicit buttons, which can be used together with
Org mode.

As I understand Internet and hyperlinks owe much to Doug Engelbert, as
he apparently invented many computing features that we use today.

HyperScope is free software that works in browsers:
http://hyperscope.org/


Jean



Re: [O] org-todo & empty title -> misaligned tags

2019-08-12 Thread Carsten Dominik
Fixed, thank you for the report.

Carsten

On Sun, Aug 11, 2019 at 1:27 PM Dmitrii Korobeinikov 
wrote:

>Reproduction steps (tested w/ emacs -Q):
>Version: GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version
> 3.24.8) of 2019-04-13
>
>1. M-x org-mode
>2. (insert "* ")
>3. M-x org-set-tags-command, enter any tag name
>4. M-x org-todo
>
>The tag jumps right next to the asterisk (expected: stays where it is).
> Doesn't happen if the title is not empty.
>
>5. M-x org-set-tags-command resets the tags back where they belong
>
>I think it's a bug.
>


Re: [O] Bug: Org agenda category max length raise error [9.2.5 (9.2.5-1-gff6508-elpaplus @ /home/edo/.emacs.d/elpa/org-plus-contrib-20190805/)]

2019-08-12 Thread Carsten Dominik
Hi Hector,

you fix does not work, because it changes the match data, which is still
needed further down.  Could you please try the attached patch and report
back?

Thank you

Carsten



On Sun, Aug 11, 2019 at 4:50 PM Héctor Enríquez Ramón 
wrote:

> --text follows this line--
>
> Hi.
>
>
> * Issue:
>
> 1. Use max length format %., example
>
> (setq org-agenda-prefix-format
>   '((agenda . " %i %-4.4 c%?-12t% s")  ;; (agenda . " %i %-12:c%?-12t%
> s")
> (timeline . "  % s")
> (todo . " %i %-4.4 c%?-12t% s");; (todo . " %i %-12:c")
> (tags . " %i %-4.4 c") ;; (tags . " %i %-12:c")
> (search . " %i %-4.4 c"))  ;; (search . " %i %-12:c"))
>
> 2. Open an org file.
>
> 3. Typing C-c a a (for example) raise:
>
>org-compile-prefix-format: Args out of range: "-4.4", 4, 11
>
>
> * How to fix it:
>
> org-agenda.el: (see comments ;; + line added, ;; - line removed)
>
>   (when (eq var 'category)
> (setq org-prefix-category-length
>   (floor (abs (string-to-number (match-string 2 s)
> (setq org-prefix-category-max-length
>   (let ((x (match-string 2 s)))
> (save-match-data
>;; +
>   (when (string-match "\\.[0-9]+" x)
> (string-to-number (substring (match-string 0 x)
> 1)))  ;; +
> ;; (when (string-match-p "\\.[0-9]+" x)
> ;; -
> ;;   (string-to-number (substring (match-string 0 x)
> 1))  ;; -
>   (if (eq var 'eval)
>   (setq varform `(format ,f (org-eval ,(read (match-string 4
> s)
>
>
>
> Best regards. Hector
>
> Emacs  : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw
> scroll bars)
>  of 2019-04-13
> Package: Org mode version 9.2.5 (9.2.5-1-gff6508-elpaplus @
> /home/edo/.emacs.d/elpa/org-plus-contrib-20190805/)
>


patch
Description: Binary data


Re: [O] Bug: Org agenda category max length raise error [9.2.5 (9.2.5-1-gff6508-elpaplus @ /home/edo/.emacs.d/elpa/org-plus-contrib-20190805/)]

2019-08-12 Thread Carsten Dominik
Fixed, thank you.

Carsten

On Sun, Aug 11, 2019 at 4:50 PM Héctor Enríquez Ramón 
wrote:

> --text follows this line--
>
> Hi.
>
>
> * Issue:
>
> 1. Use max length format %., example
>
> (setq org-agenda-prefix-format
>   '((agenda . " %i %-4.4 c%?-12t% s")  ;; (agenda . " %i %-12:c%?-12t%
> s")
> (timeline . "  % s")
> (todo . " %i %-4.4 c%?-12t% s");; (todo . " %i %-12:c")
> (tags . " %i %-4.4 c") ;; (tags . " %i %-12:c")
> (search . " %i %-4.4 c"))  ;; (search . " %i %-12:c"))
>
> 2. Open an org file.
>
> 3. Typing C-c a a (for example) raise:
>
>org-compile-prefix-format: Args out of range: "-4.4", 4, 11
>
>
> * How to fix it:
>
> org-agenda.el: (see comments ;; + line added, ;; - line removed)
>
>   (when (eq var 'category)
> (setq org-prefix-category-length
>   (floor (abs (string-to-number (match-string 2 s)
> (setq org-prefix-category-max-length
>   (let ((x (match-string 2 s)))
> (save-match-data
>;; +
>   (when (string-match "\\.[0-9]+" x)
> (string-to-number (substring (match-string 0 x)
> 1)))  ;; +
> ;; (when (string-match-p "\\.[0-9]+" x)
> ;; -
> ;;   (string-to-number (substring (match-string 0 x)
> 1))  ;; -
>   (if (eq var 'eval)
>   (setq varform `(format ,f (org-eval ,(read (match-string 4
> s)
>
>
>
> Best regards. Hector
>
> Emacs  : GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw
> scroll bars)
>  of 2019-04-13
> Package: Org mode version 9.2.5 (9.2.5-1-gff6508-elpaplus @
> /home/edo/.emacs.d/elpa/org-plus-contrib-20190805/)
>


[O] M-x org-footnote-renumber ?

2019-08-12 Thread Sharon Kimble

I am converting a website into a pdf file, article by article, currently
1,190 A4 pages with 2,882 footnotes and its not finished yet. The main
file has 4 additional files linked to it by '#+include:
/home/boudiccas/research/writing/book/file-1.org :minlevel 1' just
before I generate the glossary, bibliography, and index.

In 'file 5' I am actively converting/writing sections some of which need
to be parachuted (meaning dropped into their alphabetical place) into
some of the other files, but I know that when I do that the footnotes
will not be renumbered.

So how can I trigger a footnote renumber please?

Is there something like 'M-x org-footnote-renumber' that I can run
periodically in each sub-file to renumber the footnotes?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 10.0, fluxbox 1.3.7, emacs 26.2, org 9.2.5


signature.asc
Description: PGP signature


Re: [O] NLS/Augment

2019-08-12 Thread John Kitchin


Jean Louis  writes:

> * Steve Quezadas  [2019-08-12 05:59]:
>> Guys,
>>
>> This is a slightly offtopic, but I've been using org-mode and I love love
>> loveit. Was the writing of org-mode related in any way to Douglas
>> Engelbart's NLS/Augment system? A lot of the features seem to crossover. Or
>> is this simply coincidence?
>
> I have been watching the demonstration on these pages:
> http://dougengelbart.org/content/view/216/000/#Augment
>
> and videos by Christina Engelbart,
> https://www.youtube.com/watch?list=PLCGFadV4FqU15vunAfsTDzeEPnHDaf7n0&v=STRuciV6L38
>
> Org mode look similar to that Augment browser, definitely. With
> differences. But it looks as nice information management system.
>
> It would be good that Org mode gets some kind of "buttons follow the
> mouse" feature upon turning it on, just as shown on this video:
> https://vimeo.com/81238285
>

I think (require 'org-mouse) provides lots of mouse support for
opening/closing outlines, checking/unchecking checkboxes, etc.

> as that would then easy mouse actions to open outlines, close
> outlines.
>
> The Augment hierarchy reminds more on Koutline from GNU Hyperbole:
> https://www.gnu.org/software/hyperbole/ and  remind more to
> Hyperbole type of explicit buttons, which can be used together with
> Org mode.
>
> As I understand Internet and hyperlinks owe much to Doug Engelbert, as
> he apparently invented many computing features that we use today.
>
> HyperScope is free software that works in browsers:
> http://hyperscope.org/
>
>
> Jean


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] org-todo & empty title -> misaligned tags

2019-08-12 Thread Dmitrii Korobeinikov
Thanks!

пн, 12 авг. 2019 г. в 15:37, Carsten Dominik :

> Fixed, thank you for the report.
>
> Carsten
>
> On Sun, Aug 11, 2019 at 1:27 PM Dmitrii Korobeinikov 
> wrote:
>
>>Reproduction steps (tested w/ emacs -Q):
>>Version: GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version
>> 3.24.8) of 2019-04-13
>>
>>1. M-x org-mode
>>2. (insert "* ")
>>3. M-x org-set-tags-command, enter any tag name
>>4. M-x org-todo
>>
>>The tag jumps right next to the asterisk (expected: stays where it
>> is). Doesn't happen if the title is not empty.
>>
>>5. M-x org-set-tags-command resets the tags back where they belong
>>
>>I think it's a bug.
>>
>


[O] ANN: org-auto-expand: Automatically expand certain headings

2019-08-12 Thread Adam Porter
Hi friends,

I just pushed a new package, org-auto-expand, that makes it easy to
automatically expand certain headings when a file is visited, or
on-demand.  This is a feature that I've seen asked for several times,
but it had never occurred to me how easy it would be to implement.

https://github.com/alphapapa/org-auto-expand

If any of the Org maintainers think this would be useful to include in
Org itself, that would be great.  The code is very simple, and I've
already signed the FSF CA.  I'd be glad to prepare a patch with a bit of
guidance about how to best integrate it (e.g. as a module, etc).

Thanks,
Adam




Re: [O] NLS/Augment

2019-08-12 Thread Adam Porter
Thanks for sharing those links, those videos are fascinating.  It's
amazing how much some of what he demonstrates resembles features in Org
and Emacs, and even surpasses them, over 50 years ago!  Even the
presentation itself, with picture-in-picture videoconferencing with
screen sharing, surpasses most conference presentations on YouTube!




Re: [O] ANN: org-auto-expand: Automatically expand certain headings

2019-08-12 Thread Samuel Wales
i thought the visibility property already did this.



On 8/12/19, Adam Porter  wrote:
> Hi friends,
>
> I just pushed a new package, org-auto-expand, that makes it easy to
> automatically expand certain headings when a file is visited, or
> on-demand.  This is a feature that I've seen asked for several times,
> but it had never occurred to me how easy it would be to implement.
>
> https://github.com/alphapapa/org-auto-expand
>
> If any of the Org maintainers think this would be useful to include in
> Org itself, that would be great.  The code is very simple, and I've
> already signed the FSF CA.  I'd be glad to prepare a patch with a bit of
> guidance about how to best integrate it (e.g. as a module, etc).
>
> Thanks,
> Adam
>
>
>


-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.



Re: [O] ANN: org-auto-expand: Automatically expand certain headings

2019-08-12 Thread Adam Porter
Samuel Wales  writes:

> i thought the visibility property already did this.

This allows more powerful and flexible configuration.  Please see the
examples in the readme.