From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SDPmDLg8jmKDngAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 16:27:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +JW1DLg8jmKGFQAA9RJhRA (envelope-from ) for ; Wed, 25 May 2022 16:27:04 +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 E13838D79 for ; Wed, 25 May 2022 16:27:03 +0200 (CEST) Received: from localhost ([::1]:50494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntryY-0001ex-33 for larch@yhetil.org; Wed, 25 May 2022 10:27:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntriQ-0004TC-KU for emacs-orgmode@gnu.org; Wed, 25 May 2022 10:10:22 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:43743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntriP-0008D0-0s for emacs-orgmode@gnu.org; Wed, 25 May 2022 10:10:22 -0400 Received: by mail-ed1-x536.google.com with SMTP id g20so1625113edj.10 for ; Wed, 25 May 2022 07:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version; bh=HvRHNWqUJ810e6WAvu8F0KQwwe4+4pJM/uYH9sb3dNU=; b=nUv01tlGytAVcd0q8c0IWuoA1wSexlAHnyPOekljOdJitO1I0bsQN1CAmaarRvQReH fmcwEc79SyBaBqZSC9vjTjKKB7MtBjAm7pK+k8boo6cGbLFE0GVQg/jsNEo7bZsHLJP2 5+1obl+lVNmyVtu5vnKs19TgfK22I1zEKMetNRBZvnYgVhTu7blD4hxqcOzv7dxOSYL/ 3a2JJEtQIVjDujHGFY/hsyybPz8ZixmZVHSb9a7h7wa2pJta4WGoFdcDoOD/atdu97iG ljLJlm3GEWct9aZCBv8oaD109X6L9fHfkQif1mXQpR4VVOsoRunyk2OLkLMthKovbbB3 Uctg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=HvRHNWqUJ810e6WAvu8F0KQwwe4+4pJM/uYH9sb3dNU=; b=SGrRtkh1eNdLFLvO5BS0fCrEgOut7SsjvFktJLNBOBSzVyv841aXPq8nYyexFDoFHG sfClnxGQjUyqbHCLr8hE4NsTb20yowT3naz01GXHmw0YSJPMc2/EktIL8IREwH4T9Ldw vMADS07xyjO91n+xyG1OrEILkpnfztE4YpJOitmgtXXnTvotnMKvPYyLQSkxw5ZX5ZSV QNlEmPU4KKYqNOxkT6abDNkmqwQiypU6UYoOdOz8+k584+yFWzEuhXmpu30+Iz6K8lWT YPOxx1bZMRUB0oTEoVBo+p8zd0l40MN6XLak/X90eALyW+BZYZAzxY4eYMMKOcdtkN/o vtTg== X-Gm-Message-State: AOAM533PFqJxcVFacqLvu12tI9b8GlhQ4fBT5PGt/mv0X3bmpjtmWfqJ 5g4YXaPHheuJf6IPMpvMuAg3TiYzWvt7JA== X-Google-Smtp-Source: ABdhPJxvR+twR1C5YkeLy+B7RcB9EtxnD8KzV/C0AEU8OJkuk08QUxq4dYFhkkQTDvnFE0JzpACqhQ== X-Received: by 2002:a05:6402:1e93:b0:42b:d039:6497 with SMTP id f19-20020a0564021e9300b0042bd0396497mr1297979edf.231.1653487819148; Wed, 25 May 2022 07:10:19 -0700 (PDT) Received: from commodoroII (2-235-154-9.ip228.fastwebnet.it. [2.235.154.9]) by smtp.gmail.com with ESMTPSA id f3-20020a1709063f4300b006f3ef214e6esm8225110ejj.212.2022.05.25.07.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 07:10:18 -0700 (PDT) From: Alessandro Bertulli To: bdarcus@gmail.com Cc: emacs-orgmode@gnu.org Subject: Re: Opening org-cite links with different application Date: Wed, 25 May 2022 16:10:14 +0200 Message-ID: <87czg1sny1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=alessandro.bertulli96@gmail.com; helo=mail-ed1-x536.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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=1653488823; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HvRHNWqUJ810e6WAvu8F0KQwwe4+4pJM/uYH9sb3dNU=; b=GhjDWrFUM6iHyuenQ2t0wyNVthnvSubJNPxMTPCZhsXMqj2VKjRdTdQvukZftI2I/t5zXh tEzPwPQpGntoYSao6PMtoxsdKf2Q4W7oTs6xrXPFV3kcWEm4hjnOaoT2OefnNoDX6cdlg7 g2F3XDxRX28Lijvz0moKuHhA2+qT9RAQ8LBhswDimi1BkTe43S1emr34DeQjoWZsaaPbRM akpY+5AtzQvGNLzWHNJXQdG6GrSoWSp2q4YgYnRXoytKQLP2xS8AxoqkNy2goS9XO7MXpj DEZ+0ZOeD3HAwj3nmIreftrQuACgxFKtHS3jHMCWLWFZsGtH+LDXVXxqG0iiQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653488823; a=rsa-sha256; cv=none; b=Gcm9SYpMGgx/2cG1hxeLaFf00RPqQmxZaVEgvARk8XOcTdi+WTJ08o9SbAC6WQF1vt5LS+ a4bHQvmBq9oUqf07U6xAnJAxc6J7s3BQmnhRpT67bZa8ps6Ac4gBUY+TV1+qgbJ0HINWG5 oeDb1Pg1WTA/ZjA7gFwsl0fTwsDzyszQc1Z1Kjd/HCImSwcynX8wyHpVKPTdzGIqNwGj2l mpNUvKC1BcJpoFbE4bWVxsJxUAa36mLjYwOJNN8fLxe66Vrp6waerEZtfy8ICdvZy442Um 7NWD6TO6B+m4jo3raUwhZZm/bXXIdv8DO2aESCsVX+pPYKi1891PuQpOi7dpZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nUv01tlG; 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.34 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nUv01tlG; 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: E13838D79 X-Spam-Score: -8.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: JTdYwtmpU7lm 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