-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a bugfix and various improvements #6
Conversation
Previously `elisp-slime-nave-mode' was enabled in `ielm-mode' (explicitly) and `emacs-lisp-mode' (because the arguments DOC and INIT-VALUE were switched in the mode definition. Also add variable `elisp-slime-nav-mode-lighter'.
Thanks for all this! I've merged the commits, but dropped 438d700 -- I can't imagine a situation in which someone would install the package but not want it enabled. |
Actually that was the bugfix...
If you insist on having the mode enabled by loading the library at least fix that by explicitly using t as INIT-VALUE not by it being so because of a bug. Still the mode should not be enabled by default. There is one reason: I installed it because it sounded interested but didn't have the time to look at it, ending up with a key that did something very strange (if you are not expecting it). |
Are you sure about the fix? The existing args appear to be in the right place according to the docs for
->
Regarding enabling by default, I can understand your point, but now that package.el allows users to easily install/uninstall packages, it's not wholly unreasonable for packages to be enabled by default when installed. Plenty of packages similarly use -Steve |
You are right. oO Good thing you didn't merge it then... Though you should update the usage instructions if you stick with this. And adding
Not everyone uses package.el.
A compromise would be to drop the autoload, so users at least have to I agree that installing a package using package.el should enable it's Doesn't package.el support having some Are you actively encouraging upstreams to autoload adding minor-modes to |
Yes, I'll do that.
There's no such support in However, I'm not certain that this is a problem for I'm not actively encouraging authors to autoload minor modes into hooks, but I'm happy when I see that a major-mode author has at least autoloaded some reasonable |
FWIW, I'd like to voice my support for not enabling by default. If I have a bug or performance issue, there is no longer anything in my .emacs.d/init.el that I can comment out to verify it's not elisp-slime-nav. I'm also moving towards a literate programming approach to my configuration and it bothers me I have nowhere I can No big deal though. |
It's funny, because the arguments @tarsius made above have gradually been sinking into my brain, and I've concluded that I agree: I'll remove the code which auto-enables |
Victory! :-) |
FWIW, I've been quite happy that this mode enabled itself in autoloads. If you don't want it enabled, you probably don't want to use it either, better just uninstall it. Finding out which minor mode is overriding the
I don't understand, are you using some other package management solution that makes it harder to uninstall unwanted packages than |
@dgutov Here's how I convinced myself of the validity of this policy: I asked myself, if |
Oh, why didn't I just celebrate quietly... :-) Yes, I am using my own submodule-based vaporware package manager. But that's not the problem, uninstalling is easy. The reason is... oh thanks @purcell, I couldn't have said it better. |
By that line of reasoning, you automatically cut out the argument "why don't you just uninnstall it?", because clearly you can't. Personally, I'd rather most of the optional packages were moved from Emacs to GNU ELPA. Then each of them would be able to do more naughty things, and I'd be able to only keep some of them in my system. |
A package can become available (autoloads and all) on a system in all sorts of ways. It would be inappropriate to assume that it always becomes available as a result of user's explicit choice to download a package using |
@dgutov I agree that if everyone used |
@purcell yes. The only thing I would add to that is that I think the activation should happen in the "package recipe" not in the libraries being installed. But I am repeating myself. |
@dgutov was your last comment addressing me? I can uninstall packages, I said it was easy. |
@tarsius Sorry, no, it was addressed to @purcell, and the "you" was hypothetical, depicting a person who has installed an Emacs distribution with I don't see how using a homegrown solution rather than
It would make more sense conceptually, but are there situations when
It's a good argument to make in abstract, and it applies well when we're dealing with libraries and packages that can serve multiple purposes. I just don't think it's the case here. Don't mind me, though, I can live with it either way. |
@purcell I am with @dgutov. I was actually somewhat surprised to find this mode disabled after the latest update, and I don't think that it was change for the better. I can't help but wonder about this discussion. This package is no library, after all. Other packages don't depend on it, it is not even of use to other packages, and it certainly won't install itself automagically, so how should it possibly end up in the user's Emacs without being explicitly and intentionally installed by her? How could she ever be surprised, let alone harmed by finding the mode being enabled by default? But don't mind me, too, after all it's a trivial change. |
@lunaryorn As discussed above, a piece of code being available doesn't imply that the end user has explicitly asked for it to be enabled. Minor modes bundled with Emacs do not automatically enable themselves in applicable major modes (think If someone decided to bundle Sorry for any inconvenience, but it's not without careful consideration. |
I'm just going to leave this here: http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/dired-x.el#n32 |
No description provided.