alphapapa / org-super-agenda

Supercharge your Org daily/weekly agenda by grouping items
GNU General Public License v3.0
1.33k stars 107 forks source link

Ensure buffer exists before selecting its marker in org-super-agenda--when-with-marker-buffer #224

Closed seblemaguer closed 9 months ago

seblemaguer commented 2 years ago

Hello,

when using the diary, you don't necessarily have an actual buffer which causes org-super-agenda to crash at the line following line:

https://github.com/alphapapa/org-super-agenda/blob/3108bc3f725818f0e868520d2c243abe9acbef4e/org-super-agenda.el#L239

I just did a small patch to ensure that the marker refers to an actual buffer before moving on.

alphapapa commented 9 months ago

Hi Sébastien,

I think this issue is now solved by https://github.com/alphapapa/org-super-agenda/commit/48eed5518eabb21548bc367113faa190d39f4ede, which I made today.

Thanks.

seblemaguer commented 9 months ago

yup it seems so :) and your solution is cleaner :D