[Top][All Lists]

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

Re: [emms-help] emms-info-youtube

From: Mike Kazantsev
Subject: Re: [emms-help] emms-info-youtube
Date: Fri, 6 Sep 2019 18:59:48 +0500

On Fri, 06 Sep 2019 15:02:35 +0300
Konstantin Reich <address@hidden> wrote:

> > via process-put/process-get instead of using its buffer.
> Thank you for your help. This helped, although it is a puzzle  for me
> why buffer-locals did not work.
> The result looks like this:
>           (set-process-sentinel process 
>                                 '(lambda (process event) (let
> ((buffer (process-buffer process))

Note that if using lambda, maybe even simplier way might be to create
closure via lexical-let (or using lexical bindings in general), e.g.:

    ((track track) (url url)
      (sentinel #'(lambda (process event) (do-stuff-with track url)))
    (set-process-sentinel process sentinel))

(iirc you have to rebind track/url in lexical-let like that, but with
non-cl lexical bindings, that should not be necessary)

Mike Kazantsev // fraggod.net

reply via email to

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