1

I try to use alert and copy the example from here as below:

scratch buffer:

(require 'alert)

;; This is the most basic form usage
(alert "This is an alert")

;; You can adjust the severity for more important messages
(alert "This is an alert" :severity 'high)

;; Or decrease it for purely informative ones
(alert "This is an alert" :severity 'trivial)

;; Alerts can have optional titles.  Otherwise, the title is the
;; buffer-name of the (current-buffer) where the alert originated.
(alert "This is an alert" :title "My Alert")

;; Further, alerts can have categories.  This allows users to
;; selectively filter on them.
(alert "This is an alert" :title "My Alert" :category 'debug)

After eval-buffer, it seems nothing happens.

I am not sure what should I expect after evaluate the alert function?

2
  • Have you read the help page for alert (C-h f alert)?
    – Squidly
    Aug 13, 2015 at 9:01
  • Isn't it almost the same as what I have posted?
    – Enze Chi
    Aug 13, 2015 at 12:24

1 Answer 1

1

Maybe the messages are in the *Messages* buffer. You can go to it with C-x b *Messages* or simply with a left-click on the minibuffer.

2
  • 2
    To examine *Messages*, you can also use C-h e.
    – xuchunyang
    Aug 13, 2015 at 8:29
  • That messages are really in the *Message* buffer. But I can't see how dumping message to *Message* buffer can be called ALERT? Before I expect it is something like notification.
    – Enze Chi
    Aug 13, 2015 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.