gnu-emacs-sources
[Top][All Lists]
Advanced

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

Re: timid.el --- timid completion


From: Kim F. Storm
Subject: Re: timid.el --- timid completion
Date: Mon, 26 Feb 2007 15:45:57 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux)

"address@hidden" <address@hidden> writes:

> I made some improvements:
>
> - Completion list is not updated unnecessarily if search pattern is
> unchanged after editing.
>
> - Keybindings for timid completion are configurable.
>
> - Generalized binding of completion keys, so timid can be used for
> other kinds of completions too (e.g. execute-extended-command can also
> be added to timid-affected-commands).
>
> http://www.emacswiki.org/cgi-bin/emacs/timid.el

Instead of the timid-enable / timid-disable, why don't
you make this into a proper minor mode, 
e.g. named timid-completion-mode (or just timid-mode).

Also, instead of the various "member" checks, it is
better (IMO) to put a 'timid-completion property on
the relevant commands, and then do something like

(if (eq (get this-command 'timid-completion) 'affected)
    ...

instead of 

(if (member this-command timid-affected-commands)
    ...


That makes it easier for unrelated packages to
mark commands as "timid-affected" without actually
loading timid.el.

See delsel.el for a good example.

-- 
Kim F. Storm  http://www.cua.dk





reply via email to

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