From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id R62kJb/vEGGihwAAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 11:05:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UP7CIL/vEGEKMAAA1q6Kng (envelope-from ) for ; Mon, 09 Aug 2021 09:05:03 +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 C74A516B7B for ; Mon, 9 Aug 2021 11:05:02 +0200 (CEST) Received: from localhost ([::1]:56644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD1DQ-0000aL-IR for larch@yhetil.org; Mon, 09 Aug 2021 05:05:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD1AF-0001a4-KJ for emacs-orgmode@gnu.org; Mon, 09 Aug 2021 05:01:43 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:42720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mD1AE-0001c4-1T for emacs-orgmode@gnu.org; Mon, 09 Aug 2021 05:01:43 -0400 Received: by mail-lf1-x12c.google.com with SMTP id d4so3486392lfk.9 for ; Mon, 09 Aug 2021 02:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=b8V9n0Ss7lZs2nISu4fwFs0LQXs3/vlKfl9Zdtxdbn8=; b=sKAwA8yGiXp3BL0jiDNW2NRiAW4uj2T9ehXTP/W94iY6M41CjkMkQq4zc6knWKPmfI tQayfOpWz738iLZyCcBbqy0pWc9PelLLuHAQCN+mkwFmipN1wRaLQ0gEk3jS7jLnCteG OIJwWPKmsmj83nOCeiKRrm5iscxyZL4yI9u58T3oYk7VVdw58azv7dcUP8V09kJlCNYV 5F84R372g8XuFTyd5Ia8ONC29lRQxlkTZ+J4jyery8m3Ie4CnOnysyR61pdod3FdarEC E+t69jgM5NA80a0QgUMRNVF42RWnIU7ymC/FXBCEUb8Q9feJsZq7SWIQKHyb/ytE2sui 9XWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=b8V9n0Ss7lZs2nISu4fwFs0LQXs3/vlKfl9Zdtxdbn8=; b=FRgekRSmi3cS7674afuTQ0nAJK9pbgSjVh4UX5pgrpji5lwgp2Og46mRQPq+SlYsgE kTKHea7T1xkdAGrGadIyLUOgfweu3h+JsK+XFxsj4bnZmezA9rTFxH0umHDDyJunjOpf qonrucPgXFBNlFB6yb8S1zDBLKEDYRdjeWo/f3mER6+/vipBlASHzpPR1wyMKePp4xzA GPsnK9iSdi0XnxEb2SIEYeMzA4UU46D1Y9uF+Q5BOvTUs/tO8dBJhmg1NayTZ8rUpJsj zblQ1zpzA9KqTCpRXK5qZSnGm9AwES7lF8Ao2fwPKgAXDZLkUhECDLT9WKeNnABnwNOj VTEw== X-Gm-Message-State: AOAM531Ehlq6TPonoePE+WHg9SxoELQe+anKMv5BdTG7WIlbB14u4UKJ wzDAF9btStMIJueKXXr535M= X-Google-Smtp-Source: ABdhPJxBZGKlfRQZU4QlUHWczmgA+lBS17RXS9Na+0HFH8yUUmkRKc8gICMAaZxANaNLWPn/vrYETQ== X-Received: by 2002:a05:6512:a8c:: with SMTP id m12mr16242585lfu.526.1628499699694; Mon, 09 Aug 2021 02:01:39 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id k1sm770014lji.139.2021.08.09.02.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 02:01:39 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Subject: Re: virtual-fill mode in mail buffers, with orgalist-mode, prefix is not considered when virtual-fill is on In-Reply-To: <87fsw83opg.fsf@mat.ucm.es> References: <87fsw83opg.fsf@mat.ucm.es> Date: Mon, 09 Aug 2021 17:01:54 +0800 Message-ID: <87im0fvvnh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, 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 autolearn=ham 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628499902; 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=b8V9n0Ss7lZs2nISu4fwFs0LQXs3/vlKfl9Zdtxdbn8=; b=QWPSXQ+/h1/QTxVFqmVV17EX4JPW6NStsMBGGaTVTqMr9RYzk41ToPGyuRRc505lwshm6h 0xx9idgrCyEd0FfHRpJcDsuJINHpF0ajd/d7Tq5KvChO+jwpKE7QNFSDQmbyS+2xGGZxmv vhwgK2UfoMUtLhyTChf34NiP3jgO6/6d1b64a6enLX6SExr6YKc6xfJ1OFzUA2vUA1cm20 OicCHpDhBbXIW2T6rGJrnX2uJrS1qG8F0VTsLDwakUVbLe4J96HjwpbcTt9WFc+JOcqOjx h7MLQs2ydzFVOCfibGXH0cM3UK1gogKo/lohXg8D8gwzVi2fPRFu6Ffo1Ox0Qw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628499902; a=rsa-sha256; cv=none; b=MzXydsijhyY31wQIhIZlqHcgbIYYv6qaYYKbSC06Qbd1xW/tkLJtUHmuxrnh79OCWS3cnA AatAD4l0dLviBXUGbUpzBXBM58dBOmnjctChBbOkUIB6uWykynHxZdHh/juwkva4qoSIOw wJvq+jg+SnuHnRpxbPBYUZwSjU8uP0dBW14uafbWxeCF8eIltQn+pa0+9FyVFBaGT+SQf7 Iy23lX06choga1zmINQVp/sRqNYsLl6AZQY7yOV86UpY/HKY6ihVnTFY2sRyLyvzp2LPkV MbW8jutvv8+tRR3PnFYZc0GhzRrZOQlMYdZCk5f27Hgfa4hGfnuZdOyXauAH/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=sKAwA8yG; 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-Migadu-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=sKAwA8yG; 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-Migadu-Queue-Id: C74A516B7B X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: sEPhT8q1Yiuz Uwe Brauer writes: > So the prefix is not taken into account. Anybody seeing this and knows a solution? Not sure about orgalist-mode, but you may need to define custom adaptive-fill-function. I use the following (though for org-mode itself): (defun org-adaptive-fill-function () "Fill headlines to the beginning of headline in org." (save-excursion (cond ((org-at-heading-p) (beginning-of-line) (looking-at org-complex-heading-regexp) (goto-char (or (match-beginning 4) (match-end 0))) ;; at headline (make-string (current-column) ?\ )) ((org-at-item-p) (beginning-of-line) (looking-at org-list-full-item-re) (goto-char (or (match-beginning 4) (match-end 3) (match-end 2) (match-end 1))) (skip-chars-forward " \t") (make-string (current-column) ?\ ))))) (add-hook! 'org-mode-hook (setq-local adaptive-fill-function #'org-adaptive-fill-function)) Best, Ihor