From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stefan-W. Hahn" Subject: Bug: org-store-link gives lisp error "wrong-type-argument" [9.1.3 (release_9.1.3-171-gb6df86)] Date: Thu, 18 Jan 2018 20:36:43 +0100 Message-ID: <20180118193643.GA19499@seven> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecFzX-0003L3-H3 for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 14:36:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecFzS-0008Ki-KT for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 14:36:51 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:54406) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecFzS-0008K5-9i for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 14:36:46 -0500 Received: from seven.home ([178.6.28.62]) by mrelayeu.kundenserver.de (mreue007 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MGbye-1eXo1U0RaC-00DFUs for ; Thu, 18 Jan 2018 20:36:44 +0100 Received: from seven.home (localhost [127.0.0.1]) by seven.home (8.15.2/8.15.2/Debian-3) with ESMTPS id w0IJahgP020540 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 18 Jan 2018 20:36:43 +0100 Received: (from hs@localhost) by seven.home (8.15.2/8.15.2/Submit) id w0IJahQX020539 for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 20:36:43 +0100 Content-Disposition: inline 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 Hello, when storing a link of an bibtex entry I get an lisp error. This happens because I have more then one function for storing bibtex links and org-store-link calls completing-read with initial-input as symbol not as string. This has been changed in commit commit 0cc231a7bb9f261640205943ddeb42ad8cefc43d Author: Nicolas Goaziou Date: Fri Dec 1 19:33:35 2017 +0100 Not working: (completing-read "what: " '(a b c) nil t 'a) Working: (completing-read "what: " '(a b c) nil t "a") In the version before the given commit then initial-input parameter was the "symbol-name" of the value. The following change repairs the problem, perhaps this is sufficient. #+begin_src diff diff --git a/lisp/org.el b/lisp/org.el index 061776065..51e95a6c8 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9197,7 +9197,7 @@ org-store-link (cdr (assoc-string (completing-read "Which function for creating the link? " - (mapcar #'car results-alist) nil t name) + (mapcar #'car results-alist) nil t (symbol-name name)) results-alist))) t)))) (setq link (plist-get org-store-link-plist :link)) #+end_src With kind regards, Stefan Emacs : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-12-24 Package: Org mode version 9.1.3 (release_9.1.3-171-gb6df86 @ /home/hs/.emacs.d/lib/org-mode/lisp/) -- Stefan-W. Hahn It is easy to make things. It is hard to make things simple.