Bug 31592 - it's not nice that an autoloaded function can be missing if the subpkg is not installed
Summary: it's not nice that an autoloaded function can be missing if the subpkg is not...
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: emacs24-erc (show other bugs)
Version: unstable
Hardware: all Linux
: P3 minor
Assignee: Evgenii Terechkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-03 22:00 MSK by Ivan Zakharyaschev
Modified: 2015-12-03 22:00 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2015-12-03 22:00:35 MSK
Something that can be discussed:

Now if emacs24-erc is not installed, `erc' still is visible as a command, and fails when there is an attempt to call it.

It is in the list of autoloaded functions:

/usr/share/emacs/24.3/lisp/loaddefs.el:(autoload 'erc "erc" "\


To fail is not a nice behavior. The missing function:

1) can be made unknown;
2) can be made to give a message that a package needs to be installed :)
3) or the package can be made an obligatory dependency of emacs24-common (maybe, it's like this for some other subpackages).

3) can be justified that the reason for having a subpackage can be understood as the flexibility in changing the versions of the subpackage (from the main Emacs source tree, or from its maintainer). So, the reason can be thought no to be the ability to install less.

Things are not very clear; this problem can be discussed more.