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

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

arc-mode, `archive-zoo-summarize': wrong application of `length'


From: Christoph Conrad
Subject: arc-mode, `archive-zoo-summarize': wrong application of `length'
Date: 12 Oct 2000 08:57:07 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

In GNU Emacs 20.7.1 (i586-pc-linux-gnu, X toolkit)
 of Wed Jun 28 2000 on mutzel
configured using `configure  --with-x'

File "arc-mode.el", function `archive-zoo-summarize':

========================================================================
CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HE
========================================================================
      (let* (...
             (width (string-width ifnname))
             ... )

        ;; -cc- Original: (setq maxlen (max maxlen (length width))
        ;; -cc- corrected:
        (setq maxlen (max maxlen width)
========================================================================
CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HERE - CUT HE
========================================================================

`width' is an integer cause `string-width' returns an integer. `length'
can only be applied to "vector, list or string SEQUENCE". So i think
this code did never work for ZOO files.

I patched the code as seen above, it works.

Best regards,
cu, -cc-
-- 
EMACS: Every Mode Accelerates Creation of Software
(defvar my-computer '((OS . "GNU Emacs") (system-type . gnu/linux))
        "Programming environment.")



reply via email to

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