all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to use `update-file-autoloads'
@ 2014-05-28 11:37 Klaus-Dieter Bauer
  2014-05-28 12:00 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Klaus-Dieter Bauer @ 2014-05-28 11:37 UTC (permalink / raw)
  To: emacs help

Hello!

I have been trying to figure out the use of `update-file-autoloads', but I
cannot seem to find out how it works. Regardless of whether I pass it a
relative or an absolute file name, it will pass the absolute file name to
`autoload-file-load-name' which then enters and endless-loop (which I
confirmed to happen in the Cygwin version as well). The loop

    (while name
      (setq name (directory-file-name name))
      (push (file-name-nondirectory name) names)
      (setq name (file-name-directory name)))

will never finish, because (file-name-directory "/") evaluates to "/", thus
`name' never becomes nil. Run from the native Windows version the
corresponding behaviour is (file-name-directory "c:/") => "c:/".

Am I using `update-file-autoloads' wrong or is this a bug? Since I believe,
that a bug in `autoload.el' would quickly be noticed while building emacs
normally, I assume the first, which is why I did not want to send this as a
bug-report right away.

- Klaus


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to use `update-file-autoloads'
  2014-05-28 11:37 How to use `update-file-autoloads' Klaus-Dieter Bauer
@ 2014-05-28 12:00 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2014-05-28 12:00 UTC (permalink / raw)
  To: help-gnu-emacs

> Am I using `update-file-autoloads' wrong or is this a bug? Since I believe,
> that a bug in `autoload.el' would quickly be noticed while building emacs
> normally, I assume the first, which is why I did not want to send this as a
> bug-report right away.

autoload.el is used while building Emacs, but not update-file-autoloads,
so M-x report-emacs-bug sounds like a good idea.


        Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-28 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-28 11:37 How to use `update-file-autoloads' Klaus-Dieter Bauer
2014-05-28 12:00 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.