From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.devel Subject: Re: man integration with tramp Date: Sat, 7 Oct 2023 23:37:17 +0700 Message-ID: References: <20200730044554.obcvownwrmv4du7m.ref@ergus> <20200730044554.obcvownwrmv4du7m@ergus> <87r1ssdgw7.fsf@gmx.de> <83tuxoeqtu.fsf@gnu.org> <87ime4ca00.fsf@gmx.de> <83lfizeucs.fsf@gnu.org> <875za326x8.fsf@gmx.de> <877cnyod5b.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7634"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 07 18:38:10 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qpAJd-0001ot-JO for ged-emacs-devel@m.gmane-mx.org; Sat, 07 Oct 2023 18:38:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpAIv-0007Jj-R2; Sat, 07 Oct 2023 12:37:25 -0400 Original-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 1qpAIt-0007I5-IO for emacs-devel@gnu.org; Sat, 07 Oct 2023 12:37:23 -0400 Original-Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpAIr-0007x3-Uq for emacs-devel@gnu.org; Sat, 07 Oct 2023 12:37:23 -0400 Original-Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c3c424d502so19328321fa.1 for ; Sat, 07 Oct 2023 09:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696696639; x=1697301439; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=Kd408owdU0wRH3koKNHm09y+wQ1BrDReVWblIO68fMY=; b=lzgzxDKZcO04zu6ryPMo41ChfWnWzd7FzetjmU6Q/6E/kSM8b727pABYgQk+M6V9sX rpDvjd25lxgZDKBwppe6a1VQliW6N4fh+rSG6uhcrlD4+zwqsBV9PkLcznoEYmAcwt/g /72u4vuHc/DolHIyQJgKvSwgnfLRG172JW/LjaAg8B4af2NboWNYmqFqm6xgVGtX9rUk ChYiqTpt4af1xuz76BBy93fbs9eB/4FepWKVuMDDo9xAPD1zdOBPAmJyxmbfjf6wJrcS OENp/U9X4GY69pcheNkQ5Fz+jv7UNGDfKG12akV7bCFMAjtowzU6rR0Z9N9iViJnYald z88Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696696639; x=1697301439; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Kd408owdU0wRH3koKNHm09y+wQ1BrDReVWblIO68fMY=; b=SD3guUyGScXxTHhPueaqirbOd4HiZoBfwzJQxdDI0NCHfOYB3oMz1/B18j0lexpylZ AE7zqljWeiweRcEaU8xlRxxu3LbVOWayYxuloa/4oSgPk4JSc0pu0Rw/Mfmr9kaST2pt i3JEyB7lwkW7KsvmrmdqKq86UZaJQgfL81ieoaIRGBeNktrf8/mNezP+PBhmtV9je1Ze aFyvc/lTRJ05fRq6Ce9Z5L3qziK4qLNjDfcsiaIVwv0Z0uWEkMsglTlG0FE9SzXjlNh2 ugQHhcmLonyxOhf6wZE9zoDqRXTOgRgu2jYaQZJTWI35x7FLk+WTHuXPJCPO/efN6XMK nEtQ== X-Gm-Message-State: AOJu0YwSwiMid81bXAf2vPKqDJaRSoQxH6T2No1Qt8jmnLB4+NznE1uS 5Zlu0JoXP8EoEeuRopBz/cvoRNcwI2k= X-Google-Smtp-Source: AGHT+IGPjvMUrIC1JsZ/Ofa2AxkBXaDPR9MxK0L6I9DR1/xcjjzRp2ezvy/HJOsbzNFSUOT4jkqVfw== X-Received: by 2002:a2e:81ce:0:b0:2bf:f5d4:6b5a with SMTP id s14-20020a2e81ce000000b002bff5d46b5amr11877592ljg.41.1696696639023; Sat, 07 Oct 2023 09:37:19 -0700 (PDT) Original-Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id e8-20020a2e9e08000000b002c013211ec7sm1195879ljk.100.2023.10.07.09.37.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Oct 2023 09:37:18 -0700 (PDT) Content-Language: en-US, ru-RU In-Reply-To: <877cnyod5b.fsf@gmx.de> Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=manikulin@gmail.com; helo=mail-lj1-x232.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-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311347 Archived-At: On 07/10/2023 19:00, Michael Albinus wrote: > Max Nikulin writes: >> man -l - > However, this will be the second choice only for showing remote man > pages, because the local man command could not handle references well I > fear. And completion candidates for other man pages won't work for remote > hosts either with this approach. I suggested it for Tramp methods which do not support remote processes. However if a man page is opened through path to the file (instead of just page name) then neighbor files and directories should be considered before standard MANPATH when another man page is opened from this buffer. It does not matter if it is a remote or a local file. Likely the current page is from another set that is e.g. newer or older than system pages. WoMan has code that travels through directories to build completion list. However I do not like that WoMan does not allow to specify section as man(7) and requires additional step to choose appropriate section. Perhaps a part of related code may be reused.