From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uGMlKG8iCF/5JQAA0tVLHw (envelope-from ) for ; Fri, 10 Jul 2020 08:10:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kJfwI28iCF+hHQAAB5/wlQ (envelope-from ) for ; Fri, 10 Jul 2020 08:10:23 +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 3166294066B for ; Fri, 10 Jul 2020 08:10:23 +0000 (UTC) Received: from localhost ([::1]:53484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jto6v-00041w-Uh for larch@yhetil.org; Fri, 10 Jul 2020 04:10:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jto4o-0003fl-B3 for emacs-orgmode@gnu.org; Fri, 10 Jul 2020 04:08:10 -0400 Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:45274 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jto4m-0002SW-Nd for emacs-orgmode@gnu.org; Fri, 10 Jul 2020 04:08:10 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jto4j-0000D5-Lt for emacs-orgmode@gnu.org; Fri, 10 Jul 2020 10:08:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Jarmo Hurri Subject: Re: Error (args out of range) when editing list Date: Fri, 10 Jul 2020 11:08:01 +0300 Message-ID: <87zh87aj32.fsf@iki.fi> References: <878sfrvqem.fsf@iki.fi> <875zav4ygg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:r5rZdwFyWMKJcV2ieUwW+ZJqYXA= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/10 02:24:21 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no 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=none; dmarc=none; 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: -0.51 X-TUID: t16GzDdd6iCj Hi there! Nicolas Goaziou writes: >> * Demo of some sort of error >> 1. (take your cursor on top of the letter X after the closing >> parenthesis)X >> 2. then press Alt-Enter >> 1. you will notice >> 2. an error >> 3. saying something like args out of range > > Could you try with latest master? I cannot reproduce it. I think I am running the latest (stable) master: Org mode version 9.3.7 (release_9.3.7-13-ge62ca4) Then it has to be something in my system. Great. As a cry for help, here is what I get with debug-on-error: Debugger entered--Lisp error: (args-out-of-range -1 3) replace-match("2. " nil nil nil 1) #f(compiled-function (struct old-struct item) #)(((30 2 "1. " nil nil nil 112) (112 2 "2. " nil nil nil 119) (120 2 "1. " nil nil nil 187) (146 5 "1. " nil nil nil 170) (170 5 "2. " nil nil nil 187) (187 2 "2. " nil nil nil 232)) ((30 2 "1. " nil nil nil 112) (112 2 "1. " nil nil nil 119) (120 2 "2. " nil nil nil 187) (146 5 "1. " nil nil nil 170) (170 5 "2. " nil nil nil 187) (187 2 "3. " nil nil nil 232)) 187) org-list-struct-apply-struct(((30 2 "1. " nil nil nil 112) (112 2 "2. " nil nil nil 119) (120 2 "1. " nil nil nil 187) (146 5 "1. " nil nil nil 170) (170 5 "2. " nil nil nil 187) (187 2 "2. " nil nil nil 232)) ((30 2 "1. " nil nil nil 112) (112 2 "1. " nil nil nil 119) (120 2 "2. " nil nil nil 187) (146 5 "1. " nil nil nil 170) (170 5 "2. " nil nil nil 187) (187 2 "3. " nil nil nil 232))) org-list-write-struct(((30 2 "1. " nil nil nil 112) (112 2 "2. " nil nil nil 119) (120 2 "1. " nil nil nil 187) (146 5 "1. " nil nil nil 170) (170 5 "2. " nil nil nil 187) (187 2 "2. " nil nil nil 232)) ((30) (112) (120) (146 . 120) (170 . 120) (187))) org-insert-item(nil) funcall-interactively(org-insert-item nil) call-interactively(org-insert-item) org-meta-return(nil) funcall-interactively(org-meta-return nil) call-interactively(org-meta-return nil nil) command-execute(org-meta-return) All the best, Jarmo