From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iEPfGOhYR2IpWwAAgWs5BA (envelope-from ) for ; Fri, 01 Apr 2022 21:56:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cN1zEehYR2JttgAAG6o9tA (envelope-from ) for ; Fri, 01 Apr 2022 21:56:24 +0200 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 E76E74086A for ; Fri, 1 Apr 2022 21:56:23 +0200 (CEST) Received: from localhost ([::1]:59158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naNNe-0004Kt-QP for larch@yhetil.org; Fri, 01 Apr 2022 15:56:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naNMY-0004Kh-JX for emacs-orgmode@gnu.org; Fri, 01 Apr 2022 15:55:14 -0400 Received: from [2607:f8b0:4864:20::92c] (port=36595 helo=mail-ua1-x92c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naNMW-0007ws-Ur for emacs-orgmode@gnu.org; Fri, 01 Apr 2022 15:55:14 -0400 Received: by mail-ua1-x92c.google.com with SMTP id w21so1501134uan.3 for ; Fri, 01 Apr 2022 12:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=XTakTrwL6gTdNP+M+qgxNCl02haYiGERQllRO5cXZuU=; b=OKKp5G+UagMdioxdv0LE9fyBopw1cFKTkwoic/yFZz7xt/0ejgQGgGElTIGHP4QVNh 0iKG4lQUGF1WooiK/Z+pNB1EHDc78kbNGW2bE5VvcWJR0qZjtdi70JIXPa19dlfh/cmW /xKOntjUmUw0/uK/gw9chYgXXJhkbAtqkd/GzZrCYKDbMKvZT+rCzViKVjjlym8/WQWW /Dk7ZNICHqUNTFsLTFS+UNTFm7z4hk/NIOjYFX+O3sF7Si7y2oHcWfwdCvAyGqL5uwDK 1ZPZs2NRCifgYqD7rC2pehEyNUh3haUZsqqpwKkrSXPICp1CxXGT7uxlp7mc3lelThwD nlsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XTakTrwL6gTdNP+M+qgxNCl02haYiGERQllRO5cXZuU=; b=V39Rd0cDEW99rY0KBvQ+9oLXzQ4NJ8HdXGKArVWdjrlqDvMJQ7AXBzUTjKpOP0nBwc LkH1DgTtKhxhY6k5A+2GzdfUrbtGBebHn+hF/tMKkca/oFBe99xMJ6U+2Iu/6jbP45MT Fm5+QNpWdVh7X5FHR3sM5hSFV0nDCzPpVjy95hRZErMnirQR/OYASs3IMYjU7vQhifWa +Ak3xym3EiDZuiMqEqNpua6gI4ue1J+8K4wIFJ+genGUuOK/dkjrHJGdZb9mI5VBpEg4 HKUBlckZvaX9Zi5bec9AM2PJmf9PdHyX5OHt+98S1LaJiPLbCSOjOG6BCs6CuGHM0J2B HWaA== X-Gm-Message-State: AOAM531L5dutA6cQc//bqhsAgr8uhIcSXOxC9tRR+PMlSzNR6S7f55yl a0Fy5zVrbpwHtD1ymrVk5/2Dj3TgwKjNQJkREqfnMU4d/juekQ== X-Google-Smtp-Source: ABdhPJx6RkLAgrWZ5lMDsZrfjvfu6jVhCBUto4zTpzcw1mBrCDA4TKa3qYBfHDAv6FrTCObCCfPl8x2dE2Jfjg8GBls= X-Received: by 2002:a0d:d8d6:0:b0:2e6:d180:1185 with SMTP id a205-20020a0dd8d6000000b002e6d1801185mr12069843ywe.511.1648842414014; Fri, 01 Apr 2022 12:46:54 -0700 (PDT) MIME-Version: 1.0 From: Skip Collins Date: Fri, 1 Apr 2022 15:46:43 -0400 Message-ID: Subject: buffer displays incorrectly after capture To: emacs-org list Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::92c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::92c; envelope-from=skip.collins@gmail.com; helo=mail-ua1-x92c.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648842983; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XTakTrwL6gTdNP+M+qgxNCl02haYiGERQllRO5cXZuU=; b=Iy1fI47rzTK5VwLfUDXXOlIG6SpnuKIbYJbiJdpJI9Yyg1Cwv5aHNqLBUfFthtdh/WJIqo muWUSKEPgGl+F3OO887vaSnAsD3aqBKJR7BOTBqfwHMESQnU1BAj6c9820x1JpXgKZFOo7 FXItKYzb8wcPaaQMavRB6AeML8du0Bi6OcYcPH6wnp1X9F8qhLiU3L8xlzhAGjU4RnvMR4 pz9CaCSgKERnp+N7mUNdwcrXcT86CyRssq0vUZtsEyLtixk7v7XGt7GPh1iaQiK8+QlxvB WV0mIE3SPz65/MAYV3TuSX8ltMxuRiWj1wSS2ZFI1PzyhBnRo8wOO18Fjm70Lg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648842983; a=rsa-sha256; cv=none; b=s3xejUIy2TxXknDQ6z7CPn2AXEYkYl71SiEJG0YKIW8wAyvmGyQMJ9h1jin1J5BFgZqdWm zSQo0mBJYmHskSORP4TiJ2a57FDxxLLA0X81LdZqwmBwgdVPAHzwsaW1t3GswxXui5cLxx qMjiLwuGUfNmXS6UENW2vaJQDWzGujbSHZEZpwBFd0dms5C9XsF/mDhGKMqVJ57CeNlvNL mk11UZ3/okjwxSHARFVrWubSkcfwAi0mrpNGYIAmrE2TUFKm8YMoCM75wVAavCTWI9fNQl c13z8ARnqj8jtf1qqHfGlIhbJpgKQG7n8zNLHDStH48pb+FPkC8YFt2VqS+0Gg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OKKp5G+U; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=OKKp5G+U; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E76E74086A X-Spam-Score: -4.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: B+mOoqC9cQU1 I think there is a bug in updating an org buffer window after capture appends an entry. When the previously final entry, terminated with a newline, is folded, the newly captured entry that is appended does not show correctly in the buffer. Here is an example capture template: ("a" "Actions" entry (file "~/Documents/org/capture.org") "* TODO %^{action} :action:" :immediate-finish t) There is a single existing entry in capture.org: * TODO foo :action: some text[newline] I fold the entry so that it appears in the buffer like this: * TODO foo :action:... Then from any buffer I type 'C-c c' and choose 'a' from the capture template dispatcher. I type 'bar'. I would expect a new headline to be visible at the end of capture.org. Instead, nothing changes in the buffer. When I expand foo, it looks like this * TODO foo :action: some text... No amount of tabbing causes the bar entry to display. The ellipsis at the end of 'some text...' only gets expanded when I to cycle global visibility, resulting in a correct display: * TODO foo :action: some text * TODO bar :action: Another manifestation of the problem shows up when using auto-revert-mode. Starting with the single headline in a folded state as above, when I execute the following command in a shell, echo "* TODO bar :action:" >>capture.org then the capture.org buffer looks like this: * TODO foo :action:...* TODO bar :action: TAB unfolding the first headline shows up like this: * TODO foo :action: some text...* TODO bar :action: GNU Emacs 27.2 (build 1, aarch64-apple-darwin21.3.0, Carbon Version 165 AppKit 2113.3) of 2022-02-24 Org mode version 9.5.2 (release_9.5.2-423-g6d73cd)