GithubHelp home page GithubHelp logo

Comments (11)

seanfarley avatar seanfarley commented on May 27, 2024 1

So, alert hasn't been popping up for me either. I've been using some amalgamation of sauron / alert and recently got rid of sauron so I thought it was that. After some googling and banging my head against the wall, I find this issue. Great! Other people have this problem.

So, I go to look at which asshole added the -sender flag: 556c630

from alert.

jwiegley avatar jwiegley commented on May 27, 2024 1

I'll revert it.

from alert.

asimpson avatar asimpson commented on May 27, 2024

Update: I've tracked this down to the -sender flag. Removing this causes the notification to fire correctly. E.g.

(defun alert-notifier-notify (info)
  (if alert-notifier-command
      (let ((args
             (list "-title"   (alert-encode-string (plist-get info :title))
                   "-message" (alert-encode-string (plist-get info :message)))))
        (apply #'call-process alert-notifier-command nil nil nil args))
    (alert-message-notify info)))

from alert.

waisbrot avatar waisbrot commented on May 27, 2024

Well! I was having this problem also, but it turns out not to be a problem. Sort of.

The issue is that when you identify the alert sender as Emacs, Mac OS will not display the alert when Emacs is in the foreground. This is consistent with all other Mac alerts. If you do something like

(progn (sleep-for 3)
       (alert "hello world"))

And then tab away from Emacs, I believe you'll see the alert working correctly.

from alert.

asimpson avatar asimpson commented on May 27, 2024

@waisbrot ah that makes sense, thank you! I'm going to have to figure out another way to be alerted for org related things when I'm in Emacs.

from alert.

waisbrot avatar waisbrot commented on May 27, 2024

I was thinking about this last night. The problem is that while the Mac rule makes sense for normal applications (don't alert me about a new email when I'm in the middle of reading email), Emacs is more like an operating system here. I do want to be alerted about a new email when I'm editing some source code.

Therefore, it seems to me that what you and I want is to take away -sender and have Emacs manage the logic of "display an alert only if it's coming from an inactive buffer".

from alert.

asimpson avatar asimpson commented on May 27, 2024

from alert.

asimpson avatar asimpson commented on May 27, 2024

from alert.

seanfarley avatar seanfarley commented on May 27, 2024

Well, before it's reverted, we need to decide how clicking on a notification will bring up emacs, right?

from alert.

jwiegley avatar jwiegley commented on May 27, 2024

It's better to revert, get back functionality for reporting notifications, and then decide that question. I never click on notifications from alert.el, so I hadn't even thought about the usefulness of this: although, it would be great to click on the bubble, and jump to the buffer that originating the warning.

from alert.

seanfarley avatar seanfarley commented on May 27, 2024

Righto, totally agree. Though, just to point out, it's only for notifications when emacs is active (still works with -sender when not active ... didn't know if that was clear or not).

from alert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.