From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uIX8Hyr/8mI1PgAAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 02:43:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KM36Hir/8mJjtQAAG6o9tA (envelope-from ) for ; Wed, 10 Aug 2022 02:43: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 0C37144F67 for ; Wed, 10 Aug 2022 02:43:22 +0200 (CEST) Received: from localhost ([::1]:34580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLZoe-00014i-G9 for larch@yhetil.org; Tue, 09 Aug 2022 20:43:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40432) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLZna-00014L-SH for emacs-orgmode@gnu.org; Tue, 09 Aug 2022 20:42:14 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:37719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLZnY-0003VY-9N for emacs-orgmode@gnu.org; Tue, 09 Aug 2022 20:42:14 -0400 Received: by mail-pf1-x434.google.com with SMTP id f30so11907161pfq.4 for ; Tue, 09 Aug 2022 17:42:11 -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=H3IDO1Xn+MLa2BqXmbnIfw2OoykI0hrqiDEaMBtFSYM=; b=gfFPz9qtT4OlRhjq2aFMOYCF5qPWfbOE6fwyW2+dM+vni8v/xqy0OOkA2/rBHpEaHh M6/f7BJhA4ldKxG4arCX2AOzjaJjwzWnW1Prvac2ynUNj7m/7DXlDIEFTHWAltD9mFGC lV/0mgA+0J7V7q8cUQuUrPDhGQgjfF/cEl6OKrGMo44r95MNTPwZu3hMkZKAd0GnoEZO xDlzXy8OMeUVUbJTOGiJ84OF4CEDW7g68VjZ1dRTfz5G6WiL/mSd8wEEKOIxZRi7+Geg H2OVrzsTsvUeQXWxYZFyicsDwUyvZlpDULbN0nuQ9cI9xe/HjccSNeRQewLyL4Z7FK0S nizg== 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=H3IDO1Xn+MLa2BqXmbnIfw2OoykI0hrqiDEaMBtFSYM=; b=IDsdRROFlB1GcW+FTi/2zce2O3k5AKj3+IHXX7uRq9U3rGn2BCiMckvlsYMLtqB3kD bbzFo4JmKIiXErPtuTZeO47WRo31qUQZxEupgbuBaCA4UoegKfQi961bWl8IvmqFg9eb /PEyO7liVdgJhf56x5Rr2xdoj0clWtgFwDVX8CbtZp98r+ptDVF3x5NdTl4QeXPWcvu5 TeX0PyBT4MFgYW1l2nNTLegqtFzJ3Q7ieQkiH3bLM6eTNHskQGFEjrg4LRsmNGD1nIoG YUOvQVK5HNs+KFe+z0s5T04UxFcCJmEPxxkfJD4H9QkOt2Fsc8Le7R8CHH1CQ7QEYDRi 7fVw== X-Gm-Message-State: ACgBeo3Y+ZipkccCD5Cn4PaejAjjLiugrgg/3WJDA7GBQ/1mHQ3AE4yG JGMd6lPlO4rlSeNi68OdSTYLVlBcX/3+3nWSKzwE8Dt3zpQ= X-Google-Smtp-Source: AA6agR7fekLSghInqVa+5hArGvQBXxGTKAgYNT8Yup/KnFlQpEbiSdV0btPA3OSR62j/e1vxyXcUw0azct3EF7O+cZY= X-Received: by 2002:a05:6a00:e85:b0:52b:5db8:f3df with SMTP id bo5-20020a056a000e8500b0052b5db8f3dfmr25177942pfb.14.1660092130684; Tue, 09 Aug 2022 17:42:10 -0700 (PDT) MIME-Version: 1.0 References: <87zggskqc9.fsf@localhost> <87lerx4ntc.fsf@localhost> In-Reply-To: <87lerx4ntc.fsf@localhost> From: Tom Gillespie Date: Tue, 9 Aug 2022 17:41:58 -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="000000000000bf27d805e5d851c1" Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=tgbugs@gmail.com; helo=mail-pf1-x434.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, 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=1660092202; 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=H3IDO1Xn+MLa2BqXmbnIfw2OoykI0hrqiDEaMBtFSYM=; b=nxVxnns4l/xwjsoVf23IjBzfVRq4gHUhQ7kVaK0bmMzj2Wcazci21EtXOvMz6e8ZHFGL8b Gg2h2vjEidFfK8QzP4fncJUn+CvkqlNvOMmaO1yPPZ9mS5NuFQOsB6E3HI3kQLOOe2sV/S QLy+5OPoe0V9nG5+Ou6ZH/3/HS5rYUGcBpR6z3YNFx4YowTmSJW3/3mZx22Wfo/MJ9E0Q5 Y40AgECbv/+CAyWar/4ORs6w9iR/lMrWLnz1bb7fJo42iOKSjyl9VkFjv65/NxKkNBNQqk ib3CoUjHwyE8Dt6t42R40vkRg0WP581IJGA9WLyl7a/tCGJWtwJ1SMe8wAY/2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660092202; a=rsa-sha256; cv=none; b=s3/I0zMvAcv4eTWVKD9HQnWsdoGtFw0m1RZg6puRZcvjK59ESnnq908616y652jukzhOlB FZmUJaGBhKGAdGOacky3TVeBAnlDph9oPMk0XYr1Ezx/2HEolRmwHuz8pLomYmy3Y9rTLV ha/ZCVTVXktBhB7UEPhKW0K6zDoGMLrd0943n7hYvH1CZZMxDEAHqFxbrbh7WxZt0ZfhPZ GXBOjh25bzYnodIOYBWfet8SRksBfBIOfK21W7aAHZYFY3cVvr74KZrg8m4PP0+quCUMOF eKxQGRVb5uprs7qKv6u3B3+wtQKGwoOLBH5dkb3lkTlnxQFu+9f/Ug5MaH37yQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gfFPz9qt; 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=gfFPz9qt; 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: 0C37144F67 X-Spam-Score: -2.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: UPV05NiuVOks --000000000000bf27d805e5d851c1 Content-Type: text/plain; charset="UTF-8" > (while (process-live-p process) > (accept-process-output process))) When I tried this before it didn't work, but now it does, I must have missed something. Patch updated accordingly. The order in which the man.el code does things is supremely confusing, but I think when accept-process-output returns that means the process sentinel has finished its final run and the man buffer is fully populated so it is safe to search. > Also, compiling the patch yields No byte compiler errors now, and I think I got all the formatting issues. --000000000000bf27d805e5d851c1 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_l6mvzbrb0 RnJvbSA4NDhkNmZjOWJkMzk1ZDdkNDVmMTRhZjcxYzRkZjhlYTQ0ZWQ3YjRjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBUb20gR2lsbGVzcGllIDx0Z2J1Z3NAZ21haWwuY29tPgpEYXRl OiBUaHUsIDI4IEp1bCAyMDIyIDIzOjMzOjIyIC0wNzAwClN1YmplY3Q6IFtQQVRDSF0gb2wtbWFu OiBTZXQgd2luZG93IHBvaW50IG5vdCBidWZmZXIgcG9pbnQgYW5kIHdhaXQgYmVmb3JlCiBzZWFy Y2gKCiogbGlzcC9vbC1tYW4uZWwgKG9yZy1tYW4tb3Blbik6IFNldCB3aW5kb3cgcG9pbnQgbm90 IG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Igog ICAoc3RyaW5nLW1hdGNoICJcXCguKj9cXClcXCg/Ojo6XFwoLipcXClcXCk/JCIgcGF0aCkKICAg KGxldCogKChjb21tYW5kIChtYXRjaC1zdHJpbmcgMSBwYXRoKSkKLQkgKHNlYXJjaCAobWF0Y2gt c3RyaW5nIDIgcGF0aCkpKQotICAgIChmdW5jYWxsIG9yZy1tYW4tY29tbWFuZCBjb21tYW5kKQor ICAgICAgICAgKHNlYXJjaCAobWF0Y2gtc3RyaW5nIDIgcGF0aCkpCisgICAgICAgICAoYnVmZmVy IChmdW5jYWxsIG9yZy1tYW4tY29tbWFuZCBjb21tYW5kKSkpCiAgICAgKHdoZW4gc2VhcmNoCi0g ICAgICAod2l0aC1jdXJyZW50LWJ1ZmZlciAoY29uY2F0ICIqTWFuICIgY29tbWFuZCAiKiIpCi0J KGdvdG8tY2hhciAocG9pbnQtbWluKSkKLQkoc2VhcmNoLWZvcndhcmQgc2VhcmNoKSkpKSkKKyAg ICAgICh3aXRoLWN1cnJlbnQtYnVmZmVyIGJ1ZmZlcgorICAgICAgICAoZ290by1jaGFyIChwb2lu dC1taW4pKQorICAgICAgICAodW5sZXNzIChzZWFyY2gtZm9yd2FyZCBzZWFyY2ggbmlsIHQpCisg ICAgICAgICAgKGxldCAoKHByb2Nlc3MgKGdldC1idWZmZXItcHJvY2VzcyBidWZmZXIpKSkKKyAg ICAgICAgICAgICh3aGlsZSAocHJvY2Vzcy1saXZlLXAgcHJvY2VzcykKKyAgICAgICAgICAgICAg KGFjY2VwdC1wcm9jZXNzLW91dHB1dCBwcm9jZXNzKSkpCisgICAgICAgICAgKGdvdG8tY2hhciAo cG9pbnQtbWluKSkKKyAgICAgICAgICAoc2VhcmNoLWZvcndhcmQgc2VhcmNoKSkKKyAgICAgICAg KGZvcndhcmQtbGluZSAtMSkKKyAgICAgICAgKGxldCAoKHBvaW50IChwb2ludCkpKQorICAgICAg ICAgIChsZXQgKCh3aW5kb3cgKGdldC1idWZmZXItd2luZG93IGJ1ZmZlcikpKQorICAgICAgICAg ICAgKHNldC13aW5kb3ctcG9pbnQgd2luZG93IHBvaW50KQorICAgICAgICAgICAgKHNldC13aW5k b3ctc3RhcnQgd2luZG93IHBvaW50KSkpKSkpKQogCiAoZGVmdW4gb3JnLW1hbi1zdG9yZS1saW5r ICgpCiAgICJTdG9yZSBhIGxpbmsgdG8gYSBSRUFETUUgZmlsZS4iCi0tIAoyLjM1LjEKCg== --000000000000bf27d805e5d851c1--