Re: [BUG] org-export-with-broken-links not respected for (org-icalendar-combine-agenda-files t) [9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)]

2023-09-15 Thread Jorge P . de Morais Neto
Hi!  I reply below:

Em [2023-09-15 sex 09:13:46+], Ihor Radchenko escreveu:

> Would you be interested to submit a patch?

Yes, I suppose I can do it!  I will try do do it this weekend, but it
could take longer because, although it will be a simple patch, I am
disorganized.

Regards!

-- 
- Adopt libre formats and protocols like PDF, Org, LaTeX, ODF, Opus, WebM and 
7z.
- Libre apps for AOSP (Replicant, LineageOS etc.), Android: https://f-droid.org/
- https://www.gnu.org/philosophy/free-sw.html "What is free software?"
- Many people hate injustice but few check the facts; this causes more
  injustice.  Ask me about 



Re: [BUG] org-export-with-broken-links not respected for (org-icalendar-combine-agenda-files t) [9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)]

2023-09-14 Thread Jorge P . de Morais Neto
Hi!  I reply below:

Em [2023-09-10 dom 07:50:22+], Ihor Radchenko escreveu:

> One possible way to fix the confusion could be adding a new
> `org-export-async-preserve-global-state' variable.  When non-nil, we
> will transfer global state in addition to the buffer-locals.  But I
> would like to hear other opinions first, if there are any.

In the meantime, or *in addition* to other changes, we could ameliorate
the problem with documentation.  Probably mention the potentially
confusing behavior in the Org manual, and maybe also in the docstring of
`org-icalendar-combine-agenda-files' and other functions that invoke
async export.

Regards!

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- https://www.fsf.org/ "Free Software Foundation: working together for free 
software"
- Many people hate injustice but few check the facts; this causes more
  injustice.  Ask me about 



[BUG] org-export-with-broken-links not respected for (org-icalendar-combine-agenda-files t) [9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)]

2023-09-09 Thread Jorge P. de Morais Neto
Hi.  I am on Gentoo.  I wrote the following Elisp function:

