From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: bug report: timeline agenda in an indirect buffer Date: Sun, 08 Aug 2010 16:17:17 -0400 Message-ID: <432.1281298637@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=48505 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiDFr-0004TG-Tv for emacs-orgmode@gnu.org; Sun, 08 Aug 2010 17:18:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiDFq-0000RT-Ud for emacs-orgmode@gnu.org; Sun, 08 Aug 2010 17:18:03 -0400 Received: from vms173001pub.verizon.net ([206.46.173.1]:36214) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiDFq-0000R8-RP for emacs-orgmode@gnu.org; Sun, 08 Aug 2010 17:18:02 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L6U00D05OCTBF10@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 08 Aug 2010 15:17:17 -0500 (CDT) In-reply-to: Message from Noorul Islam of "Sat\, 07 Aug 2010 14\:43\:16 +0530." 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: Noorul Islam Cc: Ilya Shlyakhter , emacs-orgmode , nicholas.dokos@hp.com Noorul Islam wrote: > On Thu, Aug 5, 2010 at 10:46 PM, Ilya Shlyakhter = wrote: >=20 > Right now making a timeline agenda of an indirect buffer causes a cra= sh. > I think it's because buffer-file-name is null for such buffers, > so in the call > (org-prepare-agenda (concat "Timeline " > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file-name-nondirectory buffer-fi= le-name))) > the file-name-nondirectory call fails. >=20 > I am trying to understand what do you mean by indirect buffer in this con= text. Can you please explain the steps to reproduce this? >=20 See Section 27.11, "Indirect Buffers", of the Elisp manual. If you are reading this in emacs, you can just evaluate the following: (info "(elisp) Indirect Buffers") HTH, Nick