From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Benjamin Slade Newsgroups: gmane.emacs.help Subject: use linux native notifications with tea-time Date: Mon, 6 Jun 2011 14:28:13 -0500 Message-ID: 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 1307476391 2856 80.91.229.12 (7 Jun 2011 19:53:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2011 19:53:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 07 21:53:06 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QU2Kn-0003Nz-Rn for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2011 21:53:05 +0200 Original-Received: from localhost ([::1]:35496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QU2Km-00046r-Kt for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2011 15:53:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTfTa-0001Wf-Mx for help-gnu-emacs@gnu.org; Mon, 06 Jun 2011 15:28:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTfTX-0004ag-Eo for help-gnu-emacs@gnu.org; Mon, 06 Jun 2011 15:28:38 -0400 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:46993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTfTX-0004Z8-2r for help-gnu-emacs@gnu.org; Mon, 06 Jun 2011 15:28:35 -0400 Original-Received: by vxk20 with SMTP id 20so3922534vxk.0 for ; Mon, 06 Jun 2011 12:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=puN7cMRIkv/KWMDgbS8qcXn9HqZXX36gME/BJnJLiRU=; b=IgfD/JtAw0XJN8RZKoW9oFlGohbgXUDEIiGMDPkqlRMpIcri+a+CNe9Lhj7DAa5EON n3Vpr9cQtTyJaMm4LlqtLC/JPZXWfSRqIz3m+NuO3bO/+s7W7nEW7tpMhMdJrSNzv5q3 cc6NMjZcH1sOgY9zkl46nvDIlhfKtz4T2N8z4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type:content-transfer-encoding; b=ZfsU6UCRNJUzmDxQtSmIpIGtAbY45zyNBixFV3a6lrM2iXxLvUdK4cJPu6fRxoTTCs ra26LpxvPY7O3dorq9v6seuLO+JUJJo+OaxM39XEBRGXqX8KXE+DuvwPoslwVeo/ku96 MgyoTPkG5MLKdItqcEdmP2OX7r5DVSLPUE2VY= Original-Received: by 10.52.180.194 with SMTP id dq2mr211890vdc.105.1307388513247; Mon, 06 Jun 2011 12:28:33 -0700 (PDT) Original-Received: by 10.220.193.72 with HTTP; Mon, 6 Jun 2011 12:28:13 -0700 (PDT) X-Google-Sender-Auth: mxDvp_z8Bu-MRWFbMxauWHf4c4M X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.220.169 X-Mailman-Approved-At: Tue, 07 Jun 2011 15:33:19 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81305 Archived-At: Hi, I'm trying to set up tea-time.el to use native linux notification (through notify-send). The current "notification function" in tea-time.el is: ------------ (defun show-notification (notification) "Show notification. Use mumbles." (if (program-exists "mumbles-send") (start-process "tea-time-mumble-notification" nil "mumbles-send" notification) (message notification) )) --------------- What would be the most straightforward way of using _notify-send_ in this function? (I tried: --- (defun show-notification (notification) (shell-command (concat "notify-send " notification) )) --- but I get an "Invalid number of options" error.) thanks, --Ben ---------------------------------------------------------------------------= -------------------------- Benjamin Slade Dept. of Linguistics University of Illinois at Urbana-Champaign [ http://www.jnanam.net/slade/ ] St=C3=A6fcr=C3=A6ft & Vy=C4=81kara=E1=B9=87a (lingblog) - http://staefcraef= t.blogspot.com The Babbage Files (techblog) - http://babbagefiles.blogspot.com ---------------------------------------------------------------------------= -------------------------- =C2=A0 =E0=A4=AA=E0=A4=B0=E0=A5=8B =E0=A4=BD=E0=A4=95=E0=A5=8D=E0=A4=B7=E0= =A5=91=E0=A4=95=E0=A4=BE=E0=A4=AE=E0=A4=BE =E0=A4=B9=E0=A4=BF =E0=A4=A6=E0= =A5=87=E0=A4=B5=E0=A4=BE=E0=A4=83 =C2=A0 =C2=A0 'The gods love the obscure.' (=C5=9Aatapathabr=C4=81ma=E1=B9= =87a 6.1.1.2)