all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Xu Chunyang <mail@xuchunyang.me>
Cc: 30998@debbugs.gnu.org
Subject: bug#30998: 27.0.50; The Help for defclass with multiline documentation is very hard to read
Date: Sun, 14 Jul 2019 15:35:19 +0200	[thread overview]
Message-ID: <87a7dgu4bs.fsf@mouse.gnus.org> (raw)
In-Reply-To: <m2y3i973re.fsf@xuchunyang.me> (Xu Chunyang's message of "Sat, 31 Mar 2018 03:38:29 +0800")

Xu Chunyang <mail@xuchunyang.me> writes:

> I don't know if defclass requires that :documentation must occupies just
> a single line. Helm uses many multiple lines string for that slot, please see
>
> https://github.com/emacs-helm/helm/blob/6a34d57f416e4194e6d3207b558d3a00cdf2b955/helm-source.el#L54
>
> 'C-h f helm-source' is very hard to read, the following is a part of *Help*

For a build-in example, see `C-h f registry-db' (included below).

So the problem here is with the :documentation strings for the slots:
They can be multi-line, and `C-h f' should format that situation
different.

But even with single-line descriptions, it's unreadable, really, unless
you have an Emacs window that's 150 characters wide.

Perhaps this should be reformatted completely, with the :documentation
string on a separate line?

----
Class description:
registry-db is a type (of kind ‘eieio--class’) in ‘registry.el’.
 Inherits from ‘eieio-persistent’.
Instance Allocated Slots:

	Name	Type	Default	Doc
	————	————	———————	———
	file	string	unbound	The save file for this persistent object.
This must be a string, and must be specified when the new object is
instantiated.
	version	(or null float)	nil	The registry version.
	max-size	integer	(symbol-value 'most-positive-fixnum)	The maximum number of registry entries.
	prune-factor	float	0.1	Prune to (:max-size * :prune-factor) less
    than the :max-size limit.  Should be a float between 0 and 1.
	tracked	t	nil	The tracked (indexed) fields, a list of symbols.
	precious	t	nil	The precious fields, a list of symbols.
	tracker	hash-table	unbound	The field tracking hash table.
	data	hash-table	unbound	The data hash table.
----


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-07-14 13:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-30 19:38 bug#30998: 27.0.50; The Help for defclass with multiline documentation is very hard to read Xu Chunyang
2019-07-14 13:35 ` Lars Ingebrigtsen [this message]
2021-06-24 18:25   ` Lars Ingebrigtsen

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=87a7dgu4bs.fsf@mouse.gnus.org \
    --to=larsi@gnus.org \
    --cc=30998@debbugs.gnu.org \
    --cc=mail@xuchunyang.me \
    /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.