From mboxrd@z Thu Jan 1 00:00:00 1970 From: david wen riccardi-zhu Subject: Re: Bug: Capture Template With Link Returns Error [9.2 (9.2-elpaplus @ /home/dwrz/.emacs.d/elpa/org-plus-contrib-20181230/)] Date: Sat, 19 Jan 2019 03:56:29 +0000 Message-ID: <871s59i9le.fsf@dwrz.net> References: <87r2dxccar.fsf@dwrz.net> <87ef9wz6oa.fsf@nicolasgoaziou.fr> <87zhs6u37n.fsf@dwrz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkrRI-0005iF-HZ for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 09:17:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkrRH-00071K-Ix for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 09:17:36 -0500 Received: from smtprelay0162.b.hostedemail.com ([64.98.42.162]:35702 helo=smtprelay.b.hostedemail.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkrRH-0006yA-FM for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 09:17:35 -0500 Received: from filter.hostedemail.com (10.5.19.248.rfc1918.com [10.5.19.248]) by smtprelay01.b.hostedemail.com (Postfix) with ESMTP id 171F42D2A14 for ; Sat, 19 Jan 2019 14:17:34 +0000 (UTC) Received: from localhost (pool-108-46-233-215.nycmny.fios.verizon.net [108.46.233.215]) (Authenticated sender: dwrz@dwrz.net) by omf01.b.hostedemail.com (Postfix) with ESMTPA for ; Sat, 19 Jan 2019 14:17:33 +0000 (UTC) In-Reply-To: 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: emacs-orgmode@gnu.org Thank you! I wasn't really sure what kind of function to pass to=20 add-variable-watcher, but using debug-on-variable-change, I got=20 the following output: Debugger entered--setting org-stored-links to nil: debug--implement-debug-watch(org-stored-links nil set nil) org-insert-link(0 "test") #f(compiled-function (s) #)("test") org-capture-fill-template() org-capture(0) org-capture-at-point() funcall-interactively(org-capture-at-point) call-interactively(org-capture-at-point nil nil) command-execute(org-capture-at-point) I'm not sure what might be causing the last change to nil. Is=20 there=20 anything I can do to try to shed some light on this? This is the template I am trying to use: * %^L :PROPERTIES: :NOTES: %^{NOTES} :END: :LOGBOOK:=20 - Added %U.=20 :END:=20 Many thanks, David Allen Li writes: > On Sat, Jan 12, 2019 at 12:43 AM david wen riccardi-zhu=20 > wrote:=20 >>=20 >> Hello and thank you. This behavior did appear to be fixed, but=20 >> it's surfaced once again today.=20 >=20 > What's the value of org-stored-links when the issue happens?=20 > This sounds similar to another (fixed) bug where (nil "") gets=20 > added to org-stored-links. If this is the case, you could try=20 > using add-variable-watcher to see what's adding that to=20 > org-stored-links.=20 >=20 >>=20 >> Nicolas Goaziou writes:=20 >>=20 >> > Hello,=20 >> >=20 >> > David Wen Riccardi-Zhu writes:=20 >> >=20 >> >> I use the following capture template to store bookmarks:=20 >> >>=20 >> >> * %^L :PROPERTIES: :NOTES: %^{NOTES} :END: :LOGBOOK: - Added=20 >> >> %U. :END:=20 >> >>=20 >> >> It was working fine until I updated my packages today. If I=20 >> >> try to use the template now, the following is displayed in=20 >> >> the minibuffer:=20 >> >>=20 >> >> org-capture: Capture abort: Wrong type argument: stringp,=20 >> >> nil=20 >> >=20 >> > Fixed. Thank you.=20 >> >=20 >> > Regards,=20 >> >=20 >> > -- Nicolas Goaziou=20 >>=20 >> -- dwrz|=E6=9C=B1=E4=B8=BA=E6=96=87=20 >>=20 -- dwrz|=E6=9C=B1=E4=B8=BA=E6=96=87