emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Bug: Clipboard history is empty when using %^C in capture templa


From: Nicolas Goaziou
Subject: Re: [O] Bug: Clipboard history is empty when using %^C in capture template [9.0.5 (9.0.5-elpaplus @ /home/mir/.emacs.d/elpa/org-plus-contrib-20170210/)]
Date: Mon, 17 Apr 2017 14:21:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Allen Li <address@hidden> writes:

> Using the %^C expansion in a capture template brings up a minibuffer
> prompt to read/select a clipboard value, but there are no values to
> select from.
>
> The relevant code is in the function org-capture-fill-template.
>
>  ("C"
>   (cond
>    ((= (length clipboards) 1) (insert (car clipboards)))
>    ((> (length clipboards) 1)
>     (insert (read-string "Clipboard/kill value: "
>                          (car clipboards)
>                          '(clipboards . 1)
>                          (car clipboards))))))
>
> It looks like the intention is to put the list of possible clipboard
> values into the minibuffer history for read-string, but in practice I
> get an error saying the history is empty.
>
> I suspect that the problem is that clipboard is lexically bound, and
> since read-string takes a symbol for the history, it cannot get the
> lexical value for clipboards from the symbol argument.

Thank you for the report.

I think I fixed it in maint. Could you confirm it?

Regards,

-- 
Nicolas Goaziou



reply via email to

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