From mboxrd@z Thu Jan 1 00:00:00 1970 From: "William Henney" Subject: Using org-store-link in an indirect buffer Date: Thu, 6 Sep 2007 10:22:04 -0500 Message-ID: <41c818190709060822j633945c1gf3baf88e131327de@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITJBH-0001yE-6V for emacs-orgmode@gnu.org; Thu, 06 Sep 2007 11:22:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITJBF-0001y2-Ql for emacs-orgmode@gnu.org; Thu, 06 Sep 2007 11:22:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITJBF-0001xz-LH for emacs-orgmode@gnu.org; Thu, 06 Sep 2007 11:22:05 -0400 Received: from an-out-0708.google.com ([209.85.132.249]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITJBF-0005Yu-7S for emacs-orgmode@gnu.org; Thu, 06 Sep 2007 11:22:05 -0400 Received: by an-out-0708.google.com with SMTP id c25so25077ana for ; Thu, 06 Sep 2007 08:22:04 -0700 (PDT) Content-Disposition: inline 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: org-mode mailing list 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 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