From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WO6MCX678WIKJAEAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 03:42:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UMaFCX678WLbhAEAauVa8A (envelope-from ) for ; Tue, 09 Aug 2022 03:42:22 +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 C9B8927AC1 for ; Tue, 9 Aug 2022 03:42:21 +0200 (CEST) Received: from localhost ([::1]:40550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLEGC-0002Ol-8s for larch@yhetil.org; Mon, 08 Aug 2022 21:42:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLEDy-0002Ne-3v for emacs-orgmode@gnu.org; Mon, 08 Aug 2022 21:40:02 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:39715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLEDp-0000Iq-Kn for emacs-orgmode@gnu.org; Mon, 08 Aug 2022 21:40:00 -0400 Received: by mail-pl1-x62f.google.com with SMTP id g13so3161068plo.6 for ; Mon, 08 Aug 2022 18:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=+ReoRnufhFfB6Dk/z8gJw7GP5x+dP1Dhikb6aBOCGiM=; b=TtyNBFlNFiwnTUKc4+GTHACNBKoLyS6RqmzDMtKmePFU+pYoSpUQZncMmxs/SdKugl PKdVPUSGPlsIQfLTBd7OAKE87of9U5DWLmVHp38klNJvUDlbRQsUyTYbTm/kDhdyOIMi zNi3eGZ6V67kAGBzguvdGFGILWDfvV/duizuAOJWGTL6HY/QZOZeDUe1pseK5MzRhiYz jmvoJtAg1/EeWPUMOU/ar5ExARTnP7LtSNK8aISQZIhfQz/RuhBkrYaSm/9hcNnp7hMY E5CygHqiWh2VHwkEbLjlU7jNigPi+UVfIZt4wmlWv7raLoUsHRT3fopY1YEbTdQaicah l4qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=+ReoRnufhFfB6Dk/z8gJw7GP5x+dP1Dhikb6aBOCGiM=; b=Yc3p/Qs8uTIGsyv9wITwZGFFla4l/lPH1QtYfbPJRvZA+vNggre95C9IQmUj1v1yUg fEaXFoQJ6/aope1R9r5nkqALuq48IZQe7eRK6fT1wSdyCm/lLM3FVTKJDXR6gC0hmwwF SaKV9Sac2rMniLmXX4Ek6Su3aHOkYZYqMHTz/duW+DSL/SilQrH4f3leChVu9xm9mGCw dsY7cWljDBegoO4CM9QKC0LrvESBXmXEU6j9zq8krQ1PvC+v55wAphYRBas9KU4AYagD m9Xh0E3S6hCygWx1VO8KNGi3nzU5rk4rCRevCiYa2A5RRz2FuM997xKO6nGtjoWaCQ6K MV4Q== X-Gm-Message-State: ACgBeo2+WvJ3lNThhezu14Xx0J59bst4Tf3ojO362ka2dxaiz84VuRpe iPKLP9Rm/d+9IiDzSwtgxjPx7eXEf9EbV+Qv3/k= X-Google-Smtp-Source: AA6agR6vomT4+gyQRqrEBYpaZALIQ04Uu1f1kgEQCeKgBxJQagORj6GYuf8c/xIcM3eEga1Ep+u+tkvyqh37VRXQ6YU= X-Received: by 2002:a17:90b:4d91:b0:1f5:24a:ff7e with SMTP id oj17-20020a17090b4d9100b001f5024aff7emr23735233pjb.194.1660009187374; Mon, 08 Aug 2022 18:39:47 -0700 (PDT) MIME-Version: 1.0 References: <87zggskqc9.fsf@localhost> In-Reply-To: <87zggskqc9.fsf@localhost> From: Tom Gillespie Date: Mon, 8 Aug 2022 18:39:35 -0700 Message-ID: Subject: Re: [PATCH] ol-man.el (org-man-open): Set window point not buffer point To: Ihor Radchenko Cc: emacs-orgmode Content-Type: multipart/mixed; boundary="000000000000f03b1d05e5c5013c" Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=tgbugs@gmail.com; helo=mail-pl1-x62f.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_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=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=1660009341; 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=+ReoRnufhFfB6Dk/z8gJw7GP5x+dP1Dhikb6aBOCGiM=; b=NJdnFpb4oB6bDHYoUhyq5kF36viuQcwLsxmtvcfVwU1ED6XAybQH2Y+Q5W4olcUcpmHaMx 5RfBrH/HWrcil7HpKUWoTu1v6xaCLGWghpnl4gWf7YsAuqIGUZZFOn4fLexIuFa+yNLDKi B4zuWBa/sg7jDT4a4BFSDWcMn3WQcqe7qUbwrp551Sso3g/9PYytZi9E0dmSvG5wfFLUbc MILdR86CbQFm0tAaCkIivZ21J/RbhM626CVbAxPxJXsDOXgg1rW+HQHJBNFrFe0S2iypw3 xAtWS0FNdJcb0sPNO8GZdXqQutUUx71KUYQ1vmntKkSUEd04pPGjK/Iv1qpuEQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660009341; a=rsa-sha256; cv=none; b=UWzzetoxSyNd0LUTHxW5op91w/AbnwSBizfpJYnD04hKa6vMpquRXjsA/QCG4YMP7ooHfg Lr9tufEUOYhy8ucQ0/o4uDZ/mFd4Cf9GfWUYhXiFsXfgX8lp4RenXT6enwLcgup+ZmPFEJ aP8g1x9AMRmbog9rqpwBbfOsv/Dj4eiXDTjIu8r1ewr/ZFRzkImG3c19JPNxp/ftsioGcW yJiYdvdIaFuEDgoLwavUo65dS5oTgpPJb5S9icTPR0GRKIoj9cHXJwV4bjIhAHKvl3P7bW WMRK97L9aI+Cw4U3pKWmLDno+t9Sc+4lKI1Adi1M79kgVxrZqOnqkbeO9Dri6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TtyNBFlN; 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: -2.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TtyNBFlN; 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: C9B8927AC1 X-Spam-Score: -2.79 X-Migadu-Scanner: scn0.migadu.com X-TUID: bXnuYFe1gnpv --000000000000f03b1d05e5c5013c Content-Type: text/plain; charset="UTF-8" Hi Ihor, Here is an updated patch. We can't use accept-process-output because it doesn't seem to block in the way we need, or it blocks exactly long enough for the process to finish but then continues immediately to search instead of allowing the function that fills the buffer to complete. Instead I use sleep-for a shorter time and process-live-p which gives better results. I think I got the commit message formats right this time. Best! Tom --000000000000f03b1d05e5c5013c Content-Type: text/x-patch; charset="US-ASCII"; name="0001-ol-man-Set-window-point-not-buffer-point-and-wait-be.patch" Content-Disposition: attachment; filename="0001-ol-man-Set-window-point-not-buffer-point-and-wait-be.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l6lilk690 RnJvbSAyZGIyY2U2ZDgzYjI3ZmNmNjM2NjE4M2NiZDhiNWZhNzlmY2JjNGE3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUb20gR2lsbGVzcGllIDx0Z2J1Z3NAZ21haWwuY29tPgpEYXRl OiBUaHUsIDI4IEp1bCAyMDIyIDIzOjMzOjIyIC0wNzAwClN1YmplY3Q6IFtQQVRDSF0gb2wtbWFu OiBTZXQgd2luZG93IHBvaW50IG5vdCBidWZmZXIgcG9pbnQgYW5kIHdhaXQgYmVmb3JlCiBzZWFy Y2gKCiogbGlzcC9vbC1tYW4uZWwgKG9yZy1tYW4tb3Blbik6IFNldCB3aW5kb3cgcG9pbnQgbm90 IGJ1ZmZlciBwb2ludApXaGVuIHBhc3NlZCBtYW46cGF0aDo6U0VBUkNIIG9yZy1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goY29tbWFuZCAobWF0 Y2gtc3RyaW5nIDEgcGF0aCkpCi0JIChzZWFyY2ggKG1hdGNoLXN0cmluZyAyIHBhdGgpKSkKLSAg ICAoZnVuY2FsbCBvcmctbWFuLWNvbW1hbmQgY29tbWFuZCkKKyAgICAgICAgIChzZWFyY2ggKG1h dGNoLXN0cmluZyAyIHBhdGgpKQorICAgICAgICAgKGJ1ZmZlciAoZnVuY2FsbCBvcmctbWFuLWNv bW1hbmQgY29tbWFuZCkpKQogICAgICh3aGVuIHNlYXJjaAotICAgICAgKHdpdGgtY3VycmVudC1i dWZmZXIgKGNvbmNhdCAiKk1hbiAiIGNvbW1hbmQgIioiKQotCShnb3RvLWNoYXIgKHBvaW50LW1p bikpCi0JKHNlYXJjaC1mb3J3YXJkIHNlYXJjaCkpKSkpCisgICAgICAod2l0aC1jdXJyZW50LWJ1 ZmZlciBidWZmZXIKKyAgICAgICAgKGdvdG8tY2hhciAocG9pbnQtbWluKSkKKyAgICAgICAgKHVu bGVzcyAoc2VhcmNoLWZvcndhcmQgc2VhcmNoIG5pbCB0KQorICAgICAgICAgIChsZXQgKChwcm9j ZXNzIChnZXQtYnVmZmVyLXByb2Nlc3MgYnVmZmVyKSkpCisgICAgICAgICAgICAod2hpbGUgKHBy b2Nlc3MtbGl2ZS1wIHByb2Nlc3MpCisgICAgICAgICAgICAgIChzbGVlcC1mb3IgMC4wMSkpKQor ICAgICAgICAgIChnb3RvLWNoYXIgKHBvaW50LW1pbikpCisgICAgICAgICAgKHNlYXJjaC1mb3J3 YXJkIHNlYXJjaCkpCisgICAgICAgIChwcmV2aW91cy1saW5lKQorICAgICAgICAobGV0ICgocG9p bnQgKHBvaW50KSkpCisgICAgICAgICAgKGxldCAoKHdpbmRvdyAoZ2V0LWJ1ZmZlci13aW5kb3cg YnVmZmVyKSkpCisgICAgICAgICAgICAoc2V0LXdpbmRvdy1wb2ludCB3aW5kb3cgcG9pbnQpCisg ICAgICAgICAgICAoc2V0LXdpbmRvdy1zdGFydCB3aW5kb3cgcG9pbnQpKSkpKSkpCiAKIChkZWZ1 biBvcmctbWFuLXN0b3JlLWxpbmsgKCkKICAgIlN0b3JlIGEgbGluayB0byBhIFJFQURNRSBmaWxl LiIKLS0gCjIuMzUuMQoK --000000000000f03b1d05e5c5013c--