emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "peculiar" error with countdown timer in org-agenda
@ 2020-03-02 22:38 Ian Garmaise
  2020-03-03 11:08 ` Marco Wahl
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Garmaise @ 2020-03-02 22:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 6544 bytes --]

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

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

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

In Org-Agenda, I press ';' to start a countdown timer.
I enter 1 minute to test.
When timer reaches zero, I see this error in minibuffer

dbus-call-method: peculiar error: "Emacs not compiled with dbus support"

Also, timer display is not removed from mode-line as expected.

Emacs  : GNU Emacs 26.3 (build 1, i686-w64-mingw32)
 of 2019-08-29
Package: Org mode version 9.3.6 (9.3.6-19-gf360f9-elpa @
c:/users/ian/.emacs.d/elpa/org-20200302/)

current state:
==============
(setq
 org-link-abbrev-alist '(("gmail" . "
https://mail.google.com/mail/?view=cm&fs=1&to=%s"))
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-babel-load-languages '((emacs-lisp . t) (dot . t) (org . t) (plantuml
. t))
 org-agenda-time-grid '((daily today require-timed) (600 800 1000 1200 1400
1600 1800 2000) "......" "----------------")
 org-babel-results-keyword "results"
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-tag-alist '(("@work" . 119) ("@home" . 104) ("laptop" . 108))
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-todo-state-tags-triggers '(("ALREADYSENT" ("sentatleastone" . t)))
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-link-from-user-regexp "\\<Ian@IAN-EDGE\\>"
 org-log-into-drawer t
 org-directory "~/Dropbox/org"
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-enforce-todo-dependencies t
 org-columns-default-format "%40ITEM(Task) %17Effort(Estimated Effort){:}
%CLOCKSUM"
 org-agenda-include-diary t
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-agenda-files '("~/Dropbox/org/organizer.org" "~/Dropbox/org/
nowtutoradmin.org")
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-link-elisp-confirm-function 'yes-or-no-p
 org-enforce-todo-checkbox-dependencies t
 org-global-properties '(("Effort_All" . "0 0:10 0:30 1:00 2:00 3:00 4:00
5:00 6:00 7:00"))
 org-babel-pre-tangle-hook '(save-buffer)
 org-odt-format-inlinetask-function
'org-odt-format-inlinetask-default-function
 org-occur-hook '(org-first-headline-recenter)
 org-mode-hook '(org-clock-load #[0 "\300\301\302\303\304$\207" [add-hook
change-major-mode-hook org-show-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-agenda-span 'day
 org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-default-notes-file "~/Dropbox/org/notes.org"
 org-src-lang-modes '(("plantuml" . fundamental) ("C" . c) ("C++" . c++)
("asymptote" . asy) ("bash" . sh) ("beamer" . latex)
     ("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist) ("dot" .
fundamental) ("elisp" . emacs-lisp)
     ("ocaml" . tuareg) ("screen" . shell-script) ("shell" . sh) ("sqlite"
. sql))
 org-clock-persist 'history
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-confirm-shell-link-function 'yes-or-no-p
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS
WIDTH)"]
 org-link-shell-confirm-function 'yes-or-no-p
 org-todo-keywords '((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE"))
 org-log-done 'time
 org-plantuml-jar-path "~/plantuml.jar"
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default)
("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)
("\\.xlsx\\'" . default) ("\\.docx\\'" . default))
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-blocker-hook '(org-block-todo-from-checkboxes
org-block-todo-from-children-or-siblings-or-parent)
 org-link-parameters '(("attachment" :follow org-attach-open-link :export
org-attach-export-link :complete org-attach-complete-link)
      ("eww" :follow eww :store org-eww-store-link) ("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 :export
org-irc-export)
      ("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) ("id" :follow org-id-open)
("file+sys") ("file+emacs")
      ("shell" :follow org-link--open-shell)
      ("news" :follow #[257 "\301\300\302 Q!\207" ["news" browse-url ":"] 5
"\n\n(fn URL)"])
      ("mailto" :follow #[257 "\301\300\302 Q!\207" ["mailto" browse-url
":"] 5 "\n\n(fn URL)"])
      ("https" :follow #[257 "\301\300\302 Q!\207" ["https" browse-url ":"]
5 "\n\n(fn URL)"])
      ("http" :follow #[257 "\301\300\302 Q!\207" ["http" browse-url ":"] 5
"\n\n(fn URL)"])
      ("ftp" :follow #[257 "\301\300\302 Q!\207" ["ftp" browse-url ":"] 5
"\n\n(fn URL)"])
      ("help" :follow org-link--open-help) ("file" :complete
org-link-complete-file)
      ("elisp" :follow org-link--open-elisp) ("doi" :follow
org-link--open-doi))
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 )

-- 
=====
Ian Garmaise
Consultant
Phorix Solutions Group
ian.g@phorixsol.com
Toronto cell: 416.432.2251
NYC: 917.512.9535

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com

[-- Attachment #2: Type: text/html, Size: 8882 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "peculiar" error with countdown timer in org-agenda
  2020-03-02 22:38 "peculiar" error with countdown timer in org-agenda Ian Garmaise
@ 2020-03-03 11:08 ` Marco Wahl
  2020-03-03 17:21   ` Ian Garmaise
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Wahl @ 2020-03-03 11:08 UTC (permalink / raw)
  To: Ian Garmaise; +Cc: emacs-orgmode

Hi Ian,

Thanks for reporting.

> In Org-Agenda, I press ';' to start a countdown timer.
> I enter 1 minute to test.
> When timer reaches zero, I see this error in minibuffer
>
> dbus-call-method: peculiar error: "Emacs not compiled with dbus support"
>
> Also, timer display is not removed from mode-line as expected.

I checked this some and I think the problem lies in function
org-show-notification.  That function references and possibly uses
function notifications-notify which depends on a proper setup of the
dbus stuff.  I guess this is the gist of the bug.

You can place your own handler though.  For this set variable 

    org-show-notification-handler

to e.g. function

   message

Can you please try this out?

About hunting the bug: possibly it would be good to add a check if the
dbus system is up.  Can this be done easily?  Or add a further
configuration item to indicate that the dbus system shall be used.


Best,
-- Marco

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "peculiar" error with countdown timer in org-agenda
  2020-03-03 11:08 ` Marco Wahl
