Mathieu Lirzin <m...@openmailbox.org> skribis: > From e691c2080929dd1390184ab4669de8b2695a237f Mon Sep 17 00:00:00 2001 > From: Mathieu Lirzin <m...@openmailbox.org> > Date: Fri, 7 Aug 2015 00:10:43 +0200 > Subject: [PATCH] ui: Add package-description-string. > > Provide support for Texinfo's markup in package description. > > * guix/ui.scm (%text-width, %initial-indent): New parameters. > (package-description-string): New variable. > (package->recutils): Use them. > * emacs/guix-main.scm (%package-param-alist): Use it. > * gnu/packages/databases.scm (perl-dbd-pg): Adapt to Texinfo's markup. > * gnu/packages/perl.scm (perl-devel-globaldestruction) > (perl-devel-lexalias, perl-exporter-lite): Likewise. > * gnu/packages/python.scm (python2-empy): Likewise.
[...] > +++ b/gnu/packages/databases.scm > @@ -578,7 +578,7 @@ columns, primary keys, unique constraints and > relationships.") > ("postgresql" ,postgresql))) > (home-page "http://search.cpan.org/dist/DBD-Pg") > (synopsis "DBI PostgreSQL interface") > - (description "") > + (description #f) Weird, and doesn’t really match the commit log. Maybe this hunk can be removed? > +(set! (@@ (texinfo plain-text) wrap*) > + ;; Monkey patch this private procedure to let 'package->recutils' ^ Please prepend “XXX” here to make the kludge more visible. (Eventually we should fix it in Guile.) I tried adding an @itemize list in a description and noticed that the initial indent is not working the way I thought: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix package --show=emacs-let-alist name: emacs-let-alist version: 1.0.4 outputs: out systems: x86_64-linux i686-linux armhf-linux mips64el-linux dependencies: emacs-no-x-24.5 location: gnu/packages/emacs.scm:491:2 homepage: http://elpa.gnu.org/packages/let-alist.html license: GPL 3+ synopsis: Easily let-bind values of an assoc-list by their names description: This package offers a single Emacs Lisp macro, `let-alist'. This + macro takes a first argument, whose value must be an alist (association list), + and a body. + + des* iption: one + + des* iption: two + + des* iption: three + + description: The macro expands to a let form containing the body, where each + dotted symbol inside body is let-bound to their cdrs in the alist. Only those + present in the body are let-bound and this search is done at compile time. --8<---------------cut here---------------end--------------->8--- Notice how “description:” is repeated for each @item and for the next paragraph. I wonder if using ‘fill-paragraph’ instead of ‘fill-string’ would solve this. Could you look into it? Sorry for not noticing earlier! Thanks, Ludo’.