From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uHOPCPD+qmLLewEAbAwnHQ (envelope-from ) for ; Thu, 16 Jun 2022 11:59:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oO6WB/D+qmJpWgEAG6o9tA (envelope-from ) for ; Thu, 16 Jun 2022 11:59:12 +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 B59E13AA60 for ; Thu, 16 Jun 2022 11:59:11 +0200 (CEST) Received: from localhost ([::1]:47886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1mHO-0002vJ-Be for larch@yhetil.org; Thu, 16 Jun 2022 05:59:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1mGf-0002uu-A4 for emacs-orgmode@gnu.org; Thu, 16 Jun 2022 05:58:25 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:45631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1mGd-0002BM-Sy for emacs-orgmode@gnu.org; Thu, 16 Jun 2022 05:58:24 -0400 Received: by mail-pf1-x431.google.com with SMTP id x138so1046049pfc.12 for ; Thu, 16 Jun 2022 02:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=PzRa59TyOb2JalZ6NBylAaQXF6xslydZgw14wNZybtU=; b=YEd4yiUAUebndgEwH2F5vG7ucfnE2KFFh0TBrGiJZeP8ahK8+L3/g4Ef1s0BEwqBzT i01rC8LY6a3H/yEdDenUtbHvh2lg77E3bEr9SlqNGeUenDtkkRDQTEUFjWsVUGa02Cxj 3cpWsuh+E4kUUcM5am46YlGMJ8NlFK/6zyel6TrZV7zmd9ThjB8tfJFyCWM9gQN7yS5X XwHtx8ATg9Du4WaXUh9KO2u/hc8eLn1RGh8L1LxGPK/wEDnMHSIQJbMnSSYnE9KQLs8Y 2XySOF9iM9n9JGdQc3PwEM2mNELSQVMO9ImHab8mF4TD7xXaktwYCJ1zjtor1vS22abh Vcnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=PzRa59TyOb2JalZ6NBylAaQXF6xslydZgw14wNZybtU=; b=FqXoKGa4TRv8itRjznu9OW0ZthKSnn9B9DgUMGFyp52Ivh78q8oTNL8j7eWkH919RA ZXSsVn3MElamhzRrZ2dPaYIlUSg7mFrnDadxr9SWby31zS3p74XxaRu/vINNw8VtfARg E9UOcvAgEWr/SdCymVw6zFbaBT+NGWa6mVQlq5s6gIj7L3rtwrqXSvPH83WneGAj3uIf zF9KK9oGyp7RyUzA/AhZSbLrZRvhzW8iXwdeWeY7TGJehBAsUhPppPQoofZUiT0Aamlg iCdGhAtXS7496RfojuqfuSkogRzLB/QFUhIEr4z+I+ZlpON725CDFx2/rQ7RVye0MEdD GADg== X-Gm-Message-State: AJIora/m4FHYUtzm5xLcu4esK9Gi7w3SW6g2xcbi92VdAXZAI3T21MIH IQEtcQl8G32WVjhPofXQUbs= X-Google-Smtp-Source: AGRyM1tiCozYNtS1CtKZI6rjNZRoXJFzFp1VgNk5EN+CRX4bv//a1OY8egiugi0oTycU09aA85cL/w== X-Received: by 2002:a05:6a00:1307:b0:50d:b02e:11df with SMTP id j7-20020a056a00130700b0050db02e11dfmr4143990pfu.4.1655373502497; Thu, 16 Jun 2022 02:58:22 -0700 (PDT) Received: from localhost ([155.94.207.39]) by smtp.gmail.com with ESMTPSA id t1-20020a1709027fc100b0015e8d4eb2e3sm1176612plb.301.2022.06.16.02.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 02:58:21 -0700 (PDT) From: Ihor Radchenko To: "DEBRY.Edouard" Cc: emacs-orgmode Subject: Re: Orgmode plain list bullet : change automatically with list depth In-Reply-To: References: <87wndiv988.fsf@localhost> Date: Thu, 16 Jun 2022 17:59:28 +0800 Message-ID: <87bkut9ben.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=yantar92@gmail.com; helo=mail-pf1-x431.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1655373551; 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=PzRa59TyOb2JalZ6NBylAaQXF6xslydZgw14wNZybtU=; b=U78q9PsmOg7kN4FgOd1TvmFc8hMS+XWR+l4LAFqM0hCdHGmZN1Kyq4po1jqt3x5N6g4a/6 BLRTF93Q+ONJK4aZ+aKQuRJDVyJhKr1OQqffXwZP4uHIyvJwEYvopwnrGLWm/JWqARD2uE o6eKw3Nzqmo9clj3RD+yPEyt1AG2cuxgr1S3ZPB9/RyW7A4n5zauZglzn2TPY4WPC2scXj NtSCjBy+GG8eQ7bkdbDswDPGg5SbPOrmcacEZR6BK6uFFNyUaw+QVVa13ssn0yDEdg20Ga qQGDQ/9ktd0ikQMfhDC63w5WSyGq7Vl0Bf2IGfvSTZJ1HIuupfirJjVWBZ1f+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655373551; a=rsa-sha256; cv=none; b=aVu9+n1AXc3N2gwR4am5/5eRaAqGZdrqjf4DS4BcNh4U1k+JoQg+cHEBUfZeg/mSc9FiTt nttM/L+v95fgLjO8cYKjb4K/De/kMa5V9NM2g6Z+CuF9adypficmlafQozhJfMMFK56yME fLycHMnupvtZWcCu/b7setaFCdQC8asDNB6MAklk00p/97jpCYPybmevGqrf+J/8RyQg+3 N0iBFt3soI+oFi2JghdetmRKjWhLvtdx71FBJ/xu0JHvi+4f34uI27vpdEHYrEAzIk4oTz 49nVN1Cxk/KsR/MnTR+vztYa2U1HEOtY2YKNbVDiAJw5T56Ejv9Pt1IBqf7XaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YEd4yiUA; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YEd4yiUA; dmarc=pass (policy=none) header.from=gmail.com; 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: B59E13AA60 X-Spam-Score: -3.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: PLYiCxV9wYKM DEBRY.Edouard writes: > I mean that all custom set faces disappear, just try, if it works for > you i am interested I see. FYI, you can try to run M-x font-lock-debug-fontify to identify the problem. The issue you are seeing is because org-element-at-point alters match data and thus your (match-beginning 1) are not returning what you expect (they return nil). Best, Ihor