[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/






[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/






[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)
 )