Re: error in unless
- From: Holger Schauer <Holger.Schauer@xxxxxx>
- Date: Mon, 31 Mar 2008 11:23:30 +0200
On Mon, 31 Mar 2008, Gijs Hillenius wrote:
I would like to add this to my .gnus:
Gnus is an Emacs application, so your query would be more on-topic in
gnu.emacs.help, but anyway:
(defun audacious-now-playing ()
"Insert the title of the song I'm currently listening to."
(let ((track (shell-command-to-string "audtool --current-song")))
(unless (string-equal "no song playing." track)
The way I adapted this existing bit of code, the unless condition
does not work like intended and I end up with a "X-Now-Playing: No
song playing." x-header in emails.
Apparently "No song playing" is not string-equal to "no song playing".
HTH,
Holger
--
--- http://www.coling.uni-freiburg.de/~schauer/ ---
"Ich glaube ich werde mir demnächst zwei Hamster besorgen die ich `Drag'
und `Drop' nenne. Obwohl `Look' und `Feel' auch nicht zu verachten wäre."
-- Ralph Angenendt in de.comp.os.unix.linux.misc
.
- Follow-Ups:
- Re: error in unless
- From: Gijs Hillenius
- Re: error in unless
- References:
- error in unless
- From: Gijs Hillenius
- error in unless
- Prev by Date: Re: error in unless
- Next by Date: Re: what is up with the spam?
- Previous by thread: Re: error in unless
- Next by thread: Re: error in unless
- Index(es):
Relevant Pages
|