From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UBfTLryrn2JUPwEAbAwnHQ (envelope-from ) for ; Tue, 07 Jun 2022 21:49:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AGzOLryrn2KCUAEA9RJhRA (envelope-from ) for ; Tue, 07 Jun 2022 21:49:16 +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 D284E4500E for ; Tue, 7 Jun 2022 21:49:15 +0200 (CEST) Received: from localhost ([::1]:36982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyfCU-00089T-1X for larch@yhetil.org; Tue, 07 Jun 2022 15:49:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51276) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyf7v-0005eW-Un for emacs-orgmode@gnu.org; Tue, 07 Jun 2022 15:44:32 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]:47049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyf7t-0007FE-LC for emacs-orgmode@gnu.org; Tue, 07 Jun 2022 15:44:31 -0400 Received: (Authenticated sender: pe@7d.nz) by mail.gandi.net (Postfix) with ESMTPSA id D266740004 for ; Tue, 7 Jun 2022 19:44:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=7d.nz; s=gm1; t=1654631065; h=from:from: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; bh=hLIsdvEk7SFn9/RRyhYFN7V4zNlw0GadDHaajh3R/jo=; b=WsChInI22cmw8LOFW+iEqwMwOMlgc1U313zqVwrawn6HFrcfmjQb37Ofm5d+O9/W+URxb7 fNqJ0pd30951J4gcsyxUPsFvM3i8IOMNz1E3HuVCufBuvltwIqAPioqJPwGgna3vJBsTdt EaTWqP33yUXl9jraG+cXpN3EMKJj6JKRDER/o9KrqzjoWxrPGCGrlhc83w4R1vYiDCyA8y xhK41lCPwYv9kPtylQAYxMR4Q4noZ/UXUk7kBYykNZYaMJNrpOUKZ02XJA1zm6unSRReVS GMYlELSRNbaCoKrztLRn5K38lC4yqNHFjZvU+wo7EllXIO+iPlv1BakTV9IFYw== Message-ID: <844ea872-5129-1914-7778-6693529938f9@7d.nz> Date: Tue, 7 Jun 2022 21:43:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 From: Phil Estival Content-Language: en-US To: emacs-orgmode@gnu.org Subject: [bug] org-list-struct-apply-struct: insert an item in the end of a list Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4b98:dc4:8::222; envelope-from=pe@7d.nz; helo=relay2-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" 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=1654631356; 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=hLIsdvEk7SFn9/RRyhYFN7V4zNlw0GadDHaajh3R/jo=; b=L9SMHozf0gnSUg78HTUx/OihQGVvlvjSZHCZRi3/R9KqhhZK2rimIuaKg8yj3rj7PkTX5G tnPKuZGitr0LTq/Xbc2KyK16JqLOE4B+XZE8HflW5Gty1erp/U2oSkJGtCZ6TXrrVPbL2o 0lGW+hHfyCJxFl1tiMt1zl4DKVBBVhQfEtucFFyp+Ud3S6Bq58+f5vn8YvmVQ1KObKYYmJ GCjBDdTYKf3RQMxuXNufsjgLdqPzayP9+6f1ILDzdckdKkLq0OL68rkpXicHiAa8ZRPlkz zPnN5AMNzkZP7P3EYgdev5QeGdaCCCqUE4+2xCXonMPDorcItm2mxReIx2vxIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654631356; a=rsa-sha256; cv=none; b=HBcHCK9izFFzU2SF2MWlGZFFjF88ZbiGdMFUnooM7T/6nypLs2q1la5j5BZ+UWCTLZnJp0 URyH7MyKHvS12Ya18MoKJahm19Uxppm5rkygQ8a4AaLHISXLTyYuoP/Zv19pwSg7g5Ljfb 2EN6L+667Bl5i5plaDQMifJeDDWYlInicQN9kN7Pc9qk9TPPhMA7UhoqmWj3iuvDUFlQTS gQVEdo7S/OCuWoRXkLY3RAPFV8P4g/6C6ypvQnhtTg7G8XRkqB8jU9qBDz9CL0kFGiwznp SA/NgfGIDU5e4dmagCeHCj+K8NTnFSOK+bot6Cer/x+141DFZP69dIOl7fa8/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=7d.nz header.s=gm1 header.b=WsChInI2; dmarc=none; 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: -5.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=7d.nz header.s=gm1 header.b=WsChInI2; dmarc=none; 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: D284E4500E X-Spam-Score: -5.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: xt+rTexPMAiS Hi there  - A nasty bug when inserting an item in a list    in last position (org 9.5.3-g69c588):    - here is a list      with a sub list      - like here ;      and then text    x  1) when trying to insert an item in the list     above, by suppressing the "x", and hitting     M-RET, if there's no text after (like this one)     the command gets stuck in     org-list-struct-apply-struct     org-list.el::1932     #+begin_src elisp (while (< (point) down) ;; should probably check if forward line returns 0 ;; otherwise will keep looping. Something like: ;;  (while (and ( < (point) down) (not(> lines-left-to-move 0)))    #+end_src     org-list.el::1946     #+begin_src  (forward-line))) ;; (setq lines-left-to-move (forward-line)))))    #+end_src  2) after a break, C-g, or immediately when there no     text following, text gets destroyed (much     possibly), the list's structure is     disorganized and the next paragraph too. Good luck, Phil