Comments (11)
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.
I'll revert it.
from alert.
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.
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.
@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.
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.
from alert.
from alert.
Well, before it's reverted, we need to decide how clicking on a notification will bring up emacs, right?
from alert.
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.
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)
- tmux-specific alert styles HOT 1
- [FR] Add severity "emoji icons"
- Minor mode to allow users to override the builtin `notifications-notify` command with `alert`?
- Add a windows desktop style desktop notification
- Subtitle property?
- `alert-log-messages` and packages.
- post-command-hook alert-remove-on-command should not act during eval-expression
- Race Condition On mode-line Prevents (Meaningful) Restore
- alert broken using growl on Windows
- alert won't notify via notify-send HOT 2
- not working with Chinese or Emoji when style is osx-notifier HOT 1
- not working well with notifier style HOT 1
- :persistent doesn't work with libnotify HOT 5
- Support sounds
- Enhancement request: use https://github.com/KDE/snoretoast instead
- Feature request: ability to change app name
- Use `notifications-notify`, not `notify-send` command? HOT 1
- Parameter `:style` is not handled correctly HOT 2
- invalid-function: log4e:deflogger HOT 2
- alert-fade-time not working with osx-notifier
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alert.