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 ms5.migadu.com with LMTPS id oBrJNZXf42Is1AAAbAwnHQ (envelope-from ) for ; Fri, 29 Jul 2022 15:24:37 +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 +MTGNZXf42L9DgEA9RJhRA (envelope-from ) for ; Fri, 29 Jul 2022 15:24:37 +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 933EB2E7BB for ; Fri, 29 Jul 2022 15:24:37 +0200 (CEST) Received: from localhost ([::1]:49832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHPyj-0000FJ-Uy for larch@yhetil.org; Fri, 29 Jul 2022 09:24:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHPty-0004Uk-Eg for emacs-orgmode@gnu.org; Fri, 29 Jul 2022 09:19:38 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:36635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHPtw-00040r-Mv for emacs-orgmode@gnu.org; Fri, 29 Jul 2022 09:19:38 -0400 Received: by mail-pl1-x633.google.com with SMTP id x10so3892819plb.3 for ; Fri, 29 Jul 2022 06:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=/m1h2QP8KJBhTbruO8wmn1jnI5QK1dqv52OkOQAKQt4=; b=ppbMVU+zfbkidvVzp2S0d/YZ+Glw/Io450a4Ra2mc2Ss9YyTCGXwkTChMVYCW/Mjlp HAFP1IWEXh05DM9pcL1dLVfHGrCsDRBz0YLWik1/bn8QU27T3Yidq4Az4qB3z4zsZEX9 hH4LVlrdaKHsdv0suEK+06GgyrzpEO2QYzhFiO2PS3IZgYhWelGy4IJQpch2J3XFhoPU Fq8kl2tw3FEqB7ywt5fI3c375PuAnOviHckYeQ4ecGZrfb2eEsSoxjTI1SNGTZDHvzuC 8vanMq5KwEYKpYZY5trbquaEeBrhpkqNPfOsWI8Ou9LdQ9DF0+z7rq9UDa+Ydr28eNER KuGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=/m1h2QP8KJBhTbruO8wmn1jnI5QK1dqv52OkOQAKQt4=; b=wsWqqw/kqblZMEYl0JcGgcHrZ8Rv/dMNUZZWjfIiMXt6Hccf0VtrxsucwjWbZLVMyD p5QVIz8wbNQ03jt1xyq4Koy2fvhqit+R5cxubRxRY0ZdSSHRsbijUE/3r4gYtU1WDlW9 xPk+Ma6zLCds9REp1U4/uS7fI2MW1o/oXObLyQvPIJIvvk4jn8FqLNyq8Wz3MPe2tkmv 5ElP6kNqv8YN0ynkmrfDaLxiUQVuJmDPN4A6BNzFyIR+bfhPbAg9q2JIFuMIL7nGLn9M Rgn2BT0fPbEOqHVLQJz0JGmeAkVFHhkoH1dRxLA0C4ghoeLd+h9nJT6bajRYCEVWQ5xX LsIw== X-Gm-Message-State: ACgBeo0CwnmBLYlbkaj6HYaytvmN2uLy299MWo/ZEGb97vAwjyodfkPG rzDO16UhHoAxVaD0lNtT6KM= X-Google-Smtp-Source: AA6agR6qQ4REPJK0mJ3XR+Zd4krTq1dzFriRyTiETie5yh5ULlMJ+4pvZYi7I13KRQNc+/relKEuQQ== X-Received: by 2002:a17:902:b407:b0:16d:3e9e:3c42 with SMTP id x7-20020a170902b40700b0016d3e9e3c42mr3743853plr.150.1659100775126; Fri, 29 Jul 2022 06:19:35 -0700 (PDT) Received: from localhost ([2409:8a70:217:4f80:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id x1-20020a170902ec8100b0016d8b0dfd61sm3588608plg.178.2022.07.29.06.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jul 2022 06:19:34 -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: Date: Fri, 29 Jul 2022 21:20:38 +0800 Message-ID: <87zggskqc9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=yantar92@gmail.com; helo=mail-pl1-x633.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=1659101077; 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=/m1h2QP8KJBhTbruO8wmn1jnI5QK1dqv52OkOQAKQt4=; b=WmsjX0pMAmNq1XSPLiJRCI5+XCw5Yk67feK0AjqM+rdG3gquUB2RNQq4al1AxKwj1GJ5oY cGRkR2lcVoUDGWvGca4HyuoczS6qTs5yR+VB9Wdxt8/DmXLQ9dfODhjhMZ2M/QGakr+Vbs T3iTQc5lq+y8NUE2XN9CkHvsO/QIfDwOPyXSoOcoorqV8otXV1VQxjDnEoWj3eKJ11GpqY FNU4GSDM2t826CF91MVDsREI1VsboDpPCDJ2hiFZxroJZDb08M0c8Nu4nxabnPZ/rX9v6F Oa3+8AzS+lP7qb5ZEqlghSxzWcuJ7ZdF2AnY5l3+dx7SRzKGyOBE2dzG94ystA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659101077; a=rsa-sha256; cv=none; b=ubTeDtpdHuBWp6IkX8Yyt3ucbImDHqTp82mc+/mdP/xu6jX7bBsYAR4H38LGcTBZ8ruu5J gRV+5WvCv7PLUr6G268NhIM+k5bL4aQowgAmcN/jYUQVqIlFtKGkh39tOhs3oKpopk5+xi +/2pfTcAmrrMyhjVnFmNjD6JXTCjcyz3eNreZgP4LsBs3C4/wr0ovXzkheRZOOXg24tPOg 1vi18YlhuSX1jMd4vq7iPpuFOlvAM0oHeuM+mPVC8/KqXM2V1MoGApl0uiGhMPvbKKND0J NrO9oIwMYGxsO8kGtThj/Fyy/uS1cgdTP+glwrWftsJZ0f/vmofFVOo/6/KsIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ppbMVU+z; 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: -6.92 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ppbMVU+z; 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: 933EB2E7BB X-Spam-Score: -6.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: azSac1nIuIWT Tom Gillespie writes: > Here's a patch to fix the follow behavior for ol-man links so > that the ::SEARCH functionality will actually work. Best! > Tom > From 2c3e3b994fd7b47a6e91d147d2b1f08cd97a1908 Mon Sep 17 00:00:00 2001 > From: Tom Gillespie > Date: Thu, 28 Jul 2022 23:33:22 -0700 > Subject: [PATCH] * lisp/ol-man.el (org-man-open): Set window point not buffer > point Thanks for the contribution! > When passed man:path::SEARCH org-man-open tries to use search-forward > to jump to the location of e.g. a heading. Prior to this fix it only > used search-forward, which will not change the point of the cursor in > the window, meaning that even if there is a match it will not appear. Please check out https://orgmode.org/worg/org-contribute.html#commit-messages for our conventions about commit messages. > Use sleep-for as a horrible hack to work around the fact that the man > command runs in the background with no way to synchronize back. This is indeed a horrible hack. What about `accept-process-output'? Best, Ihor