From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UJRMBovb6mSsSgEA9RJhRA:P1 (envelope-from ) for ; Sun, 27 Aug 2023 07:13:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UJRMBovb6mSsSgEA9RJhRA (envelope-from ) for ; Sun, 27 Aug 2023 07:13:47 +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 C12CB3E4E8 for ; Sun, 27 Aug 2023 07:13:42 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=T6GsIUyb; 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"; dmarc=pass (policy=none) header.from=163.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693113227; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=066SKrDPAVYoMlzfeLmAw0WHV+gu6LylJAtGqt+X9ks=; b=mM4+L8rxOLkhYUxY+9s8UeSWghOuRKJ/XfNxqjc/4j/eqHQYW59v3OtCJGHrqlOO0kP0sP BjcwZvyrBVHe35bTE0P0WQyc2D9gwrj2B2zkqV5thoSW6FA0Y8whxICBcTjbKfH0u9tsx2 K/Bt7JseBE4NHONvXh3PcoqYgr2V/C1JgAbZjruUk5M9Tx+EGJF7dLFDumvIgxtAN3MpxZ mA3xnN+Bcq96NC4wd9CvNyZZ9nGMN3Lslh4muMKaGcuB9hPtLqF+GC664Ufolm96A7kzbw wY0IKHholqJ+/xJjYcgg3ARTHKvLkSAKdgKhxdF0Jk+wmQGJVDAUW4xV8TmANw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693113227; a=rsa-sha256; cv=none; b=D40jISiuzsv0i7fTOsUc7I5dG9VTbTXjrJZ/EvoL70ZNSvM6dQibA3mt556iMwhRuBeH1V /tBhcvBPU3enwmGDXaft9USpKX2u8NOqCAmVCwEyq7O3uoSg6EzBuoiNvhAI2ybMz8HyJu zGbbCgR9eTCnhavkDIv/WJM+X6tg4wD7BfCTPuCGG2tZOLgUdSpNohgfs30/iFXGYt4fYW fxXRY6UKmKpigZflXbQF5XHj/v6UhcEUL9XpGEJkbb/NKjRFG0l6f9Uk9lgc9jGWEpHDNs vb2Zye8ZBcAtKgZeUPNtuS7QQ0YS9mesFR1ZQvGfF9b00lApo2sqqTwLEEDREw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=T6GsIUyb; 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"; dmarc=pass (policy=none) header.from=163.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qa84r-0003BC-Td; Sun, 27 Aug 2023 01:12:47 -0400 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 1qa84q-0003B4-AC for emacs-orgmode@gnu.org; Sun, 27 Aug 2023 01:12:44 -0400 Received: from m12.mail.163.com ([220.181.12.215]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qa84k-0000My-W7 for emacs-orgmode@gnu.org; Sun, 27 Aug 2023 01:12:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:From: Content-Type; bh=066SKrDPAVYoMlzfeLmAw0WHV+gu6LylJAtGqt+X9ks=; b=T6GsIUybXVowsLFwk9gzi6MqfD7XhEdCAFZnyCzZ2Y02pyo4MeW5izl6sU5sjj tm7JUK49qXIqcSfaFlDDWO/Fpql6OG+w7nglcjJCEoqHunlnAcqtrS4aBBS4TMQS yFAitbJtkWgaJj9crbatPUGvRuhGEVqrcX5fhXbdW9TrU= Received: from [172.31.103.81] (unknown [106.120.22.4]) by zwqz-smtp-mta-g3-0 (Coremail) with SMTP id _____wB3W6g32+pk_57FAQ--.12569S2; Sun, 27 Aug 2023 13:12:24 +0800 (CST) Message-ID: <401a5562-eb2a-8338-b391-95af34a117f7@163.com> Date: Sun, 27 Aug 2023 13:12:23 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: emacs-orgmode@gnu.org Subject: [BUG] org-up-heading-safe behaves different in v9.7 [9.7 (9.7-??-d6f3aed @ /home/zhaoyiyu/.config/emacs/.local/straight/build-28.1/org/)] Content-Language: en-US From: zhaoyiyu Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wB3W6g32+pk_57FAQ--.12569S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7tFyUJr4DJFWfGry3AryDGFg_yoW8WF1rpr 4ftrnrurW5Ca4kJr1xJrnrtF4Yvr1fGas8JF48Jry8ZFnxAry8XrWFyFn3Kr9rA340y34q qw4a93Z8Jw1qyrJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j2wZ7UUUUU= X-Originating-IP: [106.120.22.4] X-CM-SenderInfo: h2k160rg6rljoofrz/xtbBFR-YQmB9n5u9NQAAsB Received-SPF: pass client-ip=220.181.12.215; envelope-from=zhyznd@163.com; helo=m12.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_BL=0.001, RCVD_IN_MSPIKE_L4=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.80 X-Spam-Score: -8.80 X-Migadu-Queue-Id: C12CB3E4E8 X-Migadu-Scanner: mx1.migadu.com X-TUID: npFw44t8w3E1 Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ When I track down a issue about org-journal, with org v9.7 I noticed that when execute (org-up-heading-safe) it's different with org v9.6, which would caused the org-journal issue. In detail as follows org file. After execution the cursor position will change to File Header                 <-- v9.7, return nil and cursor here * heading lv 1             <-- v9.6, return nil and cursor here some contents and your prev cursor is here I Personaly, I write a advice to fix the issue (defun myfunc/org-up-heading-safe () (let* ((heading (org-element-lineage (org-element-at-point) '(headline inlinetask) 'with-self)) (parent (org-element-parent heading)) (ret (and parent (org-element-property :level parent) (<= (point-min) (org-element-begin parent))))) (if ret (goto-char (org-element-begin parent)) (when heading (goto-char (org-element-begin heading)))) ret)) (advice-add 'org-up-heading-safe :override #'myfunc/org-up-heading-safe) However, Since I didn't get the purpose for the org v9.7 changes, I submit this issue here. Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-05-31 Package: Org mode version 9.7 (9.7-??-d6f3aed @ /home/zhaoyiyu/.config/emacs/.local/straight/build-28.1/org/)