From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wJ81HzZ68F8AIwAA0tVLHw (envelope-from ) for ; Sat, 02 Jan 2021 13:50:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qOPvGjZ68F+/RwAAbx9fmQ (envelope-from ) for ; Sat, 02 Jan 2021 13:50:46 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 86422940149 for ; Sat, 2 Jan 2021 13:50:45 +0000 (UTC) Received: from localhost ([::1]:52882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvhIo-0008Nu-IJ for larch@yhetil.org; Sat, 02 Jan 2021 08:50:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvhI8-0008NQ-Rn for emacs-orgmode@gnu.org; Sat, 02 Jan 2021 08:50:00 -0500 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:36387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvhI6-0002ue-Vn for emacs-orgmode@gnu.org; Sat, 02 Jan 2021 08:50:00 -0500 Received: by mail-pf1-x434.google.com with SMTP id t22so13647264pfl.3 for ; Sat, 02 Jan 2021 05:49:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=MrxqmwqLHcQpJQVhbfmWqq+N2zO9tgpk+N9xVedWMaU=; b=gfGY1t6EOAEUqlToXhpgmU0MtW7AwZepEN6J5MqnesCK31LkPBmr7nB7m3DUu/xldZ QqZ2KlCXwQsmuMe7bBI/jsyasK3ME+18DE142XiRi2/ATnyvlA/flM60URg5/h4XPKEw AlYUFbWwhnAOvi/LXaXl5ZK10746X3jORaD20g4LUmqdLvW7mnvGNtWsaw3GJ/Tv2jkt bhkYMKC6Z8aS9i0BpBbjDDAylnvqX5MZry3TUe3uYHNNj1V2jILKEbXsR0DJEEBzk+0p vV3Zrd4OMM6kMFPh3T0AttNC5BBfqXGQ6pcz4sKAz15aiKBxKk4E306nZD+JGCIrtuDb XY2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MrxqmwqLHcQpJQVhbfmWqq+N2zO9tgpk+N9xVedWMaU=; b=hC/Si6Sb+0xvVJ5l8fPg4zi75uxZcp80I2cy59/KnMP5A3FnsSfOMkngJAjwliISbU xq63hXpzPBYP8YRMdHfcckwqw/fewFh0pNYkmtv+Eq3LqdTUJ4r+5PTqS36KV6HLqo6R V1qRALCo8CIPyJbsim4BShr+hXJokpkwtKVssrenKqNth1+6rX8Q7SXEtfK3puzzF2LP SUg+mo4CzHQxeYlGWoNZJZyKWEGuwcNQ2iW9V17mCg/4Sm8dKoPhE3YtBSUeBKhQ+WJW FMnOC98jPBbEPHhQoxhjFdnELKd0j6DiZJyuvePgcJHDpFF4QYdGLHBfd5COR3vg2nEs F4xw== X-Gm-Message-State: AOAM530CYc7SW1XLKOQEq6AY3J0yPrFIQYXNnBS8j/ws3tiVuQKEvn7/ c5mweNhjcSrSR1fldf7ToscuMvVXdCZlEe+BtW5GxSkl3lfSPw== X-Google-Smtp-Source: ABdhPJx+S/fcwPeY8CwB8twwdgfOXFMjA33o3Dmsd+DbUgJR0cCJ0yis5wzQJLuihUwll5hoB0qJlZdKCdd5YVaHN8c= X-Received: by 2002:a63:c64c:: with SMTP id x12mr58582183pgg.293.1609595396857; Sat, 02 Jan 2021 05:49:56 -0800 (PST) MIME-Version: 1.0 From: John Kitchin Date: Sat, 2 Jan 2021 08:49:46 -0500 Message-ID: Subject: what do do when multiple functions store a link To: org-mode-email Content-Type: multipart/alternative; boundary="000000000000dca21a05b7eb213c" Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=johnrkitchin@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=gfGY1t6E; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 86422940149 X-Spam-Score: -2.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: xl1Gh+fa46YZ --000000000000dca21a05b7eb213c Content-Type: text/plain; charset="UTF-8" Recently I have had an issue where multiple functions may store a link, e.g. to a bibtex entry. In this case, org-mode seems to prompt me to ask which function to store the link with, with an initial input of the first function, which masks all the options that are available. This happens inside org-store-link in ol.el at line 1495 for me. in (apply #'org-link-store-props (cdr (assoc-string (completing-read "Which function for creating the link? " (mapcar #'car results-alist) nil t (symbol-name name)) results-alist))) because of the (symbol-name name). Is there an easy way to avoid this, or to modify the order of the functions used? I want to see all the options for storing, or better, to just store them all and let me choose later when I use org-insert-link. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --000000000000dca21a05b7eb213c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Recently I have had an issue where multiple functions may = store a link, e.g. to a bibtex entry.=C2=A0
=C2=A0
In this ca= se, org-mode seems to prompt me to ask which function to store the link wit= h, with an initial input of the first function, which masks all the options= that are available.=C2=A0This ha= ppens inside=C2=A0org-store-link=C2=A0in= ol.el at line 1495 for me= . in

=
(apply #'org-link-store-props
(cdr (assoc-string
= =C2=A0 =C2=A0 =C2=A0 (completing-read
"Which function for creat= ing the link? "
(mapcar #'car results-alist)
nil t (= symbol-name name))
=C2=A0 =C2=A0 =C2=A0 results-alist)))=C2=A0

becau= se of the=C2=A0(symbol-name name).
=C2=A0
Is there an e= asy way to avoid this,=C2=A0or to modify the=C2=A0order of the functions us= ed? I want to see all the options for storing, or better, to just store the= m all and let me choose later when I use org-insert-link.

John

---= --------------------------------
Professor John Kitchin=C2=A0
Doherty= Hall A207F
Department of Chemical Engineering
Carnegie Mellon Univer= sity
Pittsburgh, PA 15213
412-268-7803
--000000000000dca21a05b7eb213c--