--8<---cut here---start->8---
(defun J-org-icalendar-agenda-no-babel ( async)
  "Invoke `org-icalendar-combine-agenda-files' without babel, maybe ASYNC.

Also, make broken Org links just get marked as such in the
output, instead of stopping the export with an error."
  (interactive "P")
  (let (org-export-use-babel
(org-export-with-broken-links 'mark))
  (org-icalendar-combine-agenda-files async)))
--8<---cut here---end--->8---

When I invoke (J-org-icalendar-agenda-no-babel t), the async export
errors out.  I determined that the inferior Emacs process does not see
the let-binding (org-export-with-broken-links 'mark).  Is this intended
behavior?

For now I have worked around this by writing

(setopt org-export-with-broken-links 'mark)

At the end of the file named by `org-export-async-init-file`.

Regards!

Emacs  : GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, 
cairo version 1.17.8)
 of 2023-09-03
Package: Org mode version 9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)
-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- If an email of mine arrives at your spam box, please notify me.
- Many people hate injustice but few check the facts; this causes more
  injustice.  Ask me about <https://stallmansupport.org>



Re: Grabbing the link to a message on the archive

2021-10-03 Thread Jorge P . de Morais Neto
Hi

Em [2021-10-03 dom 21:20:12-0300], Jorge P. de Morais Neto escreveu:

> In this snippet you call ~cond~ with three arguments, but it takes only
> two.

I meant ~cons~, not ~cond~.

-- 
- Many people hate injustice but few check the facts.  This provokes
  misinformation.  Ask me about <https://stallmansupport.org>
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Libre apps for AOSP (Replicant, LineageOS, etc.) and Android: F-Droid
- https://www.gnu.org/philosophy/free-sw.html "What is free software?"



Re: Grabbing the link to a message on the archive

2021-10-03 Thread Jorge P . de Morais Neto
Hi Timothy,

Em [2021-09-30 qui 13:18:44+0800], Timothy escreveu:

> If you use mu4e, the following may be of some interest:
> ┌
> │ (defun +mu4e-ml-message-link (msg)
> │   (cond
> │((string= "emacs-orgmode.gnu.org" (mu4e-message-field msg :mailing-list))
> │ (message "Link %s copied to clipboard" (gui-select-text (format 
> "https://list.orgmode.org/%s; (mu4e-message-field msg :message-id)
> │(t (user-error "Mailing list %s not supported" (mu4e-message-field msg 
> :mailing-list)
> │ (add-to-list 'mu4e-view-actions (cons "link to message ML" 
> #'+mu4e-ml-message-link t))
> └

In this snippet you call ~cond~ with three arguments, but it takes only
two.

Regards

-- 
- Many people hate injustice but few check the facts.  This provokes
  misinformation.  Ask me about 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- If an email of mine arrives at your spam box, please notify me.



Re: Bug: Small documentation errors [9.3.6 (9.3.6-29-g6a3dff-elpaplus @ /home/jorge/.emacs.d/elpa/27.0/develop/org-plus-contrib-20200406/)]

2021-09-10 Thread Jorge P . de Morais Neto
Hi Timothy!  Thank you for the patch review and for the feedback.

Regards

-- 
- Many people hate injustice but very few check the facts.  This provokes
  misinformation.  Ask me about 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- https://www.defectivebydesign.org
- https://www.gnu.org



Re: S-M-{,} on CLOCK timestamp

2021-08-22 Thread Jorge P . de Morais Neto
Hello Tim!

Em [2021-08-22 dom 11:21:47+1000], Tim Cross escreveu:

> I cannot reproduce this.
>
> When I do the same, I don't see any change in Task A's timestamp at all.
> There must be some other setting in play here which I don't have.

I am sorry, my description of the initial condition was incomplete.  To
reproduce the problem, you cannot simply copy the provided text to an
Org buffer.  You should create the clock timestamps with actual clocking
commands.  So please do the following:

1. In an Org buffer, create an outline containing ~Task A~ and ~Task B~:

   --8<---cut here---start->8---
   * Task A

   * Task B
   --8<---cut here---end--->8---

2. Clock into Task A by moving point to it and typing C-c C-x C-i.
3. Clock into Task B by moving point to it and typing C-c C-x C-i.
4. Increase the minutes part of task B's clock-in timestamp via C-u 42
   S-¹.  The ~42~ numeric prefix is just an example; please choose
   the numeric prefix argument so that:
   1. It is at least 5
   2. The resulting time in the timestamp is *not* a multiple of 5 min.
5. If the minutes part of task A's clock out time is not already a
   multiple of 5, then hit S-¹ (no prefix argument) to make it so.
6. Now you can reproduce the problem.

¹ When you are about to type S- to adjust the minutes part of a
clock timestamp, make sure point is in the minutes part you want to
adjust.  I usually place point right after the colon that separates HH
from MM.

Regards!

-- 
- Disinformation flourishes because many people care about injustice but
  very few check the facts.  Ask me about 
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- https://www.gnu.org/philosophy/free-sw.html "What is free software?"



S-M-{,} on CLOCK timestamp

2021-08-21 Thread Jorge P. de Morais Neto
Keywords: org-timestamp-down org-timestamp-up

Hi.  Suppose the buffer has the following text:

* Task A
:LOGBOOK:
CLOCK: [2021-08-21 sáb 18:00]--[2021-08-21 sáb 18:10] =>  0:10
:END:

* Task B
:LOGBOOK:
CLOCK: [2021-08-21 sáb 18:18]
:END:

If I invoke M-S- on Task B's clock-in timestamp, with point right
after the colon that separates HH from MM, then it correctly changes to
18:15 (decreases by three minutes), but Task A's clock-out timestamp
changes to 18:05---decreases by *five* minutes.

In my opinion, in this case the previous clock-out timestamp should not
change at all, because it was already less than 18:15.  But even if you
do think it should change, then surely you at least agree that it should
change by *three* minutes, just like Task A's clock-in timestamp.

This occurs on GNU Emacs 28.0.50 installed with
~guix package --with-branch=emacs-next=master -i emacs-next~
(upgraded last Thursday morning), invoked as ~emacs -Q~.  Note that on
my Guix-installed Emacs, an ~emacs -Q~ does load the emacs-org Guix
package (version 9.4.6).  Note also that my Org Mode has been patched
with Ihor Radchenko's patch to org-clock.el (attached to my previous
message), but it clearly can't influence this problem.

Regards

Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, 
cairo version 1.16.0)
Package: Org mode version 9.4.6 (9.4.6-gab9f2a @ 
/gnu/store/yg6kjzigqyfzbkzj99xmwmv3nssvhvnq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)

-- 
- Disinformation flourishes because many people care about injustice
  but very few check the facts.  Ask me about 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- If an email of mine arrives at your spam box, please notify me.



Bug: org-timestamp-{down,up} with numeric argument on time range modifies length [9.4.6 (9.4.6-gab9f2a @ /gnu/store/yg6kjzigqyfzbkzj99xmwmv3nssvhvnq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)]

2021-08-21 Thread Jorge P. de Morais Neto
>From 7dc855ae1d7992eaacc2cab13a39c6000e4e66bf Mon Sep 17 00:00:00 2001
Message-Id: <7dc855ae1d7992eaacc2cab13a39c6000e4e66bf.1622468529.git.yanta...@gmail.com>
From: Ihor Radchenko 
Date: Mon, 31 May 2021 21:39:51 +0800
Subject: [PATCH] Correctly handle org-log-note-clock-out non-interactively

* org-clock.el (org-clock-out): Delay log popup to
after-command-hook to avoid messing up non-interactive calls.
`org-add-log-setup' without 'note argument would raise interactive
note buffer immediately, so we do pass the 'note argument.
---
 org-clock.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-clock.el b/org-clock.el
index 3b7d97639..0328bddd3 100644
--- a/org-clock.el
+++ b/org-clock.el
@@ -1691,7 +1691,7 @@ (defun org-clock-out ( switch-to-state fail-quietly at-time)
 (line-beginning-position 2)))
 		(org-log-note-clock-out
 		 (org-add-log-setup
-		  'clock-out nil nil nil
+		  'clock-out nil nil 'note
 		  (concat "# Task: " (org-get-heading t) "\n\n"
 	  (when org-clock-mode-line-timer
 	(cancel-timer org-clock-mode-line-timer)
-- 
2.26.3

Hello everyone!  The manual says:


‘S-’ (‘org-timestamp-up’)
‘S-’ (‘org-timestamp-down’)
 On the beginning or enclosing bracket of a timestamp, change its
 type.  Within a timestamp, change the item under point.  Point can
 be on a year, month, day, hour or minute.  When the timestamp
 contains a time range like ‘15:30-16:30’, modifying the first time
 also shifts the second, shifting the time block with constant
 length. [...]

However, on the timestamp [2021-08-21 sáb 10:00-12:00], with point right
after the first colon, typing C-u 42 S- results in
[2021-08-21 sáb 10:42-12:05].  The problem also occurs with S-.

This occurs on GNU Emacs 28.0.50 installed with
~guix package --with-branch=emacs-next=master -i emacs-next~
(upgraded last Thursday morning), invoked as ~emacs -q~.  Note that on
my Guix-installed Emacs, an ~emacs -q~ does load the emacs-org Guix
package (version 9.4.6).  Note also that my Org Mode has been patched
with Ihor Radchenko's patch to org-clock.el (attached), but it clearly
can't influence this problem.

Regards

Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, 
cairo version 1.16.0)
Package: Org mode version 9.4.6 (9.4.6-gab9f2a @ 
/gnu/store/yg6kjzigqyfzbkzj99xmwmv3nssvhvnq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)
-- 
- Disinformation flourishes because many people care about injustice
  but very few check the facts.  Ask me about 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- If an email of mine arrives at your spam box, please notify me.


Re: Bug: Small documentation errors [9.3.6 (9.3.6-29-g6a3dff-elpaplus @ /home/jorge/.emacs.d/elpa/27.0/develop/org-plus-contrib-20200406/)]

2021-08-11 Thread Jorge P . de Morais Neto
>From d3c62edf7a713278432ebe1c72e4545b8a2b84e2 Mon Sep 17 00:00:00 2001
From: "Jorge P. de Morais Neto" 
Date: Wed, 11 Aug 2021 18:43:21 -0300
Subject: [PATCH] * doc/org-manual.org (Drawers): Clarify M-TAB

Provide example of completion over drawer keywords.  Also clarify the
footnote by qualifying "windows" as "graphical".
---
 doc/org-manual.org | 21 ++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index d34d33561..467644453 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -1214,7 +1214,22 @@ Org mode uses this special drawer for storing properties (see
 [[*Properties and Columns]]).  You cannot use it for anything else.
 
 Completion over drawer keywords is also possible using
-{{{kbd(M-TAB)}}}[fn:16].
+{{{kbd(M-TAB)}}}[fn:16].  For example, if the buffer contains
+
+#+begin_example
+:foo:
+:end:
+
+:f★
+#+end_example
+
+#+texinfo: @noindent
+(where ★ indicates the location of point) then {{{kbd(M-TAB)}}} will
+complete the line as
+
+#+begin_example
+:foo:★
+#+end_example
 
 Visibility cycling (see [[*Visibility Cycling]]) on the headline hides and
 shows the entry, but keep the drawer collapsed to a single line.  In
@@ -21500,8 +21515,8 @@ variable ~org-M-RET-may-split-line~.
 
 [fn:15] See ~org-list-use-circular-motion~ for a cyclic behavior.
 
-[fn:16] Many desktops intercept {{{kbd(M-TAB)}}} to switch windows.
-Use {{{kbd(C-M-i)}}} or {{{kbd(ESC TAB)}}} instead.
+[fn:16] Many desktops intercept {{{kbd(M-TAB)}}} to switch graphical
+windows.  Use {{{kbd(C-M-i)}}} or {{{kbd(ESC TAB)}}} instead.
 
 [fn:17] To insert a vertical bar into a table field, use =\vert= or,
 inside a word =abc\vert{}def=.
-- 
2.32.0

Hello,

Em [2021-08-11 qua 22:50:36+0200], Nicolas Goaziou escreveu:

>> Sorry for insisting, but can someone give me an example of what the
>> manual means by "Completion over drawer keywords"?
>
>   :foo:
>   :end:
>
>   :f|
>
> With point at |, M-TAB will complete the line as
>
>  :foo:

Then how about the attached patch?  Note that I used a black star to
indicate the position of point---the convention in the Elisp manual.
Also, I provided a ~+#+texinfo: @noindent~ directive so the continuation
would not be indented, because it is not a new paragraph.  Please tell
whether that made sense---I know little about Texinfo and typography.

Also tell whether I am making good use of time---mine and yours.  I have
OCD and I often nitpick about details of little relevance; feedback
about that is always welcome.

Regards

-- 
- Disinformation flourishes because many people care about injustice
  but very few check the facts.  Ask me about <https://stallmansupport.org>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: https://www.fsf.org/free-software-supporter
- If an email of mine arrives at your spam box, please notify me.


Re: Bug: Small documentation errors [9.3.6 (9.3.6-29-g6a3dff-elpaplus @ /home/jorge/.emacs.d/elpa/27.0/develop/org-plus-contrib-20200406/)]

2021-08-11 Thread Jorge P . de Morais Neto
>From 474192b67077b3a7bfaa8e9ff152b1a9ac7524f3 Mon Sep 17 00:00:00 2001
From: "Jorge P. de Morais Neto" 
Date: Wed, 11 Aug 2021 17:13:06 -0300
Subject: [PATCH] * doc/org-manual.org (Tracking TODO state changes): move
 sentence

The sentence was misplaced, interrupting the train of thought.  I also
did not understand the need for disabling paragraph indentation, so I
removed the directive.
---
 doc/org-manual.org | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index 977ef80b9..d34d33561 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -4205,10 +4205,6 @@ example, with the setting
   '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)" "CANCELED(c@)")))
 #+end_src
 
-#+texinfo: @noindent
-To record a timestamp without a note for TODO keywords configured with
-=@=, just type {{{kbd(C-c C-c)}}} to enter a blank note when prompted.
-
 #+vindex: org-log-done
 You not only define global TODO keywords and fast access keys, but
 also request that a time is recorded when the entry is set to =DONE=,
@@ -4228,6 +4224,9 @@ to a buffer:
 
 : #+TODO: TODO(t) WAIT(w@/!) | DONE(d!) CANCELED(c@)
 
+To record a timestamp without a note for TODO keywords configured with
+=@=, just type {{{kbd(C-c C-c)}}} to enter a blank note when prompted.
+
 #+cindex: @samp{LOGGING}, property
 In order to define logging settings that are local to a subtree or
 a single item, define a =LOGGING= property in this entry.  Any
-- 
2.32.0

Hi.  I continue below:

Em [2020-04-12 dom 10:45:44-0300], Jorge P. de Morais Neto escreveu:

> ** [info:org#Tracking TODO state changes]
>
> The following sentence is misplaced, interrupting the previous train of
> thought:
>
> To record a timestamp without a note for TODO keywords configured
> with `@', just type `C-c C-c' to enter a blank note when prompted.

I prepared the patch above to improve the organization of the respective
manual section.

> ** [[info:org#Drawers]]
>
> I don't understand the sentence
>
>Completion over drawer keywords is also possible using ‘M-’
>
> Could give me a simple example of drawer keyword completion?

Sorry for insisting, but can someone give me an example of what the
manual means by "Completion over drawer keywords"?

And in this kind of situation, did I do well by attaching the patch to a
normal reply in the thread, or should I have started a new thread with
an appropriate subject line?  If so, then please give me details so I do
it correctly next time.

Regards

-- 
- Disinformation flourishes because many people care about injustice
  but very few check the facts.  Ask me about <https://stallmansupport.org>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- https://www.defectivebydesign.org
- https://www.gnu.org


Re: Bug: Reclocking errors out if org-log-note-clock-out is t [9.4.6 (9.4.6-gab9f2a @ /gnu/store/2pny4z6mbi2aybgzzxz0yrzkds7hbpmq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)]

2021-06-07 Thread Jorge P . de Morais Neto
Em [2021-05-31 seg 21:43:23+0800], Ihor Radchenko escreveu:

> Confirmed
>
> The fix is attached.

I have applied (by copying the Guix package recipe and then modifying
it) Ihor's patch and customized `org-log-note-clock-out' back to t.
Since then I have been using the patched Org it and I can confirm Ihor's
patch fixes the problem.

Thank you Ihor!

-- 
-  "In Support of Richard Stallman"
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- 
- 



Bug: Reclocking errors out if org-log-note-clock-out is t [9.4.6 (9.4.6-gab9f2a @ /gnu/store/2pny4z6mbi2aybgzzxz0yrzkds7hbpmq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)]

2021-05-29 Thread Jorge P. de Morais Neto


org-log-note-clock-out--bug.el
Description: Elisp to reproduce the bug
Hi.  I use Emacs from Guix---package emacs-next installed from Git
master (through --with-branch=emacs-next=master) and updated weekly.
Org is also from Guix: packages emacs-org{,-contrib,-drill,-pdftools}

To reproduce the bug, save the attached file¹ then invoke:
emacs -q -l /PATH/TO/org-log-note-clock-out--bug.el --batch

- Expected behavior: Org should clock in the first heading, then clock
  out from it, prompt for a note, and clock in the second heading (in
  batch mode, Emacs should print some clocking messages and then exit
  successfully).
- What happens: Org errors out:
  user-error: Before first headline at position 164 in buffer *Org Note*

I stepped through the code and verified the error is triggered at line
1726 on file org-clock.el.  This is the form
(org-back-to-heading t)
on function `org-clock-remove-empty-clock-drawer'.  That function runs
as a hook because of line 1717 on file `org-clock.el':
(run-hooks 'org-clock-out-hook)
on function `org-clock-out'.

Then using git-bisect, I have determined the bug was introduced on
commit c670379adfbdc4883d3cfa230289fd2829993265.  I am sorry for not
providing a patch.

As a temporary workaround, I have erased my customization of
`org-log-note-clock-out'.

Regards

¹ Do you prefer this kind of small file to be attached to the mail
message as I have done here or should I have included it in the mail
body?

Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, 
cairo version 1.16.0)
Package: Org mode version 9.4.6 (9.4.6-gab9f2a @ 
/gnu/store/2pny4z6mbi2aybgzzxz0yrzkds7hbpmq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)
-- 
-  "In Support of Richard Stallman"
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter: 
- If an email of mine arrives at your spam box, please notify me.


Re: Bug: Reclocking errors out if org-log-note-clock-out is t [9.4.6 (9.4.6-gab9f2a @ /gnu/store/2pny4z6mbi2aybgzzxz0yrzkds7hbpmq-emacs-org-9.4.6/share/emacs/site-lisp/org-9.4.6/)]

2021-05-29 Thread Jorge P . de Morais Neto
Hi.  I continue below:

Em [2021-05-29 sáb 21:53:47-0300], Jorge P. de Morais Neto escreveu:

> I stepped through the code and verified the error is triggered at line
> 1726 on file org-clock.el.  This is the form
> (org-back-to-heading t)
> on function `org-clock-remove-empty-clock-drawer'.  That function runs
> as a hook because of line 1717 on file `org-clock.el':
> (run-hooks 'org-clock-out-hook)
> on function `org-clock-out'.

For the record: I don't remember why I couldn't get a clear backtrace
and resorted to stepping through the code until I found the error; but I
am indeed aware the stepping is unnecessary in a case like this.

Regards

-- 
- <https://stallmansupport.org> "In Support of Richard Stallman"
- If an email of mine arrives at your spam box, please notify me.
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: Bug: JavaScript in HTML export not recognized by LibreJS as free [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/)]

2021-04-27 Thread Jorge P . de Morais Neto
Hi Bastien

Em [2021-04-26 seg 18:57:19+0200], Bastien escreveu:

> I hope both you and Anthony agree with this, or at least recognize
> that the current solution is acceptable.

Yes, I find acceptable to license Anthony’s code under the GPLv3+, if
that is what you meant.  If you want to keep Carsten’s original code,
that is acceptable too.  And unfortunately I lack sufficient JavaScript
knowledge to opine on which code is better---I studied Electronic
Engineering, which didn’t include web development.

Regards

-- 
-  "In Support of Richard Stallman"
- If an email of mine arrives at your spam box, please notify me.
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: Bug: JavaScript in HTML export not recognized by LibreJS as free [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/)]

2021-04-26 Thread Jorge P . de Morais Neto
Hi all!

Em [2021-04-22 qui 16:29:15-0400], Anthony Carrico escreveu:

> Hi all.  Thanks for the note.  I took a look at the LibreJS docs to
> try to understand the problem.

I also took a look at the LibreJS docs, the linked article "The
JavaScript Trap", and the text of the CC0.

> LibreJS is a web filtering plugin.  Users are making a decision to
> block content which is not explicitly licensed in the LibreJS syntax,
> including public domain works marked in that syntax.  Apparently
> LibreJS is working as designed.  I don't think we should attempt to
> work around a user's web filtering software.

The purpose of LibreJS, from the Overview section of its manual, is to
detect and block *nonfree* nontrivial JavaScript.  Then the article [1]
in the gnu.org website says "Please ensure these licenses are free and
GPL-compatible."  So if some script in a webpage is free software, then
LibreJS users want it to run without issue, especially if its license is
also GPL-compatible.  Therefore, when a verifiably public domain script
is blocked by LibreJS, LibreJS users (like me) get unhappy; this ought
to be solved.

1: https://www.gnu.org/software/librejs/free-your-javascript.html "GNU
Project - Releasing your JavaScript as Free Software"

> My understanding is that authors who want to get through the web
> filter should include an approved LibreJS license notice at the top of
> their page, and a separate license in a 

Bug: [PATCH] org-manual.org: Fix typo about org-latex-images-centered [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/)]

2021-04-17 Thread Jorge P. de Morais Neto
>From 48a1a591c8303acbe587e1492c45fc8741c47f0c Mon Sep 17 00:00:00 2001
From: "Jorge P. de Morais Neto" 
Date: Sat, 17 Apr 2021 20:36:04 -0300
Subject: [PATCH] org-manual.org: Fix typo about org-latex-images-centered

---
 doc/org-manual.org | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/org-manual.org b/doc/org-manual.org
index efe956877..950ddbe9b 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -13696,7 +13696,7 @@ placement.
 #+cindex: image, centering in LaTeX export
 The LaTeX export back-end centers all images by default.  Setting
 =:center= to =nil= disables centering.  To disable centering globally,
-set ~org-latex-images-centered~ to =t=.
+set ~org-latex-images-centered~ to =nil=.
 
 Set the =:comment-include= attribute to non-~nil~ value for the LaTeX
 export back-end to comment out the =\includegraphics= macro.
-- 
2.31.1


Hi.  This trivial patch simply makes the manual agree with the docstring
of org-latex-images-centered.

Have I done anything wrong in the patch-submitting process?  This is my
second ever patch to a free software project (not counting wiki edits),
so I hope I got everything right.

Regards

Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, 
cairo version 1.16.0)
Package: Org mode version 9.4.5 (9.4.5-16-g94be20-elpaplus @ 
/home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/)
-- 
- <https://stallmansupport.org> "In Support of Richard Stallman"
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- <https://www.defectivebydesign.org>
- <https://www.gnu.org>


Bug: JavaScript in HTML export not recognized by LibreJS as free [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/)]

2021-04-16 Thread Jorge P. de Morais Neto
Hi.  The HTML export has JavaScript that LibreJS does not recognize as
free.

My first attempt at an workaround (inspired by the Org Mode mailing
list) was merely encoding the ampersand in the magnet link, but that
*did not make LibreJS happy*.  Then I checked LibreJS manual and saw
this excerpt:

https://www.gnu.org/software/librejs/manual/librejs.html#Free-Licenses-Detection-1

Public domain is not a license (see
https://www.gnu.org/licenses/license-list.html#PublicDomain).  If
you want to release your work to the public domain, the FSF
recommends using CC0.

Then I came up with a successful workaround.  I included the following
code in my Org Mode customization file:

;; [2021-04-16 sex]: HACK Work around a bug that confuses LibreJS
(with-eval-after-load 'ox-html
  (setq org-html-scripts
(string-replace "\
// @license 
magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a=public-domain.txt
 Public Domain"
"\
// @license 
magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08dn=cc0.txt 
CC0-1.0"
org-html-scripts)))

This works; it makes LibreJS happy.

Thank you for your work in Org Mode!

Regards

Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, 
cairo version 1.16.0)
Package: Org mode version 9.4.5 (9.4.5-16-g94be20-elpaplus @ 
/home/jorge/.config/emacs/elpa/org-plus-contrib-20210412/)
-- 
- <https://stallmansupport.org> "In Support of Richard Stallman"
- If an email of mine arrives at your spam box, please notify me.
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: Bug: Small documentation errors [9.3.6 (9.3.6-29-g6a3dff-elpaplus @ /home/jorge/.emacs.d/elpa/27.0/develop/org-plus-contrib-20200406/)]

2020-04-13 Thread Jorge P . de Morais Neto
Em [2020-04-12 dom 22:35:09+], Kyle Meyer escreveu:

> Thanks for sending this.  My personal preference would be more focused
> reports.  (And of course patches would be even better.)

Regarding patches, I feel I am too inexperienced at this moment to
efficiently write good patches.  It is possible, though, that I am just
unduly insecure.  Perfectionism and low self esteem combine to generate
a lot of insecurity.

> "Jorge P. de Morais Neto"  writes:
>> ** [[info:org#Plain Lists]]
>>
>> The description of `C-c -' inverts the effect of the prefix argument.
>
> I'm not seeing that behavior on my end.  With
>
>   a
>   b
>
> and a region spanning before "a" and after "b", hitting 'C-c -' gives me
>
>   - a
>   - b
>
> Hitting 'C-u C-c -' instead I get
>
>   - a
> b

Yes, this is the behavior I get too.  But see what the manual says:

If there is an active region when calling this, selected text is
changed into *an item*.
[ my emphasis ]

It says `C-c -' changes the (potentially multiple) lines into *an item*
(singular).  With the prefix argument it says:

With a prefix argument, all lines are converted to *list items*.
[ my emphasis ]

It says `C-c -' changes the (potentially multiple) lines into *list
items* (plural).

Regards
-- 
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- <https://www.defectivebydesign.org/>
- <https://www.gnu.org/>



Bug: Small documentation errors [9.3.6 (9.3.6-29-g6a3dff-elpaplus @ /home/jorge/.emacs.d/elpa/27.0/develop/org-plus-contrib-20200406/)]

2020-04-12 Thread Jorge P. de Morais Neto
* Small documentation errors

Hi.  Below I report a series of small documentation errors.  Please tell
me whether it was helpful to coalesce these several errors into one bug
report or I should have filed several reports.

** [[info:org#Sparse Trees]]

 The final paragraph recommends the command ‘C-c C-e v’ to export only
the visible part of the document.  The correct keybinding, however, is
‘C-c C-e C-v’.

** [[info:org#Plain Lists]]

The description of `C-c -' inverts the effect of the prefix argument.

** [[info:org#Drawers]]

I don't understand the sentence

   Completion over drawer keywords is also possible using ‘M-’

Could give me a simple example of drawer keyword completion?

** [[info:org#TODO Basics]]

This section omits `C-S-'.  Is that intentional?

** [info:org#Tracking TODO state changes]

The following sentence is misplaced, interrupting the previous train of
thought:

To record a timestamp without a note for TODO keywords configured
with `@', just type `C-c C-c' to enter a blank note when prompted.

** Docstring of `org-time-stamp-inactive'

It has less information than the docstring of `org-time-stamp'.  If that
is intentional, then I suggest at least referring to the docstring of
`org-time-stamp' for more information.

Also, it says that inactive timestamp do not link to the calendar and
cannot be changed with the S-cursor keys; the actual behavior -- which I
tested both in an updated Spacemacs (develop branch) and in `emacs -q`
-- contradicts both assertions.

Finally, the last paragraph says:

When called with two universal prefix arguments, insert an active
time stamp with the current time without prompting the user.

Clearly it should say /inactive/ instead of /active/.

* Feedback

I am obsessed with detail and I welcome feedback about that.  Please
tell me whether I am nitpicking.

Regards

Emacs  : GNU Emacs 27.0.90 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
 of 2020-04-11
Package: Org mode version 9.3.6 (9.3.6-29-g6a3dff-elpaplus @ 
/home/jorge/.emacs.d/elpa/27.0/develop/org-plus-contrib-20200406/)
-- 
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: Bug: org-agenda-tag-filter-preset not respected [9.3.6 (9.3.6-19-gf360f9-elpaplus @ /home/jorge/.config/emacs/elpa/27.0/develop/org-plus-contrib-20200302/)]

2020-04-08 Thread Jorge P . de Morais Neto
Hi.  

Em [2020-04-06 seg 18:20:43+0200], Nicolas Goaziou escreveu:

> AFAIK, this file is not maintained anymore.
>
> Note that it strength was not the HTML report, but the fact that you
> could import the Org counterpart in your agenda files.
> [...]
> You may want to have a look at it, you will certainly get help doing
> so.  Otherwise, you are welcome to bump the report from time to time.

Thank you for the clarification Nicolas.

Regards
-- 
- 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Please adopt free/libre formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: Bug: org-agenda-tag-filter-preset not respected [9.3.6 (9.3.6-19-gf360f9-elpaplus @ /home/jorge/.config/emacs/elpa/27.0/develop/org-plus-contrib-20200302/)]

2020-04-08 Thread Jorge P . de Morais Neto
Hi.

Em [2020-04-07 ter 03:33:33+], Kyle Meyer escreveu:

> This bisects to 7e52b7661 (org-agenda: Fix logic of
> `org-agenda-filter-make-matcher', 2020-02-19).  Jorge, I tested the
> patch below against the test case you provided, though of course
> confirmation that it resolves the issue on your end would be
> appreciated.

The patch seems to have solved the issue here.  My agenda looks OK with
the latest Org (plus the patch) again.

Thank you!
-- 
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter:
  <https://www.fsf.org/free-software-supporter/subscribe>



Re: Bug: org-agenda-tag-filter-preset not respected [9.3.6 (9.3.6-19-gf360f9-elpaplus @ /home/jorge/.config/emacs/elpa/27.0/develop/org-plus-contrib-20200302/)]

2020-04-06 Thread Jorge P . de Morais Neto
Em [2020-03-09 seg 20:36:33-0300], Jorge P. de Morais Neto escreveu:

> Em [2020-03-06 sex 09:06:35-0300], Jorge P. de Morais Neto escreveu:
>
>> Hi.  Since version org-plus-contrib-20200302, my agenda is buggy.  The
>> bug did not occur in previous versions.
>
> Actually, I realized the bug occurs since org-plus-contrib-20200224.

Hi.  I am sorry for insisting, but this bug report is a month old and
has not been added to <https://orgmode.org/worg/org-issues.html>.  I
have just tested and reproduced it with Emacs 27 -- emacs-27
branch, snapshot from [2020-04-04 sáb] -- and org-plus-contrib 20200406.

In this situation, is it OK to remind you of the bug every month?  I
honestly do not know the netiquette about this.

Regards
-- 
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- <https://www.defectivebydesign.org/>
- <https://www.gnu.org/>



Re: Bug: org-agenda-tag-filter-preset not respected [9.3.6 (9.3.6-19-gf360f9-elpaplus @ /home/jorge/.config/emacs/elpa/27.0/develop/org-plus-contrib-20200302/)]

2020-03-09 Thread Jorge P . de Morais Neto
Em [2020-03-06 sex 09:06:35-0300], Jorge P. de Morais Neto escreveu:

> Hi.  Since version org-plus-contrib-20200302, my agenda is buggy.  The
> bug did not occur in previous versions.

Actually, I realized the bug occurs since org-plus-contrib-20200224.

Regards.
-- 
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- <https://www.defectivebydesign.org/>
- <https://www.gnu.org/>



Bug: org-agenda-tag-filter-preset not respected [9.3.6 (9.3.6-19-gf360f9-elpaplus @ /home/jorge/.config/emacs/elpa/27.0/develop/org-plus-contrib-20200302/)]

2020-03-06 Thread Jorge P. de Morais Neto
Hi.  Since version org-plus-contrib-20200302, my agenda is buggy.  The
bug did not occur in previous versions.  To reproduce the bug:

1. Move away your .emacs.d, so that Emacs starts with a pristine
   configuration.
2. Start Emacs and eval the following Elisp:
--8<---cut here---start->8---
(setq package-archives
  '(("org" . "https://orgmode.org/elpa/;)
   ("gnu" . "https://elpa.gnu.org/packages/;)))
(setq org-agenda-custom-commands
  '(("w" "Buggy"
((tags "now" nil))
((org-agenda-tag-filter-preset
  '("+@w" "-dummy"))
(setq org-agenda-files '("~/unison/report_org-agenda_bug/report_org_bug.org"))
(setq org-tag-alist
 '(("now" . ?n)
   ("dummy")
   ("@w"  . ?w)))
--8<---cut here---end--->8---

3. Install the latest org-plus-contrib package.
4. Write to ~/unison/report_org-agenda_bug/report_org_bug.org the
   following text:
--8<---cut here---start->8---
* This entry should not appear in the agenda:now:
--8<---cut here---end--->8---

5. Execute M-x org-agenda RET w
6. Note that the offending entry does appear in the agenda.  It should
   not appear, since it lacks the "@w" tag -- see the value of
   org-agenda-tag-filter-preset.

This occurred in an updated Emacs 27 snapshot (guix package emacs-next).

Regards

----
Emacs  : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13)
Package: Org mode version 9.3.6 (9.3.6-19-gf360f9-elpaplus @ 
/home/jorge/.config/emacs/elpa/27.0/develop/org-plus-contrib-20200302/)
-- 
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Free Software Supporter:
  <https://www.fsf.org/free-software-supporter/subscribe>



Bug: [[info:org#Org Mobile]] should mention org-tag-persistent-alist [9.3.1 (9.3.1-elpaplus @ /home/jorge/.emacs.d/elpa/26.3/develop/org-plus-contrib-20191230/)]

2020-01-23 Thread Jorge P. de Morais Neto
Hi.  I believe [[info:org#Org Mobile]] should mention
org-tag-persistent-alist, saying whether it is examined or not.

Regards

Emacs  : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.13)
Package: Org mode version 9.3.1 (9.3.1-elpaplus @ 
/home/jorge/.emacs.d/elpa/26.3/develop/org-plus-contrib-20191230/)
-- 
- <https://jorgemorais.gitlab.io/justice-for-rms/>
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: Help me secure some free time for org-mode in 2020

2020-01-19 Thread Jorge P . de Morais Neto
Hello Bastien.

Em [2019-12-16 seg 19:09:55+0100], Bastien escreveu:

> My plan for 2020 is to ensure a smooth transition while I step down
> as the maintainer---at least by the end of 2020, probably by July.

You stepping down is a pity.

> As my timetable (and family life) has become more stable, I am more
> confident I can dedicate some of my free time again to maintaining
> until the transition is done: also because there are many ideas I
> would like to try, discuss and implement---Org possibilities still
> feel endless!

That is a relief.  But I hope you can still work on Org in the long run.

> If you want to help me secure some free time, please go ahead!
>
> I recommend using https://liberapay.com/bzg

I have just donated € 10.  I'm sorry for donating so little, but the
Brazilian Real is undervalued against the Euro (as well as against the
US Dollar).  Besides, I have some debt.

Regards and thank you!
-- 
- 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
- Free/libre software for Replicant, LineageOS and Android: https://f-droid.org
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: [O] CUSTOM_ID vs ID

2019-08-18 Thread Jorge P . de Morais Neto
Hello,

Em 2019-08-18T12:40:29+0200, Nicolas Goaziou escreveu:

> That's because the text could contain anything, including invalid HTML
> characters. So we normalize them using only alphanum characters.

But could not we URL-encode the dedicated target text?  In my testing,
Org generates an ugly anchor even if the dedicated target text is just
"Target".

The current behavior does not harm my current use cases, but I looks to
me it would be simple to improve (for someone familiar with the
codebase) and help some users.  Then again, talk is cheap, so please
just take this as just a suggestion.

Regards
-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free/libre software for Android: https://f-droid.org/
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: [O] CUSTOM_ID vs ID

2019-08-17 Thread Jorge P . de Morais Neto
Hello,

Em 2019-07-28T10:10:01+0200, Nicolas Goaziou escreveu:

> Custom ID are user-defined, and only meaningful in the scope of the
> document. Also, they may appear as-is when exported, e.g., as an anchor
> in HTML.
>
> ID are (or should be) generated by Org, and are valid across files,
> which means they need to be absolutely unique.  
>
>> When would I ever have both an ID and a CUSTOM_ID property for
>> a heading?
>
> You may want to refer to a heading from anywhere with id:... but need
> a clean anchor in HTML export, for example.

Instead of CUSTOM_ID I prefer to use a dedicated target (between double
angular brackets).  This way the link target is conspicuous, which
reduces the chance of me inadvertently removing or moving that heading
and causing dead links.  One disadvantage is that it generates ugly HTML
anchors.  But why does Org not use the dedicated target text as an
anchor?

Regards
-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free/libre software for Android: https://f-droid.org/
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



Re: [O] Org-drill: not working when installed via package munger.

2019-05-01 Thread Jorge P . de Morais Neto
Jorge P. de Morais Neto  writes:

> Damon Permezel  writes:
>> [...]
>> org-drill-entry: Symbol’s function definition is void: 
>> org-outline-overlay-data
>>
>> I was able to fix the problem by grepping for references in *.elc files and 
>> byte-compiling the files.
>
> I faced the same problem and you workaround fixed it for me.  Thank
> you.  That was on Spacemacs develop (updated a few minutes ago) atop
> GNU Emacs 26.2.  In Spacemacs develop (same commit) atop GNU Emacs
> 27.0.50 (built on April 1st, commit 4565-g03ceee0e64) the workaround was
> not necessary.

I faced the problem again.  This time it was on Spacemacs develop
(updated a few minutes ago) atop GNU Emacs 27.0.50 (commit
5022-g5a4f58f7ee).  Do you also use Spacemacs?



Re: [O] Org-drill: not working when installed via package munger.

2019-04-17 Thread Jorge P . de Morais Neto
Damon Permezel  writes:

> Just refreshed org from the package manager.
>
>   org20190415  installed Outline-based notes 
> management and organizer
>   org-plus-contrib   20190415  installed Outline-based notes 
> management and organizer
>
> org-drill-entry: Symbol’s function definition is void: 
> org-outline-overlay-data
>
> I was able to fix the problem by grepping for references in *.elc files and 
> byte-compiling the files.

I faced the same problem and you workaround fixed it for me.  Thank
you.  That was on Spacemacs develop (updated a few minutes ago) atop
GNU Emacs 26.2.  In Spacemacs develop (same commit) atop GNU Emacs
27.0.50 (built on April 1st, commit 4565-g03ceee0e64) the workaround was
not necessary.

Regards



[O] Export dedicated target

2018-08-16 Thread Jorge
Hi.  I have an Org file with two dedicated targets.  Both dedicated
targets are at the start of a task (TODO heading).  Neither dedicated
target is exported.  I would like their text (without the angle
brackets) to be exported.  Is that possible (and easy)?  If not, should
I then just repeat the target text (without angle brackets) or is there
a better practice?

For my links, I like using dedicated targets instead of the ID property,
because dedicated targets make it clearly visible that there lies a link
target and therefore I should take care before making certain changes
such as archiving or deleting.

Regards

- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free/libre software for Android: https://f-droid.org/
- [[https://www.gnu.org/philosophy/free-sw.html][What is free software?]]



[O] Bug: Small error in [[info:org#The clock table]] [9.1.3 (9.1.3-10-gadfbfd-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20171127/)]

2017-11-29 Thread Jorge Morais Neto
The mentioned manual section says:
`C-c C-c  or  C-c C-x C-u (`org-dblock-update')'
 Update dynamic block at point.  The cursor needs to be in the
 `#+BEGIN' line of the dynamic block.

However, the docstring only says
User command for updating dynamic blocks.
Update the dynamic block at point.  With prefix ARG, update all dynamic
blocks in the buffer.

It does not say that the cursor must be in the #+BEGIN line.  And
according to my one quick test, it does not need to.

I verified this error also occurs in Master.

Regards

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Bug? Encoding trouble in org-id-locations-load

2017-11-03 Thread Jorge Morais Neto
On 3 November 2017 at 12:11, Anders Johansson  wrote:
> I use org-id and got some surprising reports of duplicate IDs. It seems that
> the issue is that one of my files containing IDs has a filename consisting
> of some non-ascii characters (a Swedish ä).

This may be related to two problems I had with
~org-icalendar-combine-agenda-files~.  When I invoked that command,
Emacs created some duplicates of buffers for Org files with names
containing non-ASCII Latin-1 characters.  In the names of the
duplicates, each non-ASCII Latin-1 character was replaced by two octal
escape sequences (probably the character code in UTF-8).

The second problem was Emacs interrupting the export to ask me which
character encoding to use for certain "problematic characters".
Strangely, the "problematic characters" were octal escape sequences
which I verified to be correct UTF-8 codes of non-ASCII Latin-1
characters.  Emacs was apparently trying to "reencode" "text" that was
actually UTF-8 code.  Each time I invoked
~org-icalendar-combine-agenda-files~ and Emacs asked that, I chose raw
text encoding so the UTF-8 codes would be left as is.

I finally decided to investigate and traced both problems to some id
links pointing to headlines in files with names containing non-ASCII
Latin-1 characters.  I worked around by setting Org Mode not to export
those links.

Regards

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Ediff org files starts folded

2017-10-25 Thread Jorge Morais Neto
On 25 October 2017 at 12:04, Alex Branham  wrote:
> Whenever I ediff an org file, the three windows start with the content folded 
> and out of site. I have to navigate to windows A, B, and C and hit S- 
> until everything is visible. Does anyone know a way to start org mode files 
> unfolded when ediffing them?

Spacemacs automatically unfolds both buffers when ediff’ing Org Mode.  I
suppose the mechanism is the presence of ~'show-all~ in
~ediff-prepare-buffer-hook~.  The downside is that, when you finish
ediff’ing, the affected Org buffers are still completely unfolded.

If you want this behavior, perhaps you should use the new function name
– ~outline-show-all~ – instead, because ~show-all~ is an obsolete alias
since GNU Emacs 25.1.

Regards

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Is it possible to repeat tasks only a certain amount of times?

2017-09-13 Thread Jorge Morais Neto
How about a diary-style sexp entry, with org-class?  That is, something
like ~<%%(org-class 2017 7 31 2018 3 23 1)>~.  That example would appear
on the agenda on every Monday between 2017-07-31 and 2018-03-23.

Regards

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Automatic mtime and ctime on all or select group of trees?

2017-09-05 Thread Jorge Morais Neto
[unfortunately the first email went only to Adam Porter; now I address the list]
On 2 September 2017 at 22:10, Adam Porter  wrote:
> Thanks for sharing that, I didn't even remember org-expiry.  Very clever
> use of it!  You seem to know more about elisp than you give yourself
> credit for.  :)
Thank you for the encouragement!

>> Suggestions welcome.  It currently
>> gives compile warnings, which I ignore for now:
>>
>> J-org.el:18:1:Warning: defcustom for ‘J-insert-created’ fails to specify
>> containing group
>
> You can fix that by adding e.g. ":group 'org" to the defcustom.
> Normally the defcustom would pick up whatever group was last defined in
> the same file.

Thank you for the tip.  But instead of adding precisely what you
suggested, I have added “:group 'org-expiry”.  The warning is gone and
the option does show up when I invoke customize-group and type
“org-expiry”.  I have run some other minimal tests and it seems to be
working.

Regards

--
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Automatic mtime and ctime on all or select group of trees?

2017-09-02 Thread Jorge Morais Neto
On 31 August 2017 at 08:55, Tim Visher  wrote:
> I would like to track the time I created a tree and the last time it was
> edited, like ctime and mtime on a filesystem. Is that possible to have
> happen automatically?

To insert a creation timestamp I use org-expiry.  I have added ~(require
'org-expiry)~ to my Org Mode setup file.  I could then have enabled
automatic CREATED property insertion by adding ~(org-expiry-insinuate)~.
However, that would make Org insert CREATED not only on heading
creation, but also whenever I performed certain actions – such as
scheduling or deadlining – on headings that lacked CREATED.  I do not
want that.  I want CREATED to reflect the actual creation time.  Old
headlines (from before I enabled org-expiry) are better off without
CREATED than with an inaccurate CREATED timestamp.  Also, I want to be
able to disable on certain files the automatic CREATED insertion.  So
instead of ~(org-expiry-insinuate)~, I added this:

;; HACK?
(defcustom J-insert-created t
  "Whether to automatically add CREATED property (org-expiry) on
heading creation"
  :type 'boolean :safe #'booleanp)

(defun J-insert-created ()
  (when J-insert-created
(org-expiry-insert-created)))

(add-hook 'org-insert-heading-hook #'J-insert-created)

(add-hook 'org-capture-prepare-finalize-hook
  (lambda () (org-map-entries #'org-expiry-insert-created)))

So the CREATED timestamp is always added on capture, and also added on
headline creation except for manually typed headings and buffers where
option ~J-insert-created~ is nil.  I created that option as an option
(instead of a simple variable) so it could be file-local.  This works,
but I'm not sure it's correct and elegant.  I know little Elisp and very
little about defining Emacs options.  Suggestions welcome.  It currently
gives compile warnings, which I ignore for now:

J-org.el:18:1:Warning: defcustom for ‘J-insert-created’ fails to specify
containing group

Org-expiry can also add an EXPIRY property, so it can expire entries
after they become irrelevant with time.  And for entries without EXPIRY,
it can use a (customizable) default time span.  It is documented via
comments on ~org-expiry.el~.  That file comes with org-plus-contrib.

I also customized the following options:
- org-expiry-handler-function
- org-expiry-inactive-timestamps
- org-expiry-wait

Beware that org-expiry interacts badly with the
~org-clone-subtree-with-time-shift~ command.  It messes with org-expiry
timestamps on the clones.  For example, if the original entry is:

* Meeting
:PROPERTIES:
:CREATED:  [2017-09-02 Sáb 20:10]
:EXPIRY:   [2017-12-31]
:END:
<2017-09-04 Seg 10:00-11:00>

and one invokes ~org-clone-subtree-with-time-shift~, asking for one
clone and a ~+1w~ shift, the clone will be:

* Meeting
:PROPERTIES:
:CREATED:  [2017-09-09 Sáb 20:10]
:EXPIRY:   [2018-01-07 Dom]
:END:
<2017-09-11 Seg 10:00-11:00>

which is clearly wrong.

Regards

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Org mode version 9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/); Org lost my state change note during idle clock resolution

2017-07-02 Thread Jorge Morais Neto
On 1 July 2017 at 13:58, Nicolas Goaziou  wrote:
> Even if the window configuration is lost, I cannot see how the "*Org
> Note*" buffer could be closed. Are you certain it was not accessible
> anymore from the buffer list?
I do not remember and unfortunately I do not have the time to test it
this week.  I intend to test it next week.

Regards

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Org mode version 9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/); Org lost my state change note during idle clock resolution

2017-06-29 Thread Jorge Morais Neto
On 29 June 2017 at 17:11, Jorge Morais Neto <jorge13...@gmail.com> wrote:
> In two days this is the second time Org loses a TODO state change note
> draft.  I guess that, if I realize the note will take time to compose, I
> am supposed to compose it in some file and, only when it is ready,
> change state and yank it.
A correction: the previous draft loss was on Monday, not yesterday.
Still, I had two draft losses in four days.

Regards
-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



[O] Org mode version 9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/); Org lost my state change note during idle clock resolution

2017-06-29 Thread Jorge Morais Neto
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

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

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


I changed the TODO state and started composing a state change note.
Later I clocked in a certain task (automatically clocking out of the
previous) and left the computer.  When I returned, some 32 min later,
Org was showing clock idle time resolution.  I typed "i" to consider the
idle time as clock time.  The clock idle time resolution did its job,
but Org lost my note draft and the window configuration from before the
TODO state change.  winner-undo could not restore the window
configuration and AFAIK I had no way to recover the note.

In two days this is the second time Org loses a TODO state change note
draft.  I guess that, if I realize the note will take time to compose, I
am supposed to compose it in some file and, only when it is ready,
change state and yank it.

This time I do not have time to reproduce it in ~emacs -q~.  It happened
in the latest Spacemacs in holy mode.  Unfortunately
M-x org-submit-bug-report failed to collect my Org and Outline
configuration as I requested.

Regards

Emacs  : GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-06-07
Package: Org mode version 9.0.9 (9.0.9-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/)

current state:
==


-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z
- Free (as in free speech) software for Android: https://f-droid.org/



[O] Bug: Org loses data if the user types C-u C-c C-c while composing a state change note [9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/)]

2017-06-26 Thread Jorge Morais Neto
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

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

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


1. emacs -q
2. M-x package-initialize
3. M-x org-version
   - Just to confirm we are running Org 9.0.9.
4. M-x customize-option RET org-todo-keywords RET
5. Add "(@)" to DONE and set it for current session (C-c C-c)
6. C-x C-f /tmp/bug.org
7. C-S-RET
8. C-c C-t
   - This should change to DONE and prompt for a note.
9. In the note, type "- " to start a plain list
10. Hit C-u C-c C-c to add an empty checkbox

In step 10, the user made a mistake; he wanted to add a checkbox and,
from muscle memory, typed C-u C-c C-c.  However, he was composing a
note, so C-c C-c has different behavior.  The problem is that in this
situation Org discards the note.  When this happened to me, I had spent
at least 15 minutes gathering data and writing it in the note buffer.
This data was lost.  Luckily I can gather the same data a second time,
so I just lost some 15 minutes of my time (plus more than an hour to
report this bug), but it could have been worse.

I am not good at usability design and I do not know precisely how Org
should respond to C-u C-c C-c in this situation, but clearly there are
better options than losing data.  A very simple alternative would be to,
when C-c C-c is given any prefix argument, do nothing except warn that
C-c C-c in that situation closes the note and does not accept a prefix
argument.  Probably this measure also applies to analogous situations in
which valuable data could be lost.

While we are at it, there may be other situations in which the user
might discard a note by accident.  Perhaps Org should prompt before
discarding, or make it reversible.

Regards

Emacs  : GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2017-06-07
Package: Org mode version 9.0.9 (9.0.9-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/)

-- 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM, 7z.
- Free (as in free speech) software for Android: https://f-droid.org/.



Re: [O] adjustment of schedules in org

2017-03-10 Thread Jorge Morais Neto
On 9 March 2017 at 14:17, Eric Abrahamsen  wrote:
> You're probably looking for the `org-log-reschedule' option: that will
> let you leave a stamp or take a note if you change the scheduled date of
> an option.
>
> I know that would end up doubling the size of my org files. :)

Also org-log-redeadline, of course.

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Bug: org-agenda-skip-deadline-prewarning-if-scheduled as pre-scheduled has no effect [9.0.5 (9.0.5-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-03-05 Thread Jorge Morais Neto
On 5 March 2017 at 15:03, Nicolas Goaziou  wrote:
> It has an effect, but you are enforcing a pre-warning delay of 6 days.
> in the time stamp above.
>
> I think local syntax overrides global settings. IOW, I don't think this
> qualifies as a bug.

It would have been useful for me if 'pre-scheduled would override the
timestamp-specific lead time.  I don't know if this would be useful
widely enough (I myself don't remember having wished it in other
occasions) to justify changing the behavior of 'pre-scheduled or
adding another value (like 'pre-scheduled-override-local) that does
override.

Perhaps we should at least explicitly document the current situation
in the docstring?  Just add an observation at the end:
Note that an eventual explicit lead time in the timestamp
overrides the effect of setting this option to 'pre-scheduled or a
number.

"eventual" above means "if it exists"; "eventual" has this meaning
(among others) in Portuguese; I am not sure if it also does in
English.

Regards
-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] Bug: org-agenda-skip-deadline-prewarning-if-scheduled as pre-scheduled has no effect [9.0.5 (9.0.5-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-03-02 Thread Jorge Morais Neto
1. Write a file named agenda_bug.org with the following content
(remove indentation):
  *** TODO Dummy
  SCHEDULED: <2017-03-06 Seg> DEADLINE: <2017-03-07 Ter ++1m -6d>

2. Start GNU Emacs 25.2.1 (25.2-rc2) with an empty init.el.
3. (require 'org-agenda)
4. Customize org-agenda-skip-deadline-prewarning-if-scheduled to
   'pre-scheduled
5. Visit agenda_bug.org and type C-c [
6. M-x org-agenda a 
7. The warning of deadline "Dummy" appears under today.  According to the
   docstring of org-agenda-skip-deadline-prewarning-if-scheduled, it should
   not appear before the scheduled date.

Regards

Emacs  : GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2017-02-22
Package: Org mode version 9.0.5 (9.0.5-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20170210/)

current state:
==
(setq
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-agenda-skip-deadline-prewarning-if-scheduled 'pre-scheduled
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
  [add-hook change-major-mode-hook org-show-block-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 org-eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
 org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("id" :follow org-id-open)
  ("rmail" :follow org-rmail-open :store org-rmail-store-link)
  ("mhe" :follow org-mhe-open :store org-mhe-store-link)
  ("irc" :follow org-irc-visit :store org-irc-store-link)
  ("info" :follow org-info-open :export org-info-export :store
org-info-store-link)
  ("gnus" :follow org-gnus-open :store org-gnus-store-link)
  ("docview" :follow org-docview-open :export org-docview-export :store
org-docview-store-link)
  ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
  ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete
org-bbdb-complete-link :store org-bbdb-store-link)
  ("w3m" :store org-w3m-store-link) ("file+sys") ("file+emacs")
  ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link)
  ("file" :complete org-file-complete-link)
  ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path
  ("help" :follow org--open-help-link)
  ("http" :follow (lambda (path) (browse-url (concat "http:" path
  ("https" :follow (lambda (path) (browse-url (concat "https:" path
  ("mailto" :follow (lambda (path) (browse-url (concat "mailto:; path
  ("message" :follow (lambda (path) (browse-url (concat "message:" path
  ("news" :follow (lambda (path) (browse-url (concat "news:; path
  ("shell" :follow org--open-shell-link))
 org-agenda-files '("/tmp/agenda_bug.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Release 9.0.5

2017-02-10 Thread Jorge Morais Neto
On 10 February 2017 at 11:53, Bastien  wrote:
> Org 9.0.5, a minor bugfix release, is out.
In Org 9.0.5, clock out notes are again stored below the corresponding
clock line, restoring the behavior of an earlier release.  There were
interim releases, up to 9.0.4, that stored the clock out notes /above/
the clock line. Users should be warned to fix clock out notes taken by
affected Org releases.  Existing important data following the interim
convention need to be fixed, transposing each affected clock out note
with the clock line.  If both conventions are mixed, then, to identify
which clock line corresponds to each clock out note, either the user
will need to remember the time period when they used an affected
release, or remember directly which clock out line corresponds to each
ambiguous note, or analise the version history of their Org files.  So
the longer the user takes to address the problem, the greater the
chance of data loss.  I think this issue is important.

Could we provide an Elisp function to fix this semi-automatically?

Regards
-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] I have org-plus-contrib from ELPA. How do I temporarily test Org from git?

2017-02-04 Thread Jorge Morais Neto
Hi.  I wanted to temporarily run git Org so I could test a fix by Nicolas
Goaziou.  I have pulled the master branch and adapted local.mk.  In that
file, I set:
  prefix = ~/.emacs.d/locally_built_org

  # Where local lisp files go.
  # $(prefix)/emacs/site-lisp/org
  lispdir= $(prefix)/site-lisp

  # Where local data files go.
  # $(prefix)/emacs/etc/org
  datadir = $(prefix)/etc

  # Where info files go.
  # infodir = $(prefix)/info
  infodir = /usr/local/emacs/share/info

I have built and run ‘make test’ (there were two unexpected test failures, but
they regard functionality I don’t use).  In init.el I added
  (add-to-list 'load-path
   (concat user-emacs-directory
   "locally_built_org/site-lisp"))

At that point (just before ‘sudo make install’), [1] scared me with the
warning "We strongly recommend to stick to a single installation method".
Does that mean I cannot install Org from git if I already have it from ELPA?
I wanted Org from git to just override Org from ELPA.
1: http://orgmode.org/org.html#Installation

As a precaution, I have uninstalled ELPA org-plus-contrib before
‘sudo make install’.  After testing, I installed ELPA org-plus-contrib
again.  Was that really necessary?

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Bug: Log mode shows the wrong clock note [9.0.4 (9.0.4-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170124/)]

2017-02-04 Thread Jorge Morais Neto
On 3 February 2017 at 20:01, Nicolas Goaziou  wrote:
> The fix for the other issue you reported about CLOCK and notes probably
> has also fixed this one. Could you confirm it?

According to my very brief test, yes it fixed.

Thank you!

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] Bug: Log mode shows the wrong clock note [9.0.4 (9.0.4-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170124/)]

2017-02-03 Thread Jorge Morais Neto
Hi.

In log mode, after each clock line the agenda should show the corresponding
clock note.  Instead, it shows the clock note for the previous clock line.
For example, with the entry

  *** Espe2016 exp
  :PROPERTIES:
  :CREATED:  [2017-01-27 Sex 16:50]
  :CATEGORY: ponto exp
  :END:
  :LOGBOOK:
  CLOCK: [2017-02-03 Sex 08:16]--[2017-02-03 Sex 08:28] =>  0:12
  - Saindo agora para o almoço.
  CLOCK: [2017-01-27 Sex 10:28]--[2017-01-27 Sex 11:13] =>  0:45
  CLOCK: [2017-01-26 Qui 13:45]--[2017-01-26 Qui 14:44] =>  0:59
  :END:

The agenda for [2017-02-03 Sex] shows:

  ponto exp:   8:16- 8:28 Clocked:   (0:12) Espe2016 exp - Saindo
agora para o almoço.

(I trimmed some irrelevant tags)  Note that the 08:16-08:28 clock line is
followed by the note corresponding to the /previous/ clock line.

Regards

Emacs  : GNU Emacs 25.1.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-12-31
Package: Org mode version 9.0.4 (9.0.4-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20170124/)

current state:
==
(setq
 org-capture-prepare-finalize-hook '(J-insert-created-and-id-all)
 org-clocktable-defaults '(:maxlevel 2 :lang "en" :scope file :block nil
  :wstart 1 :mstart 1 :tstart nil :tend nil :step nil
  :stepskip0 nil :fileskip0 nil :tags nil :emphasize
  nil :link nil :narrow 40! :indent t :formula nil
  :timestamp nil :level nil :tcolumns nil :formatter nil)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-log-note-clock-out t
 org-footnote-section "Notas de rodapé"
 org-icalendar-combined-agenda-file "~/org/org.ics"
 org-insert-heading-hook '(org-expiry-insert-created)
 org-habit-preceding-days 0
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-special-ctrl-k t
 org-agenda-entry-text-maxlines 3
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-priority-faces '((65 :slant italic :weight bold :foreground "red"
  :background "black")
 (66 :slant italic :weight bold :foreground "red"
  :background "cyan")
 (67 :slant italic :weight bold :foreground "red") (68
:slant italic :weight bold) (69 . italic)
 (70 . default) (71 :foreground "gold") (72 :foreground "yellow"))
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-clock-mode-line-total 'current
 org-confirm-shell-link-function 'yes-or-no-p
 org-id-link-to-org-use-id 'create-if-interactive
 org-finalize-agenda-hook '(J-org-agenda-to-appt-refresh)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-icalendar-use-deadline '(event-if-not-todo event-if-todo todo-due)
 org-export-default-language "pt_BR"
 org-agenda-sticky t
 org-list-allow-alphabetical t
 org-email-link-description-format "Email %c: %s"
 org-special-ctrl-a/e t
 org-ascii-text-width 77
 org-agenda-custom-commands '(("J" "Now, agenda and TODOs (week)"
  ((tags "now" nil)
(agenda "" ((org-agenda-span (quote week))
   (org-agenda-time-grid (quote (nil nil nil)
(tags-todo "-@GYNO"
((org-agenda-todo-ignore-deadlines (quote
all)) (org-agenda-todo-ignore-scheduled (quote all))
 (org-agenda-todo-ignore-timestamp
  org-deadline-warning-days))
)
)
  ((org-agenda-compact-blocks t)
(org-agenda-tags-todo-honor-ignore-options t)
(org-agenda-tag-filter-preset (quote
  ("-hide"
  )
 ("j" "Now, agenda and TODOs (two days)"
  ((tags "now" nil) (agenda "" ((org-agenda-span
 2) (org-agenda-time-grid (quote (nil nil nil)
(tags-todo "-@GYNO"
((org-agenda-todo-ignore-deadlines (quote
all)) (org-agenda-todo-ignore-scheduled (quote all))
 (org-agenda-todo-ignore-timestamp
  org-deadline-warning-days))
)
)
  ((org-agenda-compact-blocks t)
(org-agenda-tags-todo-honor-ignore-options t)
(org-agenda-tag-filter-preset (quote
  ("-hide"
  )
 ("n" "Entradas a memorizar" tags "mem-hide"
  ((org-agenda-hide-tags-regexp
"\\`\\(mem\\|not_ical\\|h\\|gagá\\)\\'")
(org-agenda-start-with-follow-mode t))
  )
 )
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-expiry-handler-function 'org-toggle-archive-tag
 org-expiry-inactive-timestamps t
 org-todo-keyword-faces '(("DGTD" . "#00FF10") ("FBCK_" . "#A0A0FF") ("FBCK"
 . "blue") ("FIX_COMM" . "#00FF10")
 ("CNTN_" . "#FFA0A0"))
 org-habit-following-days 0
 org-icalendar-use-scheduled '(event-if-todo todo-start

[O] Bug: Org separates clock out note from the clock line [9.0.4 (9.0.4-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170124/)]

2017-01-31 Thread Jorge Morais Neto
Hi.  I have started this instance of GNU Emacs 25.1.91.1 with an empty init
file and then I customized org-log-note-clock-out to t.  Then I created a
new Org buffer with a single level 1 headline, and set property
CLOCK_INTO_DRAWER to nil.  I then clocked in and then out, adding a note.
The note was stored outside any drawer (as requested) and above the clock
line.  Then I clocked in and out again, adding a second note.  The result
was:

  * Teste
:PROPERTIES:
:CLOCK_INTO_DRAWER: nil
:END:
- Teste 2.
- Teste 1.
CLOCK: [2017-01-31 Tue 14:12]--[2017-01-31 Tue 14:13] =>  0:01
CLOCK: [2017-01-31 Tue 14:12]--[2017-01-31 Tue 14:12] =>  0:00

"teste" is Portuguese for "test".

I expected the "Teste 1" line to stay in its place above the corresponding
clock line, like this:

  * Teste
:PROPERTIES:
:CLOCK_INTO_DRAWER: nil
:END:
- Teste 2.
CLOCK: [2017-01-31 Tue 14:12]--[2017-01-31 Tue 14:13] =>  0:01
- Teste 1.
CLOCK: [2017-01-31 Tue 14:12]--[2017-01-31 Tue 14:12] =>  0:00


This bug occurred in my config.  My workaround was to configure Org to add
logs and clock lines into the LOGBOOK drawer.  Then the bug does not
materialize and I get correct result (except that I cannot configure Org the
way I want).

Regards

Emacs  : GNU Emacs 25.1.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-12-31
Package: Org mode version 9.0.4 (9.0.4-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20170124/)

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] How to specify APPT_WARNTIME for entire files?

2017-01-18 Thread Jorge Morais Neto
Hi.  I have set appt-message-warning-time to 10.  However, there are two
files where I would like the warning time to be 0.  Is there a quick way to
do it?  Which?  I do not want to add APPT_WARNTIME properties to each entry
because, if I did that, then:
1. Every time I added a new entry to one of the affected files, I would need
   to remember setting APPT_WARNTIME to the correct value.
2. To later change the warning time for the affected files, I would need to
   change APPT_WARNTIME in each of their entries.
3. There are many such entries, so it would be space-inefficient to have
   APPT_WARNTIME in each.

I have tried to specify "#+PROPERTY: APPT_WARNTIME 5" and enable inheritance
of it through org-use-property-inheritance, but it did not work.  I have
also searched the web and the Org mailing list archives.

I am using Org mode version
9.0.3 (9.0.3-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20161224/)
on GNU Emacs
25.1.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9) of 2016-12-31

Regards
-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] org-agenda-filter-effort and "invalid face reference"

2017-01-03 Thread Jorge Morais Neto
On 3 January 2017 at 14:16, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:
> I cannot reproduce it with, e.g.
>
>   * TODO test
>   :PROPERTIES:
>   :Effort:   2:00
>   :END:
>
> and a bare configuration. Could you double-check you're really using Org
> 9.0.3?
I reproduce it (the behavior and the message in *Messages*) with my own
files and configuration.  I have not tested with a bare configuration.  I have
tested org-agenda-filter-by-effort with both operator = and operator <.

org-version reports
  Org mode version 9.0.3 (9.0.3-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20161224/)

emacs-version reports
  GNU Emacs 25.1.91.1 (x86_64-unknown-linux-gnu, GTK+ Version
3.18.9) of 2016-12-31

Regards
-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Disable consistency graphs for some habits

2016-12-12 Thread Jorge Morais Neto
On 9 December 2016 at 21:31, Nicolas Goaziou  wrote:
>> I set them up as org-habit habits for the following desirable features:
>> - Only show on the agenda for today, not for other days.
>> - Appear at the end of the agenda for today.
>> - Hide when I type K.
>
> What about using a regular repeater for that instead of an habit? For
> example, first point is solved using
> `org-agenda-repeating-timestamp-show-all' (or
> `org-agenda-show-future-repeats' in master).

But org-agenda-show-future-repeats affects /all/ repeaters.  I want some
important repeaters (such as regular meetings) to appear on every matching date
as normal.

> You may simply use another agenda view to remove them (last point).
But toggling with K is more practical because it preserves current filters.

Regards

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] org-depend: dependencies between TODO entries in different files

2016-12-12 Thread Jorge Morais Neto
On 8 December 2016 at 08:16, Jorge Morais Neto <jorge13...@gmail.com> wrote:
> On 8 December 2016 at 04:44, Carsten Dominik <domi...@uva.nl> wrote:
>> One additional point is, of course, that org-depend is not part of the core,
>> but was written as a proof of concept.  Is anyone besides Karl using it
>> regularly?  I don't want to break anything by changing it.
> I use it (in a very small number of entries).
I would like to add that, AFAIK, currently I only use org-depend to depend on
entries in the same Org document.  But someday I will probably want to depend
on entries in a different document.

Regards
-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] org-depend: dependencies between TODO entries in different files

2016-12-08 Thread Jorge Morais Neto
On 8 December 2016 at 04:44, Carsten Dominik  wrote:
> One additional point is, of course, that org-depend is not part of the core,
> but was written as a proof of concept.  Is anyone besides Karl using it
> regularly?  I don't want to break anything by changing it.
I use it (in a very small number of entries).

Regards
-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] Disable consistency graphs for some habits

2016-12-03 Thread Jorge Peixoto de Morais Neto
When I am trying to learn a new habit, I often write it in Org Mode.  So I
have many entries like:

*** TODO Relax: talk, read book, shower or pray
SCHEDULED: <2016-11-28 Mon 21:30 ++1d>
:PROPERTIES:
:ID:   2ff41cfe-156f-4870-a4ef-991cc2cc986c
:CREATED:  [2016-06-16 Thu 13:23]
    :STYLE:habit
:END:

That one is to remember me to quit the computer at 21:30.

I set them up as org-habit habits for the following desirable features:
- Only show on the agenda for today, not for other days.
- Appear at the end of the agenda for today.
- Hide when I type K.

However, I do not want consistency graphs for most of them, because I don't
want to waste space by enabling logging for them all (they are many).  org-
habit lacks the feature to cleanly disable consistency graphs.  I have
globally disabled them by force through the following customizations:
     '(org-habit-following-days 0)
     '(org-habit-graph-column 90)
     '(org-habit-preceding-days 0)

But this affects all habits.  Could you implement a feature to disable
consistency graphs for a subset of the habits?  Some possibilities:
1. Allow a new value for the STYLE property: "graphless_habit"
2. Automatically disable consistency graphs for entries where logging is
   disabled, or for those which currently lack logs.

Regards
-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/






Re: [O] Bug: second batch of small documentation problems [9.0 (9.0-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20161102/)]

2016-11-12 Thread Jorge Morais Neto
On 11 November 2016 at 22:47, Nicolas Goaziou  wrote:
> `org-tag-persistent-alist' is about "characters". I think it is clear
> that characters are case-sensitive already.
Currently, the docstring of org-tag-alist says "SELECT is a case-sensitive
letter" and the docstring of org-tag-persistent-alist says "SELECT is a
character".  I thought I should point this out, but it is your call whether this
inconsistency needs to be fixed.

> AFAICT any character is allow, but how could we formulate this?.
Any Emacs character is allowed?  If so, perhaps we could just say "SELECT is an
Emacs character (this includes all Unicode characters)".  But beware that I
know little Org and very little Elisp, so please take my suggestion with a
grain of salt.

Regards

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Bug: second batch of small documentation problems [9.0 (9.0-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20161102/)]

2016-11-07 Thread Jorge Morais Neto
I have some observations about your fixes:

1. Tag keys (for fast selection)
   1) When clarifying that tag keys are case-sensitive letters, we
forgot to adjust
  org-tag-persistent-alist’s docstring.  Please adjust it.
   2) And now that I think of it, is it appropriate to write "a-zA-Z" in
  [[info:org#Setting tags]]?  Are only these characters allowed
and no others?

2. Your changes to [[info:org#The very busy C-c C-c key]]:
   #+BEGIN_QUOTE
   -If the current buffer is a capture buffer, close the note and file it.
   -With a prefix argument, file it, without further interaction, to the
   -default location.
   +If the current buffer is a capture buffer, close the note and file it.  With
   +a prefix argument, jump to the target location, without capturing anything.
   #+END_QUOTE
   The last added sentence seems to actually describe "C-u C-c c" instead of
   "C-u C-c C-c".
3. The new docstring of org-startup-folded
   #+BEGIN_QUOTE
   Set `org-agenda-inhibit-startup' to a non-nil value so as to ignore this
   option when Org opens agenda files for the first time.
   #+END_QUOTE
   The way that excerpt is written, it seems to me that it actively recommends
   setting org-agenda-inhibit-startup to a non-nil value.  We could replace "so
   as to" → "if you want to".  But maybe this is me misunderstanding English –
   my second language – or just being pedantic, I don’t know.

And thank you very much for helping Org!  When the Brazilian real gains a little
more value, I intend to make a donation.  And when I become less overloaded, I
intend to study Emacs Lisp and start writing some patches.

Regards.

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] Bug: second batch of small documentation problems [9.0 (9.0-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20161102/)]

2016-11-06 Thread Jorge Morais Neto
Finally the second batch I promised.  Sorry for having taken this long.


- org-table-convert-region docstring is less complete than the manual\\
  The docstring contains the line:
  #+BEGIN_QUOTE
  integer  When a number, use that many spaces as field separator
  #+END_QUOTE

  [[info:org#Built-in table editor]] says:
  #+BEGIN_QUOTE
  a numeric argument N indicates that at least N consecutive spaces, or
  alternatively a TAB will be the separator.
  #+END_QUOTE
  In the latter, notice the "or alternatively a TAB".  I believe the docstring
  should be complete, so please add this information.
- org-archive-to-archive-sibling ARCHIVE_TIME property\\
  org-archive-to-archive-sibling adds an ARCHIVE_TIME property.  This should be
  documented in the docstring and probably also in the manual.
- [[info:org#The very busy C-c C-c key]]
  #+BEGIN_QUOTE
  − If the current buffer is a capture buffer, close the note and file it.
  With a prefix argument, file it, without further interaction, to the
  default location.
  #+END_QUOTE
  Actually, according to [[info:org#Using capture]] and to my quick test,
  C-c C-c restores the original window configuration, /and the effect of C-u is
  to make it also jump to the captured item/.
- org-match-sparse-tree’s docstring omits it can also match properties.
- [[info:org#Setting tags]] should inform that tag letters for the single-key
  interface are case-sensitive.  In "For this to work well you should assign
  unique letters to most of your commonly used tags.", replace "assign unique
  letters" → "assign unique letters (case-sensitive)".  After "In this
  interface, you can use the following keys:", please write "a-zA-Z" instead of
  "a-z".  Finally, in the docstring of org-tag-alist, please replace "SELECT is
  a character" → "SELECT is a case-sensitive letter".
- org-capture’s docstring could mention ID creation\\
  org-capture creates an ID property if org-id-link-to-org-use-id is set to t.
  This is already documented in that option’s docstring, but perhaps it should
  also be documented in org-capture’s docstring and [[info:org#Using capture]].
  The reason is that if a user is surprised that org-capture created an ID
  property, he will look in org-capture’s docstring or perhaps in the manual
  section.  He may not remember to check org-id-link-to-org-use-id’s docstring.
- org-startup-folded’s docstring misreports the default value of
  org-agenda-inhibit-startup.  The docstring’s last paragraph need changing.
- org-agenda-todo-ignore-deadlines’ docstring about ’far
  The documentation of 'far says:
  #+BEGIN_QUOTE
  Don’t show TODO entries where a deadline has been defined, but the deadline
  is not near.  This is useful if you don’t want to use the todo list to figure
  out what to do now.
  #+END_QUOTE
  I do not understand this reasoning.
- I believe that many people use .emacs.d/init.el instead of .emacs.  To better
  reflect this reality, should not Org’s manual use the expression "Emacs init
  file" instead of ".emacs"?
- Typos and small corrections:
  - Docstring of org-agenda-show-inherited-tags
#+BEGIN_QUOTE
when the value of ‘org-agenda-use-tag-inheritance’ has been taken into
account.
#+END_QUOTE
"has been taken into account." → "enables tag inheritance for the given
agenda type."
  - Docstring of org-agenda-week-view\\
In "Switch to daily view for agenda", "daily" → "weekly".


Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-09-18
Package: Org mode version 9.0 (9.0-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20161102/)

current state:
==
(setq
 org-capture-prepare-finalize-hook '(J-insert-created-and-id-all)
 org-clocktable-defaults '(:maxlevel 2 :lang "en" :scope file :block nil
  :wstart 1
  :mstart 1 :tstart nil :tend nil :step nil :stepskip0
  nil
  :fileskip0 nil :tags nil :emphasize nil :link nil
  :narrow 40!
  :indent t :formula nil :timestamp nil :level nil
  :tcolumns nil
  :formatter nil)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-footnote-section "Notas de rodapé"
 org-icalendar-combined-agenda-file "~/org/org.ics"
 org-insert-heading-hook '(org-id-get-create t)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-special-ctrl-k t
 org-agenda-entry-text-maxlines 3
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-priority-faces '((65 :slant italic :weight bold :foreground "red"
  :background
  "black")
 (66 :slant italic :weight bold :foreground "red"
  :background "cyan")
 

Re: [O] Bug: org-refile, org-archive-subtree and footnotes [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-10-05 Thread Jorge Morais Neto
On 5 October 2016 at 19:24, Nicolas Goaziou  wrote:
> You gave a recipe to reproduce the example. I was being lazy and
> expected the complete (final) example. Anyway, I did my homework.
>
> This should be fixed: the message is slightly less frightening now.
>
> Regards,

Thank you!  Regards

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Bug: org-refile, org-archive-subtree and footnotes [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-10-05 Thread Jorge Morais Neto
On 5 October 2016 at 06:44, Nicolas Goaziou  wrote:
>
> OOC, could you show the footnote section triggering this warning? Org
> Lint ignores property drawers there (i.e., it shouldn't raise an error),
> so I'm wondering how is inserted this timestamp.

I don't understand.  Have I not already given an example in the original email?

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] Is it generally better practice to specify local variables at the first line for Org files?

2016-10-04 Thread Jorge Morais Neto
Hi.  In most of my Emacs files, I set any file local variables using a local
variables list near the end of the file.  However I just realized a pitfall.
Emacs, according to its manual, only recognizes this local variables list if
its location fulfills two criteria:
1. It starts no more than 3000 characters from the end of the file.
2. It is on the last page if the file is divided into pages.

This means that if I refile some Org subtree to another Org file, and the
refile target is below the local variables list (e. g. if I refile to the top
level, so that Org chooses the end of the file) then the local variables list
may start failing one of the criteria and thus silently stop working.  There
may be other problematic scenarios.

Therefore it seems that, for Org files, it is good practice to avoid this
pitfall by specifying any file local variables via the other method, i.e. on
the first line.  I ask for confirmation that this is a general Org Mode good
practice before I adopt it for all my existing Org files and any future ones.

And if this is in fact a general Org Mode good practice, I propose documenting
it in both manuals: the Emacs manual at [[info:emacs#Specifying File Variables]]
and the Org manual somewhere.

Regards

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Bug: org-refile, org-archive-subtree and footnotes [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-10-04 Thread Jorge
On 4 October 2016 at 12:08, Nicolas Goaziou  wrote:
> BTW, would you want to provide a patch?
I'm sorry, but I am overloaded.  Besides, I know very little Elisp; for
example, only in the last few weeks did I learn about backquote constructs.
Furthermore, I am a very slow programmer even in C, C++ or Python, with which I
have more experience.

>> Now move to the Footnotes section and refile it to b.org (top level).
>> Then on b.org invoke M-x org-lint.  It complains:
>>  5 high  Extraneous elements in footnote section
>> I expected either org-refile to omit the timestamp when refiling the 
>> footnotes
>> section (to placate org-lint) or org-lint not to complain about the
>> timestamp.
>
> This is a minor issue we shouldn't bother about. Lint just tells you
> some parts of the Footnotes section will not be exported. Just ignore
> it.
The lint message can make an inexperienced user think there is something wrong
(I did), and he could waste time investigating the issue or manually removing
the extraneous elements (thinking they are prejudicial).  Perhaps the message
could be reworded.  Maybe

  Extraneous elements, which are ignored when exporting, in footnote
  section.

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Bug: Feature request: more automatic updating of cookies [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-10-03 Thread Jorge
 jit-lock-fontify-now jit-lock-function
redisplay_internal\ \(C\ function\) nil nil nil nil nil nil] 16
[font-lock-default-fontify-region font-lock-fontify-region "#" run-hook-wrapped jit-lock--run-functions
jit-lock-fontify-now jit-lock-function redisplay_internal\ \(C\
function\) nil nil nil nil nil nil nil nil] 8 [jit-lock-fontify-now
jit-lock-function redisplay_internal\ \(C\ function\) nil nil nil nil
nil nil nil nil nil nil nil nil nil] 4 [column-enforce-warn-on-region
"#" run-hook-wrapped jit-lock--run-functions
jit-lock-fontify-now jit-lock-function redisplay_internal\ \(C\
function\) nil nil nil nil nil nil nil nil nil] 12
[org-font-lock-add-priority-faces font-lock-fontify-keywords-region
font-lock-default-fontify-region font-lock-fontify-region "#" run-hook-wrapped jit-lock--run-functions
jit-lock-fontify-now jit-lock-function redisplay_internal\ \(C\
function\) nil nil nil nil nil nil] 4 [org-do-emphasis-faces
font-lock-fontify-keywords-region font-lock-default-fontify-region
font-lock-fontify-region "#" run-hook-wrapped
jit-lock--run-functions jit-lock-fontify-now jit-lock-function
redisplay_internal\ \(C\ function\) nil nil nil nil nil nil] 4
[org-activate-bracket-links font-lock-fontify-keywords-region
font-lock-default-fontify-region font-lock-fontify-region "#" run-hook-wrapped jit-lock--run-functions
jit-lock-fontify-now jit-lock-function redisplay_internal\ \(C\
function\) nil nil nil nil nil nil] 8 [timer-activate run-at-time
apply run-with-timer jit-lock-fontify-now jit-lock-function
redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil
nil] 4 [smex-detect-new-commands smex funcall-interactively
call-interactively command-execute nil nil nil nil nil nil nil nil nil
nil nil] 4 ["#" mapc ido-set-matches-1
ido-set-matches ido-exhibit read-from-minibuffer ido-read-internal
ido-completing-read smex-completing-read smex-read-and-run smex
funcall-interactively call-interactively command-execute nil nil] 8
[profiler-cpu-profile profiler-report-cpu profiler-report
funcall-interactively call-interactively command-execute
execute-extended-command smex-read-and-run smex funcall-interactively
call-interactively command-execute nil nil nil nil] 4 [Automatic\ GC]
272)) (22514 29042 741706 932000) nil]



My configuration:
Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-09-18
Package: Org-mode version 8.3.6 (8.3.6-6-g194e51-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20161003/)

current state:
==
(setq
 org-capture-prepare-finalize-hook '(J-insert-created-and-id-all)
 org-export-backends '(ascii html icalendar latex odt)
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-footnote-section "Notas de rodapé"
 org-insert-heading-hook '(org-id-get-create t)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-agenda-entry-text-maxlines 3
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-priority-faces '((65 :slant italic :weight bold :foreground "red"
   :background "black")
  (66 :slant italic :weight bold :foreground "red"
   :background "cyan")
  (67 :slant italic :weight bold :foreground "red") (68
 :slant 
italic :weight bold)
  (69 . italic) (70 . default) (71 :foreground "gold") (72

:foreground "yellow")
  (73 :foreground "#50"))
 org-confirm-shell-link-function 'yes-or-no-p
 org-id-link-to-org-use-id 'create-if-interactive
 org-finalize-agenda-hook '(J-org-agenda-to-appt-refresh)
 org-after-tags-change-hook '(org-expiry-insert-created)
 org-agenda-sticky t
 org-list-allow-alphabetical t
 org-special-ctrl-a/e t
 org-agenda-custom-commands '(("p" "Now, agenda and TODOs (personal)"
   ((tags "now" nil)
(agenda "" ((org-agenda-span 1)
(org-agenda-time-grid (quote (nil 
nil nil)
(tags-todo "-dia-@GYNO"
 ((org-agenda-todo-ignore-deadlines (quote
 all))
  (org-agenda-todo-ignore-scheduled (quote
 all))
  (org-agenda-todo-ignore-timestamp
   org-

Re: [O] Bug: Several small documentation problems [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-10-02 Thread Jorge
On 1 October 2016 at 19:36, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:
> In this case, both "parent" and "grandparent" are confusing terms.
> I made a change to M-RET docstring, hopefully eschewing the confusion.
> Please let me know if there is still something wrong there.
It is good now, but I still have some questions and observations:

First, there is some undocumented behavior if M-RET is called in the headline
after column 0 but before the headline text (e.g. if point is on the priority
cookie).  It then splits the heading just before the PROPERTIES drawer.  But I
don’t know if this is worthy of documentation.

Now something which I do consider worthy of description:
  This forces the insertion of a heading after the current subtree,
  independently on the location of point.
At least in Org version 8.3.6 (8.3.6-4-g4835be-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/), the new subtree is
positioned /before/ the current one if M-RET (even C-u M-RET) is invoked at
column 0 in the headline.  You could change the text to
  This forces the insertion of a heading after the current subtree,
  for any position of point except at column 0 in the headline.
Or you could change the code to remove this non-uniform behavior at column 0 of
the headline.

Now a very small detail:
  With double \\[universal-argument] \\[universal-argument] prefix
A “double \\[universal-argument] \\[universal-argument]” could be interpreted
as C-u C-u C-u C-u.  I think it would be better to say just
  With a \\[universal-argument] \\[universal-argument] prefix

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Bug: Several small documentation problems [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-09-30 Thread Jorge
On 29 September 2016 at 17:36, Nicolas Goaziou  wrote:
> I think "grandparent" is correct. In the following document
>
>   * H1
>   ** H2
>   Text<--point
>
> "H2" is the parent headline of "Text" and as a consequence, "H1" is its
> grandparent.
What if point is in the headline, which is often the case?  Besides the
docstring is inconsistent:
  With two universal prefix arguments, insert the heading at the end
  of the grandparent subtree.  For example, if point is within a
  2nd-level heading, then it will insert a 2nd-level heading at the
  end of the 1st-level parent heading.

In the first sentence it says "grandparent subtree", whereas in the second
sentence it says "parent heading".  And the manual says "parent":
  Calling this command with `C-u C-u' will unconditionally respect
  the headline's content and create a new item at the end of the
  parent subtree.

Perhaps uniformity of terminology would help here.

> You are right, M-RET and C-RET are confusing, and making C-u M-RET
> a duplicate of C-RET is wasting some important keybinding. This was
> discussed on this ML already (with Rasmus) but led nowhere so far.
>
> In any case, it is more future-proof to not insist on the fact that
> C-RET is C-u M-RET.
I think that, whether we describe both behaviors separately or tell
the user that
C-RET is equivalent to C-u M-RET, the commitment (to not change the behavior)
is the same.  But if you still think that describing both separately is more
future-proof, I won't argue.

But I still ask you to look at the other points I made about that manual
section: that it doesn't adequately explain the effect of C-u M-RET, and that
the description of C-RET is actually wrong.

> Thank you for this tedious, yet very important work.
Thank you very much for working on Org!

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] Bug: Several small documentation problems [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-09-29 Thread Jorge
al and local cycling]:
 1. "show-branches" ("outline-show-branches").
 2. "show-all" ("outline-show-all").
 3. "show-children" ("outline-show-children").
  2. "org-kill-note-or-show-branches" docstring mentions "show-branches"
 ("outline-show-branches").
  3. "org-agenda-show-and-scroll-up" docstring mentions "show-subtree"
 ("outline-show-subtree").
• [info:org#Motion]
  1. C-c C-n invokes org-next-visible-heading, not
 outline-next-visible-heading.  Ditto for C-c C-p.
  2. C-c C-f invoke org-forward-heading-same-level, not org-forward-same-level.
 Ditto for C-c C-b.
• Inconsistency about the main keybinding for org-occur
  C-c / help window mentions only "r" for regexp, not "/".  [info:org#Sparse
  trees] also mentions only "r" – not "/".  So they treat C-c / r as the main
  keybinding for org-occur.  The docstring of org-sparse-tree, however,
  mentions both, and "r" /more/ prominently than "/".
• [info:org#Footnotes] about `C-c '': The keybinding `C-c '' is written twice.
  Besides, in the description, the sentence
This may be useful if editing footnotes in a narrowed buffer.
  seems incomplete.
• org-copy-special docstring
  wrongly substitutes org-table-copy for org-table-copy-region.
• [info:org#Filtering/limiting agenda items]
  Omits the fact that org-agenda-filter-by-tag-refine is obsolete.  Also says:
If the first key you press is either `+' or `-', the previous
filter will be narrowed by requiring or forbidding the selected
additional tag.
  but, according to my test, '+' is superfluous, because just by hitting `/'
  and selecting the tag, the filter is refined to require the tag.
• org-update-statistics-cookies docstring
  should explicitly document that C-u makes it update all cookies in the
  buffer.
• Docstring of org-id-link-to-org-use-id
  wrongly substitutes C-c C-l for C-c l.  And after making this correction,
  perhaps you should mention that C-c l is a custom keybinding (only a
  suggestion).
• Typos listed in the format "\"$wrong>\" → \"$correct\""
  • [info:org#The date/time prompt]
"ISO week for" → "ISO week four".
  • [info:org#Column width and alignment]
"string-rich column" → "string-rich columns"
  • [info:org#Column groups]
  `>' to indicate the end of a column
"column" → "group"
  • [info:org#External links]
  `file:projects.org::*task title heading search in Org'
  `file(2)'
The description (starting with "title" and ending in the next line with
"file(2)") is misaligned.
  • [info:org#Link abbreviations]
  If the replacement text doesn't contain any specifier, it will
  simply be appended to the string in order to create the link.
The "it" refers to "replacement text", but the replacement text is actually
/prepended/ (not /appended/) to the tag.  I suggest replacing everything
after the comma with: "the tag will simply be appended in order to create
the link."
  • [info:org#Tag inheritance]
"with those tags" → "with all those tags"
  • [info:org#Tag hierarchy]
  all members in the group and its subgroup
"subgroup" → "subgroups"
  • [info:org#Tag searches]
"to find entries which are tagged, like `Kathy' or `Sally'" →
"to find entries tagged as `Kathy' or `Sally'"
  • "org-metaright" docstring
"org-indnet-drawer" → "org-indent-drawer"
  • org-yank docstring:
"but only if doing so would now" → "except if doing so would" (or at least
fix "now" → "not")

Thank you and regards.

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-09-18
Package: Org-mode version 8.3.6 (8.3.6-4-g4835be-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] Bug: org-refile, org-archive-subtree and footnotes [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-09-28 Thread Jorge
Start Emacs with an empty init file and make the following customizations:

- org-log-refile :: 'time
- org-refile-targets :: (("/tmp/b.org" :maxlevel . 1))
- org-refile-use-outline-path :: 'file

Create an Org buffer named a.org with the following content:
--8<---cut here---start->8---
* My pets
** Rex
   Given to me by Theresa.[fn:1]
* Footnotes

[fn:1] A work colleague.
--8<---cut here---end--->8---

Create an Org file named /tmp/b.org with the following content:
--8<---cut here---start->8---
* Her pets
--8<---cut here---end--->8---

In buffer a.org, with point in Rex, type:
C-c C-w b.org/Her pets/ 
M-x org-lint

org-lint complains:
 4 high  No reference for footnote definition [fn:1]

A similar problem occurs if the entry is archived with org-archive-subtree.  I
expected Org to automatically detect the footnote inconsistency, without me
manually invoking org-lint.  Even better would be to fix it, e.g. offer to move
the footnote definition if there are no other references in the current buffer.

Now move to the Footnotes section and refile it to b.org (top level).
Then on b.org invoke M-x org-lint.  It complains:
 5 high  Extraneous elements in footnote section
I expected either org-refile to omit the timestamp when refiling the footnotes
section (to placate org-lint) or org-lint not to complain about the timestamp.

Thank you.  Regards.

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-09-18
Package: Org-mode version 8.3.6 (8.3.6-4-g4835be-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
 org-babel-hide-result-toggle-maybe
 org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
 org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents)
  contents)
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents)
   contents)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook
   org-show-block-all append local]
  5]
#[nil "\300\301\302\303\304$\207"
  [org-add-hook change-major-mode-hook
   org-babel-show-result-all append local]
  5]
org-babel-result-hide-spec
org-babel-hide-all-hashes org-eldoc-load)
 org-refile-targets '(("/tmp/b.org" :maxlevel . 1))
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda
   (name contents width)
   contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
 org-babel-execute-safely-maybe)
 org-refile-use-outline-path 'file
 org-cycle-hook '(org-cycle-hide-archived-subtrees
 org-cycle-hide-drawers
 org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-log-refile 'time
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] How to report more than two dozen small problems with Org's documentation?

2016-09-28 Thread Jorge
Hello.  I have noted a number (more than two dozen) of small problems with
Org's documentation.  For example, the docstring of org-cut-special mentions
`org-table-copy' where the correct would be `org-table-cut-region'.

Should I report one bug for all the documentation problems, or one bug for each
affected manual section or docstring, or something else?

Regards

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



[O] Bug: Feature request: more automatic updating of cookies [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)]

2016-09-27 Thread Jorge
Paste the following in an Org buffer:
--8<---cut here---start->8---
* Cookie_a [0/0]
* TODO Dummy_a
* Cookie_b [0/1]
** TODO Dummy_b
--8<---cut here---end--->8---

Within that buffer:
   1. Move point to the line of Dummy_a.
   2. 
I wished the cookie to be updated to [0/1] but it is not.

Then:
   1. Move point to the line of Dummy_b.
   2. C-c C-x C-w
   3. Move point to the line of Dummy_a at column 0.
   4. C-c C-x C-y
I wished both cookies to be updated.  They are not.

The manual [[info:org#Checkboxes][says]]:
Checkbox statistic cookies are updated automatically if you toggle
checkboxes with `C-c C-c' and make new ones with `M-S-'.  TODO
statistics cookies update when changing TODO states.  If you delete
boxes/entries or add/change them by hand, use this command to get things
back into sync.

I request the feature of Org automatically updating cookies when using
structure editing commands such as C-c C-x C-w, C-c C-x C-y, ,
 and friends.  This could be governed by a user option.

The point is that C-u C-c # (to update cookies in the entire buffer) takes
long enough that I only call it a few times per week.  This means that cookies
can get out of sync.  Then I try to remember manually invoking C-c # on the
relevant line every time it goes out of sync, but I sometimes omit it.

Regards

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-09-18
Package: Org-mode version 8.3.6 (8.3.6-4-g4835be-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local] 5]
#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
  5]
org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-hide-drawers org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Thank you!

2016-09-07 Thread Jorge
On 14 June 2016 at 10:33, Gyro Funch  wrote:
> I have recently adopted org-mode for both task lists and technical
> writing and wanted to express my sincere thanks to the creator,
> developers, and maintainers for such a wonderful piece of software.
>
> Keep up the great work!

[Resurrecting this thread]
I also am a happy user.  Emacs and Org are useful and fun to use.

When the Brazilian Real gains a little value, I plan to ask on this
mailing list how to donate.

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] Emacs movement keys

2016-08-23 Thread Jorge
On 23 August 2016 at 16:38, Eduardo Mercovich  wrote:
> |   | move | move | del   | del  |
> | object| prev | next | back  | forw |
> |---+--+--+---+--|
> | text  | M <  | M >  | - | -|
> | screen| M v  | C v  | - | -|
> | paragraph | M p  | M n  | - | -|
> | sentence  | M a  | M e  | - | M-k  |
> | line ↑ ↓  | C p  | C n  | - | -|
> |  < >  | C a  | C e  | - | C-k  |
> | word  | M b  | M f  | M-DEL | M-d  |
> | char  | C b  | C f  | DEL   | C-d  |

Yes, these bindings are very useful.  And did you know that even
outside Emacs you can move/delete wordwise by pressing ctrl togeter
with the right/left arrows or delete or backspace?  I only learned it
a few months ago.  I learned it in [1], even though this wordwise
movement/deletion also works outside LibreOffice as well.
1: https://help.libreoffice.org/Common/General_Shortcut_Keys_in

However, in my Emacs, backward-paragraph is bound to M-{, not M-p, and
forward-paragraph is bound to M-}, not M-n.  M-n and M-p are undefined
here, except in specific modes (the only one I remember is the
minibuffer). Have you bound these keys yourself?  Here I use Emacs
25.1-rc2.  I confirmed with a vanilla session (invoked by emacs -Q).

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/



Re: [O] How to safely update from ver. 8.2.10 to 8.3.x

2016-08-22 Thread Jorge
On 22 August 2016 at 14:19, Cook, Malcolm  wrote:
>> In the last command I forgot to drop the -Q.  But I guess it works either 
>> way.
>
> I would not trust the result from failing to drop the -Q since the -Q is what 
> prevents your init file from loading, which we are explicitly trying to avoid 
> for the sake of compiling org in a fresh environment.
>
According to [[info:emacs#Initial Options]], --batch implies -q.
About -q and -Q, we have:

‘-q’
‘--no-init-file’
 Do not load any initialization file (*note Init File::).  When
 Emacs is invoked with this option, the Customize facility does not
 allow options to be saved (*note Easy Customization::).  This
 option does not disable loading ‘site-start.el’.
[...]
‘-Q’
‘--quick’
 Start emacs with minimum customizations.  This is similar to using
 ‘-q’, ‘--no-site-file’, ‘--no-site-lisp’, and ‘--no-splash’
 together.  This also stops Emacs from processing X resources by
 setting ‘inhibit-x-resources’ to ‘t’ (*note Resources::).

So --batch implies -q, which is enough to bypass init.el.  -Q is
stronger than -q: it adds ‘--no-site-file’, ‘--no-site-lisp’, and
‘--no-splash’ and inibits X resources.  But AFAIK, only my init.el
loads Org, and not site-start.el, which is empty here, or any Lisp
file in a site-lisp directory.  I searched every file in
/usr/share/emacs/site-lisp for "org" and I didn't find any line that
loads Org.

I am an Emacs beginner though, so I may be wrong.

-- 
- I am Brazilian.  I apologize for possibly bad English and I welcome
corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/



Re: [O] How to safely update from ver. 8.2.10 to 8.3.x

2016-08-22 Thread Jorge
In the last command I forgot to drop the -Q.  But I guess it works either way.

On 22 August 2016 at 12:25, Jorge <jorge13...@gmail.com> wrote:
> On 15 August 2016 at 14:29, Cook, Malcolm <m...@stowers.org> wrote:
>>   emacs -Q -batch -eval "(progn (require 'package) (add-to-list 
>> 'package-archives '(\"org\" . \"http://orgmode.org/elpa/\;))  
>> (package-initialize) (package-refresh-contents) (package-install 
>> 'org-plus-contrib))"
> Here I plan to drop the "-Q" (because --batch already implies -q,
> which I think is enough).  So my command would be
> emacs --batch --eval "(progn (require 'package) (add-to-list
> 'package-archives '(\"org\" . \"http://orgmode.org/elpa/\;))
> (package-initialize) (package-refresh-contents) (package-install
> 'org-plus-contrib))"
>
>> Note: I use org-plus-contrib from melpa instead of org.  If you want just 
>> org, you could simply:
>>
>>   emacs -Q -batch -eval "(progn (require 'package) 
>> (package-initialize) (package-refresh-contents) (package-install 
>> 'org-plus-contrib))"
>
> Would not it be
> emacs -Q --batch --eval "(progn (require 'package)
> (package-initialize) (package-refresh-contents) (package-install
> 'org))"
> ?
>
>
> --
> - I am Brazilian.  I apologize for possibly bad English and I welcome
> corrections.
> - Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
> - Free software for Android: https://f-droid.org/



-- 
- I am Brazilian.  I apologize for possibly bad English and I welcome
corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/



Re: [O] How to safely update from ver. 8.2.10 to 8.3.x

2016-08-22 Thread Jorge
On 15 August 2016 at 14:29, Cook, Malcolm  wrote:
>   emacs -Q -batch -eval "(progn (require 'package) (add-to-list 
> 'package-archives '(\"org\" . \"http://orgmode.org/elpa/\;))  
> (package-initialize) (package-refresh-contents) (package-install 
> 'org-plus-contrib))"
Here I plan to drop the "-Q" (because --batch already implies -q,
which I think is enough).  So my command would be
emacs --batch --eval "(progn (require 'package) (add-to-list
'package-archives '(\"org\" . \"http://orgmode.org/elpa/\;))
(package-initialize) (package-refresh-contents) (package-install
'org-plus-contrib))"

> Note: I use org-plus-contrib from melpa instead of org.  If you want just 
> org, you could simply:
>
>   emacs -Q -batch -eval "(progn (require 'package) 
> (package-initialize) (package-refresh-contents) (package-install 
> 'org-plus-contrib))"

Would not it be
emacs -Q --batch --eval "(progn (require 'package)
(package-initialize) (package-refresh-contents) (package-install
'org))"
?


-- 
- I am Brazilian.  I apologize for possibly bad English and I welcome
corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/



Re: [O] Potential feature request – more automatic updating of cookies

2016-08-17 Thread Jorge
[Now sending to the whole list]
On 29 July 2016 at 00:53, Adam Porter  wrote:
> It might be enough to advise a few functions to call
> org-update-statistics-cookies, e.g.:
>
> (advice-add 'org-cut-special :after 'org-update-statistics-cookies)

I haven't yet studied the advice feature.  I'll look into it.  But is
not the proposed feature (more automatic updating of cookies)
important enough that there should be a very quick way to enable it?
I think it should be a user option (that is, a customizable variable).


-- 
- I am Brazilian.  I apologize for possibly bad English and I welcome
corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/



Re: [O] function to duplicate current header and change ID

2016-08-17 Thread Jorge
On 11 August 2016 at 12:33, John Kitchin  wrote:
> Does this do what you want?
Could not he just use C-u C-c C-x c (org-clone-subtree-with-time-shift)?



[O] Potential feature request – more automatic updating of cookies

2016-07-27 Thread Jorge Peixoto de Morais Neto
Paste the following in an Org buffer:
--8<---cut here---start->8---
* Cookie_a [0/0]
* TODO Dummy_a
* Cookie_b [0/1]
** TODO Dummy_b
--8<---cut here---end--->8---

Within that buffer:
   1. Move point to the line of Dummy_a.
   2. 
I wished the cookie to be updated to [0/1] but it is not.

Then:
   1. Move point to the line of Dummy_b.
   2. C-c C-x C-w
   3. Move point to the line of Dummy_a at column 0.
   4. C-c C-x C-y
I wished both cookies to be updated.  They are not.

The manual [[info:org#Checkboxes][says]]:
    Checkbox statistic cookies are updated automatically if you toggle
checkboxes with `C-c C-c' and make new ones with `M-S-'.  TODO
statistics cookies update when changing TODO states.  If you delete
boxes/entries or add/change them by hand, use this command to get things
back into sync.

Should I request the feature of Org automatically updating cookies when using
structure editing commands such as C-c C-x C-w, C-c C-x C-y, ,
 and friends?  Would it be worth the development cost?  I
unfortunately cannot develop it myself.

The point is that C-u C-c # (to update cookies in the entire buffer) takes
long enough that I only call it a few times per week.  This means that cookies
can get out of sync.  Then I try to remember manually invoking C-c # on the
relevant line every time it goes out of sync, but I sometimes omit it.

I figured I should discuss this in the mailing list before submitting a bug
report with org-submit-bug-report.

Regards

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM and 7z.
• Free (as in free speech) software for Android: https://f-droid.org/





[O] Bug: 25.1; org-modify-ts-extra: Symbol’s function definition is void: signum [8.3.5 (8.3.5-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160725/)]

2016-07-26 Thread Jorge Peixoto de Morais Neto
Please paste the following timestamp in an Org Mode buffer:
<2016-06-10 Fri 07:40-08:50 ++1w>

Try changing the minutes (not the hours) with  or .  I
expected each key press to change the minutes by ±5min.  Instead the
entire timestamp is deleted and the echo area shows the following
message:
org-modify-ts-extra: Symbol’s function definition is void: signum

I reproduced this with an Emacs session loaded with an empty init.el, from
which I invoked org-submit-bug-report.

Emacs  : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-07-25
Package: Org-mode version 8.3.5 (8.3.5-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20160725/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-
toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-
command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-
configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-
mode-hook org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-
mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes org-
eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-
maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-
cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

-- 
• I am Brazilian.  I hope my English is correct and I welcome corrections.
• Please adopt free formats like PDF, ODF, LaTeX, Opus, WebM and 7z.
• Free software for Android: https://f-droid.org/






Re: [O] Bug: C-u C-u C-c C-o opens pdf links in docview, belying the docstring [8.3.4 (8.3.4-39-ge0acd8-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160418/)]

2016-04-25 Thread Jorge Peixoto de Morais Neto
On Sat, 2016-04-23 at 17:21 -0400, Kyle Meyer wrote:
> I don't know how Ubunutu assigns default applications, but org-open-file
> looks at mailcap assignments by default on GNU/Linux systems (see
> org-file-apps-defaults-gnu).  You can also specify an
> extension-application mapping using the org-file-apps variable.
There seems to be a Freedesktop standard related to this.  There is even a
Freedesktop cli command (xdg-open) to open a URL (remote or local) in the
user's preferred application.  I really believe Emacs should integrate with
this standard by default.  For now I have manually customized org-file-apps
(and I will need to manually customize it again if I change my preferred PDF
viewer[1]), but Emacs would be more user-friendly if it integrated with the
Freedesktop standard.

One significant roadblock for greater Emacs adoption is that countless
problems that other programs solve automagically, must be manually configured
in Emacs, and they add up.

I hope I don't sound ungrateful.

Regards

* Notes
[1]: Of course I tried to specify xdg-open as the PDF viewer (so Emacs would
automatically open the PDF in whatever viewer I have currently configured
through Ubuntu GUI), but it didn't work (C-c C-o would do nothing), so I fell
back to manually specifying Okular.

-- 
- I am Brazilian.  I hope my English is correct and I welcome corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/






[O] Bug: Docstring of org-yank wrongly says that org-yank-adjusted-subtrees is set by default [8.3.4 (8.3.4-39-ge0acd8-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160418/)]

2016-04-23 Thread Jorge Peixoto de Morais Neto
org-yank-adjusted-subtrees is defined in org.el as follows:
(defcustom org-yank-adjusted-subtrees nil
  "Non-nil means when yanking subtrees, adjust the level.
With this setting, `org-paste-subtree' is used to insert the subtree, see
this function for details."
  :group 'org-edit-structure
  :type 'boolean)


Emacs  : GNU Emacs 25.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-22
Package: Org-mode version 8.3.4 (8.3.4-39-ge0acd8-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20160418/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-
toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-
command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-
function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function 'org-latex-format-headline-default-
function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-
configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-
mode-hook org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-
mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes org-
eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-
maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-
cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-
function
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )
-- 
- I am Brazilian.  I hope my English is correct and I welcome corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/





[O] Bug: When exporting to PDF an Org file where multiple footnotes share the same definition, only the first footnote is clickable [8.3.4 (8.3.4-39-ge0acd8-elpaplus @ /home/jorge/.emacs.d/elpa/org-pl

2016-04-23 Thread Jorge Peixoto de Morais Neto
Export the following Org file to PDF:

Line1.[fn:1]

\pagebreak

Line2.[fn:1]
* Footnotes
[fn:1] Footnote.

In the generated PDF, the second footnote reference (on page 2) is not
clickable.  If this happened on a large document, how would the reader
locate the footnote definition?

I reproduced this with an empty ~/.emacs.  This is Ubuntu 16.04.

Emacs  : GNU Emacs 25.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-22
Package: Org-mode version 8.3.4 (8.3.4-39-ge0acd8-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20160418/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-
toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-
command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-
function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-latex-format-headline-function 'org-latex-format-headline-default-
function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-
configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-
mode-hook org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-
mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes org-
eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-
maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-
cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-
function
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )
-- 
- I am Brazilian.  I hope my English is correct and I welcome corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/





[O] Bug: C-u C-u C-c C-o opens pdf links in docview, belying the docstring [8.3.4 (8.3.4-39-ge0acd8-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160418/)]

2016-04-23 Thread Jorge Peixoto de Morais Neto
Create an Org file with a link to an existing PDF file.  For example:

[[file:~/circulant_diagonalization.pdf][file:~/circulant_diagonalization.pdf]]

(assuming the mentioned file exists at that path).  In an attempt to open the
PDF in the system viewer, position point over the link and type
C-u C-u C-c C-o.

The link opens in DocView, belying the docstring, which says:
With a double prefix argument, try to open outside of Emacs, in the
application the system uses for this file type.

I reproduced with an empty Emacs init file.  I use Ubuntu 16.04.  The default
PDF application is Okular.

Emacs  : GNU Emacs 25.0.93.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
 of 2016-04-22
Package: Org-mode version 8.3.4 (8.3.4-39-ge0acd8-elpaplus @
/home/jorge/.emacs.d/elpa/org-plus-contrib-20160418/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-
toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-
command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-
configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-
mode-hook org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-
mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes org-
eldoc-load)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-
maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-
cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

-- 
- I am Brazilian.  I hope my English is correct and I welcome corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/






Re: [O] Bug: group tags defined in org-tag-persistent-alist do not match their subtags [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/jorge/.emacs.d/elpa/org-20160404/)]

2016-04-18 Thread Jorge
OK.  Thank you very much for improving Org!
Regards

On 18 April 2016 at 20:21, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:
> Jorge <jorge13...@gmail.com> writes:
>
>>> For the record, it is better to simply post minimal init.el and
>>> "group-tags-bug.org", both as plain text, in the message.
>> Of course.  Sorry for being obtuse. And I took the opportunity to test
>> that the bug still occurs in org-20160418.
>
> The bug was fixed in master, i.e., development branch. It means the fix
> will not appear on ELPA before Org 9.0 is released.
>
> Regards,



-- 
- I am Brazilian.  I apologize for possibly bad English and I welcome
corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/



Re: [O] Bug: Repeated candidate tags in org-set-tags-command interface [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/jorge/.emacs.d/elpa/org-20160404/)]

2016-04-18 Thread Jorge
On 12 April 2016 at 17:35, Nicolas Goaziou  wrote:
> Could you send it by mail? You can remove the copy of ~/.emacs.d/elpa.

As you requested in the other e-mail, here are the files inline:

File repeated-tags-bug-trigger.org:
--
* Dummy Headline   :dummy:
--

File init.el:
--
;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(org-tag-persistent-alist (quote (("dummy" . 100)
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
--



Re: [O] Bug: group tags defined in org-tag-persistent-alist do not match their subtags [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/jorge/.emacs.d/elpa/org-20160404/)]

2016-04-18 Thread Jorge
> For the record, it is better to simply post minimal init.el and
> "group-tags-bug.org", both as plain text, in the message.
Of course.  Sorry for being obtuse. And I took the opportunity to test
that the bug still occurs in org-20160418.

File group-tags-bug.org:
---
* Dummy
** Human :mammal:
---

File init.el:
---

;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(org-tag-persistent-alist
   (quote
((:startgroup)
 ("animal" . 97)
 (:grouptags)
 ("mammal" . 109)
 (:endgroup)
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

---



[O] Bug: typo in [[info:org#Tag hierarchy]] [8.3.4 (8.3.4-34-gacfd41-elpa @ /home/jorge/.emacs.d/elpa/org-20160411/)]

2016-04-11 Thread Jorge
[[info:org#Tag hierarchy]] says:

>Furthermore; The members of a _group tag_ can also be regular
> expression, creating the possibility of more dynamic and rule-based
> tag-structure.  The regular expressions in the group must be marked up
> within { }.  Example use, to expand on the example given above:
>
>  #+TAGS: [ Vision : {V.+} ]
>  #+TAGS: [ Goal : {G.+} ]
>  #+TAGS: [ AOF : {AOF.+} ]
>  #+TAGS: [ Project : {P.+} ]
>
>Searching for the tag `Project' will now list all tags also including
> regular expression matches for `P@.+'.  Similar for tag-searches on
> `Vision', `Goal' and `AOF'.  This can be good for example if tags for a
> certain project is tagged with a common project-identifier, i.e.
> `P@2014_OrgTags'.

However, the `Project' group tag regex is `P.+', while the first
sentence in the final quoted paragraph cites the regex `P@.+' (with an
`@').

Emacs  : GNU Emacs 25.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.6)
 of 2016-03-05
Package: Org-mode version 8.3.4 (8.3.4-34-gacfd41-elpa @
/home/jorge/.emacs.d/elpa/org-20160411/)

I run Ubuntu 15.10 with PPAs gnome3-team/gnome3 and gnome3-team/gnome3-staging.

-- 
- I am Brazilian.  I apologize for possibly bad English and I welcome
corrections.
- Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z.
- Free software for Android: https://f-droid.org/



[O] Bug: group tags defined in org-tag-persistent-alist do not match their subtags [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/jorge/.emacs.d/elpa/org-20160404/)]

2016-04-09 Thread Jorge Peixoto de Morais Neto
Suppose I wanted "animal" to be a group tag matching itself and
"mammal".  I would like them to be mutually exclusive to avoid
redundancy.  So I would define them in org-tag-persistent-alist as
such:
     (:startgroup)
 ("animal" . ?a)
 (:grouptags)
 ("mammal" . ?m)
 (:endgroup)

But then a tag search (e.g. trough org-match-sparse-tree) for "animal"
does not match an entry tagged as "mammal".  I expected it to match.

To ease debugging, I have created a new .emacs.d and removed all
unnecessary customizations (but still included a copy of my usual
~/.emacs.d/elpa).  I have also reduced the .org file to a minimum.  I
provide them as a compressed archive (.txz) here:
https://www.dropbox.com/s/edas2l4e7ekbmek/group-tags-bug.txz?dl=0
I can also mail it on request (it is about 4MiB)

To trigger the bug, open Emacs with my .emacs.d, visit
group-tags-bug.org and invoke org-match-sparse-tree.  Search for tag
"animal".  The entry "Human" (tagged with "mammal") is not matched.

I am Brazilian.  I apologize for possibly bad English and I welcome
corrections.

I use Ubuntu 15.10.

Emacs  : GNU Emacs 25.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version
3.18.6)
 of 2016-03-05
Package: Org-mode version 8.3.4 (8.3.4-31-gcb683e-elpa @
/home/jorge/.emacs.d/elpa/org-20160404/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-
result-toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-
speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-
configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-
safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-
drawers org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-tag-persistent-alist '((:startgroup) ("animal" . 97) (:grouptags)
("mammal" . 109) (:endgroup))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )




[O] Bug: Repeated candidate tags in org-set-tags-command interface [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/jorge/.emacs.d/elpa/org-20160404/)]

2016-04-09 Thread Jorge Peixoto de Morais Neto
I have set org-tag-persistent-alist.  In my .org files, many of these
tags do in fact appear.  But then when I try to change the tags of some
entry with org-set-tags-command, Org shows about double the expected
number of candidate tags, because those tags that occur both in org-
tag-persistent-alist and in the .org file appear twice, with different
access chars.  I expected no duplicates.  This bug does not occur when
I set org-tag-alist instead of org-tag-persistent-alist.

To ease debugging, I have created a new .emacs.d and removed all
unnecessary customizations (but still included a copy of my usual
~/.emacs.d/elpa).  I have also reduced the .org file to a minimum.  I
provide them as a compressed archive (.txz) here:
https://www.dropbox.com/s/wwo63h5e4f1k347/org-bug-repeated-candidate-ta
gs.txz?dl=1
I can also mail it on request (it is about 4MiB)

To trigger the bug, open GNU Emacs with my .emacs.d, visit
repeated-tags-bug-trigger.org and invoke org-set-tags-command.  The tag
"dummy" appears twice (once with access char "d" and another time with
access char "a").

I am Brazilian.  I apologize for possibly bad English and I welcome
corrections.

I use Ubuntu 15.10.

Emacs  : GNU Emacs 25.0.92.1 (x86_64-unknown-linux-gnu, GTK+ Version
3.18.6)
 of 2016-03-05
Package: Org-mode version 8.3.4 (8.3.4-31-gcb683e-elpa @
/home/jorge/.emacs.d/elpa/org-20160404/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-
result-toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-
speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-
configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-
safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-
drawers org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-tag-persistent-alist '(("dummy" . 100))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )




Re: [O] complex dates (ie schedule a class in a time range)

2016-02-03 Thread Jorge A. Alfaro-Murillo

Hi Xebar,

Xebar Saram writes:

im having difficulty understanding how the complex date input 
works and would appreciate any help.  What i want is to schedule 
a class i teach on a sunday from 09:00 to 11:00 between 3/6/2016 
to 1/7/2016


%%(org-class 2016 6 3 2016 7 1 0) 9:00-11:00 You should be 
 sleeping


Best,
--
Jorge.




Re: [O] complex dates (ie schedule a class in a time range)

2016-02-03 Thread Jorge A. Alfaro-Murillo

Xebar Saram writes:

i added this to my meet.org file : 

** 3D class %%(org-class 2016 6 3 2016 7 1 0) 9:00-11:00 You 
should be sleeping 

yet in my agenda on 3/6/2016 there is no meeting present. what 
am i missing here?


I do not know. That works for me. You mean June 3rd right? Another 
obvious question, is meet.org part of your org-agenda-files?


--
Jorge.




Re: [O] Require feedback on an idea: move to a central server all my org file and edit from there?

2016-01-26 Thread Jorge A. Alfaro-Murillo

Marcin Borkowski writes:

On 2016-01-23, at 19:28, Xebar Saram <zelt...@gmail.com> wrote: 

Thanks for the feedback guys! 

Marcin: do you know of good packages or methods to auto 
push/pull from emacs each time you save a file (preferably ones 
that dont require coding skills :-)) 


Sadly, no.  But this shouldn't be too difficult - basically, 
just put some code to run hg/git/whatever into one of the 
numerous Emacs hooks.  For instance, check out after-save-hook. 
Alternatively, you could advice a function responsible for 
actually doing the autosave (do-auto-save - unfortunately, it's 
written in C and not in Elisp).


You also might want to check git-annex, specifically the 
assistant: https://git-annex.branchable.com/assistant/


Best,
--
Jorge.




[O] For Org, numbered backups or version control? Which settings?

2015-12-28 Thread Jorge
Hi.  My ~/org folder, with its sub directories, has a total of 13 .org
files.  Five of them are agenda files.  I set up numbered backup, with
the backups going to a separate directory: ~/auto-backups.  For the
most important org files, I raised the number of numbered backups
kept.  For example, my biggest org file has the following local
variables:
  - Local variables:
  - auto-save-interval: 150
  - version-control: t
  - kept-new-versions: 80
  - End:

I sincronize both ~/org and ~/auto-backups to a cloud syncing service.
~/auto-backups now is 97MiB, about 2% of my 5.5GiB cloud quota.

Do you recommend keeping my current setup?  Or should I adopt some
version control system to have better history (right now I save only
the latest 80 versions, and Emacs saves a new backup only on the Emacs
session's first save)?



Re: [O] syncing my life (orgmode :)) to a mobile (android) device..cant find a holistic reliable way..how do you guys manage to do it?

2015-12-06 Thread Jorge A. Alfaro-Murillo

Xebar Saram writes:

So my question is (sorry for the long intro :)) what do orgmode 
users (who also are heavy mobile users) do? do they give up on 
contacts and calendaring on the mobile? maintain 2 separate 
databases? what tools do people use to overcome this issue?


I have a computer always running an emacs server, and I connect to 
it from my android phone using JuiceSSH. To see the org agenda in 
my google calendar I export every now and then the agenda to an 
ics file in the cloud using org-icalendar-combined-agenda-file. In 
google I have the address to that file as one of the calendars 
(from the calendar "Other calendars", "Add by URL").


--
Jorge.




Re: [O] Using orgstruct-mode (or just org-cycle) in emacs-lisp-mode

2015-11-08 Thread Jorge A. Alfaro-Murillo

Jonas Bernoulli writes:

`orgstruct-mode' sounds like it could be really useful too, but 
as I mentioned it doesn't work for me at all.  So for now I 
would like to stick to just `outline-minor-mode'. 


  Thanks
  Jonas 

Ps: I am still not sure whether I am just doing something stupid 
or why else `orgstruct-mode' doesn't work for me.  So I would 
apprechiate a little tutorial starting from emacs -Q that 
demonstrates what setup is required and what keys I have to 
press for things to happen. 


Generally it is enough to set orgstruct-heading-prefix-regexp and 
turn-on-orgstruct. I do this on a per mode basis, for example:


#+BEGIN_SRC emacs-lisp
 (add-hook 'elisp-mode-hook 'turn-on-orgtbl)
 (add-hook 'elisp-mode-hook
   (lambda ()
   (setq-local orgstruct-heading-prefix-regexp
   ";; ")))
#+END_SRC

Then you can organize your code using

;; * section-name

;; ** subsection-name

and folding with TAB, shift-TAB, etc will work when you are in 
those lines.


To use lists you just have to start a line with -, +, 1., etc and 
then lists keybindings work, for example M-C-m for new items. I do 
not know why lists do not respect orgstruct-heading-prefix-regexp, 
it has always seem weird to me that I cannot gain orgstruct 
functionality with something like:


;; - first item
;; - second item

--
Jorge.




Re: [O] Favorite contrib/ packages?

2015-11-03 Thread Jorge A. Alfaro-Murillo

Kaushal Modi writes:

What are your favorite org contrib/ packages that you simply 
can't live without, and consider them to be a part of your 
org-mode core?


org-contacts and org-passwords, definitely. Sometimes I use 
org-checklist.


--
Jorge.




Re: [O] Agenda to iCal not working

2015-10-28 Thread Jorge A. Alfaro-Murillo

Matt Lundin writes:

Jorge A. Alfaro-Murillo writes: 

Ken Mankoff writes: 

I'm using the examples from 
https://www.gnu.org/software/emacs/manual/html_node/org/Exporting-Agenda-Views.html 

Specifically,  

(setq org-agenda-custom-commands [...]  




But the HTML, PS, and ICS files are not being created. If I'm 
visiting an Org file and run (org-icalendar-export-to-ics) 
then the ICS is generated.  

Can someone offer advice why the ICS isn't generated when I 
generate a specific agenda view? 


Setting up the agenda custom commands is not related to ical 
export. 


In fact, it is. 


Yes, sorry what I meant to say is that that alone does not produce 
the files. You have to use org-store-agenda-views (C-c a e) from 
the agenda view or export directly using 
org-icalendar-combine-agenda-files.


--
Jorge.




Re: [O] Agenda to iCal not working

2015-10-27 Thread Jorge A. Alfaro-Murillo

Ken Mankoff writes:

I'm using the examples from 
https://www.gnu.org/software/emacs/manual/html_node/org/Exporting-Agenda-Views.html 

Specifically, 

(setq org-agenda-custom-commands [...] 




But the HTML, PS, and ICS files are not being created. If I'm 
visiting an Org file and run (org-icalendar-export-to-ics) then 
the ICS is generated. 

Can someone offer advice why the ICS isn't generated when I 
generate a specific agenda view?


Setting up the agenda custom commands is not related to ical 
export. Have you run org-icalendar-combine-agenda-files?


--
Jorge.




Re: [O] anyone syncing orgmode calendar with google cal, and if so how?

2015-10-05 Thread Jorge A. Alfaro-Murillo

Xebar Saram writes:

i was wondering if anyone was syncing orgmode calendar with 
google cal, and if so how? i tried this 

https://github.com/myuhe/org-gcal.el/issues 

which gave errors all the time and thus stopped being usable 


im looking for a robust solution. any ideas?


I export the agenda using org-icalendar-combine-agenda-files. If 
you have access to a server, it is enough to point 
org-icalendar-combined-agenda-file to the right location in your 
server and then adding the ics file location in google calendar 
(Other calendars/Add by URL). You can automate this with a timer:


#+BEGIN_SRC emacs-lisp
 (org-icalendar-combined-agenda-file 
 "~/public_html/calendar.ics")
 (run-with-idle-timer (* 60 60) t 
 'org-icalendar-combine-agenda-files) 
#+END_SRC


If you do not have access to a server, you could use github 
(https://pages.github.com/) or bitbucket 
(https://confluence.atlassian.com/bitbucket/publishing-a-website-on-bitbucket-221449776.html) 
to create a website for your account. Then you can point 
org-icalendar-combined-agenda-file to the repo of your website and 
commit and push every time that you export the agenda to the ics 
file. In this case change org-icalendar-combined-agenda-file 
accordingly.


#+BEGIN_SRC emacs-lisp
 (org-icalendar-combined-agenda-file 
 "/path/to/personal/website/repo/calendar.ics")

#+END_SRC

If you do not like timers, you can also automate the process 
creating an sh file:


#+BEGIN_EXAMPLE
 #!/bin/bash
 emacsclient -a '' -e "(org-icalendar-combine-agenda-files nil)"
 cd /path/to/personal/website/repo
 git add calendar.ics
 git commit -m "Update calendar"
 git push
#+END_EXAMPLE

And then using a cronjob.

Best,

--
Jorge.




Re: [O] Scheduling a meeting every week for a given time

2015-10-02 Thread Jorge A. Alfaro-Murillo

Hi Claude.

Claude Fuhrer writes:

I'm trying to add recurring events, but only for a given period 
of time. 


You should probably use org-class. See below.

For example, I would like to write: 

Project meeting,  every monday between 10:00 and 12:00 from 
1. October until 1. December 2015


%%(org-class 2015 10 1 2015 12 1 1) 10:00-12:00 Project meeting

or 

Staff conference, every friday from 15:00 to 17:00, during seven 
weeks


%%(org-class 2015 10 1 2015 11 1 5) 15:00-17:00 Staff conference

Best,

--
Jorge.




  1   2   3   >