unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eshel Yaron <me@eshelyaron.com>
To: emacs-devel@gnu.org
Cc: Michael Albinus <michael.albinus@gmx.de>
Subject: Re: master 861ac933dd8: Run `man' also on remote systems
Date: Wed, 01 Nov 2023 19:10:55 +0100	[thread overview]
Message-ID: <m134xp1h00.fsf@dazzs-mbp.home> (raw)
In-Reply-To: <20231101155445.B09E0C0C180@vcs2.savannah.gnu.org> (Michael Albinus's message of "Wed, 1 Nov 2023 11:54:45 -0400 (EDT)")

Hello Michael,

Michael Albinus <Michael.Albinus@gmx.de> writes:

> branch: master
> commit 861ac933dd8aed1028edc4b9142400e3702874d5
> Author: Michael Albinus <michael.albinus@gmx.de>
> Commit: Michael Albinus <michael.albinus@gmx.de>
>
>     Run `man' also on remote systems

Thanks for implementing this, I just found myself wishing `M-x man`
would run on the remote host a few days ago.  This works well now!

I have a couple of suggestions around the new documentation:

> +*** New user option 'Man-support-remote-systems'.
> +If the user option 'Man-support-remote-systems' is non-nil, and
> +'default-directory' indicates a remote system, the man page is taken
> +from the remote system.  Calling the 'man' command with a prefix like
> +'C-u M-x man' reverts the value of 'Man-support-remote-systems' for
> +that call.

I think specifying the name of the option again is redundant, and
mentioning `default-directory` gets a bit too much into the
implementation details.  So I'd say instead:

    This option controls whether 'M-x man' executes the "man" command on
    a remote system when the current buffer is remote.  You can invoke
    the 'man' command with a prefix argument to reverse the value of
    this option only for the current invocation.
    
> +(defun Man-header-file-path ()
> +  "C Header file search path used in Man.
> +In the local case, it is the value of `Man-header-file-path'.
> +Otherwise, it will be checked on the remote system."

Here I'd suggest:

    Return the C header file search path that Man uses.
    Normally, this is the value of the user option
    `Man-header-file-path', but when executing "man" on a remote system
    this function tries to find the C header path on that system.
    
> +If `default-directory' is remote, and `Man-support-remote-systems'
> +is non-nil, the man page will be formatted on the corresponding
> +remote system.
> +
> +If `man' is called interactively with a prefix argument, the
> +value of `Man-support-remote-systems' is reverted."

Here it would be slightly clearer to use the active voice IMO, namely:

    If `default-directory' is remote, and `Man-support-remote-systems'
    is non-nil, this command formats the man page on the remote system.
    A prefix argument reverses the value of `Man-support-remote-systems'
    for the current call.

I'm would also consider changing the name of the new user option from
`Man-support-remote-systems' to `Man-execute-on-remote-systems', since
to me that better conveys the choice you make by setting this option.


Best,

Eshel



       reply	other threads:[~2023-11-01 18:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <169885408539.20142.2201339795070761011@vcs2.savannah.gnu.org>
     [not found] ` <20231101155445.B09E0C0C180@vcs2.savannah.gnu.org>
2023-11-01 18:10   ` Eshel Yaron [this message]
2023-11-01 20:13     ` master 861ac933dd8: Run `man' also on remote systems Emanuel Berg
2023-11-02  6:16       ` Eli Zaretskii
2023-11-02 11:21     ` Michael Albinus
2023-11-02 11:43       ` Emanuel Berg
2023-11-02 11:55       ` Eshel Yaron
2023-11-02 13:51         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m134xp1h00.fsf@dazzs-mbp.home \
    --to=me@eshelyaron.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).