[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Print out my key-sequences

From: Andrea Crotti
Subject: Re: Print out my key-sequences
Date: Sun, 18 Apr 2010 00:06:35 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (darwin)

Lennart Borgman <> writes:

> post-command-hook?

Great almost there, it's really not so difficult apparently...
So given this function

--8<---------------cut here---------------start------------->8---
(defun growl-popup (msg)
  "Show a popup using growl notification or say it, only working on OSX with 
growlnotify in the $PATH"
  (if (not (null window-system))
      (shell-command (concat "growlnotify -a /Applications/ -m " msg))
    (message msg)))
--8<---------------cut here---------------end--------------->8---

I only need to pass the last command and add a hook that executes it
every time, the only thing missing is how to get a string from the
last-command variable.

Any help?
This doesn't work
(growl-popup last-command)

Debugger entered--Lisp error: (wrong-type-argument sequencep 

In the doc they say

The last command executed.
Normally a symbol with a function definition, but can be whatever was found
in the keymap, or whatever the variable `this-command' was set to by that

So how am I supposed to print it out?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]