unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: guix-devel@gnu.org
Cc: alezost@gmail.com
Subject: [PATCH] emacs: Fill package description in Info buffers.
Date: Mon, 13 Jul 2015 22:08:11 +0200	[thread overview]
Message-ID: <1436818091-6524-1-git-send-email-ludo@gnu.org> (raw)

* emacs/guix-info.el (guix-package-info-insert-heading): Add call to
  'fill-region'.
---
 emacs/guix-info.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/emacs/guix-info.el b/emacs/guix-info.el
index bb21024..1e03d65 100644
--- a/emacs/guix-info.el
+++ b/emacs/guix-info.el
@@ -494,8 +494,11 @@ Show package name, version, and `guix-package-info-heading-params'."
                 (face (guix-get-symbol (symbol-name param)
                                        'info 'package)))
             (when val
-              (guix-format-insert val (and (facep face) face))
-              (insert "\n\n"))))
+              (let ((begin       (point))
+                    (fill-column (min (window-width) 72)))
+                (guix-format-insert val (and (facep face) face))
+                (fill-region begin (point))
+                (insert "\n\n")))))
         guix-package-info-heading-params))
 
 (defun guix-package-info-insert-with-heading (entry)
-- 
2.4.3

             reply	other threads:[~2015-07-13 20:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13 20:08 Ludovic Courtès [this message]
2015-07-14  8:31 ` [PATCH] emacs: Fill package description in Info buffers Alex Kost
2015-07-14 13:15   ` Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=1436818091-6524-1-git-send-email-ludo@gnu.org \
    --to=ludo@gnu.org \
    --cc=alezost@gmail.com \
    --cc=guix-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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).