Package: emacsen-common
Version: 1.4.16
Severity: wishlist
Tags: patch
File: /usr/share/emacs/site-lisp/debian-startup.el

When an error occurs loading one of the /etc/emacs/site-start.d parts,
it'd be nice if the message included the error description, to give a
clue what went wrong.  As per the change below perhaps.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10-1-386
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages emacsen-common depends on:
ii  bsdmainutils                  6.1.2      collection of more utilities from 

emacsen-common recommends no packages.

-- no debconf information


--- debian-startup.el.orig      2005-09-19 08:31:32.293105272 +1000
+++ debian-startup.el   2005-09-19 08:47:25.649173120 +1000
@@ -120,9 +120,10 @@
       ;; ordering.
       (mapcar
        (lambda (file)
-         (condition-case ()
+         (condition-case err
              (load file nil)
-           (error (message "Error while loading %s" file))))
+           (error (message "Error while loading %s: %s"
+                           file (error-message-string err)))))
        base-names)
       ;; restore the old load-path -- including any new paths added by
       ;; files loaded in directory traversal.

Reply via email to