From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id /fssL7CiP2DpZwAA0tVLHw (envelope-from ) for ; Wed, 03 Mar 2021 14:52:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mJiVKrCiP2CWQAAAB5/wlQ (envelope-from ) for ; Wed, 03 Mar 2021 14:52:32 +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 24949270B2 for ; Wed, 3 Mar 2021 15:52:32 +0100 (CET) Received: from localhost ([::1]:33242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHSrW-0001e1-UA for larch@yhetil.org; Wed, 03 Mar 2021 09:52:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHSr4-0001a1-Ee for emacs-orgmode@gnu.org; Wed, 03 Mar 2021 09:52:02 -0500 Received: from ciao.gmane.io ([116.202.254.214]:35398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHSr3-00044I-16 for emacs-orgmode@gnu.org; Wed, 03 Mar 2021 09:52:02 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lHSqz-0007S4-R1 for emacs-orgmode@gnu.org; Wed, 03 Mar 2021 15:51:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Maxim Nikulin Subject: Re: Org mode links: Open a PDF file at a given page and highlight a given string Date: Wed, 3 Mar 2021 21:51:52 +0700 Message-ID: References: <87lfb5pbej.fsf@gmail.com> <87lfb5c6j0.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 In-Reply-To: <87lfb5c6j0.fsf@posteo.net> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1614783152; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=FyHr3kaaArC4wm4FBcmHrQ9wxfZxEtBszbDGcj3jqq0=; b=TB6JnEBsD58gtqLhnYHzeoXDqIVWc+esJFx1Mf2RxvitiCjXDOM7Dx5TcOji6Dii7E7QxN MWXQTZwAaMLc+ZS+ZmpV81ng0PCVMDwRp9vGl7Qn5f/2v5RTjEjNPChdhSvwl5kbrRT+Xd 744vkqg1dpCHL/ZcuhP4bqEkZMF4QwA5I6HeEicm9I+o0xyhdrGH2O8+uu354oPwC59Yo5 fC98YlK9QqI4PBwTTz5g7KPU3RlPOkr/2SC2iW48xe3661fIr2FrJBjbmYAsYUOXBCrZbN 8mMV4/TF8iQsiScb4K6TpQfqTr3ORlNDe9mMLhKUvDS35uQ2eDpioew13m/j4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614783152; a=rsa-sha256; cv=none; b=IKrv54d1fRlT8hr/BKBObQ4BExaHSwWWoFX8iVLKbx2Bwgz52JarUKTaMBZuTO+3Bm0hq1 mfVjprrlpdlh7JmRc4Xw6VrdfAWjxNOQ20zYg9K9RMbNtGsToFuhBJUAZotn/7mB+9It8c ez/M7YFDRiQms4KWn5418MhzTlXygk/AO3B/MYJC/5aMEz19ki4sQ/6iNnpjGe6lmh365+ 3i++aoxWGlwWg8WHe+Bzx5z/2Yc/y/YqtmZOuo4ir4HUrTCjJyvzMxoi2o8Xp2ku0M3/Ww bOCYfHu9By80Aul6e2/+OnJP7Dlf2Yg3cItEQS1I6ctbMGP2y4SEZq+MfLXIjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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: -1.76 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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: 24949270B2 X-Spam-Score: -1.76 X-Migadu-Scanner: scn1.migadu.com X-TUID: EbMcdqdxjyNH On 03/03/2021 09:31, Juan Manuel MacĂ­as wrote: > (start-process-shell-command "zathura" nil (concat "zathura " > clean-path > " -P " > pag > (when str > (format " -f '%s' " str))))))) Please, do not forget to pass stings coming from user input through shell-quote-argument. There is combine-and-quote-strings function but its docstring tells that it is not safe enough. Ideally shell should be completely avoided in such cases and arguments should be passed as a list directly to exec. https://xkcd.com/327/