emacs-devel
[Top][All Lists]
Advanced

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

Re: Shift selection using interactive spec


From: Stefan Monnier
Subject: Re: Shift selection using interactive spec
Date: Fri, 14 Mar 2008 23:31:43 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> First and foremost it should be an elisp function that people can
>> call at the beginning of their function, just like they can call
>> `barf-if-buffer-read-only'.
>> 
>> Then we can provide a special char in `interactive' strings for those
>> commands that currently don't use an elisp interactive spec.
>> 
>> Then we can tweak the code of that function to decide how it should
>> behave when the command is bound to a shifted key.

> So we define (i) an elisp function called, say,
> shift-translation-handler, and (ii) a new interactive code that says
> to call shift-translation-handler when a command is activated through
> a shift translated keybinding.

No: the function is called every time.  *All* the work is done by the
elisp function.


        Stefan




reply via email to

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