unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] emacs: Fill package description in Info buffers.
@ 2015-07-13 20:08 Ludovic Courtès
  2015-07-14  8:31 ` Alex Kost
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2015-07-13 20:08 UTC (permalink / raw)
  To: guix-devel; +Cc: alezost

* 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

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

end of thread, other threads:[~2015-07-14 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-13 20:08 [PATCH] emacs: Fill package description in Info buffers Ludovic Courtès
2015-07-14  8:31 ` Alex Kost
2015-07-14 13:15   ` Ludovic Courtès

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).