From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CMnDM6j0UWFzNQAAgWs5BA (envelope-from ) for ; Mon, 27 Sep 2021 18:43:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QBpJL6j0UWF+XAAAbx9fmQ (envelope-from ) for ; Mon, 27 Sep 2021 16:43:20 +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 2F592289C8 for ; Mon, 27 Sep 2021 18:43:20 +0200 (CEST) Received: from localhost ([::1]:37630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUtip-0007v5-AE for larch@yhetil.org; Mon, 27 Sep 2021 12:43:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUtfF-0004wj-4L for emacs-orgmode@gnu.org; Mon, 27 Sep 2021 12:39:37 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:36777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUtfC-0000OR-W2 for emacs-orgmode@gnu.org; Mon, 27 Sep 2021 12:39:36 -0400 Received: by mail-lf1-x132.google.com with SMTP id b20so80394666lfv.3 for ; Mon, 27 Sep 2021 09:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sYwGJ/00ae9X1BMLEkPQnhXJ+NDDLY9trROcziRC1lE=; b=KE+6WLyy0xWXHn4YaRF4Z8G+EC8WmKqhtRXw5RYA/qSH8xvMDZodo4+XXOwfDTLJ/q fcOAwRb+LFrNlM3X6jIxWx07uisusqhodWdNiaamW8ts3LYcPn5P79k+Z4XnoQ/M1T/H D2HcXrVu+GCOwOhkviZbwoNOcRst1PMgFLg9YoB7DjyYUmXdw2I1xABbF7HNSQGC94le wG5NVxzaL0hLVTwj1ULQAORyPdwo+4+Ghu16bAuA6H8pNebhydif2zsLBhk8gb4i8W5g oYvrguhaLA3Fkw1PSLkx3ZEGUApFkF8vgwllAcrhH77SFBiT4+BkfMI8fktFc8o5fdVT s1jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sYwGJ/00ae9X1BMLEkPQnhXJ+NDDLY9trROcziRC1lE=; b=gR/TN6e4sHdnf6eSrsZYC7abUeOF7r21YP0mOGPk5xoj6GorPSHMwDgXtlei++2GLw IrwITKW/Rvn8bFWtJjAO0Up4adgygqnnsZwevWkFbtujdpqfE2e9YqAcBdI9PZhXtYnA hvvhZ6P5/ST6FpMxVrs+gtyqg7Z1qOcXxB5QxqLOy/Wo34yB/7G2Yml8VQFzeI01yJmy i3mIelhhBT/3O8XSGRv43LwxQrEAsy+Zq0PVDCy2SAu4uAnsNHhoEBLjNZmYJn+z6kL+ VW2OOKXDjhG0qmhSSXt9Ni5PHCpQ4ev/SdHf9ChSCTuTVbYFicyeSBqivk8wPaJIg/n+ 2ACQ== X-Gm-Message-State: AOAM532gR7eV5W0pbrYXjjCe09eRMAbq33c7DRVZ/OzhdCAaqG7vQdsC MSjVTKzVu5t48OZFlSoJmX9lFfB/oFA= X-Google-Smtp-Source: ABdhPJysJlbStRmbusRzng71hlhIW11wmLlOtREJ2T9xoG83Q7Kl+3esoxA+Y/Od+ug//GdoJM302w== X-Received: by 2002:ac2:5e83:: with SMTP id b3mr681696lfq.305.1632760772314; Mon, 27 Sep 2021 09:39:32 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id j20sm663867lfu.91.2021.09.27.09.39.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Sep 2021 09:39:31 -0700 (PDT) Subject: Re: Org mode links: Open a PDF file at a given page and highlight a given string To: orgmode References: <87lfb5pbej.fsf@gmail.com> <87czwhw5d5.fsf@kyleam.com> X-Woof-Bug: org-open-file & org-file-apps multiple substitution bug From: Max Nikulin Message-ID: <9e2e1b94-9aa2-9bcf-6476-3a258d4c9eb1@gmail.com> Date: Mon, 27 Sep 2021 23:39:19 +0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <87czwhw5d5.fsf@kyleam.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=manikulin@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -51 X-Spam_score: -5.2 X-Spam_bar: ----- X-Spam_report: (-5.2 / 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, NICE_REPLY_A=-3.136, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Cc: Kyle Meyer Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632761000; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=sYwGJ/00ae9X1BMLEkPQnhXJ+NDDLY9trROcziRC1lE=; b=QHG7fjGYDvQydtuD4xz//751P0MwgxpDWNc2gxVRSkWM69btc7zPkWPKZ4IZl1gj8sG+lC eG2XT8mek8iudLwiWnmV7dKngOzfN946zRTieVfXENEYMvelCoavzK8rgnXVFBczNVjcdp t2xIYmn0digogbMwAjs8lXNWr0l8YSzaOSBTpg9xiG+x3LAw9CRMATz9tJKqnUkPjEvJC8 79Ywf3Co0+C37e3lVYTBIcQXNPB6oyoMgSvQ4Ezs+7kNNeo2wFQC8Vbnb0Jh2sNBlqxghM TruLAnKGCu6QA6+2CJkfHW7/51h4tV+8aJ9Vsjo2vyZbd0l79nTotUAX3iqohQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632761000; a=rsa-sha256; cv=none; b=X5dAvZ1EEBdtObhSFE6T1F74/XgYAfDvz2dr3aRcnQ77m1UglmgHWEzYZnM16oElWPn4FH 3imDJHCS4pCGYR7NGljkfpW61sGADZYFT46r02k+p9Cllm/ox0EYMvzQBlE1TswEgbwQbs OZco6vhR24bJNjsvHlcdCvIJ9U7sCyR+OW72bYYSWaBLS1GvOzQcl+DcCpkxDn5thn00gU ZsD+pSlfm8VCHvV3gc9P0vhhOCCn1rw/tPYtT3gMYgIyYRdYO4EppmB+0UFJR0JVlbQjyP mmldrHJhSHzn2oH1RGjTm9vcfW0A8u6B8V3kxAINOByK4PN9ZSu3o40HC1yYYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KE+6WLyy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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-Spam-Score: 0.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KE+6WLyy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 2F592289C8 X-Spam-Score: 0.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: C3dI6M/ooZhV On 03/03/2021 05:36, Kyle Meyer wrote: > Rodrigo Morales writes: > > [...] >> + create a Org link to specific pages of a PDF and highlight a given >> string. >> >> #+begin_src emacs-lisp :results silent >> (setq org-file-apps >> '(("\\.pdf::\\([0-9]+\\)::\\([^:]+\\)\\'" . "zathura -P %1 -f %2 %s"))) >> #+end_src >> >> The following link must open the PDF at a given page and highlight the >> given string. However, I'm getting the following error (see the >> =#+begin_example= block below.) >> >> [[file:~/Downloads/grub.pdf::95::do]] >> >> #+begin_example >> Debugger entered--Lisp error: (wrong-type-argument stringp nil) >> replace-match(nil t t "zathura -P 95 -f %2 /home/username/Downloads/grub....") > > I haven't looked at this closely or tried to trigger the error, but an > in-flight patch is touching this area > (). I've yet to > revisit it to address Maxim's helpful feedback, but I hope to soon and > will look at this error then too. I suppose, it deserves to be tracked on updates.orgmode.org ("org-open-file & org-file-apps multiple substitution bug")