From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8EBeJSlEjmIZ4gAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 16:58:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0BIvJSlEjmLtmAAAauVa8A (envelope-from ) for ; Wed, 25 May 2022 16:58:49 +0200 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 5139C16B82 for ; Wed, 25 May 2022 16:58:49 +0200 (CEST) Received: from localhost ([::1]:58028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntsTI-0001Eo-Eb for larch@yhetil.org; Wed, 25 May 2022 10:58:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntsKQ-0006pI-K2 for emacs-orgmode@gnu.org; Wed, 25 May 2022 10:49:38 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:46864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntsKM-0007yd-KH for emacs-orgmode@gnu.org; Wed, 25 May 2022 10:49:37 -0400 Received: by mail-wr1-x435.google.com with SMTP id i9so290230wrc.13 for ; Wed, 25 May 2022 07:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T54KQ411OFCZQjlI3vJg3U1M91+nN9y7UXobmk5Xpj4=; b=gpZV/uJdhRubHvcFEDSBaUUmLiohxPYjENwEn/BtQ07isR0SaVoPRJuSLWm/9D81QQ 8JiSmov2t/yUCd7cU87DUOrnzlxZyD3tH9Oszk8FTx/jjyyrGRTT8nMrRkyi8IlU0ZPD /1kpVIMvef4a+VOuKd6gB80YwYcaSAZdAmCovT9Z1PBH93+62h0akMtji6D9WQYDaWpY fDlKwmGhRuH+U/FrL+TyBjdNzvN6mGTepWDkCU4SHrrTfikqCUgRGbwjiQBx/H3I29gT WKPw07+5QmQJ53b09l27FjrYTed0oSyoRun9/KTQ2byj8RHrlFY3T13F/z7rd+t4Tr7c M7pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T54KQ411OFCZQjlI3vJg3U1M91+nN9y7UXobmk5Xpj4=; b=cpiawpJ6EvpCI/+lIYlCX/f01WnKqzDiCv8d+M8AsZx0bbW/oIniBjUF9FhAZW91sZ 1cuMU5KNHSshsKdkEIt7zQQ1QX0xxkTGWITpKMEIIeH2xebXFcl1VGYCwW3b23pEd94v IoOb801bLFdQQ6XEbvGyxvNFF3iKPkCwWhIaqaJmUQiQQtS0k3h3o6vOhqsjmzptZppR guVA4HdA6hO5xw7XgdyJ6HRVu7OCLpDT1HOJ7pkElh6on4HWe5Pj2StAjIXqcOTkt6OU efbrts5pH4sTmQhqbW7V9i6ve8i8IBXaH9GWqmW6srNo7VDi31Q7+Rkm32QgjhI/CpGg OCsg== X-Gm-Message-State: AOAM533VUeD4+VDZv8hKo8fschZarAZCrcRJYCqH555OZztuybmr12EE xRaeR/7KivSb4LF37/RvMdGHzAm7g8pG9jCLwzY= X-Google-Smtp-Source: ABdhPJwBD//Y3ijmZYw0fi6xJhnaNQNUvuuf9a/eYk4Dv+lpRtayErpRGcxoKMm7WVeHMEOefcgTBoCg6JXK1uQCYXc= X-Received: by 2002:a5d:4529:0:b0:20d:1108:8d76 with SMTP id j9-20020a5d4529000000b0020d11088d76mr27307712wra.60.1653490171563; Wed, 25 May 2022 07:49:31 -0700 (PDT) MIME-Version: 1.0 References: <87czg1sny1.fsf@gmail.com> In-Reply-To: <87czg1sny1.fsf@gmail.com> From: "Bruce D'Arcus" Date: Wed, 25 May 2022 10:49:20 -0400 Message-ID: Subject: Re: Opening org-cite links with different application To: Alessandro Bertulli Cc: org-mode-email Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=bdarcus@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653490729; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=T54KQ411OFCZQjlI3vJg3U1M91+nN9y7UXobmk5Xpj4=; b=RdfiHs2N+hJLjyEIWlhitRkj0skMCpZ8pUIpFDaRyljevUVRbI5dH16b8cZrGftqAtXYBz XmikZREVlOXpBI0zP3V53QCYtx1rn5sVuKSGmJ6HujBHztFvCYaahFDb9wn7BuW4OwOhOH fQnDtfdzczCSTTirgXHNebXhKeo/eYTGpZKQFzvsFaI7NF+rLnJ9m7N1f0RaglZepAagC9 E/GyaDL7klFd/3JpJqt8jbE1LFIm5C9KmfRqdIBEjNiG1ksf1gdVAB8KXA5KADaRw5tgBH Lp7Ssz8z8YSW3skmdRHjGkJYXE4/vebPpIN/VUa+4P2JN4OVVA+/RXbVFK/cVA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653490729; a=rsa-sha256; cv=none; b=bZjyQlQP1dM43o5k2+9uM3tFzT6igelV8O+YULw51Ibiyz+O3vq4Nka5rSZtihSY8RoyX3 Lr5SY7NRt9e2/ONiin2D0DjNFz3HBY1XuDsqDHsx1X0aIWmnyyokOz3akP/R+ZE3GFpguy baMUBt0kIVcCsPy+mY/merDeHMOsvc819JG7i/iyugqNFOS9FzF8OdcjZ/oXzUUC3idiTT 6Rk/xJLwFrCH6vr08IwpDy/7/BjQr2oJH+mGJlHsshDeYJIHHO0gyLpunfUfC0wt3Fm4gH jUDEUB2jc0CqSB4uc6WLWWRBhyrusFbq70tQYQ2wtCdRcmqFzBf7QtsFLdDdRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="gpZV/uJd"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="gpZV/uJd"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5139C16B82 X-Spam-Score: -8.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6Zn4wLhoZwVS Just curious: I'm not familiar with Sioyek (though it looks cool!); why do you need a lambda there? On Wed, May 25, 2022 at 10:10 AM Alessandro Bertulli wrote: > > Thanks! Precise as always. > > I'm not sure if it's the best way to do so, but it worked for me by > using a lambda: > > (setq citar-file-open-function '(lambda (file) > (async-shell-command (format-message "sioyek \"%s\"" file)))) > > Moreover, since I don't really care about the terminal output of the PDF > viewer, I followed an Emacs SE suggestion > (https://emacs.stackexchange.com/a/58341/29817) and made the output > buffer not brought up: > > (add-to-list 'display-buffer-alist '("*Async Shell Command*" > display-buffer-no-window (nil))) > > which, in case I want to inspect it, it's still visitable with the usual > C-x b. > > Thank you! > > Alessandro