From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qOVZLHEFwF6bbAAA0tVLHw (envelope-from ) for ; Sat, 16 May 2020 15:23:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eIUvKHEFwF4sewAA1q6Kng (envelope-from ) for ; Sat, 16 May 2020 15:23:29 +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 58210940C7B for ; Sat, 16 May 2020 15:23:29 +0000 (UTC) Received: from localhost ([::1]:56046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZyeu-0000vL-5r for larch@yhetil.org; Sat, 16 May 2020 11:23:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW2TH-0005mH-Ma for emacs-orgmode@gnu.org; Tue, 05 May 2020 14:39:12 -0400 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]:38845) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jW2TG-0001Zy-Oj for emacs-orgmode@gnu.org; Tue, 05 May 2020 14:39:11 -0400 Received: by mail-pj1-x1043.google.com with SMTP id t40so1531857pjb.3 for ; Tue, 05 May 2020 11:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yiFMiLCr5hh02mVr3Stop60NorOpCiJWAuVBrE5t4GM=; b=r3VpxiemgrpreEl5tGlRT9wkIMookLcp0J3jwLPdiEXy5Aae2wjz4dCoQ7fVSEsaKw nN4bxCHQbjVx+J2khrwDTImPBXIYVyFNzv8smOcOcfGRoMvxihAiUixgfQkartqBjTzb S8U6nPPXPcyVltZAhM1ts9Czx6/AnLSa8caDHfVLOwaG2nDjYQhS/ZCUu5IAalY+iRIW F5acRG4vQhf/sAH/pfYdjo+GG4NzP/0nLn2A+EABT49GeQVh53l8WTJ0sGp1K/FxrbTl rBT5hnYTyFUqiuTvSOmIwi65mbpev9NkIKfQik2dLEkDzI+zPYixTfHu2I4kayY5pKQ8 D31g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yiFMiLCr5hh02mVr3Stop60NorOpCiJWAuVBrE5t4GM=; b=iAlQc2hCfs9tvDdcBhMjLwApdfIktYKr52xNRlw8A6EGlN7N5Gu8AyAI1dTQ31u8o6 SvXrRz9YoNs5GoIcYXgz13LWFPsYZ/36OjDVumx9Ol+2xjMaYpunH5RDc45Cotiaqwxa HusgL1kp80InXYN7jb8U8xCFiWLllSq9/2t8IAcegfShpHC0WQKp6vDuWYtmdayVoaak A6MAtgkF13FwgHfqVsG6n/N8XjZG12YxFuvw6b2kORibANifM1pz2KVWIAHO5xoX8Yfw 5GyGl4Phxlbp5Ac+97gHrrAUgHxdd41y4yUgHaQmtSrK+dcYZLKPvIqTmiRAOV0bv2a5 3bhg== X-Gm-Message-State: AGi0Puax4xmWHHjjW6SZgijYFkiug4XnC9PEsOd/QIlu4iigP6XCSyIR fqZVzPenPGSOJz0KsofBQfaeOQB5yFUwzU40pvcMxw4e X-Google-Smtp-Source: APiQypJ+DS0fiz+MXky5GrmgkO5mBSUg1S7gx5KE5ZtGJ2xkmrlAp2Y63kt4F6Jaftuy8Sum838GT0tiN0IpmgpZ3/E= X-Received: by 2002:a17:90b:14c1:: with SMTP id jz1mr4812166pjb.112.1588703948038; Tue, 05 May 2020 11:39:08 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?QWxvaXMgSmFuw63EjWVr?= Date: Tue, 5 May 2020 20:38:55 +0200 Message-ID: Subject: Subject: Bug: org-clock and indirect org buffer: unable to generate report with :scope file-with-archives [9.4 (nil @ /home/user/.emacs.d/.local/straight/build/org-mode/)] To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::1043; envelope-from=janicek.dev@gmail.com; helo=mail-pj1-x1043.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sat, 16 May 2020 11:19:00 -0400 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=r3Vpxiem; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -0.71 X-TUID: K5k+cvnsQEU5 When attempting to generate clock-report using ":scope file-with-archives" from indirect org buffer, operation fails because function `org-dblock-write:clocktable` builds list of files based on `buffer-file-name` variable which is `nil` in indirect buffers. As user I am expecting org-clock to generate clock-report for current indirect org buffer as if it was direct buffer, which is default behavior in case of ":scope file" where `org-dblock-write:clocktable` does: (or (buffer-file-name (buffer-base-buffer)) (current-buffer)) Emacs : GNU Emacs 27.0.91 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.17.3) of 2020-05-03 Package: Org mode version 9.4