all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: GnuTLS docs
Date: Mon, 09 Apr 2012 10:39:42 +0300	[thread overview]
Message-ID: <83k41p8ibl.fsf@gnu.org> (raw)
In-Reply-To: <87d37hofbs.fsf@lifelogs.com>

> From: Ted Zlatanov <tzz@lifelogs.com>
> Date: Sun, 08 Apr 2012 21:37:43 -0400
> 
> Thanks, Eli.  Could you take a look at the attached first draft?

Looks good, thanks.  A few comments below.

> GnuTLS is a library to establish encrypted SSL or TLS connections.

Acronyms such as SSL and TLS will look better in print if you enclose
them in @acronym{}, as in "@acronym{SSL}".  Also, readers do not
necessarily know what these mean, so something like this would be
better:

  The GnuTLS library is an integral part of Emacs.  Through it, any
  Emacs Lisp program can establish encrypted network connections that
  use @dfn{Socket Secure Layer} (@acronym{SSL}) and @dfn{Transport
  Layer Security} (@acronym{TLS}) protocols.  The process of using
  @acronym{SSL} and @acronym{TLS} in establishing connections is as
  automated and transparent as possible.

Note that I reworded the text to use active rather than passive tense,
which makes the text more clear and concise.  Also note the use of
@dfn whenever new terminology is introduced.

> Emacs supports it through the @code{gnutls.c} and @code{gnutls.h} C
> files and the @file{gnutls.el} Emacs Lisp library.

File names should all have the @file markup, like you did with
gnutls.el.

> @node Overview
> @chapter Overview
> 
> The GnuTLS library is an integral part of Emacs.  Through it,
> encrypted SSL and TLS network connections can be established by any
> Emacs Lisp program.  The process is as automated and transparent as
> possible.

That's an exact repetition of what you said in the Top node.  In the
printed manual, both will appear.  So I would suggest to make the
first one shorter, or maybe eliminate it entirely.

> @chapter Help for users

Chapter, section, and subsection headers should capitalize every word.

> From the user's perspective, there's nothing to the GnuTLS
> integration.  It Just Works for any Emacs Lisp code that uses
> @code{open-protocol-stream} or @code{open-network-stream} (the two are
> equivalent, the first one being an alias to the second).

There should be a cross-reference to where these two functions are
described.  Like this:

  It Just Works for any Emacs Lisp code that uses
  @code{open-protocol-stream} or @code{open-network-stream}
  (@pxref{Network,, Network Connections, elisp, The Emacs Lisp
  Reference Manual}).  The two functions are equivalent, the first one
  being an alias of the second.

> @defvar gnutls-log-level
> 
> The @code{gnutls-log-level} variable sets the log level.  1 is
> verbose.  2 is very verbose.  5 is crazy.  Crazy!  Set it to 1 or 2
> and look in the @code{*Messages*} buffer for the debugging
> information.
> 
> @end defvar
> 
> @defvar gnutls-algorithm-priority
> 
> The @code{gnutls-algorithm-priority} variable sets the GnuTLS priority

It is best not to leave an empty line between @def* and the
explanatory text (here and elsewhere).

