* Deactivate a package without uninstalling it
@ 2011-07-08 2:29 Stefan Monnier
2011-07-08 7:13 ` David Kastrup
2011-07-08 16:17 ` Tom Tromey
0 siblings, 2 replies; 6+ messages in thread
From: Stefan Monnier @ 2011-07-08 2:29 UTC (permalink / raw)
To: emacs-devel
How can I prevent Emacs from activating an ELPA package which is installed
system-wide?
E.g. how can I have the AUCTeX package installed but without it
hijacking the default latex-mode?
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Deactivate a package without uninstalling it
2011-07-08 2:29 Deactivate a package without uninstalling it Stefan Monnier
@ 2011-07-08 7:13 ` David Kastrup
2011-07-08 13:00 ` Stefan Monnier
2011-07-08 16:17 ` Tom Tromey
1 sibling, 1 reply; 6+ messages in thread
From: David Kastrup @ 2011-07-08 7:13 UTC (permalink / raw)
To: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> How can I prevent Emacs from activating an ELPA package which is installed
> system-wide?
> E.g. how can I have the AUCTeX package installed but without it
> hijacking the default latex-mode?
The AUCTeX manual offers the following:
If you want to remove a preinstalled AUCTeX completely before any of
its modes have been used,
(unload-feature 'tex-site)
should accomplish that.
I don't know how the ELPA version deals with it.
In any case,
M-x customize-variable RET TeX-modes RET
should give you control about what kind of modes you want to have AUCTeX
to provide.
--
David Kastrup
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Deactivate a package without uninstalling it
2011-07-08 7:13 ` David Kastrup
@ 2011-07-08 13:00 ` Stefan Monnier
2011-07-08 14:02 ` Jambunathan K
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2011-07-08 13:00 UTC (permalink / raw)
To: David Kastrup; +Cc: emacs-devel
>> How can I prevent Emacs from activating an ELPA package which is installed
>> system-wide?
>> E.g. how can I have the AUCTeX package installed but without it
>> hijacking the default latex-mode?
> The AUCTeX manual offers the following:
Thanks, but I want a solution that works for any ELPA package.
AUCTeX was just an example.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Deactivate a package without uninstalling it
2011-07-08 13:00 ` Stefan Monnier
@ 2011-07-08 14:02 ` Jambunathan K
2011-07-08 15:52 ` Stefan Monnier
0 siblings, 1 reply; 6+ messages in thread
From: Jambunathan K @ 2011-07-08 14:02 UTC (permalink / raw)
To: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> How can I prevent Emacs from activating an ELPA package which is installed
>>> system-wide?
>>> E.g. how can I have the AUCTeX package installed but without it
>>> hijacking the default latex-mode?
>> The AUCTeX manual offers the following:
>
> Thanks, but I want a solution that works for any ELPA package.
> AUCTeX was just an example.
The variable down below seems to be a "whitelist". May be you are
looking for a "blacklist" variant of this variable something like
package-dont-load-list ...
,----[ C-h v package-load-list RET ]
| package-load-list is a variable defined in `package.el'.
| Its value is (all)
|
|
| This variable is potentially risky when used as a file local variable.
|
| Documentation:
| List of packages for `package-initialize' to load.
| Each element in this list should be a list (NAME VERSION), or the
| symbol `all'. The symbol `all' says to load the latest installed
| versions of all packages not specified by other elements.
|
| For an element (NAME VERSION), NAME is a package name (a symbol).
| VERSION should be t, a string, or nil.
| If VERSION is t, all versions are loaded, though obsolete ones
| will be put in `package-obsolete-alist' and not activated.
| If VERSION is a string, only that version is ever loaded.
| Any other version, even if newer, is silently ignored.
| Hence, the package is "held" at that version.
| If VERSION is nil, the package is not loaded (it is "disabled").
|
| You can customize this variable.
|
| This variable was introduced, or its default value was changed, in
| version 24.1 of Emacs.
|
| [back]
`----
>
>
> Stefan
>
>
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Deactivate a package without uninstalling it
2011-07-08 14:02 ` Jambunathan K
@ 2011-07-08 15:52 ` Stefan Monnier
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2011-07-08 15:52 UTC (permalink / raw)
To: emacs-devel
> | package-load-list is a variable defined in `package.el'.
Wonderful, that does it: (setq package-load-list '((auctex nil) all))
I'd still like to have some way to control this from the
package-list-packages GUI, but that's for later,
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Deactivate a package without uninstalling it
2011-07-08 2:29 Deactivate a package without uninstalling it Stefan Monnier
2011-07-08 7:13 ` David Kastrup
@ 2011-07-08 16:17 ` Tom Tromey
1 sibling, 0 replies; 6+ messages in thread
From: Tom Tromey @ 2011-07-08 16:17 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:
Stefan> How can I prevent Emacs from activating an ELPA package which is
Stefan> installed system-wide? E.g. how can I have the AUCTeX package
Stefan> installed but without it hijacking the default latex-mode?
I haven't followed all the changes made in Emacs, but in my original
package.el, you couldn't do this. All you could do was remove the
package.
Tom
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-07-08 16:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-08 2:29 Deactivate a package without uninstalling it Stefan Monnier
2011-07-08 7:13 ` David Kastrup
2011-07-08 13:00 ` Stefan Monnier
2011-07-08 14:02 ` Jambunathan K
2011-07-08 15:52 ` Stefan Monnier
2011-07-08 16:17 ` Tom Tromey
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.