Re: error in unless



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
.



Relevant Pages

  • Re: auctex =?ISO-8859-1?Q?f=FCr_emacs-22?=
    ... | With Emacs, ... Als Entwickler bin ich nun sicherlich kein Durchschnittsanwender, ... A, dann B, sonst C". ... you must load 'auctex.el' and 'preview-latex.el'. ...
    (de.comp.editoren)
  • Re: [Emacs] Anzeige der Menue-Tastenkuerzel
    ... Da kann ich Dir leider nicht weiterhelfen, ich bin auch noch neu in ... know that my Emacs skills will be as useful as they are today." ... (Von Windows stand da auch nichts.) ...
    (de.comp.editoren)
  • Re: Text of a RecordSource
    ... ich have a Report with a recordsource. ... the source is a query. ...
    (microsoft.public.access.reports)