On Fri, 06 Sep 2019 15:02:35 +0300
Konstantin Reich <[email protected]> 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.:
(lexical-let
((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
_______________________________________________
Emms-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-help