Re: [Ebib-users] non-standard keybindings
Brought to you by:
joostkremers
From: Joost K. <joo...@fa...> - 2011-03-04 10:23:09
|
On Thu, Mar 03, 2011 at 07:26:23PM +0000, Joe Corneli wrote: > It's interesting that the C-c C-c keystroke seems so "standard" to me > despite the rule you mentioned! Partly because of its common meaning > in major modes like mail-mode (with a parallel in shell-mode) yes, in major modes, it's ok to bind C-c C-c. > -- and > partly because not everyone follows the convention... For example > w3m-form-input-textarea-set, which is in w3m-form-input-textarea-mode > (minor mode), has the binding C-c C-c. > > Similarly the command w3-do-text-entry from w3, which is bound in the > following silly way: > > (switch-to-buffer-other-window buff) > (indented-text-mode) > [...] > (message "Press C-c C-c when finished with text entry.") > (local-set-key "\C-c\C-c" 'w3-finish-text-entry) > > ("The binding goes in the current buffer's local map, which in most > cases is shared with all other buffers in the same major mode." -- > oops!) makes me wonder why they don't just bind it in w3m-form-input-textarea-mode... > All that aside, another idea to consider would be to change Ebib-entry > major mode so that entries can be edited directly in that the > entry-browsing screen instead of in a separate window. What do you > think of this thought? that would be great, actually. i've already considered doing this myself, thinking i could use the same library that emacs' customize interface uses (which defines a bunch of widgets for text input fields) but it turned out that once a buffer is created with these widgets, it cannot be recreated with another set of widgets. i never really looked at other ways of doing this, but if you have some idea, i'd be all ears. :-) -- Joost Kremers Life has its moments |