From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Failure in compiling org-capture.el Date: Mon, 17 Apr 2017 20:05:15 +0200 Message-ID: <877f2inc4k.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0B1d-0005xx-M5 for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 14:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0B1a-0007mE-Fs for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 14:05:21 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:48677) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0B1a-0007lu-9U for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 14:05:18 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by relay7-d.mail.gandi.net (Postfix) with ESMTPS id 0CB4BD34 for ; Mon, 17 Apr 2017 20:05:16 +0200 (CEST) In-Reply-To: (Kaushal Modi's message of "Mon, 17 Apr 2017 15:19:05 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > While that error is fixed, we still have this byte compilation warning: > > org-capture.el:1586:1:Warning: Unused lexical variable =E2=80=98first-val= ue=E2=80=99 > > I haven't used pcase extensively, but based on the warning, the below > doesn't work as intended in the compiled elc: > > ((or "C" "L") > (let ((insert-fun (if (equal key "C") #'insert > (lambda (s) (org-insert-link 0 s)))) > (first-value (car org-capture--clipboards))) > (pcase (length org-capture--clipboards) > (`nil nil) > (`(,value) (funcall insert-fun value)) > (`(,first-value . ,_) > (funcall insert-fun > (read-string "Clipboard/kill value: " > first-value ; Based on the > warning, does it mean that the value of first-value is not picked from the > value calculated in the let form above? > 'org-capture--clipboards > first-value))) ; And the same > here > (_ (error "Invalid `org-capture--clipboards' value: %S" > org-capture--clipboards))))) This was a typo of mine. Fixed. Thank you. Regards, --=20 Nicolas Goaziou