@ 2020-03-03 17:21   ` Ian Garmaise
  2020-03-03 18:05     ` Marco Wahl
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Garmaise @ 2020-03-03 17:21 UTC (permalink / raw)
  To: Marco Wahl; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1756 bytes --]

Hi Marco,

I will check.  However I am on Windows 7-64 and to the best of my knowledge
Dbus is not available for this platform.  There were some efforts to make
it work but I don't think they are current.
In any case, as the error message said, this version of emacs isn't
compiled with Dbus, which makes sense for a Windows version.
I will try to create my own handler and figure out why dbus notification is
being attempted on a version of Emacs compiled without it.

Best,

Ian



On Tue, Mar 3, 2020 at 6:08 AM Marco Wahl <marcowahlsoft@gmail.com> wrote:

> Hi Ian,
>
> Thanks for reporting.
>
> > In Org-Agenda, I press ';' to start a countdown timer.
> > I enter 1 minute to test.
> > When timer reaches zero, I see this error in minibuffer
> >
> > dbus-call-method: peculiar error: "Emacs not compiled with dbus support"
> >
> > Also, timer display is not removed from mode-line as expected.
>
> I checked this some and I think the problem lies in function
> org-show-notification.  That function references and possibly uses
> function notifications-notify which depends on a proper setup of the
> dbus stuff.  I guess this is the gist of the bug.
>
> You can place your own handler though.  For this set variable
>
>     org-show-notification-handler
>
> to e.g. function
>
>    message
>
> Can you please try this out?
>
> About hunting the bug: possibly it would be good to add a check if the
> dbus system is up.  Can this be done easily?  Or add a further
> configuration item to indicate that the dbus system shall be used.
>
>
> Best,
> -- Marco
>
>
>

-- 
=====
Ian Garmaise
Consultant
Phorix Solutions Group
ian.g@phorixsol.com
Toronto cell: 416.432.2251
NYC: 917.512.9535

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com

[-- Attachment #2: Type: text/html, Size: 2965 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: "peculiar" error with countdown timer in org-agenda
  2020-03-03 17:21   ` Ian Garmaise
@ 2020-03-03 18:05     ` Marco Wahl
  0 siblings, 0 replies; 4+ messages in thread
From: Marco Wahl @ 2020-03-03 18:05 UTC (permalink / raw)
  To: Ian Garmaise; +Cc: emacs-orgmode


> I will check.  However I am on Windows 7-64 and to the best of my knowledge
> Dbus is not available for this platform.  There were some efforts to make
> it work but I don't think they are current.

Okay.

> In any case, as the error message said, this version of emacs isn't
> compiled with Dbus, which makes sense for a Windows version.
> I will try to create my own handler and figure out why dbus notification is
> being attempted on a version of Emacs compiled without it.

Okay.  And yes, please check setting the handler.  E.g. evaluate

    (setq org-show-notification-handler #'message)

or add the line your init file.

AFAICS the condition with the dbus stuff is ignored if the handler is
set.  In any case please report the outcome of your testing.


Thanks,
-- Marco

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-03 18:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-02 22:38 "peculiar" error with countdown timer in org-agenda Ian Garmaise
2020-03-03 11:08 ` Marco Wahl
2020-03-03 17:21   ` Ian Garmaise
2020-03-03 18:05     ` Marco Wahl

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).