From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6JAgFvu9PmCvVAAA0tVLHw (envelope-from ) for ; Tue, 02 Mar 2021 22:36:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eGr8Efu9PmApFgAAB5/wlQ (envelope-from ) for ; Tue, 02 Mar 2021 22:36:43 +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 910781F864 for ; Tue, 2 Mar 2021 23:36:42 +0100 (CET) Received: from localhost ([::1]:42784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHDdA-0006Kd-UK for larch@yhetil.org; Tue, 02 Mar 2021 17:36:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHDcm-0006JY-45 for emacs-orgmode@gnu.org; Tue, 02 Mar 2021 17:36:16 -0500 Received: from out1.migadu.com ([2001:41d0:2:863f::]:32826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHDcj-00060f-D8 for emacs-orgmode@gnu.org; Tue, 02 Mar 2021 17:36:15 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1614724569; h=from:from: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; bh=TYoXMQ2eZ9eZzdvsBTJ4FJfoXiCKamftOuF3aNRB9HE=; b=TRZxW7qO9oXG8kQxos7hSPpEWV2+2GFCqdMnDoLtDwTsbpnZtM6KB/XXRGuHEYV6vWSx7T x7GkX3Nys/dXWJrKNbsKpMXkS8dpO8qyUqBQhAQYQsPyewhkbqAkvvFHihyK2RdSE7B9dz +WLiuIDnd2+sBQAZzKgk6NpZCzcfWro73BW5UWxdWL+WbTtCn1YmsOtRDKKn0LlO/H6OlU vAQsHoqs7RD05uKHzeoTfwUh6NkYxUnUtUY4dKwYHI4mk6WCjMLvCeTkiZ5bUy5t79IxWY gkF4znmGShcFC4kCHm6PWBk7UMyFSwa4DMviFxEx49NO50ll45zYTwMJHxRJ7A== From: Kyle Meyer To: Rodrigo Morales Subject: Re: Org mode links: Open a PDF file at a given page and highlight a given string In-Reply-To: <87lfb5pbej.fsf@gmail.com> References: <87lfb5pbej.fsf@gmail.com> Date: Tue, 02 Mar 2021 17:36:06 -0500 Message-ID: <87czwhw5d5.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=kyle@kyleam.com; helo=out1.migadu.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, 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: emacs-orgmode@gnu.org 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=1614724603; 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=TYoXMQ2eZ9eZzdvsBTJ4FJfoXiCKamftOuF3aNRB9HE=; b=bwf0TjXoClK3cndmGmvdVApZPk/8yYDzXdS4KcM85NMjsyDpLhdNMfCMzaQwKsHLwTQM6Z QwDagKUOS5HwVdF1v3Vxj9wdrYxAe+QjQs72Y8wTaZ/gMvpU6cX3AbXtwAkSIRwEtc73Eg MKXibb4KDKE2wNRWGOy6bSbI3wLj8j9p1pBNT2vahZn0VjoWj8Cq/ndEnfD4k56iYkZgcS MjQTUCT2Y0uMGemvpS00cGdhsK3OIOwz4tPNeBpLgXMLYo8CHyd284ZxREm+RgI3dKj9kW VIkQeUFECHmMPlUEBU28uHNqN/eNd5yQPpDy80RW0AgHSTvBMm4qN5SImYypHQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614724603; a=rsa-sha256; cv=none; b=mYllcGB+rK6ttjpT11g7xkDdsdE9blnEH6yxaWuNAYkNYzgu28bvisHucGv8XIAu9Omfdb xFy14idbx3bu5lYTjWv2+YG4eQ0S+BHT2UVzwdNjsuGfskEFCgUk2dFFMkSAEXuDWzpcQt 3+BTegXFEzAsZR1pJeNXNGNLhqsYapQkePuFnkGHveaDQojGgNb5hjaiKDEU0mFLmbXUyt rFYMvf+5kQnZZsgVdinlayq8BCxYm3Yv6tBjlIDVEWHTZT9QBPi0VnxO/+FhSfAWZe+67m mvD26gTix4HGySpeL1zaTX7RvIRolep6G+zudQA3/VWdHwo1VhSGFA92uyQLjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=TRZxW7qO; dmarc=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: -2.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=TRZxW7qO; dmarc=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: 910781F864 X-Spam-Score: -2.56 X-Migadu-Scanner: scn1.migadu.com X-TUID: kwQyEG26EE/0 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. Thanks for reporting.