Subject: bug#10396: 24.0.92; update-directory-autoloads now adds path element to filename in autoload definition

From: David Engster <[email-masked]>
Date: Thu, 29 Dec 2011 14:37:13 +0100

This might not be a bug, but I couldn't find anything in NEWS regarding
this issue, and it breaks my personal autoload setup.

Recipe:

* mkdir -p ~/foo/bar

* Create a file 'test.el' in foo/bar, containing

  ;;;###autoload
  (defun testthis ()
  )

* cd ~/foo and call

  emacs --batch --eval '(let ((generated-autoload-file "~/foo/loaddefs.el")) (update-directory-autoloads "~/foo/bar")))'

* The file ~/foo/loaddefs.el will have this autoload definition:

  (autoload 'testthis "bar/test" "\

  Using emacs v23.3, I only get

  (autoload 'testthis "test" "\

-David

In GNU Emacs 24.0.92.6 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2011-12-28 on spaten
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
configured using `configure  '--prefix=/opt/emacs' '--without-gsettings' '--without-gconf' '--without-dbus' '--with-x-toolkit=lucid''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: C
  value of $LC_MESSAGES: C
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t