Re: ox-rst still working?

2023-02-28 Thread Angel de Vicente
Hello,

just realized that it is ok if I open the file ox-rst.el and evaluate
the hole buffer.

I do have

(require 'ox-rst)

in my .emacs file and I have evaluated that a number of times, but for
some reason the rst backend is only registered with the Org dispatch
when evaluating the ox-rst.el buffer itself.

Any idea why this could be?
Thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52


smime.p7s
Description: S/MIME cryptographic signature


Re: ox-rst still working?

2023-02-27 Thread Angel de Vicente

Ihor Radchenko  writes:
> I just meant that if you have org-ref installed, it may override the
> ox-rst menu item. There is a way to solve this, but I am not sure if the
> problem is originated from this guess of mine.

Ah, ok. No, I don't have org-ref installed.

-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52


smime.p7s
Description: S/MIME cryptographic signature


Re: ox-rst still working?

2023-02-27 Thread Angel de Vicente
Hello,

Ihor Radchenko  writes:

> Works on my side with the latest Org.

thanks for the update.

> Note that ox-rst menu clashes with default org-ref menu.

Not sure what to make out of this. I guess this is the problem in my
side, but how do you use the ox-rst menu then (or you don't use the
dispatcher menu and invoke directly the rst export command?)

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52


smime.p7s
Description: S/MIME cryptographic signature


ox-rst still working?

2023-02-24 Thread Angel de Vicente
Hello,

I was trying to export an .org file to .rst. I have ox-rst 20200815.1511
installed, and I have run (require 'ox-rst), but despite this, there is
no option for rsT in the Org Export Dispatcher. Did I miss something to
make it work?

Emacs version: 28.2
Orgmode verion: 9.1.3

Thanks,
-- 
Ángel de Vicente -- (GPG: 0x64D9FDAE7CD5E939)
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: Compact schedule in agenda day view

2023-02-18 Thread Angel de Vicente
Hello,

Marcin Borkowski  writes:

> And you could have found it out yourself with `C-h l' (`view-lossage').
> `C-h m' (`describe-mode') and `C-h k' (`describe-key') are also useful

thanks for the tips. I had used 'view-lossage' in the past, but I had
forgotten about it... :-)

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/

 GPG: 0x8BDC390B69033F52
-
AVISO LEGAL: Este mensaje puede contener información confidencial y/o 
privilegiada. Si usted no es el destinatario final del mismo o lo ha recibido 
por error, por favor notifíquelo al remitente inmediatamente. Cualquier uso no 
autorizadas del contenido de este mensaje está estrictamente prohibida. Más 
información en: https://www.iac.es/es/responsabilidad-legal
DISCLAIMER: This message may contain confidential and / or privileged 
information. If you are not the final recipient or have received it in error, 
please notify the sender immediately. Any unauthorized use of the content of 
this message is strictly prohibited. More information:  
https://www.iac.es/en/disclaimer



Re: Compact schedule in agenda day view

2023-02-15 Thread Angel de Vicente
Hello,

Angel de Vicente  writes:

> Anybody knows off the top of your head how to toggle this?

Sorry for the noise. "G" is the magic letter I was looking for.

Cheers,
-- 
Ángel de Vicente -- (GPG: 0x64D9FDAE7CD5E939)
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Compact schedule in agenda day view

2023-02-15 Thread Angel de Vicente
Hello,

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?

Many thanks,
-- 
Ángel de Vicente -- (GPG: 0x64D9FDAE7CD5E939)
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: Do not show a TODO item in the global TODO list until certain date?

2022-10-21 Thread Angel de Vicente
Hello, 

Ihor Radchenko  writes:

> Try the following adjusted version:
>
> (defun org-agenda-skip-before-SHOWFROMDATE-property ()
>   "Skip agenda item if :SHOWFROMDATE: property is set and the day is before 
> it"
>   (when-let* ((showfromdate (if (bound-and-true-p org-ql--current-element)
> (org-element-property :SHOWFROMDATE 
> (org-element-lineage org-ql--current-element '(headline) t))
>   (org-entry-get (point) "SHOWFROMDATE")))
>   (showfromdate (unless (seq-empty-p showfromdate) (ts-parse-org 
> showfromdate)))
> (currenttime (ts-now)))
> (when (ts< currenttime showfromdate)
>   (or (outline-next-heading) (point-max)

Fantastic. It does work now beautifully.

[I was about to tell you that it was still not working, because I was
still trying with the following TODO item:

,
| ** TODO test   :personal:
| 
|:PROPERTIES:
|:SHOWFROMDATE: 2022-10-16
|:END:
`

and then I realized that the empty line before :PROPERTIES: was breaking
it. With no empty line it works fine (I should've used
org-command-set-SHOWFROMDATE-property from the beginning, which sets the
PROPERTIES in the right format).

,
| ** TODO test   :personal:
|:PROPERTIES:
|:SHOWFROMDATE: 2022-10-16
|:END:
`

Many thanks for your help. My TODO list is going to become a lot cleaner
from now!

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/
-
AVISO LEGAL: Este mensaje puede contener información confidencial y/o 
privilegiada. Si usted no es el destinatario final del mismo o lo ha recibido 
por error, por favor notifíquelo al remitente inmediatamente. Cualquier uso no 
autorizadas del contenido de este mensaje está estrictamente prohibida. Más 
información en: https://www.iac.es/es/responsabilidad-legal
DISCLAIMER: This message may contain confidential and / or privileged 
information. If you are not the final recipient or have received it in error, 
please notify the sender immediately. Any unauthorized use of the content of 
this message is strictly prohibited. More information:  
https://www.iac.es/en/disclaimer



Re: Habit tracking (add "DONE" state with configurable date/time)

2022-10-04 Thread Angel de Vicente



Ihor Radchenko  writes:

> org-todo-yesterday

:-) fantastic. Not configurable but certainly enough for my purposes. 

Many thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Habit tracking (add "DONE" state with configurable date/time)

2022-10-04 Thread Angel de Vicente
Hello,

I'm lately finding myself in this situation: I have a number of habits
that I track, and I want to mark one of them to "DONE", but registering
not the date when I change its state, but some other date/time (this
usually happens, for example, with my "sports" habit, which I do late at
night, so it is only next day when I turn on the computer that I can
change its state, but I want to register the state change date/time as
that of the previous day).

I thought that `C-u C-c C-t' might do this, but that apparently lets me
change the state but not the date.

Any ideas? Thanks
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: Do not show a TODO item in the global TODO list until certain date?

2022-09-23 Thread Angel de Vicente
Hello,

Bastien  writes:

>> As per the example I was giving, I don't want that entry to be scheduled
>> for October 16 (and thus clutter my agenda view), I just want it to be
>> visible in my Global TODO list from that date, so then, depending on how
>> busy I'm around that date, then I can decide when to schedule it for.
>
> Another option is to define an agenda view that only shows TODO items
> for today, with `org-agenda-span' set to 1 --- something like this:

thanks. I tried, but that doesn't seem to be what I was looking for (or
perhaps I missed something). In my case I have many TODO items without a
date, and I don't want to assign a specific date to them. I simply want
that they are hidden from the Global TODO list until a specific date.

[I can assign a date to them, but then it will look like I have to do
them on that date. Ideally I would like them to be without a date, so
they don't show up in the agenda, only in the global TODO list, but have
a field =skip_until= or similar, so they will be hidden until then]

Thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Tel.: +34 922-605-747
 Web.: http://research.iac.es/proyecto/polmag/
-
AVISO LEGAL: Este mensaje puede contener información confidencial y/o 
privilegiada. Si usted no es el destinatario final del mismo o lo ha recibido 
por error, por favor notifíquelo al remitente inmediatamente. Cualquier uso no 
autorizadas del contenido de este mensaje está estrictamente prohibida. Más 
información en: https://www.iac.es/es/responsabilidad-legal
DISCLAIMER: This message may contain confidential and / or privileged 
information. If you are not the final recipient or have received it in error, 
please notify the sender immediately. Any unauthorized use of the content of 
this message is strictly prohibited. More information:  
https://www.iac.es/en/disclaimer



Re: Do not show a TODO item in the global TODO list until certain date?

2022-09-15 Thread Angel de Vicente
Hello,

Ihor Radchenko  writes:

> Also, I am doing something similar in my personal config using
> SHOWFROMDATE property. See
> https://github.com/yantar92/emacs-config/blob/master/config.org#properties
> for inspiration.

I tried the following but without success... my Emacs Lisp lack of
knowledge is showing here...

I copied your code from
https://github.com/yantar92/emacs-config/blob/master/config.org#properties
into my .emacs and eval-ed it.
,
| (add-to-list 'org-default-properties "SHOWFROMDATE")
| (bind-key "C-c C-f" #'org-command-set-SHOWFROMDATE-property org-mode-map)
| (bind-key "C-c C-f" #'org-command-set-SHOWFROMDATE-property 
org-agenda-mode-map)
| (add-to-list 'org-agenda-bulk-custom-functions '(?F 
org-command-set-SHOWFROMDATE-property))
| 
| (defun org-command-set-SHOWFROMDATE-property ( arg)
|   "Command to set :SHOWFROMDATE property for the org entry at point.
|If NOT-IN-AGENDA is not nil, do not check whether we are in agenda 
now."
|   (interactive "P")
|   (if (equal major-mode 'org-agenda-mode)
|   (progn
|   (org-agenda-check-no-diary)
|   (let* ((marker (or (org-get-at-bol 'org-marker)
|  (org-agenda-error)))
|  (buffer (marker-buffer marker))
|  (pos (marker-position marker))
|  (inhibit-read-only t)
|  ts)
| (org-with-remote-undo buffer
|   (with-current-buffer buffer
| (widen)
| (goto-char pos)
| ;; (org-fold-show-context 'agenda)
| (funcall-interactively 'org-command-set-SHOWFROMDATE-property arg)
| (setq ts (org-entry-get (point) "SHOWFROMDATE")))
|   (org-agenda-show-new-time marker ts " P"
| (let ((property "SHOWFROMDATE"))
|   (if (equal arg '(4))
| (org-entry-delete (point) property)
|   (let ((value (org-read-property-value property))
| (fn (cdr (assoc-string property org-properties-postprocess-alist 
t
| (setq org-last-set-property property)
| (setq org-last-set-property-value (concat property ": " value))
| ;; Possibly postprocess the inserted value:
| (when fn (setq value (funcall fn value)))
| (unless (equal (org-entry-get nil property) value)
|   (org-entry-put nil property value)))
| 
| (defun org-set-SHOWFROMDATE-property (PROMPT  args)
|   "Read :SHOWFROMDATE: property."
|   (org-read-date nil nil nil PROMPT))
| 
| (add-to-list 'org-property-set-functions-alist '("SHOWFROMDATE" . 
org-set-SHOWFROMDATE-property))
| 
| (defun org-agenda-skip-before-SHOWFROMDATE-property ()
|   "Skip agenda item if :SHOWFROMDATE: property is set and the day is before 
it"
|   (when-let* ((showfromdate (if (bound-and-true-p org-ql--current-element)
| (org-element-property :SHOWFROMDATE 
(org-element-lineage org-ql--current-element '(headline) t))
|   (org-entry-get (point) "SHOWFROMDATE")))
|   (showfromdate (unless (seq-empty-p showfromdate) (ts-parse-org 
showfromdate)))
| (currenttime (ts-now)))
| (ts< currenttime showfromdate)))
`


Then, I defined a test custom command:
,
| (setq org-agenda-custom-commands
|   '(("h" "Agenda and tasks"
|((agenda "" ((org-agenda-skip-function 
'org-agenda-skip-before-SHOWFROMDATE-property)))
|   (alltodo "" ((org-agenda-skip-function 
'org-agenda-skip-before-SHOWFROMDATE-property)))
`

together with a test TODO item:

,
| ** TODO test   :personal:
| 
|:PROPERTIES:
|:SHOWFROMDATE: 2022-10-16
|:END:
`

But the "test" still shows in the TODO list. Am I missing something
basic here?

Thanks for your help. Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: Do not show a TODO item in the global TODO list until certain date?

2022-09-14 Thread Angel de Vicente
Hello,

Ihor Radchenko  writes:

> Check out org-agenda-skip-function (see A.7 Special Agenda Views section
> of the manual).
>
> Also, I am doing something similar in my personal config using
> SHOWFROMDATE property. See
> https://github.com/yantar92/emacs-config/blob/master/config.org#properties
> for inspiration.

thanks for the pointers. I will check both alternatives and see which
one suits me best.
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: Do not show a TODO item in the global TODO list until certain date?

2022-09-14 Thread Angel de Vicente
Hello,

"Rohit Patnaik"  writes:

>> (not a scheduled one, since I don't need to do it on a particular date)
>
> The `SCHEDULED' property is in fact the correct way to indicate that you wish 
> to
> hide the task from the global to-do list until a particular date. `SCHEDULED'
> indicates the day upon which you wish to start working on the task. If 
> there's a
> particular date by which the task has to be completed, the `DEADLINE' property
> is appropriate.

Thanks for the pointer, but maybe I use SCHEDULED items a bit different,
since I want only a few items in my agenda view, only those that I
really intend to start working on the given date.

As per the example I was giving, I don't want that entry to be scheduled
for October 16 (and thus clutter my agenda view), I just want it to be
visible in my Global TODO list from that date, so then, depending on how
busy I'm around that date, then I can decide when to schedule it for.

I hope it makes sense (and there is some way to accomplish it).

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-14 Thread Angel de Vicente
Hello,

Angel de Vicente  writes:

> great. That looks very promising, and without the need to change the
> source code. I will try it later on and report back.

I ended up with this (and going back to unmodified source code for
org-super-agenda, and it now works beautifully. 

,
| (setq own-agenda-groups '((:name "Efemerides" :tag "efemerides" :order 1)
|  (:name "IMPORTANT" :priority "A" :transformer
| (--> it
|  (propertize it 'face
|  '(:foreground "red" 
:background "green")))
| :order 1)
|  (:name "Astrophysics" :tag "astrophysics" :order 3)
|  (:name "Hacking" :tag "hacking" :order 3)
|  (:name "Admin" :tag "admin" :order 4)))
| 
| (setq org-agenda-custom-commands
|   '(("h" "Agenda and tasks"
|((agenda "" ((org-super-agenda-groups
|(append
| '((:todo "DONE" :discard)
|   (:name "Schedule" :time-grid t :transformer
|  (--> it
|   (propertize it 'face
|   '(:foreground "yellow")
| own-agenda-groups
|   (alltodo "" ((org-super-agenda-groups
| (append
|  '((:todo "DONE" :discard))
|  own-agenda-groups  
`

Many thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-14 Thread Angel de Vicente
Hello,

Christophe Schockaert  writes:

> If I am right (I am playing with the config, it’s not in my daily setup yet 
> for
> now), I could achieve this by defining "org-agenda-custom-commands" as shown 
> in
> the "Projects" example :
> https://github.com/alphapapa/org-super-agenda/blob/master/examples.org#projects.
>
> In that case, "org-super-agenda-groups" is defined differently according to 
> the
> context, so the "time-grid" captures the timed entries in its scope. Then,
> "org-super-agenda-groups" applies to the TODOs in the "todo" or "alltodo"
> context (I used the latter one) where I don’t define the "time-grid"
> selection. Or, maybe I applied it to the "alltodo" only, and discarded it for
> the agenda grid to work only on the TODOs. I don’t remember exactly, however
> this might be a workaround to try that does not need an update of the code,
> especially if it is not expected to be stable and supported by the author.

great. That looks very promising, and without the need to change the
source code. I will try it later on and report back.

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Do not show a TODO item in the global TODO list until certain date?

2022-09-14 Thread Angel de Vicente
Hello,

I'm wondering if it is possible to have a TODO item, but to not show it
in the global TODO list until certain date?

For example: I need to get a new insurance for my motor bike, but
insurance companies will not give me a quote until October 16, so I
would like to create a TODO entry (not a scheduled one, since I don't
need to do it on a particular date), but to hide it from view until
October 16, since there is no point on trying to do it before that, and
it clutters my TODO list.

I checked the Org manual and didn't see anything obvious, but maybe
there is some way?

Thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-13 Thread Angel de Vicente
Hello,

> This looks correct. The only suspicious group is the one with
> :time-grid. Time grid is not supported in todo list by vanilla
> org-agenda. I am not sure how well org-super-agenda handles it.
>
> I'd try to remove the "Schedule" group for TODO agenda. If it helps the
> situation, you may consider reporting the issue to org-super-agenda
> author at https://github.com/alphapapa/org-super-agenda/

thanks for the help. It turns out that this was already an issue in
org-super-agenda
(https://github.com/alphapapa/org-super-agenda/issues/212). User tuh
provided a possible fix
(https://github.com/alphapapa/org-super-agenda/pull/221), which has not
been accepted yet since apparently perhaps it can break other things,
but in my case it looks like it is working just fine, so I'll risk it
:-)

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-13 Thread Angel de Vicente
Hello,

Ihor Radchenko  writes:

> How do you customize your org-super-agenda-groups variable?

via customize-variable, which sets this in my custom-set-variables in my .emacs:

,
|  '(org-super-agenda-groups
|'((:name "Schedule" :time-grid t :transformer
| (--> it
|  (propertize it 'face
|  '(:foreground "yellow"
|  (:name "Important" :priority "A")
|  (:name "POLMAG" :tag "polmag")
|  (:name "Astrophysics" :tag
| ("astrophysics"))
|  (:name "Personal" :tag "personal")
|  (:priority<= "B" :order 1)))
`
 
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-12 Thread Angel de Vicente
Hello,

Ihor Radchenko  writes:

> Could you please elaborate what you mean by "organize"?

Maybe the best is an image... If you look at
https://github.com/alphapapa/org-super-agenda/blob/master/images/screenshots/index.org,
you can see that the TODO items for a given date in the agenda are
neatly organized by using org-super-agenda into user-defined groups
(Important, Personal, etc.).

I got this working fine, but then I have a long list of TODO items with
no scheduled date. I was hoping that org-super-agenda would also work on
those items, so that similar grouping would be applied to them, but I
don't know if this is not possible or I'm missing something.

As an example, my agenda now looks like the following, where the
grouping is not applied to the Global list of TODO items (which I would
like):

,
| Day-agenda (W37):
| Tuesday13 September 2022
| 
|  Schedule
|6:35.. now - - - - - - - - - - - - - - - - - - - - - - - - 
-
|8:00.. 
|   10:00.. 
|   12:00.. 
|   14:00.. 
|   16:00.. 
|   diary:  17:30-18:30 Timaginas Teatro 
|   18:00.. 
|   20:00.. 
| 
|  Important
|   TODO_personal:Scheduled:  TODO [#A] Revisión óptica
:personal:
| 
|  Personal
|   TODO_personal:Scheduled:  TODO Call city hall  
:personal:
| 
| 
===
| Global list of TODO items of type: ALL
| 
|  Schedule
|   TODO_wprogress:TODO [#A] P-CORONA (open source version) [2/11]
:polmag:
|   TODO_personal:TODO [#B] Oculista Alex   
:personal:
|   TODO_personal:TODO [#B] Imprimir detalles Pelayo
:personal:
|   TODO_wprogress:TODO Leer:   
:astrophysics:
|   TODO_wprogress:TODO PORTA: Prepare citation file  
:polmag:
`

-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




org-super-agenda global list of TODO items

2022-09-12 Thread Angel de Vicente
Hello,

I just learnt about org-super-agenda today and it looks brilliant to
keep my agenda a bit better organized. But I tend to use the "C-c a h"
to view the daily agenda and the tasks. I managed to organize my todo
items in the daily agenda view without issues, but I'm not sure what I
have to do to organize the items in the "Global list of TODO items". Is
this possible? Any examples to point me in the right direction?

Many thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: Timestamp with repeater interval AND END DATE?

2022-06-10 Thread Angel de Vicente
Hello,

Robert Pluim  writes:

>>>>>> On Tue, 31 May 2022 15:36:01 +0100, Angel de Vicente 
>>>>>>  said:
> Angel> ,
> Angel> | *** Badminton 20:45-22:15
> Angel> | <%%(and (diary-cyclic 7 2022 05 30) (diary-block 2022 05 30 
> 2022 06 30))>
> Angel> `
>
> Angel> (the s-exp entry above assumes 'calendar-date-style' is set to 
> 'iso')
>
> If you use `org-cyclic' and `org-block' you donʼt need to worry about
> that anymore.

I tried (briefly :-)) to look for some place where org-cyclic and
org-block are documented, but failed. But I tried, and they do work
nicely. So they always assume 'iso' style regardless of the value of
'calendar-date-style'? 

Thanks,
-- 
Ángel de Vicente 

Research Software Engineer (Supercomputing and BigData)




Re: Timestamp with repeater interval AND END DATE?

2022-05-31 Thread Angel de Vicente
Hello,

Eric S Fraga  writes:

> On Tuesday, 31 May 2022 at 14:46, Angel de Vicente wrote:
>> Did I miss something in the manual?
>
> No, you did not miss anything.  What you want cannot be done with a
> single time stamp.  Instead, there are two alternatives:
>
> 1. use a diary s-exp (see info manual) which does allow this or
> 2. use org-clone-subtree-with-time-shift: create a single entry and then
>copy it as many times as desired.

in case it can be useful to somebody else, I ended up with an entry like
this, that does the job:

,
| *** Badminton 20:45-22:15
| <%%(and (diary-cyclic 7 2022 05 30) (diary-block 2022 05 30 2022 06 30))>
`

(the s-exp entry above assumes 'calendar-date-style' is set to 'iso')

Cheers,
-- 
Ángel de Vicente

Research Software Engineer (Supercomputing and BigData)
Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Timestamp with repeater interval AND END DATE?

2022-05-31 Thread Angel de Vicente
Hello,

I have plenty of timestamps with a repeater interval
(https://orgmode.org/manual/Timestamps.html), but on reading the manual
I couldn't find how to specify an END DATE, so for example, "prepare
homework for students" gets repeated every week, but not beyond June
(the last month of the school year here). Did I miss something in the
manual?

Thanks,
-- 
Ángel de Vicente

Research Software Engineer (Supercomputing and BigData)
Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: [O] Is it possible to sort checkboxes?

2017-11-07 Thread Angel de Vicente
Hi,

never mind. As so many other times (blush) I figured out the answer
right after posting the question. I was trying with a test file like the
following and with the org-sort (C-c ^) command. I assumed I had to
issue the command in the TODO line, which tells me there is "Nothing to
sort". Actually it looks like I can do it in any of the Task lines and
it works exactly as I wanted.

Orgmode to rule the world! :-)

,
| * Test
| 
| ** TODO Work on item 1 [2/12]
|   + [ ] Task a
|   + [ ] Task b
|   + [ ] Task c
|   + [ ] Task d
|   + [ ] Task f
|   + [ ] Task h
|   + [ ] Task i
|   + [ ] Task j
|   + [ ] Task k
|   + [ ] Task l
|   + [X] Task e
|   + [X] Task g
`

-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] Is it possible to sort checkboxes?

2017-11-07 Thread Angel de Vicente
Hi,

lately I'm using checkboxes a lot. They are fine, but I tend to have items
with many checkboxes in them. As I work on an item I check some of them
as done C-c C-c, but since I have many checkboxes and I don't always
work in them in order, I end up having many checkboxes around, some
checked as done, some unchecked.

What I'm trying to find is a way to automatically move a checkbox to the
bottom of the list when I check it, so that all unchecked items are at
the beginning and all the checked ones at the end. Any ideas?

Many thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Is it possible for a TODO item not to be an outline item?

2017-10-11 Thread Angel de Vicente
Hi Florian,

Florian Beck <f...@fbeck.net> writes:
> On 08.10.2017 13:40, Angel de Vicente wrote:
>> So basically I would like to have that TODO item but somehow without
>> creating a new section. Is it possible?
>
> Use
>
> ---
> bla bla bla
> # TODO: fix installation
> bla bla bla
> ---
>
> and
>
> M-x org-occur-in-agenda-files (which is bound to C-a /).

Thanks for the suggestion, but this won't be considered a TO DO item by
org, so not what I'm looking for (I won't be able, for example, to
assign priorities, or look for TO DO only in this buffer, record the
date automatically when closing the TO DO item, etc.). For the moment
I'll stick with the org-inlinetask approach.

Cheers,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Is it possible for a TODO item not to be an outline item?

2017-10-08 Thread Angel de Vicente
Hi,



Marco Wahl  writes:
> Georgiy Tugai  writes:
>
>> Inline tasks come to mind. Here's your example with inline tasks:

>> The command to insert an inline task is 'org-inlinetask-insert-task'; I
>> believe that there is no default binding.
>
> There is.  In an Org file
>
> C-h w org-inlinetask-insert-task
>
> yields typically the message
>
> org-inlinetask-insert-task is on C-c C-x t


Thanks Georgiy and Marco.

I just put (require 'org-inlinetask) in my .emacs file and the mentioned
function and keybinding are available. It is not particularly pretty how
inline tasks show in the file, but it is a solution.

Many thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] Is it possible for a TODO item not to be an outline item?

2017-10-08 Thread Angel de Vicente
Hi,

I'm starting to use org for notes, and I realize that I don't know how
to create a TODO item but without it being an outline item. Sorry if
this is not the proper terminology. Let me explain what I would like to
have. Let's say I have a file where I want to keep details about a new machine
installation. I would have something like:

,
| * Installation of PC X
| 
| ** Hardware configuration
| blah,blah,blah,
| 
| ** Software configuration
| I intall app x, no trouble
|
| I try to install app y, but no luck
| *** TODO App Y is giving trouble, fix
| 
| I install app z, no trouble 
`

For the "software configuration" I just type notes of what I'm doing,
and I would like to have TODO items for unfinished tasks.

If I write something like above when I collapse the TODO item, all the
information about the app Z collapses with it. I know that I could
create another outline level for each of the apps (or at least for "app
y" and "app z"), but that will force me to create extra levels whenever
I want to insert a TODO item in the middle of a section.

So basically I would like to have that TODO item but somehow without
creating a new section. Is it possible?

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Figure not exporting properly in Beamer

2013-05-16 Thread Angel de Vicente
Hi,

Sebastien Vauban sva-n...@mygooglest.com
writes:

 Angel de Vicente wrote:
 I'm using Org 7.8.03 and I have a test file to create a Beamer
 presentation. At some point I have:

 ** Images

 #+CAPTION: Sample AMR
 #+label:   fig:amr-sample
 [[file:amr.png]]

 Dunno if it will fix all of your problem, but you should use

   #+name: fig:amr-sample

Well I use #+label and I see no problem, but that didn't solve the
issue. Looking in the org code, if I comment the line checking for the
inline-images plist, then all is in order, and it gets exported as a figure.

   (cond ((and imgp)
;  (plist-get org-export-latex-options-plist :inline-images))
  ;; OK, we need to inline an image
  (insert
   (org-export-latex-format-image raw-path caption label attr 
shortn)))

The funny thing is that I don't think I ever changed the
org-export-latex-options-plist, at least not intentionally, as I
wouldn't now how to do it from inside the .org file and previously I
got the figure properly exported.

In any case, can anybody tell me how I set the inline-images property in
the .org file, so I can uncomment that line in org-latex.el

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] Figure not exporting properly in Beamer

2013-05-15 Thread Angel de Vicente
Hi,

I'm using Org 7.8.03 and I have a test file to create a Beamer
presentation. At some point I have:

** Images

#+CAPTION: Sample AMR
#+label:   fig:amr-sample
[[file:amr.png]]

and a few weeks ago, after processing this I got in the tex file:

-
\frametitle{Images}
\label{sec-1-3}


\begin{figure}[htb]
\centering
\includegraphics[width=.9\linewidth]{amr.png}
\caption{\label{fig:amr-sample}Sample AMR}
\end{figure}
\end{frame}
-

Today I tried again, but instead I get:

--
\frametitle{Images}
\label{sec-1-3}


\href{t}{file:amr.png}
\end{frame}
--

I probably forgot something that I did last time, but I cannot see
it. Any hints?

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Examples of orgmode+beamer presentations?

2013-04-17 Thread Angel de Vicente
Hi,

thanks everybody for the tips and suggestions. In the end, I mostly
googled around, took what I liked from here and there, and ended up with
something good enough for the time being (later on I will tweak it
again, mainly for the greying-out of images, which I didn't do it right
now, but should be easy replicating frames).

In case it can be useful to someone else, I put the example here:
http://angel-de-vicente.blogspot.com.es/2013/04/presentations-with-org-mode-beamer.html

(in Linux to view the embedded video you need Acroread 9.4.1 or later
(or so I think). In Windows or Mac, I have no idea if the embedded video
will work.

Cheers,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] Examples of orgmode+beamer presentations?

2013-04-15 Thread Angel de Vicente
Hi,

I'm trying to find examples of presentations made with orgmode and
beamer. Ideally I would like to see sample presentations first (in PDF),
so that I can get one that looks as close to what I would need, and then
I would like to get the source code for it. Are there any good templates
out there? (Something similar to
http://draketo.de/light/english/politics-and-free-software/recipes-presentations-beamer-latex-using-emacs-org-mode,
but hopefully with more options).

Is there anything out there?

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Examples of orgmode+beamer presentations?

2013-04-15 Thread Angel de Vicente
Hi,

Ista Zahn istaz...@gmail.com writes:
 I'm not clear on whether you are looking for templates or examples,

anything will do

 but if the later, maybe my slides at
 http://projects.iq.harvard.edu/rtc/event/introduction-r will be of
 some interest. Scroll down to the bottom and download the .zip file.
 The rintro.pdf is the beamer export of the rintro.org file.

this looks very nice, thanks a lot. I will look into it and try to
modify the footnote, some colours, etc. and see if I can get to where I
want to go.

Thanks,
-- 
Ángel de Vicente
http://www.iac.es/galeria/angelv/  
-
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protecci�n de 
Datos, acceda a http://www.iac.es/disclaimer.php
WARNING: For more information on privacy and fulfilment of the Law concerning 
the Protection of Data, consult http://www.iac.es/disclaimer.php?lang=en




Re: [O] automatically mark DONE when all sub checkboxes are checked

2012-02-10 Thread Angel de Vicente
Hi,

John Hendy jw.he...@gmail.com writes:
 I don't get any error, but it doesn't work. Also, the example in worg
 had an extra parenthesis at the end of it... not sure if that's
 goofing it up. I don't know lisp, so I just deleted one of the last
 parentheses and loading my .emacs stopped complaining. Not sure if
 that last trailing one was the offender or not. In any case, this is
 not working for me on an up to date org install (pulled yesterday).

Perhaps you are trying a TODO heading that doesn't have one of the
progress indicators? 

I have just tried it, and with TODOs headings as follows works OK. If
you don't put the progress indicators then it doesn't work, since the
function is looking for the 100% text or for n/n (which indicates that
you have completed all the tasks).

* TODO try [%]

* TODO try [/]

Actually, I wonder why this is not the default behaviour. It looks
natural that if a task is made of checkboxes and you complete all of
them the task should be DONE.

Cheers,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] org-version reported as 6.33x after upgrading to the latest and greatest with Emacs' Package Manager

2012-01-31 Thread Angel de Vicente
Hi,

Jambunathan K kjambunat...@gmail.com writes:

 Angel de Vicente ang...@iac.es writes:
 which looks good, but if I do M-x org-version I get:
 Org-mode version 6.33x

[...]


 1. Did you restart Emacs?

yes

 2. If you remove (require 'org-install) does it help?

no

 3. Emacs-24.1 (currently in pre-test) has the latest and greatest Org.

but for the moment I would prefer not to upgrade Emacs.

Any idea on how to test if org is getting confused with 6.33 beyond
reporting that as its version?

Thanks,
-- 
Ángel de Vicente
http://www.iac.es/galeria/angelv/  
-
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protecci�n de 
Datos, acceda a http://www.iac.es/disclaimer.php
WARNING: For more information on privacy and fulfilment of the Law concerning 
the Protection of Data, consult http://www.iac.es/disclaimer.php?lang=en




Re: [O] org-version reported as 6.33x after upgrading to the latest and greatest with Emacs' Package Manager

2012-01-31 Thread Angel de Vicente
Hi,

Jambunathan K kjambunat...@gmail.com writes:

 Any idea on how to test if org is getting confused with 6.33 beyond
 reporting that as its version?

 In your .emacs file, *just before* package-initialize add this and
 restart Emacs.

 (when (featurep 'org)
   (error Some mysterious force has already loaded org. Investigate why
   this is so.))

Yes, there were mysterious forces... :-)

As I recall it I had two problems in my .emacs file:

1) a line:

(find-file ~/org/MAIN.org)

2) and 
;; Remember-Mode
(org-remember-insinuate)
(setq org-directory /home/angelv/org/)
(setq org-default-notes-file (concat org-directory /notes.org))
(define-key global-map \C-cr 'org-remember)

Those were forcing the bundled org version to load.

Issue solved by:

* Moving line in 1) right after the (package-initialize) right at the
bottom of my .emacs

* Getting rid of lines in 2) and substituting them by:
(setq org-directory /home/angelv/org/)
(setq org-default-notes-file (concat org-directory notes.org))
(define-key global-map \C-cc 'org-capture)

* Putting out of the way the directory where the bundled ORG was
  (probably not needed, but for extra peace of mind)


BUT, I still could not capture anything with C-cc, and I got an error
about org-called-interactively-p not being valid/defined.. (don't
remember now). It looks like the new org was byte-compiled when the old
org was active and there were some issues in there. Deleting all the
.elc files, making sure that only the new org was active and then
byte-compiling the .el files again did the trick.

Cheers,
-- 
Ángel de Vicente
http://www.iac.es/galeria/angelv/  
-
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protecci�n de 
Datos, acceda a http://www.iac.es/disclaimer.php
WARNING: For more information on privacy and fulfilment of the Law concerning 
the Protection of Data, consult http://www.iac.es/disclaimer.php?lang=en




Re: [O] Org without X on Debian

2012-01-31 Thread Angel de Vicente
Hi,

Karl ignora...@gmx.de writes:
 Does anybody use Org in a non-graphical environment? 
 Is it possible to make the (all) keys work?

I use it inside GNUscreen running in a gnome-terminal. I have also tried
(for a limited time) to make all the keys work but to no avail. If you
find more information on a possible solution for this, I think many
would be interested.

Cheers,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] org-version reported as 6.33x after upgrading to the latest and greatest with Emacs' Package Manager

2012-01-30 Thread Angel de Vicente
Hi,

I'm running Emacs 23.2.1 (bundled with Ubuntu 11.04), and until now I
was running the org-mode package that came with it (6.33x). Today I
decided to update to the latest org version, and I followed the
instructions at http://orgmode.org/worg/org-faq.html#installing-via-elpa

When I do M-x locate-library RET org I get:
Library is file ~/.emacs.d/elpa/org-20120129/org.elc

which looks good, but if I do M-x org-version I get:
Org-mode version 6.33x

In my .emacs file I have 
;; Org-mode
;;
(require 'org-install)
(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
(define-key global-map \C-cl 'org-store-link)
(define-key global-map \C-ca 'org-agenda)
(define-key global-map \C-cb 'org-iswitchb)
(global-font-lock-mode 1)
(setq org-log-done t)

and at the end of the file

(setq load-path (cons ~/Emacs-custom load-path))
(require 'package)
(package-initialize)

Did I miss something else that I should do? I was planning on getting
rid of the version that comes with Emacs, but I thought I should ask
first...

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] Appointment reminders in Orgmode

2011-10-06 Thread Angel de Vicente
Hi,

I'm moving all my appointments to OrgMode, and I'm trying to find a way
to get reminders of those appointments (something like the
AppointmentMode http://www.emacswiki.org/emacs/AppointmentMode).

Is there something that can be made to work with Org?

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Appointment reminders in Orgmode

2011-10-06 Thread Angel de Vicente
Hi,

Carsten Dominik carsten.domi...@gmail.com writes:
 I'd say this is clearly within the minimum self-search effort
 expected before asking on the list, don't you agree?

indeed. Shame on me...

I had looked in the org manual (texinfo) for the word appointment but
didn't find anything (but that's also my fault, since apparently I
looked only in the headlines and not in the whole manual... need to get
a coffee, I think).
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Web bookmarks in ORG?

2011-07-15 Thread Angel de Vicente
Bastien b...@altern.org writes:

 Hi Angel,

 maybe you can have a look at GNU recutils:

   http://www.gnu.org/s/recutils/

 I'd be curious to know if recutils has been used to store
 and manage bookmarks, but I think it's a natural fit.

 We had some discussion with the author, Jose E. Marchesi, 
 who is an this list -- and recutils/org integration is not
 impossible either.

Thanks for the suggestion. I'm very busy right now, so I didn't look at
this, but I will certainly come back to it, and report back. (There was
also a Emacs Database, EDB, which I never used, but which perhaps could
also be used, but I'm not sure if that is still maintained...)

Cheers,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] Web bookmarks in ORG?

2011-07-11 Thread Angel de Vicente
Hi,

Is there anyone using ORG for keeping web bookmarks? Basically I'm
looking at Delicious-like functionality, where I just put tags to web
addresses and I can search the bookmarks either for their name or with
tags. 

I have looked at webjump and w3m but they seem to keep old-fashioned
ways for organizing the bookmark file. I just thought that perhaps this
could be done with Org. Any ideas?

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Web bookmarks in ORG?

2011-07-11 Thread Angel de Vicente
Hi,

Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 Angel de Vicente ang...@iac.es writes:

 Is there anyone using ORG for keeping web bookmarks? Basically I'm
 looking at Delicious-like functionality, where I just put tags to web
 addresses and I can search the bookmarks either for their name or with
 tags.

 For a while, I was keeping an Org file with bookmarks organized
 del.icio.us-style, eg:


 --8---cut here---start-8---
 * [[http://url1.com][Title1]] :tag1:tag2:tag3:

 Notes...

 * [[http://url2.com][Title2]] :tag1:tag2:tag3:

 Notes...

 * ...
 --8---cut here---end---8---

I guess I was looking for something a bit more automatic... I would like
to have at least two of the delicious functionalities:

1) to get automatic category suggestion (or at least to get them
completed when pressing TAB or similar), and

2) a nice way to look for all the bookmarks that are in category X

I was looking to have it done perhaps with BBDB, instead, but I wouldn't
like to get a mess when writing mails. 

I'm open to suggestions,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Web bookmarks in ORG?

2011-07-11 Thread Angel de Vicente
Hi,

Jambunathan K kjambunat...@gmail.com writes:

 Hi,

 Is there anyone using ORG for keeping web bookmarks? Basically I'm
 looking at Delicious-like functionality, where I just put tags to web
 addresses and I can search the bookmarks either for their name or with
 tags. 

 Look at quickurl. I have been using it for quite sometime now. This is
 not Org related.

Thanks, but I'm specifically looking for a way to organize bookmarks
with tags for easy storing/searching, and as far as I can tell, quickurl
does not provide anything in that respect?

Cheers,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [Orgmode] Re: C-c l failing to create link in BBDB??

2007-05-14 Thread Angel de Vicente
Hi,

 Could it be that there is a mismatch between the coding systems?
 Things are working ok here (org 4.73, bbdb from cvs, emacs 22.1.50)

Yes, apparently that was the trick. I'm not sure exactly what was causing the
problem, but I started over with a fresh .bbdb file, and copied the old records
in there, and now it is working as expected.

Cheers,
Ángel de Vicente



___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode