emms-patches
[Top][All Lists]
Advanced

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

Re: [Emms-patches] darcs patch: Fix bug of missing lyrics


From: Ye Wenbin
Subject: Re: [Emms-patches] darcs patch: Fix bug of missing lyrics
Date: Fri, 04 Apr 2008 22:53:40 +0800
User-agent: Opera Mail/9.25 (Linux)

On Fri, 04 Apr 2008 22:42:41 +0800, William Xu <address@hidden> wrote:

Ye Wenbin <address@hidden> writes:

Note that sort is a destructive function, so the value should store back
  after sort.

Since `sort' is destructive, emms-lyrics-alist will be modified in
place.  I don't understand what your patch does.  It looks like doing
something similar to (setq foo foo).

function `sort' may change the value of the list, not means the value of the
list is the result after sorted. There is an example in the elisp manual:
5.6.3 Functions that Rearrange Lists

          (setq nums '(1 3 2 6 5 4 0))
               => (1 3 2 6 5 4 0)
          (sort nums '<)
               => (0 1 2 3 4 5 6)
          nums
               => (1 2 3 4 5 6)

In fact, I found some of my lyrics were missing, so I debuged and fixed it.

--
Best Regards,
Ye Wenbin




reply via email to

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