Subject: bug#7414: closed (Re: bug#7414: 24.0.50; autoload-find-destination throws error in EOL detection)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 17 Nov 2010 03:44:02 +0000

Your bug report

#7414: 24.0.50; autoload-find-destination throws error in EOL detection

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
7414: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7414
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#7414: 24.0.50; autoload-find-destination throws error in EOL detection
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Tue, 16 Nov 2010 22:48:20 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 23.3

Thanks; fixed in emacs-23.

Subject: 24.0.50; autoload-find-destination throws error in EOL detection
From: David Engster <[email-masked]>
To: [email-masked]
Date: Tue, 16 Nov 2010 17:45:23 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

While trying to update the autoloads of the Emacs Code Browser (ECB),
the following error occured (byte-code snipped):

Debugger entered--Lisp error: (wrong-type-argument numberp [utf-8-unix utf-8-dos utf-8-mac])
  zerop([utf-8-unix utf-8-dos utf-8-mac])
  autoload-find-destination("/Users/foo/emacs-packages/ecb/ecb-help.el" "ecb-help")
  autoload-generate-file-autoloads("ecb-help.el" nil "/Users/foo/emacs-packages/ecb/ecb-autoloads.el")
  update-directory-autoloads("/Users/foo/emacs-packages/ecb/")
  apply(update-directory-autoloads "/Users/foo/emacs-packages/ecb/")
  batch-update-autoloads()
  ecb-batch-update-autoloads()
  ecb-update-autoloads()

The culprit is obviously this

        (unless (zerop (coding-system-eol-type buffer-file-coding-system))
          (set-buffer-file-coding-system 'unix))

which doesn't consider that coding-system-eol-type can return a vector
of coding systems.

-David