emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc strings that are too long


From: John Paul Wallington
Subject: Re: doc strings that are too long
Date: Mon, 21 Nov 2005 19:43:55 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

"Drew Adams" <address@hidden> writes:

> In other cases, such as quail-define-package, the (fn ...) at the end is
> just too wide (232 columns wide! in the case of quail-define-package)

In those cases how about just filling the arglist ?  That seems to
give okay results.

2005-11-21  John Paul Wallington  <address@hidden>

        * help-fns.el (describe-function-1): Fill arglist.

--- help-fns.el 31 Oct 2005 17:06:00 +0000      1.79
+++ help-fns.el 21 Nov 2005 19:39:16 +0000      
@@ -436,7 +436,9 @@
                          (format "\nMacro: %s" (format-kbd-macro def)))
                         (t "[Missing arglist.  Please make a bug report.]")))
                  (high (help-highlight-arguments use doc)))
-            (insert (car high) "\n")
+            (let ((fill-begin (point)))
+             (insert (car high) "\n")
+             (fill-region fill-begin (point)))
             (setq doc (cdr high))))
         (let ((obsolete (and
                          ;; function might be a lambda construct.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]