* Undefine functions from parent major-mode
@ 2013-08-09 12:13 Thorsten Jolitz
2013-08-09 13:16 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Jolitz @ 2013-08-09 12:13 UTC (permalink / raw)
To: help-gnu-emacs
Hi List,
assume there is a major-mode that would serve nicely as a parent-mode
for a new major-mode I want to write, but this parent-mode has lots of
functions/commands, and I would need only a few of them - and must
deactivate the others in the derived mode, because they won't work.
I don't talk about just undefining the keybindings for parent-mode
commands, the redundant functions/commands should simply not be
available anymore in the derived mode, not via 'M-x' and not via 'M-:'.
What is the righ/canonical way to do that?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Undefine functions from parent major-mode
2013-08-09 12:13 Undefine functions from parent major-mode Thorsten Jolitz
@ 2013-08-09 13:16 ` Stefan Monnier
2013-08-09 15:04 ` Michael Heerdegen
[not found] ` <mailman.2881.1376061319.12400.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Stefan Monnier @ 2013-08-09 13:16 UTC (permalink / raw)
To: help-gnu-emacs
> What is the righ/canonical way to do that?
Tell your users not to use them in your mode.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Undefine functions from parent major-mode
2013-08-09 13:16 ` Stefan Monnier
@ 2013-08-09 15:04 ` Michael Heerdegen
2013-08-09 15:40 ` Thorsten Jolitz
[not found] ` <mailman.2881.1376061319.12400.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 5+ messages in thread
From: Michael Heerdegen @ 2013-08-09 15:04 UTC (permalink / raw)
To: help-gnu-emacs
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > What is the righ/canonical way to do that?
>
> Tell your users not to use them in your mode.
Which means: commands/functions are not "assigned" to a mode in any way,
besides the fact that they are used, or not used, by the code of the
mode.
Or do you mean key bindings?
Michael.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Undefine functions from parent major-mode
2013-08-09 15:04 ` Michael Heerdegen
@ 2013-08-09 15:40 ` Thorsten Jolitz
0 siblings, 0 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2013-08-09 15:40 UTC (permalink / raw)
To: help-gnu-emacs
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>> > What is the righ/canonical way to do that?
>>
>> Tell your users not to use them in your mode.
>
> Which means: commands/functions are not "assigned" to a mode in any way,
> besides the fact that they are used, or not used, by the code of the
> mode.
>
> Or do you mean key bindings?
I did not really mean keybindings, but I see now that all I have to
worry about are actually the keybindings - its the users responsability
not to use e.g. dired commands in message-mode, and if he does, he will
get errors most likely.
Thanks for the hints.
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.2881.1376061319.12400.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2013-08-09 18:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09 12:13 Undefine functions from parent major-mode Thorsten Jolitz
2013-08-09 13:16 ` Stefan Monnier
2013-08-09 15:04 ` Michael Heerdegen
2013-08-09 15:40 ` Thorsten Jolitz
[not found] ` <mailman.2881.1376061319.12400.help-gnu-emacs@gnu.org>
2013-08-09 18:28 ` Stefan Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).