From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EIbmGYhfjmLfdAAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 18:55:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kDr9GYhfjmK3MAEA9RJhRA (envelope-from ) for ; Wed, 25 May 2022 18:55:36 +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 F19222B069 for ; Wed, 25 May 2022 18:55:35 +0200 (CEST) Received: from localhost ([::1]:35944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntuII-0004a1-VI for larch@yhetil.org; Wed, 25 May 2022 12:55:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntto1-0006PN-7L for emacs-orgmode@gnu.org; Wed, 25 May 2022 12:24:17 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:36754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nttnz-00085M-4f for emacs-orgmode@gnu.org; Wed, 25 May 2022 12:24:16 -0400 Received: by mail-ed1-x529.google.com with SMTP id fd25so27708825edb.3 for ; Wed, 25 May 2022 09:24:14 -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=lwkMFiiRvoUESSJ5RmafU9MN8TQ7NXQYu84qke1bPQA=; b=KlZjvCpE3hslXObQRcMKc2Tw5sEXRz7xxNNhWso1qxKNQMVbOw+bIleR3TlBWU0lX3 70HW20Ugf+h7eM3qFcSTNkeEVMJwD5NXFaWMSmlgynHt8bZPnTUmSJKpbMNr1W7Sddod qXXSX1shGn4C0dtuxJpDL8UCM4SJB++vm8M4WS0I4nsXKqftUbBWsiRPsQtRFLwWvBPk Xn6nKWgx5KTjetp2zqZGEV7tHiOV66Cqc5RNOi6KHEJUPj/USLDRvKjqtShc/k/W2TvB +qel4kdegnCw4awpjXLTKoIClJ1UpU1K6tPW1U4etfo+Mbp0JIGyxvyRfZH5C3CLW8ad LwVQ== 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=lwkMFiiRvoUESSJ5RmafU9MN8TQ7NXQYu84qke1bPQA=; b=61p79bkARgQ6gwC5476UcSrWU3kARTxsiFjUcfcEbt1MdIvuw1WLKx871bX6TXnleO j/FUYsOQdNQveumN1LLMC9onf8EaP/jHSjhvuCzSzppdREmgcS7NujmtRxNVGyiWP7nJ 35UJ2tiS57QiH6ga4acWeUVCxectrOQ9BVxRHMB2qIeTSzSsRRk1OvCH/FzRa8rOT8gp bDMlx3BkiOujYvOQ5K2MmnvKGk+H++BS26gDN0xCCnUlHOwMT/bG36lpExxg2dxeHrHR naxcBLKJKtWDbuHZCrtnDSeZTh2WCoQEKRWIsn95g6MKZa6uuY6DgaFcrzzsKbXMTCe/ EgDQ== X-Gm-Message-State: AOAM532f2n4JiZFSkTBluQKsTiKsHPMi+fsz7aO4uXtQ893ccFlsvkDA b1seUCoetGonCjtQaUMSKR4X3nnzImFgSA== X-Google-Smtp-Source: ABdhPJzzc7qH0cgiCdEYA/GlpaYDzg0eD6qOqLrnOjUsTckhCQsmrZjcbNHd/Xig+eBOr7x0jjzfBg== X-Received: by 2002:a05:6402:1912:b0:42b:615e:6025 with SMTP id e18-20020a056402191200b0042b615e6025mr18013974edz.152.1653495853111; Wed, 25 May 2022 09:24:13 -0700 (PDT) Received: from commodoroII (2-235-154-9.ip228.fastwebnet.it. [2.235.154.9]) by smtp.gmail.com with ESMTPSA id l15-20020a17090612cf00b006f3ef214ddesm8221479ejb.68.2022.05.25.09.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 09:24:12 -0700 (PDT) From: Alessandro Bertulli To: manikulin@gmail.com Cc: emacs-orgmode@gnu.org Subject: Re: Opening org-cite links with different application Date: Wed, 25 May 2022 18:24:12 +0200 Message-ID: <87fskxlgwj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=alessandro.bertulli96@gmail.com; helo=mail-ed1-x529.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=1653497736; 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=lwkMFiiRvoUESSJ5RmafU9MN8TQ7NXQYu84qke1bPQA=; b=gKqiPz4If/Ed+dxhRbc9oTrccR7tbLFlA3wI0ziyVPPseEx6aM4JkL9BxiooC7z9jlGHLL oNge3mB84AUlWbAs6YW06MXtP3KT7LplPuZnxGM5g93yYwWTWAfiRS49xD+dpvjHRFBKHD Ymm3nT6uFgjMyJjZKU6H9ObDJO7C7cbAFJ03Mx1vOENWrroQW91LUoPK7R+m1aOoq7f7jJ H4mjrv6KNsHp7YATRBcDfRiNKCEcTjs7kWz1avofUp8xwS3L2Gn5JNU0pqH6tqO+G5L48r Ya3IpgfQEUiYiVvNFIbnlsawy8otI97M0BzgDUcTMTgfOOVbEk6ONZZozoW6Hg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653497736; a=rsa-sha256; cv=none; b=Tg8QT71V2iF1DPZv83ZCL1NcJpjkPpEOGoSI5mCuCmnEx6fGQ6yJiWb09UGsmS/+7YRecA 7jE7kLJo+AXbPOEJvTE6Y2LZYlBQi3rJN5zH8tM+kbI4lLRFoGvLmrXhazs2t0kFNbiZ8H wADDW9egXKduY74RSbGs1E1IXuGGE2dr0mfEFaqY6rwOUcugbmGW2MXqLAXsMjWq3+S2XR qI2+6XqNi+YayMew5VYt52FdqaCsrxySq2mK8OsybQQjtKujp4LOLkNFJWZecLrmyGcl/c 9Ttg1Kwc+YQoZFvJ7fahyyM2D+QUfcmEE8XcpVmyv8jIvZOsebUbfx55nmrwLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KlZjvCpE; 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: -3.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=KlZjvCpE; 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: F19222B069 X-Spam-Score: -3.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4QJKjomiQZ3c Thanks for the suggestion! I wasn't aware of shell-quote-argument, now it seems much more robust: (setq citar-file-open-function '(lambda (file) (async-shell-command (format-message "sioyek %s" (shell-quote-argument file))))) I can't use browse-url-xdg-open because the PDF viewer I want to use it's not the system default one: when opening PDFs from Org-cite I expect to open academic documents, so I use Sioyek for them. However, this creates an annoying problem: now if I want to open two documents, when opening the second link Emacs asks "A command is running in the default buffer. Use a new buffer? (yes on no) " which is very annoying. I suppose that with xdg there's no problem. Do you have any idea how to make Emacs "not worry" about output buffers? Alessandro P.S. I'm afraid I can't follow you: what's the point with mailcap?