From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8DL7Jx3kjWZRkQAAe85BDQ:P1 (envelope-from ) for ; Wed, 10 Jul 2024 01:30:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8DL7Jx3kjWZRkQAAe85BDQ (envelope-from ) for ; Wed, 10 Jul 2024 03:30:05 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.com header.s=s31663417 header.b=EF7DRt0P; 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"; dmarc=pass (policy=quarantine) header.from=gmx.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720575005; 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=aRQfwEq3jShhljdoc7Cr2le3P5acd7msYoWyztFF0N0=; b=adOK1M0/5LxgaRjFU462+6bKYyh4S57jdFqQFR44fJVMu7d3VZwLcDxxm2CKyjLg8t64db wo0CfrHkIL68axX1SoMAlUPwJ2TJiWVU8wfbhCOVYUuo2GCO3kWphj3i7p2hGr01ftv8C0 7ZYAbe3z6I8hxrlHmyYjx46OjJhnYJAo1IFid5eX/b1C1heboxrCchjBSEnGGJxUfB51CH FKwDGGybtEVJjI56dk9tEX7xbcuzm/4UprNTVJRUAhzxg7dTNG4otOmwUAByBQt12g1T0P DwJcXKnNkLcAEIZnMtmpOfgXVnN0JqlfoYA8Ww/3HI7ZOZJRxppMKNo8YzqRDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.com header.s=s31663417 header.b=EF7DRt0P; 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"; dmarc=pass (policy=quarantine) header.from=gmx.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720575005; a=rsa-sha256; cv=none; b=VbKVq0ntxc/NU/z3pfMc7Qjc+O2m2y85PlpQQ22mP6BB9TasklupDju6mKHZ3knNQW+bxE 9kXLIyFKzZxydt6VrkynIij8zBckcmmAB7R4Dy1cP92iM4yG5i6fxzs3bYJJwywbXNGnct 0uF7AVFDy2ww1jy/qCKUbvXIg9COkq8JGHt2kXe9sPn1empJcQXzSIrLhvCdilSUFASkGQ zUY27o6iloPenPw9xOCDEmShB3oe5oojhriWLOrBA/MmvGfk7KlFhj/IuAYHaqX4Zlg6ZH BaKdWXdDBgbyTXbjQh1f0D6B508ZipoY/AEJaLT3Kshb1mpQ4nOmdgQK6ZGhlQ== 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 ADB78F645 for ; Wed, 10 Jul 2024 03:30:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRM8Z-0003jh-4D; Tue, 09 Jul 2024 21:28:51 -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 1sRM8X-0003jD-Lq for emacs-orgmode@gnu.org; Tue, 09 Jul 2024 21:28:49 -0400 Received: from mout-xforward.gmx.net ([82.165.159.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRM8S-0000t6-Ci for emacs-orgmode@gnu.org; Tue, 09 Jul 2024 21:28:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1720574918; x=1721179718; i=vitalij@gmx.com; bh=aRQfwEq3jShhljdoc7Cr2le3P5acd7msYoWyztFF0N0=; h=X-UI-Sender-Class:From:To:Subject:Date:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=EF7DRt0PQB4GzOgG2mq1fk0jbnfIyk1dR84fSmFJwRV/+IgAvaKlj+fjVcdJW4AW knmZOs+xfbxwan//tWjKI7pYaIIicbdVoxXcBd6XpEp1CezdPItLoPZ4rBOHVgUtT THLAJqFympV6UeKb61PRZqMmgI3UXmdDeQeweldV0sCMBq7jwZUNar7GRyMQqdFAj EBoLPT41F+2ET6eTWG6cm2Y59mfkevCoZbNFntMZe1KENACHuSRbAGqVz9vHknfD1 Gz6JEjbo2XTEhWmugOcSd8UR+MeqiLZjPjiRPsltVFlfPudcb5lwiye3ArZJ/KLPF h/9N+LrbvP+xJq/IZQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost ([77.37.172.167]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MQe5k-1smks41cz0-00Wspw for ; Wed, 10 Jul 2024 03:28:38 +0200 From: vitalij@gmx.com To: emacs-orgmode@gnu.org Subject: [BUG] List: org-shiftright brake list by indentation. Patch. [9.6.28 ( @ /home/u/.emacs.d/elpa/org-9.6.28/)] Date: Wed, 10 Jul 2024 01:27:40 -0000 Message-ID: <871q42qbn7.fsf@gmx.com> MIME-Version: 1.0 Content-Type: text/pl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PKKLUQM/KMpD0RzSeTTDe5IqtFosvXMfIzRd8FnV qSg+zWsjnkIWcjxLlKkR1C3+Z1giHx/TJjVgFKGLV7E= Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=82.165.159.12; envelope-from=vitalij@gmx.com; helo=mout-xforward.gmx.net X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.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, LONGWORDS=2.035, RCVD_IN_SBL=0.141, SPF_HELO_PASS=-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.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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -10.33 X-Migadu-Queue-Id: ADB78F645 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.33 X-TUID: YlOeYKOSpKCK Hello. I use fill-paragraph function with (setq fill-prefix " ") variable. If I have list: 1) text text text texttext texttext texvttext texttext texttext texttext texttext texttext texttext texttext text 2) text text text texttext texttext texttext texttext texttext texttext texttext texttext texttext texttext text After org-shiftright I have: - text text text texttext texttext texvttext texttext texttext texttext texttext texttext texttext texttext text - text text text texttext texttext texttext texttext texttext texttext texttext texttext texttext texttext text This breakes list strcuture. I don't want to use (setq fill-prefix " ") with two spaces. I created this patch that don't change indentation of list by shifting. diff --git a/org-list.el b/org-list.el index 502e61b..2867149 100644 =2D-- a/org-list.el +++ b/org-list.el @@ -1813,6 +1813,12 @@ This function modifies STRUCT." (setq end-list (sort end-list (lambda (e1 e2) (< (cdr e1) (cdr e2))))= ) (org-list-struct-assoc-end struct end-list))) +(defcustom org-list-shift-body-ind nil + "Indent text of column when bullet was changed." + :group 'org-plain-lists + :group 'org-cycle + :type 'boolean) + (defun org-list-struct-apply-struct (struct old-struct) "Apply set difference between STRUCT and OLD-STRUCT to the buffer. @@ -1956,7 +1962,8 @@ Initial position of cursor is restored after the cha= nges." ;; end to beginning. Take a special action when beginning is ;; at item bullet. (dolist (e sliced-struct) - (unless (zerop (nth 2 e)) (apply shift-body-ind e)) + (if org-list-shift-body-ind + (unless (zerop (nth 2 e)) (apply shift-body-ind e))) (let* ((beg (nth 1 e)) (cell (assq beg struct))) (unless (or (not cell) (equal cell (assq beg old-struct))) Emacs : GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2024-06-23 Package: Org mode version 9.6.28 ( @ /home/u/.emacs.d/elpa/org-9.6.28/) =2D- Best regards, Python Middle Data Scientist. I am looking for a job for 1.5 years.