From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4AYvHB6b82I6YwAAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 13:48:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OEEVHB6b82LCNAEAauVa8A (envelope-from ) for ; Wed, 10 Aug 2022 13:48:46 +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 1AA1D15A09 for ; Wed, 10 Aug 2022 13:48:46 +0200 (CEST) Received: from localhost ([::1]:48306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLkCb-0003LQ-8H for larch@yhetil.org; Wed, 10 Aug 2022 07:48:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLkAx-0003Hd-DY for emacs-orgmode@gnu.org; Wed, 10 Aug 2022 07:47:03 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:53797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLkAv-0001fB-PJ for emacs-orgmode@gnu.org; Wed, 10 Aug 2022 07:47:03 -0400 Received: by mail-pj1-x1030.google.com with SMTP id pm17so14477928pjb.3 for ; Wed, 10 Aug 2022 04:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=WID3aPkYV/qTqmdmvpNMq/jLaE8Dzn0f/wxRh88JVHQ=; b=cxyENWBREKQ3EEUauIgwmiPQ0juBo+qzFS5DY/Y0hCrezDOsa6ROdKS3acgHWUQrw3 Wr4AfcIQxpKT/xu9gQoMoDCpiyzH7gdn2ZZ5bk8wBpvw4LPlE7CgGidOl75SsgvEBAXw gNa9BMaa3T7t32rFFvXXGgIFSYoNhhXfP6+3WUmPJnWxjca3tP3kkYrlUl+Absvttn8z Bbim5XOFVegl42JUVOGz7NdIjayPED2N7xBVSTp3yxjO3BeFRWhsY1Txw55P2vf0dzTl byyfDU2fKrRWby+sAZu38Czw3q5hZO5TNEE6wTq/Xr+zyT0iizpzAA5s+15nuXmZkbQh Grxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=WID3aPkYV/qTqmdmvpNMq/jLaE8Dzn0f/wxRh88JVHQ=; b=uKWLH7XQ8rL5eGYxkoUxgvReK59/Dq49BXf2RwKWq0oNuMqexOtbARjEB+x2BHXjga 783SuWg38AwC7CtD0nfBwfbqAyLX1HHob6eGzEJmoFbOXsgWcE2KS62dhzHzg+sGB5sM 3rInQe6lvY07kXT3UKuhwMlSq+f4KN9CMZt3KPYsNbUhrbHYS9SwzQ/uxXCfL0wKSuNO sOZQ+GlZ1aMcotFCckLJG0qwXjUa5CaRPn5XS/N656RfGOlbyZpPkCNGRS6G1xglLGG2 d+ShngNkneJRfgsnvvqZWpLEQgRH7o/T+V09oET+5iOSzaTmir3e49aL82h3nUStaXUH RvAA== X-Gm-Message-State: ACgBeo36qWBP9tZm3RvJNsQqoMFfn0rmDR4BuabBBhnXxutthDJxvg4e tO3TLmRg4eZvCas9rrMg7eeyGTtZcWXX1w== X-Google-Smtp-Source: AA6agR7avnJsjYlsgzHMZ0Y7QgxjdjeIsvyTGhsZrzVHp+Rh0vlLOOp/0V0GlxwLLPDmCqKNKVNXNQ== X-Received: by 2002:a17:903:32c9:b0:171:2846:ef16 with SMTP id i9-20020a17090332c900b001712846ef16mr5989114plr.108.1660132020198; Wed, 10 Aug 2022 04:47:00 -0700 (PDT) Received: from localhost ([2409:8a70:2bf:80b0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id y9-20020a1709027c8900b0016be527753bsm12565733pll.264.2022.08.10.04.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 04:46:59 -0700 (PDT) From: Ihor Radchenko To: Tom Gillespie Cc: emacs-orgmode Subject: Re: [PATCH] ol-man.el (org-man-open): Set window point not buffer point In-Reply-To: References: <87zggskqc9.fsf@localhost> <87lerx4ntc.fsf@localhost> Date: Wed, 10 Aug 2022 19:47:59 +0800 Message-ID: <877d3ge2vk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, 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=1660132126; 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=WID3aPkYV/qTqmdmvpNMq/jLaE8Dzn0f/wxRh88JVHQ=; b=aiknh1fSEQyhG30Vl1H1KovSRdfJsaTQyzKe23vYc0i/NzQ7rGGGWqwUdB75ezI0CpvySE Lo5ghbVIOoHfxwFHQlZzkIlSVH38Y+soYwDQPnUHgV5AhgAijwztDwwyhdDV8Nvdacjk5f Xf/xVAGNNrakL4L1hiFrwKome+pa0JY/UMSnHzr2r98VFm254wYLdWDEpwThXwPCe3fLqm lQgm479ZE0Xxo+eUSfztVKx+ID4hGcmD4dsndpEb54XNm1fnaBabLEaG18aW4NxPgukaIZ SISaUXQuwJIJARjlYpxPEvBCjJq40WEn2wp57E5kFCV53MTLCao5QjUgDSs7pA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660132126; a=rsa-sha256; cv=none; b=JZlp2ji6fIsx1wETgLV+DS7GFDy5fPVbM03hZzuiJKUQYGCqqPON0IbqgMtL3uw2mwqhA2 qdTQt6Ogbgv++sfJIaG1YxngW00Fu0L0t55+kytPWqn+w1b9Z8YNylUNf/hDI06z0WsnrC yhj3c0VlIY4ZtkDc2pganNGnv536khV/kxIqkPGFfuETXI0YzgBzfutyXJ8eubO1CZnHD0 9oTLK0rE2aOcFTdxamnzeTYfoM4RfxcLQ2yKmp1GK9oe7fUj2qp2fMhEJ7LP43ae5mJlG1 ntzvFKC13GtHeZsh2M4fAvL/WCc7tz4Z0DZIeAmpC9xEwWz6EqqfaxbHRvX2ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cxyENWBR; 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: -5.69 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cxyENWBR; 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: 1AA1D15A09 X-Spam-Score: -5.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: EDJR4Z7Oi3nd Tom Gillespie writes: >> (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. Thanks! Applied onto main via 76643256f. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=76643256f2bddb79908a41c264c43de3e06a70dd -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92