From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59618: 29.0.50; global-whitespace-mode + org-capture: "Marker does not point anywhere" Date: Wed, 14 Dec 2022 15:10:59 -0500 Message-ID: References: <86pmd969ps.fsf@aarsen.me> <83tu2lqyi6.fsf@gnu.org> <874juljl6h.fsf@localhost> <87k03gj4uw.fsf@localhost> <837czbib0k.fsf@gnu.org> <87a63rg6b2.fsf@localhost> <877cyvg5nw.fsf@localhost> <1d41780a-5b2f-caed-4bd6-6b7ecd1fef58@rhansen.org> <83bko6nq4l.fsf@gnu.org> <87edt2t43x.fsf@localhost> <87zgbpx4fc.fsf@localhost> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37753"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59618@debbugs.gnu.org, Eli Zaretskii , arsen@aarsen.me, stefankangas@gmail.com, Richard Hansen To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 14 21:12:29 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5Y7B-0009Yg-18 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Dec 2022 21:12:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Y6w-0001J1-MG; Wed, 14 Dec 2022 15:12:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Y6p-0001Ie-Az for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 15:12:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5Y6k-0007DP-Fz for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 15:12:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5Y6k-0001Ct-Az for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 15:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Dec 2022 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59618 X-GNU-PR-Package: emacs Original-Received: via spool by 59618-submit@debbugs.gnu.org id=B59618.16710486734631 (code B ref 59618); Wed, 14 Dec 2022 20:12:02 +0000 Original-Received: (at 59618) by debbugs.gnu.org; 14 Dec 2022 20:11:13 +0000 Original-Received: from localhost ([127.0.0.1]:41318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Y5w-0001Cd-Lt for submit@debbugs.gnu.org; Wed, 14 Dec 2022 15:11:12 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:1858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Y5r-0001CQ-P2 for 59618@debbugs.gnu.org; Wed, 14 Dec 2022 15:11:10 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5325F440635; Wed, 14 Dec 2022 15:11:02 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 228BB440221; Wed, 14 Dec 2022 15:11:00 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1671048660; bh=EvLN1hTRQBr2oxbHPPwvIAZSd1EM4VN1oNkm/r5VNx8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=H0kZ0VQ9GlUw5Xu/r8xabaGUWALiz5zevWi4XTvSsacfbChkxk8EKVLkQC+zHIE5e WfzvrmLkq85SRf2eQ3CuWl8zOrIYmWRA2sl5yHgqs+Uw3EC0uFglfCYdjNROezQB4P Pyf2Oe9hs+KOxm0X4AGB5+5xRiJKjd1N1khUur05JitS60jp1vxEq36AGEJOHGKemP 0qxt1zzle/cZOOxfLkZ6u3NoPIWgXF2FAHCWNXYeGLo7YSoBYn9dK795JWism6JWXo ZUs5Ljku3BaVfMKG+JQQ3RzXgg/znA9EppDmt1ThJkC37+lH81FSRi6BiALlkJemAN QaFsFVuUhWKOw== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0C0C8123051; Wed, 14 Dec 2022 15:11:00 -0500 (EST) In-Reply-To: <87zgbpx4fc.fsf@localhost> (Ihor Radchenko's message of "Wed, 14 Dec 2022 17:48:07 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250992 Archived-At: >> For indirect clones, yes. The original motivation for this infrastructure >> was Info where we use `clone-buffer` and hence `clone-buffer-hook`. > I see. Though `clone-indirect-buffer-hook' is probably more appropriate > to be used in the context of this bug report. If `org-capture` uses an indirect buffer, indeed. Modes which can be used with both should setup both hooks. > Side note: Org implements something similar to `clone-buffer', but for > file visiting buffers (`org-export-copy-buffer`). Would it be something > of interest for Emacs? There seems to be a lot of overlap with `clone-buffer`, so it would make sense to try and merge them, yes. I don't think we want to support/encourage situations where we have multiple buffers with the same `buffer-file-name` like `org-export-copy-buffer` creates, but we could provide some alternative where the clone has `buffer-file-name` set to nil but the old value (or the origin bugger) is recorded in another buffer-local var. Stefan