From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MGn2AVeOL2QWWQEASxT56A (envelope-from ) for ; Fri, 07 Apr 2023 05:30:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gDngAVeOL2RPrgAA9RJhRA (envelope-from ) for ; Fri, 07 Apr 2023 05:30:31 +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 9D9DC2932F for ; Fri, 7 Apr 2023 05:30:30 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkcmy-0005yw-QT; Thu, 06 Apr 2023 23:29:24 -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 1pkcmw-0005yn-P6 for emacs-orgmode@gnu.org; Thu, 06 Apr 2023 23:29:22 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkcmv-0001T5-0r for emacs-orgmode@gnu.org; Thu, 06 Apr 2023 23:29:22 -0400 Received: by mail-lj1-x236.google.com with SMTP id z42so42445056ljq.13 for ; Thu, 06 Apr 2023 20:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680838158; x=1683430158; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=SffI+48znN9Le+2nKlqmEe8rdIgPsZmP74W3CMBotuM=; b=SdTrkpxwPJzYz7CPZbRbGVLn33bW/x95nbwUYNsFBCakIu/BCLgmExta6fvlgKk2xV BBQFbyECywZ6v3pST7IHXve3r1j+U36xzpS69g/1AylmcQG4THlFS8vtc7cDXjuMNbac 8K6ZK62Qp02TjHM6Lvhm+LSeE6k7Yix19FkwaYTBs0Iq6vX0ANTOVT4QH97MOe2FIO/L nZCJ8aeyQWZEECPKZLlSlOBXKbOvSLZvjpGg1sq14MTTHPf0fYqzG27WRP6IsqmY7ROV CP349d4r8cMwUbPb6xOq1SBQydrQyNllefPShoPE+1LsyDRCCm29u6Jz91kJQcWuqM7C rWjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680838158; x=1683430158; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SffI+48znN9Le+2nKlqmEe8rdIgPsZmP74W3CMBotuM=; b=FXOR/KhgFQEe7+fyuqdYItw4oJSmUf8aNQJfgM05r7mKaSQBf5kEz4lS64KW+pjzTw 9ybQfHR4Ajks6nX3xzF6LyC0KodU9wgkaPV+Mqtdxn4THH+/KFivleeuqITTeyVhJPJk 29UU7Bz/8ya1s53Z0Q7h7MDiw5tl8nZiWO+KcE7tO6NkCOfGBiY7yMfraQhNAtd1JAzg paJr1eYPcTjV0d0mxT5Ocl/zH4ekmsgcU7iBJz/bvPiuZx1Z4LhByKj60UaPd2xClBIZ 6hQqPigytydt8F+rdlYqApgiyzasTxBXVDB2lKa/Up3o70Yz19vfsyeGuaDp8vs2kazS kZUQ== X-Gm-Message-State: AAQBX9cHooskyaZZ6Gb6i02BjQ/UxJrYOkMqEExc+Kroj5PubP4Rmbx2 xc7RsZ5oQFFSkb0C8s0VoSUZQnMd+iDLRRJZ3AnunNnoO+hJzQ== X-Google-Smtp-Source: AKy350ZjW3EkSgBJyirlnEXIzF7IfH9vtOVgPK61DA3jEuE0JQWCe+fR87d2F3H4x4yHY6b5bUflAO+vSVWoNIUDb0M= X-Received: by 2002:a05:651c:10cc:b0:295:945d:b382 with SMTP id l12-20020a05651c10cc00b00295945db382mr200928ljn.4.1680838158169; Thu, 06 Apr 2023 20:29:18 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aa6:c444:0:b0:25b:6460:577b with HTTP; Thu, 6 Apr 2023 20:29:17 -0700 (PDT) From: Samuel Wales Date: Thu, 6 Apr 2023 20:29:17 -0700 Message-ID: Subject: capturing and filling To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=samologist@gmail.com; helo=mail-lj1-x236.google.com 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=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680838230; a=rsa-sha256; cv=none; b=Gx75oLZN3EGZzifhOkb34WATmT0TUnszvV3fGscmVuaA7lRMqDiXB3vOwbK/YEPt0nlTMA cj3fctyNXwQLgEeEIW99VvDFmRhlnCkIa2OmEAYw0vbvFH0ahsOxwQ0VwkDSAZYdNtldfH 6YSGPa0DHrl8nVhD98qkMNukslhowlLQkjxyIQQIbFR/tsN8ADFVa5kGGdI9Xqy9TIDhjq un9xgMByBcrTtEh+DtFMA9naLwwh+WAP4H00hY7zSP+XP2Qh7EgfNV9t28MWx40w2ty9ol s76K6fdGieLMoQM0JCrNl35SczPnDoVjCNUlh2hu6/3Y+SnhmIt2A09zJJwa6g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SdTrkpxw; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680838230; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SffI+48znN9Le+2nKlqmEe8rdIgPsZmP74W3CMBotuM=; b=WVOQrYTK9UIUhdmoBhRK2+FQrcOtVTa7eySbX4QF0BB0Hwdr7CeC9BfvCNmFC2o9OJwxAM mDY6zAeiQfjTm7ZVuVZe+bJVCchrOI5P5lPDwQWUtmvTHN8RaSyG88So20tfG0zz+aySlh f6m5AmOmkRBVdANURPITJf0VouxNIR7uLi5uQ3UsbYOfn6ntZRHup/Z/2luH8lFHc/ijKo 2eUUcVXD+ONe7zQYkljSrrzQIb0oeE+u5IwHNN2yZlj8hx7sJYNGEFnoOZCQvBgtEM0pKM P92OphIRa+T1iRL2AuNgBFITAJR/NZwYNbv+BAVMC2AqRV3nFSqeHnxgD5EJPg== X-Migadu-Spam-Score: -6.45 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SdTrkpxw; 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-Spam-Score: -6.45 X-Migadu-Queue-Id: 9D9DC2932F X-TUID: LaEYDzLlO0ZZ when i use the superb org-capture extension in firefox, there is only one icon, so any decisions about formatting have to be one-size-fits-all at capture time in elisp. here are my ideas, but not implementation. the decisions i'd make are: 1. fill long unfilled paragraphs vs. preserve verbatim lines if i capture code, i don't want it filled. if i capture prose that is unfilled, as in a long line, i probably want it filled at capture. heuristic: loop through every line. if the line qualifies by some sub-heuristic, and is more than 2x (window-width), then fill at capture time, but only that line, not contiguous ones that do not meet the sub-heuristic (different prefix etc.). what does one do to loop through paragraphs? is this a reasonable heuristic? anybody tried it? this is all too much for me atm but i thought i'd pu out the idea in case anybody has thought of these things. alternative: figure out and use an emacs minor mode that makes unfilled paragraphs look like filled ones, including fill-column, filling word boundary heuristics, fill prefix, etc. this would still interfere with diff and such. it might be best reserved for this purpose rather than ridding me of my m-q filling habit. that would be drastic. 2. region on org heading vs. in body heuristic: if selected text is zero length, i.e. nonexistent, then link on org heading. if it is short, "text -- [link]". if long, then i'm not sure which i like better: short part of first line on header and then rest and then "-- [link]", or link on header. -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com