all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Drew Adams <drew.adams@oracle.com>
Cc: 23865@debbugs.gnu.org, Jonathan Kotta <jpkotta@gmail.com>
Subject: bug#23865: 24.5; doc string of `tramp-remote-path'
Date: Wed, 29 Jun 2016 16:58:12 +0200	[thread overview]
Message-ID: <87eg7gdou3.fsf@gmx.de> (raw)
In-Reply-To: <b0d56ba6-5b42-49b1-819e-f55aa86085e2@default> (Drew Adams's message of "Wed, 29 Jun 2016 06:53:35 -0700 (PDT)")

Drew Adams <drew.adams@oracle.com> writes:

> Right.  That's the (doc) bug.  It is fine to be "oriented" to
> interactive use of Customize.  It is a failing to incorrectly
> describe the variable value.  That hurts, rather than helps
> users.  The doc string can do both: describe things in terms
> of the UI and also correctly describe the possible values.
>
> What it should not do is what it does now: give the impression
> that the list values are all strings (and not say anything
> about those two symbols that have special meaning for the
> variable value).

I was aware of this problem when writing the docstring. Unfortunately,
there's no possibility to let it look different in `describe-variable'
and the custom UI.

Would the following patch fit the bill?

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/emacs/lisp/net/tramp-sh.el.~cfb3c61f1ffec9a6322407fdd228d5cc31c31ed0~	2016-06-29 16:55:53.466570072 +0200
--- /home/albinus/src/emacs/lisp/net/tramp-sh.el	2016-06-29 16:55:36.918161072 +0200
***************
*** 527,541 ****
  You can use `~' in this list, but when searching for a shell which groks
  tilde expansion, all directory names starting with `~' will be ignored.
  
! `Default Directories' represent the list of directories given by
! the command \"getconf PATH\".  It is recommended to use this
! entry on top of this list, because these are the default
  directories for POSIX compatible commands.  On remote hosts which
  do not offer the getconf command (like cygwin), the value
  \"/bin:/usr/bin\" is used instead of.
  
! `Private Directories' are the settings of the $PATH environment,
! as given in your `~/.profile'."
    :group 'tramp
    :type '(repeat (choice
  		  (const :tag "Default Directories" tramp-default-remote-path)
--- 527,543 ----
  You can use `~' in this list, but when searching for a shell which groks
  tilde expansion, all directory names starting with `~' will be ignored.
  
! `Default Directories', indicated internally by
! `tramp-default-remote-path', represent the list of directories
! given by the command \"getconf PATH\".  It is recommended to use
! this entry on top of this list, because these are the default
  directories for POSIX compatible commands.  On remote hosts which
  do not offer the getconf command (like cygwin), the value
  \"/bin:/usr/bin\" is used instead of.
  
! `Private Directories', indicated internally by
! `tramp-own-remote-path', are the settings of the $PATH
! environment, as given in your `~/.profile'."
    :group 'tramp
    :type '(repeat (choice
  		  (const :tag "Default Directories" tramp-default-remote-path)
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.





  reply	other threads:[~2016-06-29 14:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-28 20:30 bug#23865: 24.5; doc string of `tramp-remote-path' Drew Adams
2016-06-28 20:36 ` Jonathan Kotta
2016-06-28 20:57   ` Drew Adams
2016-06-29  7:41     ` Michael Albinus
2016-06-29 13:53       ` Drew Adams
2016-06-29 14:58         ` Michael Albinus [this message]
2016-06-29 15:09           ` Drew Adams
2016-06-29 15:21       ` Eli Zaretskii
2016-06-29 16:11         ` Michael Albinus
2016-06-29 16:36           ` Eli Zaretskii
2016-06-30 11:17         ` Jiege Chen
2016-06-30 13:41           ` Michael Albinus

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

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

  git send-email \
    --in-reply-to=87eg7gdou3.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=23865@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=jpkotta@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.