Re: [POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-04-17 Thread Gautier Ponsinet
Hello Ihor,

Ihor Radchenko  [2024-04-17 10:21 +]:
> I'd like to ask you, Org mode users, whether we should flip the default
> value of ~org-auto-align-tags~ to t or leave it as nil.

I am voting for applying the change you propose and setting the default
value of ~org-auto-align-tags~ to t.

(and thank you for all your work!)

All the best,
Gautier.



Re: Checkbox dependencies and invisible tasks

2023-04-16 Thread Gautier Ponsinet
Ihor Radchenko  (2023-04-16 11:56 +):
> It was an actual bug showed up after switching to lexical scope.
> Fixed, on bugfix.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0f6ae7296

Thank you!



Re: Checkbox dependencies and invisible tasks

2023-04-16 Thread Gautier Ponsinet
Hello Ihor,

Ihor Radchenko  (2023-04-16 11:09 +):
> As you instructed Org, checkboxes should be considered as task blockers,
> if unchecked. Then, you instructed Org to hide blocked tasks in agenda.
> Your "Test entry" is blocked by the checkbox. Thus, it is hidden in the
> agenda.

I understand. However, the docstring of the variable says:

"Instead of t, this variable can also have the value ‘invisible’.
Then blocked tasks will be invisible and only become visible when
they become unblocked.  An exemption to this behavior is when a task is
blocked because of unchecked checkboxes below it.  Since checkboxes do
not show up in the agenda views, making this task invisible you remove any
trace from agenda views that there is something to do.  Therefore, a task
that is blocked because of checkboxes will never be made invisible, it
will only be dimmed."

I don't understand how this fits with the behavior you describe.

All the best,
Gautier.



Checkbox dependencies and invisible tasks

2023-04-16 Thread Gautier Ponsinet
Hello everyone,

In an empty "emacs -Q" session, if I evaluate only the following lines:

(setq org-agenda-files '("~/agenda.org"))
(setq org-enforce-todo-checkbox-dependencies t)
(setq org-agenda-dim-blocked-tasks 'invisible)

with the following agenda.org file:

* TODO Test entry
<2023-04-16 dim.>
- [ ] a checkbox

then the entry "Test entry" does not appear in the agenda or in the
Global list of TODO items !

Am I missing or misunderstanding something?

(emacs-version: GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+
Version 3.24.36, cairo version 1.17.6) of 2023-01-03
org-version: 9.6.3)

All the best,
Gautier.



Re: Compact schedule in agenda day view

2023-02-15 Thread Gautier Ponsinet
Hello Angel,

Angel de Vicente  :
> I was too quick on the keyboard and I pressed some magic key combination
> and now my schedule for today shows in a compact way (only showing the
> appointments). I actually prefer the "expanded" way, in which I get a
> grid for the whole day (so it easier for me to quickly see if an
> appointment is in the morning or the afternoon, etc.).
>
> The problem: I don't know how to go back, and I'm not sure how this
> feature is called, so I was not successful searching for it in the
> manual.
>
> Anybody knows off the top of your head how to toggle this?

Are you looking for the key 'G' associated with the function
'org-agenda-toggle-time-grid' maybe?

All the best,
Gautier.



Re: diary-anniversary doesn'work om Mac osx 12.6.3

2023-01-30 Thread Gautier Ponsinet
Hello Renato,

Renato Pontefice  :
> * Anniversaries
> %%(diary-anniversary 1948 01 30) Arthur's birthday (%d years old)
>
> %%(diary-anniversary 2023-01-30) Arthur's birthday (%d years old)
>
>  <2023-01-30 Mon 15:53>
> Just this. The last line is made by C-u-c .
> To display the way my date are setted
>
> If I press C a a
> Emacs compose the agenda (as in the attached file, but without the entry of 
> Arthur birthday

Have you tried 'org-anniversary' instead of 'diary-anniversary'?

All the best,
Gautier.



Re: New face: org-agenda-calendar-timerange

2023-01-21 Thread Gautier Ponsinet
Ihor Radchenko  writes:
> Added to the contributor list:
> https://git.sr.ht/~bzg/worg/commit/b8096c5a
>
[ 4 more citation lines. Click/Enter to show. ]
> Now, I can apply the patch.
> Applied, onto main.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a0a30d7b6
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cb73633e2

> Done.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a7e910646

Great! Thanks Ihor & Bastien!

All the best,
Gautier.



Re: Link from orgmode file to E-Mail (using kmail or notmuch)

2023-01-21 Thread Gautier Ponsinet
Hello Alexander,

AW :
> How can I have a link in an orgmode file to an E-Mail using either a feature 
> of 
> kmail oder notmuch ?

The package "ol-notmuch" implements links to notmuch messages and "searches":
https://git.sr.ht/~tarsius/ol-notmuch .

There might be other solution, for notmuch or kmail, which I am not
aware of. I hope it helps you.

All the best,
Gautier.



New face: org-agenda-calendar-timerange

2022-12-22 Thread Gautier Ponsinet
Hello everyone,

I would like to propose the introduction of a new face:
org-agenda-calendar-timerange.
It is used to show entries with a timerange in the agenda, that is,
entries with a timestamp of the form:
<2022-12-22 Thu>--<2023-01-01 Sun>
At the moment, these entries with a timerange use the default face.
Please find attached a patch.

This is my first contribution (I just finished the copyright assignment
process with the FSF), so any feedback would be greatly appreciated.

In particular, could someone confirm that the function
org-agenda-get-blocks is the right place to apply the face? I place it
there mimicking how the faces org-agenda-calendar-event and
org-agenda-calendar-sexp are applied but I am not sure of this.

All the best,
Gautier.
>From 31f2c3fc0ed93a100ccf18472cb44e2434d3060f Mon Sep 17 00:00:00 2001
From: Gautier Ponsinet 
Date: Fri, 16 Sep 2022 22:14:11 +0200
Subject: [PATCH] Define the face org-agenda-calendar-timerange

The face org-agenda-calendar-timerange is used to show entries with a
timerange in the agenda.
---
 etc/ORG-NEWS   | 5 +
 lisp/org-agenda.el | 2 +-
 lisp/org-faces.el  | 4 
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index a4e54dc41..d7f6ba846 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -27,6 +27,11 @@ backend delegates listing generation to another package like
 ,#+LATEX_HEADER: \DefineVerbatimEnvironment{lstlisting}{Verbatim}{...whatever...}
 #+END_src
 
+*** New face: ~org-agenda-calendar-timerange~
+The face ~org-agenda-calendar-timerange~ is used to show entries with
+a timerange in the agenda.  It inherits from the default face in order
+to remain backward-compatible.
+
 * Version 9.6
 
 ** Important announcements and breaking changes
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 05f2e3669..6f7a2c19c 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7059,7 +7059,7 @@ scheduled items with an hour specification like [h]h:mm."
 (defun org-agenda-get-blocks ()
   "Return the date-range information for agenda display."
   (with-no-warnings (defvar date))
-  (let* ((props (list 'face nil
+  (let* ((props (list 'face 'org-agenda-calendar-timerange
 		  'org-not-done-regexp org-not-done-regexp
 		  'org-todo-regexp org-todo-regexp
 		  'org-complex-heading-regexp org-complex-heading-regexp
diff --git a/lisp/org-faces.el b/lisp/org-faces.el
index 0effa13a1..a6143cd21 100644
--- a/lisp/org-faces.el
+++ b/lisp/org-faces.el
@@ -668,6 +668,10 @@ month and 365.24 days for a year)."
   "Face used to show events computed from a S-expression."
   :group 'org-faces)
 
+(defface org-agenda-calendar-timerange '((t :inherit default))
+  "Face used to show entries with a timerange in the agenda."
+  :group 'org-faces)
+
 (defconst org-level-faces
   '(org-level-1 org-level-2 org-level-3 org-level-4
 		org-level-5 org-level-6 org-level-7 org-level-8))
-- 
2.39.0