From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CGg3EhYQA1/AFAAA0tVLHw (envelope-from ) for ; Mon, 06 Jul 2020 11:50:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4G3gDRYQA1+TcgAAbx9fmQ (envelope-from ) for ; Mon, 06 Jul 2020 11:50:46 +0000 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 7C27B9403CB for ; Mon, 6 Jul 2020 11:50:45 +0000 (UTC) Received: from localhost ([::1]:53190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jsPdz-0005vq-SD for larch@yhetil.org; Mon, 06 Jul 2020 07:50:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jsPdX-0005vg-Jv for emacs-orgmode@gnu.org; Mon, 06 Jul 2020 07:50:15 -0400 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:37724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jsPdV-0004Tc-VO for emacs-orgmode@gnu.org; Mon, 06 Jul 2020 07:50:15 -0400 Received: by mail-io1-xd2e.google.com with SMTP id v6so25301530iob.4 for ; Mon, 06 Jul 2020 04:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ddSDOBDJcJnJjYXv2RXjoqNc8825ONpa0KxcZV69UQ4=; b=acfHBfr18dALEg7IOaMH+cPp6haHfRXB9byNEqbIX5GnhelU5jKG0Qz4VVXp2UAvbm njdThwT+1wcMCQoaSmzCdSOVjC9xW4w6YGCUHbrkuhn3unieerlSoK2b9u+cKZZu7pbg RCJ1DHxKoOt0TqKhRdPPGmyPIBkJyRG0YUChDWgRNea51WkZnuIVXn7tvN0GxWpPXd1W bSj10TnJJ1a6Hk+Hpbwg0+YGYNzGvTNnAqM6Y8MkzYzYpu9IAn51ufeft3lEf/a/xZCU 4Jf336A8QMFiHEruK3Kekmp7pwT4yC3LGprThgHMUMqRO//O8gSicRWsuZ4zY3PLJ/7w YcvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ddSDOBDJcJnJjYXv2RXjoqNc8825ONpa0KxcZV69UQ4=; b=EKUugGTRLBZR6B1WVz38ttQukTO+7fGQDHuevPAPbaxqSyYZ8beoKMDAYGNGlmdXyp Btwd89nKEk3O/V3ISVRtQc6di+/7Z6s8yF63zc9pV7SSIH6CIgGbOyu7mdWK4PoC9EMK Lno8FBmj4PLqfgHyHKR5m25gV4GqFZAJOiSIZAffvhLgMtdAkBgkaKkuzgjZSvfABpd0 BitsD15OlQdnDIzVkDN+pRiVIWqdc7zcr1EG9BgDD5nxLmZUnogHAUjFV6eFNaS1PNK6 hxDzTrrA9FgKBW9Fu/DZ4ddFMbQ+YnJpfpDa0VAol7/6GH1/O09sMpW+cokJcA67YaBL lHTA== X-Gm-Message-State: AOAM533gyWIj7dzlTQ9A/c9VDyzD62GvM4DB4zV+jbVQ+DIJWrAL4U8d 6FMZARFLNAN4WJWRays3vw60IzTZqYHM2KnDX1I= X-Google-Smtp-Source: ABdhPJywUDjFkQY3F1cYAhcfXvuzGgJ6cY5r2BNrPylzhJRl5TgiDbn1mXOZlmjgBip5uSuw2KzVImLosTPyk18HB24= X-Received: by 2002:a05:6602:2c0a:: with SMTP id w10mr24831566iov.46.1594036212847; Mon, 06 Jul 2020 04:50:12 -0700 (PDT) MIME-Version: 1.0 References: <874kql3qhu.fsf@nicolasgoaziou.fr> In-Reply-To: <874kql3qhu.fsf@nicolasgoaziou.fr> From: Duianto - Date: Mon, 6 Jul 2020 13:50:01 +0200 Message-ID: Subject: Re: org-insert-item, indent causes a soft freeze or error message To: Duianto - , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2e; envelope-from=otnaiud@gmail.com; helo=mail-io1-xd2e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=acfHBfr1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 11NbgAOh382g I applied the fix manually and there are no more freezes or error messages. Thank you. On Mon, Jul 6, 2020 at 12:08 PM Nicolas Goaziou wrote: > > Hello, > > Duianto - writes: > > > Reproduction Steps: > > > > Copy the following lines: > > 1. a > > b > > 2. c > > > > [...] > > > Move the cursor to the end of the first line, after the: a > > [...] > > > Evaluate the following command: S-M-; (org-insert-item) RET > > [...] > > > A Backtrace buffer opens with the message: > > > > Debugger entered--Lisp error: (args-out-of-range 0 1) > > replace-match("1. " nil nil nil 1) > > #f(compiled-function (struct old-struct item) # > 0x497071>)(((1 0 "1. " nil nil nil 6) (6 0 "2. " nil nil nil 13) (16 0 > > "1. " nil nil nil 20)) ((1 0 "1. " nil nil nil 6) (6 0 "1. " nil nil > > nil 13) (16 0 "2. " nil nil nil 20)) 16) > > org-list-struct-apply-struct(((1 0 "1. " nil nil nil 6) (6 0 "2. " > > nil nil nil 13) (16 0 "1. " nil nil nil 20)) ((1 0 "1. " nil nil nil > > 6) (6 0 "1. " nil nil nil 13) (16 0 "2. " nil nil nil 20))) > > org-list-write-struct(((1 0 "1. " nil nil nil 6) (6 0 "2. " nil nil > > nil 13) (16 0 "1. " nil nil nil 20)) ((1) (6) (16))) > > org-insert-item() > > eval((org-insert-item) nil) > > eval-expression((org-insert-item) nil nil 127) > > funcall-interactively(eval-expression (org-insert-item) nil nil 127) > > call-interactively(eval-expression nil nil) > > command-execute(eval-expression) > > Fixed. Thank you. > > > > No indentation: > > If the indentation is removed from the second line: > > 1. a > > b > > 2. c > > > > Then it might be working as expected: > > 1. a > > 2. > > b > > 2. c > > > > a correctly numbered list item is inserted. > > > > The fourth lines list number: 2. c > > didn't change, but it might be expected since there was no indentation > > before the: b > > therefore it might be assumed that the list ended there. > > This is expected. You need to fix the second list manually, with C-c C-c. > > Regards, > -- > Nicolas Goaziou