> it could be done if needed).  The priority string syntax is in the
> GnuTLS documentation at
> @url{http://www.gnu.org/software/gnutls/documentation.html}.

The last sentence will look better in HTML if you modify it like this:

  The priority string syntax is in the
  @uref{http://www.gnu.org/software/gnutls/documentation.html, GnuTLS
  documentation}.

> @file{"/etc/ssl/certs/ca-certificates.crt"} for Debian, Ubuntu, Gentoo
> and Arch Linux; @file{"/etc/pki/tls/certs/ca-bundle.crt"} for Fedora
> and RHEL; @file{"/etc/ssl/ca-bundle.pem"} for Suse;
> @file{"/usr/ssl/certs/ca-bundle.crt"} for Cygwin.  You can easily

Please remove the ".." quotes inside @file, they are not needed.

> @defun open-gnutls-stream name buffer host service
> 
> This function creates a buffer connected to a specific @code{host} and
> @code{service} (port number or service name).  The connection process
> is called @code{name} (made unique if necessary).  It returns the
> connection process.

When you describe arguments mentioned in function declarations, use
the @var{} markup, not @code{}.  That's because these arguments stand
for something else: the actual variables that will be used in the call
to the function.  By contrast, @code is for the actual variables and
other literal symbols.

> @lisp
> ;; open a HTTPS connection
> (open-gnutls-stream "tls" "tls-buffer" "yourserver.com" "https")
> 
> ;; open a IMAPS connection
> (open-gnutls-stream "tls" "tls-buffer" "imap.gmail.com" "imaps")
> @end lisp

Judging by these examples, all the arguments are strings, which you
didn't say in the description.  If any of them can be anything else
(e.g., if BUFFER can be a buffer object), you should say that as well.

> @node Index
> @chapter Index
> @printindex cp

This index comes up empty, right?  If you really want a concept index,
you should have at least a few @cindex entries in the manual, where
issues of interest are described.  Or you could omit this index.

Thanks again for working on this.



  reply	other threads:[~2012-04-09  7:39 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02  5:28 Emacs pretest 24.0.95 Chong Yidong
2012-04-02  5:38 ` Release branch plans Chong Yidong
2012-04-02  7:47   ` Glenn Morris
2012-04-02  8:08     ` Michael Albinus
2012-04-03 13:48       ` Michael Albinus
2012-04-05 12:57     ` GnuTLS docs (was: Release branch plans) Ted Zlatanov
2012-04-05 14:53       ` Eli Zaretskii
2012-04-05 17:12         ` GnuTLS docs Ted Zlatanov
2012-04-05 21:06           ` Eli Zaretskii
2012-04-05 22:32             ` Ted Zlatanov
2012-04-06  9:39               ` Eli Zaretskii
2012-04-09  1:37                 ` Ted Zlatanov
2012-04-09  7:39                   ` Eli Zaretskii [this message]
2012-04-09 12:25                     ` Ted Zlatanov
2012-04-09 12:43                       ` Eli Zaretskii
2012-04-09 13:12                         ` Ted Zlatanov
2012-04-09 16:17                           ` Glenn Morris
2012-04-09 16:19                             ` Glenn Morris
2012-04-09 16:55                             ` Ted Zlatanov
2012-04-09 17:05                               ` Eli Zaretskii
2012-04-09 17:28                               ` Glenn Morris
2012-04-09 18:41                                 ` Ted Zlatanov
2012-04-09 19:17                                   ` Glenn Morris
2012-04-09 19:59                                     ` Glenn Morris
2012-04-10  0:14                                       ` Ted Zlatanov
2012-04-13  0:04                                         ` Glenn Morris
2012-04-02  8:05   ` Release branch plans Michael Albinus
2012-04-02  8:16     ` Chong Yidong
2012-04-03 13:50       ` Michael Albinus
2012-04-04 15:36     ` Michael Albinus
2012-04-05 12:51       ` Ted Zlatanov
2012-04-05 20:18         ` auth.texi (was: Release branch plans) Michael Albinus
2012-04-05 21:23           ` Eli Zaretskii
2012-04-05 22:31             ` auth.texi Ted Zlatanov
2012-04-02 10:40   ` Release branch plans Andreas Schwab
2012-04-02 13:31     ` Chong Yidong
2012-04-02 13:40       ` Andreas Schwab
2012-04-02 13:14   ` Stefan Monnier
2012-04-03 10:53     ` Chong Yidong
2012-04-03 13:50       ` Stefan Monnier
2012-04-03 18:07         ` Eli Zaretskii
2012-04-02 17:05   ` Eli Zaretskii
2012-04-02 17:21     ` Andreas Schwab
2012-04-02 17:53       ` Eli Zaretskii
2012-04-02 18:43         ` Andreas Schwab
2012-04-02 18:58           ` Eli Zaretskii
2012-04-02 22:20             ` Glenn Morris
2012-04-02 22:43               ` Juanma Barranquero
2012-04-02 22:54                 ` Andreas Schwab
2012-04-02 23:08                   ` Juanma Barranquero
2012-04-02 22:44               ` Andreas Schwab
2012-04-03  1:12                 ` Glenn Morris
2012-04-03  1:26                   ` Glenn Morris
2012-04-03 10:00                     ` Andreas Schwab
2012-04-03 18:09                       ` Eli Zaretskii
2012-04-03 19:13                         ` Stefan Monnier
2012-04-04 17:19                           ` Eli Zaretskii
2012-04-04 17:41                             ` Stefan Monnier
2012-04-04 19:03                               ` Eli Zaretskii
2012-04-04 22:01                                 ` Stefan Monnier
2012-04-05  3:04                                   ` Eli Zaretskii
2012-04-05 13:17                                     ` Stefan Monnier
2012-04-05 14:58                                       ` Eli Zaretskii
2012-04-05 15:44                                         ` Stefan Monnier
2012-04-05 15:58                                           ` Eli Zaretskii
2012-04-05 15:02                                     ` Eli Zaretskii
2012-04-03 13:45                     ` Stefan Monnier
2012-04-04 17:15                       ` Eli Zaretskii
2012-04-02 20:16         ` Stefan Monnier
2012-04-07  2:37   ` Glenn Morris
2012-04-02 19:03 ` Emacs pretest 24.0.95 Glenn Morris
2012-04-02 20:20   ` Glenn Morris
2012-04-02 20:28     ` Tags in Emacs repository [was Re: Emacs pretest 24.0.95] Glenn Morris
2012-04-02 20:44       ` Tags in Emacs repository Glenn Morris
2012-04-02 20:47       ` Tags in Emacs repository [was Re: Emacs pretest 24.0.95] Andreas Schwab
2012-04-02 22:31         ` Tags in Emacs repository Glenn Morris
2012-04-03 13:56           ` Stefan Monnier
2012-04-03 20:04             ` Glenn Morris
2012-04-04  1:48               ` Glenn Morris
2012-04-04  1:59                 ` Glenn Morris

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=83k41p8ibl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.