From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Using org-store-link in an indirect buffer Date: Fri, 7 Sep 2007 10:04:14 +0200 Message-ID: <83a9e264d632d5873d7ff842cbddb739@science.uva.nl> References: <41c818190709060822j633945c1gf3baf88e131327de@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITYp6-0006FZ-Lw for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 04:04:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITYp5-0006EG-Nb for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 04:04:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITYp5-0006E1-G6 for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 04:04:15 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITYp4-0002kd-Tt for emacs-orgmode@gnu.org; Fri, 07 Sep 2007 04:04:15 -0400 In-Reply-To: <41c818190709060822j633945c1gf3baf88e131327de@mail.gmail.com> 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: William Henney Cc: org-mode mailing list Fixed, thanks. - Carsten On Sep 6, 2007, at 17:22, William Henney wrote: > Currently, one cannot use org-store-link in an indirect buffer. The > stack trace is given below. Would it be possible to fix this? > > Cheers > > Will > > Debugger entered--Lisp error: (error "Cannot link to a buffer which is > not visiting a file") > signal(error ("Cannot link to a buffer which is not visiting a=20 > file")) > error("Cannot link to a buffer which is not visiting a file") > (cond ((run-hook-with-args-until-success ...) (setq link ... desc > ...)) ((eq major-mode ...) (let ... ... ...)) ((eq major-mode ...) > (setq link ...) (setq cpltxt ...) (org-store-link-props :type "info" > :file Info-current-file :node Info-current-node)) ((eq major-mode ...) > (let ... ... ...)) ((or ... ...) (and ... ...) > (vm-follow-summary-cursor) (save-excursion ... ...)) ((eq major-mode > ...) (let* ... ... ... ... ...)) ((or ... ...) (let ... ... ... ...)) > ((eq major-mode ...) (save-excursion ...)) ((eq major-mode ...) (let > ... ... ... ...)) ((memq major-mode ...) (and ... ...) (let* ... ... > ... ...)) ((eq major-mode ...) (setq cpltxt ... link ...) > (org-store-link-props :type "w3" :url ...)) ((eq major-mode ...) (setq > cpltxt ... link ...) (org-store-link-props :type "w3m" :url ...)) > ((setq search ...) (setq link ...) (setq cpltxt ...)) ((eq major-mode > ...) (setq cpltxt ... link ...) (org-store-link-props :type "image" > :file buffer-file-name)) ((eq major-mode ...) (setq cpltxt ... link > ...)) ((and buffer-file-name ...) (setq cpltxt ...) (when ... ...) (if > ... ...) (setq link ...)) (buffer-file-name (setq cpltxt ...) (when > ... ... ...) (setq link ...)) ((interactive-p) (error "Cannot link to > a buffer which is not visiting a file")) (t (setq link nil))) > (let (link cpltxt desc description search txt) (cond (... ...) (... > ...) (... ... ... ...) (... ...) (... ... ... ...) (... ...) (... ...) > (... ...) (... ...) (... ... ...) (... ... ...) (... ... ...) (... ... > ...) (... ... ...) (... ...) (... ... ... ... ...) (buffer-file-name > ... ... ...) (... ...) (t ...)) (if (consp link) (setq cpltxt ... link > ...)) (setq link (or link cpltxt) desc (or desc cpltxt)) (if (equal > desc "NONE") (setq desc nil)) (if (and ... link) (progn ... ...) (and > link ...))) > org-store-link(nil) > call-interactively(org-store-link) > execute-extended-command(nil) > call-interactively(execute-extended-command) > > > --=20 > > Dr William Henney, Centro de Radioastronom=EDa y Astrof=EDsica, > Universidad Nacional Aut=F3noma de M=E9xico, Campus Morelia > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477