emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestion: Simple way to make conditional key bindings.


From: Richard Stallman
Subject: Re: Suggestion: Simple way to make conditional key bindings.
Date: Tue, 27 Aug 2002 13:05:43 -0600 (MDT)

    > I don't think that's right.  I don't believe that table wants to override
    > C-y sometimes: instead it wants to override `yank' sometimes.
    > So what you want to do is to create `yank-careful' and then use
    > either the `remap' thingy or substitute-key-definition or something
    > like that.

I wonder if it is possible for the text property keymap
to remap yank to my-yank, and have this affect bindings
of yank that come from the global map or buffer local map.
Does this work?

    Much better is some system like fill-paragraph uses where the generic 
binding
    looks for `fill-parapgraph-function' to do the work, which modes can
    override.

It is very useful to set up these hooks in specific places
where we see we need them.  However, we can't expect to provide
these hooks for all the situations where someone wants to override
a certain command for certain text.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]