From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Print out my key-sequences Date: Sun, 18 Apr 2010 01:00:58 +0200 Message-ID: References: <4BC01100.6080602@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1271545315 27380 80.91.229.12 (17 Apr 2010 23:01:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Apr 2010 23:01:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 18 01:01:54 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O3H1K-0006HP-Lo for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Apr 2010 01:01:50 +0200 Original-Received: from localhost ([127.0.0.1]:59324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3H1K-0000gV-9Q for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Apr 2010 19:01:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3H0s-0000fc-UQ for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 19:01:22 -0400 Original-Received: from [140.186.70.92] (port=58867 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3H0r-0000em-F3 for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 19:01:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3H0p-0003eT-Se for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 19:01:21 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.156]:54646) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3H0p-0003eI-Mr for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 19:01:19 -0400 Original-Received: by fg-out-1718.google.com with SMTP id e21so1051722fga.12 for ; Sat, 17 Apr 2010 16:01:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=tpxypiruY/mfCceEcbSYhW+7jDmnUtP7nIIjp6ais94=; b=liFrpgVnhY1cyeNG+ryItVUwPcDV4irtkz+UxEhQymYf3s9MlOfMSCYoBMdTafTiMt BRgqkBlWY6Pi4imMHOQ7tqGElGWsERefG7kwUhzQw1SsQNaB+PxZq/v2yzBdbtWh/O1F ucvOwrHN6mlfMPcfaY6AMdZP1JwMYACIhhgV0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=nbgqq1iqXaGQUB6nV/IK5DBmoqYKsoHYHdF/txPJW+O+YMHL4hNMcMIUapd0wiH0+l wrjRV+OWR8pimj1w/YTaUG2nzC2NVIX0kjFcIIOGCKjTW+tqebJJ/34Z0USJxUpmfS/x cfgt9/0zH1izSSV2RnxobyLwpELaMaABdyQSQ= Original-Received: by 10.239.169.18 with HTTP; Sat, 17 Apr 2010 16:00:58 -0700 (PDT) In-Reply-To: Original-Received: by 10.239.186.140 with SMTP id g12mr264361hbh.146.1271545278200; Sat, 17 Apr 2010 16:01:18 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72743 Archived-At: On Sun, Apr 18, 2010 at 12:06 AM, Andrea Crotti wrote: > 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) > =C2=A0"Show a popup using growl notification or say it, only working on O= SX with growlnotify in the $PATH" > =C2=A0(interactive) > =C2=A0(if (not (null window-system)) > =C2=A0 =C2=A0 =C2=A0(shell-command (concat "growlnotify -a /Applications/= Emacs.app/ -m " msg)) > =C2=A0 =C2=A0(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) (growl-popup (format "%s" last-command)) > Debugger entered--Lisp error: (wrong-type-argument sequencep self-insert-= command)