From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Passing an option to org-file-apps? Date: Sun, 7 Sep 2008 09:02:57 +0200 Message-ID: References: <87fxq9b327.fsf@gentoo.hasee.cpu> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KcEIa-0000TV-Lf for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:03:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KcEIZ-0000SI-Oz for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:03:04 -0400 Received: from [199.232.76.173] (port=60623 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KcEIZ-0000S9-Iy for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:03:03 -0400 Received: from mx20.gnu.org ([199.232.41.8]:1802) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KcEIY-0001p6-UB for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:03:03 -0400 Received: from ey-out-1920.google.com ([74.125.78.146]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcEIX-0003R8-Uf for emacs-orgmode@gnu.org; Sun, 07 Sep 2008 03:03:02 -0400 Received: by ey-out-1920.google.com with SMTP id 4so486084eyg.24 for ; Sun, 07 Sep 2008 00:03:00 -0700 (PDT) In-Reply-To: <87fxq9b327.fsf@gentoo.hasee.cpu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: anhnmncb Cc: emacs-orgmode@gnu.org On Jul 17, 2008, at 5:30 AM, anhnmncb wrote: > Hi, list, > I have an external link like this: > [[file:~/doc/foo.pdf]] > And I have configured to use xpdf to open it, but every time I open > it, > it always at the first page. > > If can I pass an option to xpdf, so after I finish reading, I change > the > page number, then next time I open it, it will automatically open that > page for me? > > Something like this: > [[file:~/doc/foo.pdf 25]] > So org will invoke xpdf in this way: xpdf ~/doc/foo.pdf 25. Org has no mechanism to pass switches to external commands. But you can try to find a pdf viewer that supports going back to a previous location. For example, "Preview" in MacOS X does this, maybe there are also open source programs that do it. - Carsten