all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* installed packages long description.
@ 2018-12-05  1:39 Stephen Leake
  2018-12-09 16:38 ` Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Leake @ 2018-12-05  1:39 UTC (permalink / raw)
  To: emacs-devel

When browsing the *Packages* buffer produced by 'list-packages', the ?
key gives a package description. That includes a "long description",
which for multi-file packages is taken from a README file. For
single-file packages it is taken from a Commentary comment header.

However, if that description was not viewed before a package was
installed, it is not displayed in the description.

The problem is the way describe-package retrieves the long description.
If the package is not installed, the package-desc struct archive field
has a value, and describe-package requests (format "%s-readme.txt" name)
from the archive server. Apparently the webserver on the archive
responds with the contents of <pkg>/README or the Commentary comment
header. describe-package then saves that in
~/.emacs.d/elpa/<pkg>-readme.txt.

However, if the package is installed, the package-desc struct
archive field does not have a value. Then describe-package looks for
~/.emacs.d/elpa/<pkg>-readme.txt, which does not exist if the
description was never viewed before installation.

I see two solutions; describe-package can also look for README or the
Commentary comment header, or package-install can always populate
~/.emacs.d/elpa/<pkg>-readme.txt

preferences?

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-12-13 22:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-05  1:39 installed packages long description Stephen Leake
2018-12-09 16:38 ` Stefan Monnier
2018-12-09 18:46   ` Stephen Leake
2018-12-10  2:40     ` Stefan Monnier
2018-12-10 19:27       ` Stephen Leake
2018-12-11 20:01         ` Stefan Monnier
2018-12-12  1:46           ` Stephen Leake
2018-12-12  2:02             ` Stefan Monnier
2018-12-13 14:49               ` Stephen Leake
2018-12-13 15:24                 ` Stefan Monnier
2018-12-13 22:47                   ` Stephen Leake

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.