From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AEr9NfSGj2abBgAA62LTzQ:P1 (envelope-from ) for ; Thu, 11 Jul 2024 07:17:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id AEr9NfSGj2abBgAA62LTzQ (envelope-from ) for ; Thu, 11 Jul 2024 09:17:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oXTRUEco; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720682228; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4rzB8AKzeyf9crMVsss6pcQ8jlQlSUW3nKtpIF7pkR0=; b=gQtxXetau2B9ffBcgZY8lEMVGFxVR6BCA2ECeoMTbOokDut01H4m24G8LazfZgmpa/FMWK +LUvBvsgk7iuL1L94UiFcvCQc69NWqQ+qf6Ui6ZURuGKn+0gJZSSZsGPO+DWdbsFQDLkJJ QiySdSoZVjyInOrVSxSYPWpOQNMPbqfvdE540vS4ufIh7vY6/Ck9PpjYWWUTLN9dNNyn8A UEDW8e/1tkia3sQfJUhsvOD/4OBPLHLgty/xBSrp1HhGuhyimk/leaIeW7FAKwZtKbJQ+2 U+83QmVLgIHLnJGOmsrD/dcRezV9p8gbHUI7RF0a9u+YvwsP1b3zHf2N/Jz11g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720682228; a=rsa-sha256; cv=none; b=EHsEdnTgvkfId/IjhMqmf/FJOrBAX4Y789MNklK+6rVRlvwsZnkeJNKBEOrkxU6FpzxE4n IDhQY3vr8YWX/h7axgA1W+w41Al3WF/AFGxrf6Sgx2mgR77XazsqzrEP68NM9ER0ehWe18 q2PU2vCxb+ASc/B7RwzjaCxVMe+YLBkDiOCe6A1E0qDPcE5ScXFstdM6rC3faE0W1rVRsg ejCPf8HW6zMvCfIuxX5HPSReKmp9+tamHQbCu/P/2ZpjUBxBG9Pq5fFnzD2j213U0Pa0Xd mZqFvr8FUqhcAAK6AbQkqEGmvkIfMk5hURpu1x4YyR0HDYk8O2xMzaM9zhzQ2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oXTRUEco; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 DB55A1F1DD for ; Thu, 11 Jul 2024 09:17:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRo24-0005VS-R4; Thu, 11 Jul 2024 03:16:00 -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 1sRo1z-0005Sx-J8 for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 03:15:55 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRo1x-0006eq-FB for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 03:15:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E8BFD240027 for ; Thu, 11 Jul 2024 09:15:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1720682148; bh=4Iw5yxfYwUjl9IgulEvOehOmFKXbVADgW2cH2AckSYI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=oXTRUEcoggVEUygSnW9fRyWNxZdKnOZo6X3C70qnJQboPX1YVmgcALl2Q7FMIBSrt AQLy2AkoV/NJrSJd09v1YH9vIb2cTcqF8rRXY5bvuRKFMHEH1hzDU8DYXlSxm5+4LP Z0wfnqFAvGdhran1b1/BqQqTNCiB+kUllfHVVnLC3QpGet/N2ON0F+BhXKSdhcYUpm 6r+TMPDj83gKYrWKmDZHhNpOMYP0rhnJi4fN6YTxQ7LPOZAtNv6q9UUbhtiWtXx15A vyG6fWewpHCZzQG/Ds6NUmef6Jdw1pFDuZpPqOiPsnQUJsB3h5GL3qBjdWKAdONsli nQr85cdFiXLXA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WKQxJ2mqqz9rxQ; Thu, 11 Jul 2024 09:15:48 +0200 (CEST) From: Ihor Radchenko To: Phil Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] unexpected behaviour on sub-list In-Reply-To: <827fe3aa-ddcc-45a1-b4cb-e22312020b22@7d.nz> References: <827fe3aa-ddcc-45a1-b4cb-e22312020b22@7d.nz> Date: Thu, 11 Jul 2024 07:17:18 +0000 Message-ID: <87y1681jpd.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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-Queue-Id: DB55A1F1DD X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.63 X-Spam-Score: -9.63 X-TUID: RfVWKD7HvryK Phil writes: > I'm reporting this bug on Org mode version 9.7.6. > It was in already in 9.5. > > - here is a list > with a sub list > > - like here ; > > and then text (<- this will be deleted) > x > > 1) Trying to insert an other item above, > by suppressing the "x", and hitting M-RET, > if there's no text after, the command gets stuck > in org-list-struct-apply-struct. Confirmed. Potentially a duplicate of https://list.orgmode.org/orgmode/v3up5d$oc4$1@ciao.gmane.io/ > file:~/.emacs.d/repos/org/lisp/org-list.el::1968 > Very likely, needs to check if forward line returns 0 > otherwise it will keep looping. > > #+begin_src patch > - (while (< (point) down) > + (while (and ( < (point) down) (not(> lines-left-to-move 0))) > #+end_src > > file:~/.emacs.d/repos/org/lisp/org-list.el::1982 > #+begin_src patch > - (forward-line))) > + (setq-local lines-left-to-move (forward-line))))) > #+end_src Thanks for looking into the causes! I will look closer into this later. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at