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 UFNwKAp9j2aOBAEA62LTzQ:P1 (envelope-from ) for ; Thu, 11 Jul 2024 06:34:50 +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 UFNwKAp9j2aOBAEA62LTzQ (envelope-from ) for ; Thu, 11 Jul 2024 08:34:50 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=7d.nz header.s=20240212 header.b=YYWYfQrI; dmarc=pass (policy=reject) header.from=7d.nz; 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=1720679690; 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=9bChQFdOhtuFkSkfe0KTcPGCx24bS3VXDejGaMFBB6g=; b=KNLgBktRzjM2uvwvsQQqoz6HQAK5eoop5LW9VoeoFsFVI85gW0L2zqUqgC6p1z7rf6wmGU n92Rm0121CJVuvdDYJSG905QbEJTEUK08brzwLQUIt0WmCashstneO1LXs8+xNBqZsHM1y JjBces89VvIewz2yu9B+SiWv/AgX/95iqbJzhise4zqA4qJJRBaRjgwVlJSWM2D7gKTDM7 VRUOFR7+TKv0jMcjr1Q6lWYcshdCyjV7nUCqcgWs7WSZ+HJry/iO748zkPiQa9K71yjpkf buJnVFiohTWMiGDxVOs4a8o9UHn3cjI69cLos0XUJviaI61xHXNlMYqsBpwU6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720679690; a=rsa-sha256; cv=none; b=d/uYo/PY/yUTHGSKonIPJrYYcABVZyBUz6wJDL04/IHjVTVD5Znmx7idr8uNgyUiNbgv3F DA+fGSZJGJFdmlzwVPVNMyhrQdevdzkM1xWiWFfjWV2ZRYgQtsVmAn/pg0gfS/+qf0A12P dncr3fGpX/Wq/G5YiSWXV/qq8vXSURzItKnapL/XM2K/X4rmA47peiwrt9CAfvOllpgx7p sJzuxc4e653cFfTSYn4gAXrcfsjfvK1BUltlosJai/NDeFD7AohuZUnnCLmB5BTlqBsBwd 83YbibO8RhKbGWGzzV1VM/vCqMT6B2l8MCo0U3R9T4WiRygQ18d07sFH7mxSnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=7d.nz header.s=20240212 header.b=YYWYfQrI; dmarc=pass (policy=reject) header.from=7d.nz; 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 4233B19F57 for ; Thu, 11 Jul 2024 08:34:50 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRnNU-0001TT-7K; Thu, 11 Jul 2024 02:34:04 -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 1sRnNS-0001TD-06 for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 02:34:02 -0400 Received: from smtp-42ad.mail.infomaniak.ch ([2001:1600:7:10::42ad]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRnNN-0003fZ-TQ for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 02:34:00 -0400 Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4WKQ0n0ws7zgWf for ; Thu, 11 Jul 2024 08:33:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=7d.nz; s=20240212; t=1720679625; bh=9bChQFdOhtuFkSkfe0KTcPGCx24bS3VXDejGaMFBB6g=; h=Date:From:Subject:To:From; b=YYWYfQrIZmEh4jl8hwhaN9eHT32DrxVrSfwyQcDK4tttigsqysXzo1UJ/jwWMXE5n GT7VRMyqRrpEbhL5EM1P5nDqGQXgyPH+g+1tDxZsjbwlaaiuhRVEy6I+Ms4+4uPr6j JZaIS6akt2ya3BG8UphxCm8ndxJfDcBarQZkciaC5HCM/Z2aARdIEFkp2dma0SGvOn x5tb4sXJoxRNJtuiLBjuydPaM/rWDGTKEOQr3cUn3DgdwyPeqgKtRQ/58MQ0Wy7M1O mmxfriNBE6fJUsoQlKGE3Yu/fy9KkJRGaoPsWIuiRMVzR5dy3PkoxeJBDUGilmPZ37 ZfgV8t/ClWGeA== Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4WKQ0m4VzFz4n3 for ; Thu, 11 Jul 2024 08:33:44 +0200 (CEST) Message-ID: <827fe3aa-ddcc-45a1-b4cb-e22312020b22@7d.nz> Date: Thu, 11 Jul 2024 08:33:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Phil Subject: [BUG] unexpected behaviour on sub-list To: emacs-orgmode@gnu.org Content-Language: fr, en-ZA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Infomaniak-Routing: alpha Received-SPF: pass client-ip=2001:1600:7:10::42ad; envelope-from=pe@7d.nz; helo=smtp-42ad.mail.infomaniak.ch 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, SPF_HELO_PASS=-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: 4233B19F57 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.92 X-Spam-Score: -9.92 X-TUID: lZRHiWbb9/FC Hello, 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. 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 2) after a break, C-g, or if there is some text, the previous paragraph is killed and the list structure re/dis-organized. Cheers, Phil