{"action":"created","issue":{"url":"https://api.github.com/repos/jwiegley/use-package/issues/373","repository_url":"https://api.github.com/repos/jwiegley/use-package","labels_url":"https://api.github.com/repos/jwiegley/use-package/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/jwiegley/use-package/issues/373/comments","events_url":"https://api.github.com/repos/jwiegley/use-package/issues/373/events","html_url":"https://github.com/jwiegley/use-package/issues/373","id":170694561,"number":373,"title":"Suppress interactivity?","user":{"login":"treyharris","id":97895,"avatar_url":"https://avatars.githubusercontent.com/u/97895?v=3","gravatar_id":"","url":"https://api.github.com/users/treyharris","html_url":"https://github.com/treyharris","followers_url":"https://api.github.com/users/treyharris/followers","following_url":"https://api.github.com/users/treyharris/following{/other_user}","gists_url":"https://api.github.com/users/treyharris/gists{/gist_id}","starred_url":"https://api.github.com/users/treyharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treyharris/subscriptions","organizations_url":"https://api.github.com/users/treyharris/orgs","repos_url":"https://api.github.com/users/treyharris/repos","events_url":"https://api.github.com/users/treyharris/events{/privacy}","received_events_url":"https://api.github.com/users/treyharris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-11T16:58:17Z","updated_at":"2016-08-13T19:32:56Z","closed_at":null,"body":"I run Emacs in `--daemon` mode, which works great except when for some reason, a package starts up and asks a question (usually having to do with prior crashing state or some such). Then the daemon just sits there forever, never progressing since it has no user to talk to.\r\n\r\nWhen I find cases like this, I'm left doing something like\r\n```elisp\r\n  (use-package desktop\r\n  :init\r\n  (progn\r\n    (defadvice desktop-restore-file-buffer\r\n        (around my-desktop-restore-file-buffer-advice)\r\n      \"Be non-interactive while starting a daemon.\"\r\n      (if (and (daemonp)\r\n               (not server-process))\r\n          (let ((noninteractive t))\r\n            ad-do-it)\r\n        ad-do-it))\r\n    (ad-activate 'desktop-restore-file-buffer))\r\n```\r\n\r\nI've been trying to figure out a way to generalize this; and it feels like a `:nointeract` keyword taking a function that may go interactive should be possible, given what use-package does for some of the other keywords, but I'm not a good enough Elisp metaprogrammer to make this work myself.\r\n\r\nBut I'd imagine an interface like this:\r\n```elisp\r\n(defcustom use-package-nointeract-behavior t\r\n  \"What the `:nointeract DEFUN' feature should do.\r\n\r\nIf `t', suppress interaction if Emacs is run noninteractively. If\r\n`always', suppress interaction, even when Emacs is run\r\ninteractively. If `nil', do not change interactive behavior (that\r\nis, ignore the keyword). Note that this feature is always ignored\r\nwhen running under `--debug-init'.\"\r\n  ;; ....\r\n  )\r\n\r\n;; and then:\r\n(use-package noisy\r\n  :nointeract (noisy-interactive-function noisy-other-function))\r\n```"},"comment":{"url":"https://api.github.com/repos/jwiegley/use-package/issues/comments/239637654","html_url":"https://github.com/jwiegley/use-package/issues/373#issuecomment-239637654","issue_url":"https://api.github.com/repos/jwiegley/use-package/issues/373","id":239637654,"user":{"login":"treyharris","id":97895,"avatar_url":"https://avatars.githubusercontent.com/u/97895?v=3","gravatar_id":"","url":"https://api.github.com/users/treyharris","html_url":"https://github.com/treyharris","followers_url":"https://api.github.com/users/treyharris/followers","following_url":"https://api.github.com/users/treyharris/following{/other_user}","gists_url":"https://api.github.com/users/treyharris/gists{/gist_id}","starred_url":"https://api.github.com/users/treyharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treyharris/subscriptions","organizations_url":"https://api.github.com/users/treyharris/orgs","repos_url":"https://api.github.com/users/treyharris/repos","events_url":"https://api.github.com/users/treyharris/events{/privacy}","received_events_url":"https://api.github.com/users/treyharris/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T19:32:56Z","updated_at":"2016-08-13T19:32:56Z","body":"Hey @npostavs, seeing [that link](https://debbugs.gnu.org/cgi/bugreport.cgi?bug=13697):\r\n> This bug report was last modified 3 years and 183 days ago.\r\n\r\nThere was never a reply, and looking at the `yes-or-no-p` source, doesn't look like any action was ever taken to address this. So I'm not sure what you're saying by posting that link?"}}
{"actor":{"display_login":"treyharris"}}