Re: [Ebib-users] non-standard keybindings
Brought to you by:
joostkremers
From: Joe C. <hol...@gm...> - 2011-03-03 19:26:29
|
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) -- 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!) 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? Joe On Thu, Mar 3, 2011 at 3:27 PM, Joost Kremers <joo...@fa...> wrote: > Hi Joe, > >> I just tried Ebib (from git) yesterday and found that a few >> keybindings are somewhat nonstandard, e.g. C-c|q to exit and save a >> multi-line text area would more typically be C-cC-c. > > I know it's rather non-standard, but the thing is, Ebib's multiline mode is a > minor mode, and key sequences consisting of C-c followed by a control character > are reserved for major modes (see (info "(elisp)Key Binding Conventions") ). > You're of course free to bind C-c C-c to ebib-quit-multiline-edit within > ebib-multiline-mode-map yourself, but I can't use it as the default key binding. > >> If I was to send >> a keybinding patch, would it be considered, or are ebib users already >> used to the current bindings and uninterested in switching? > > For the reason just mentioned, I wouldn't be able to accept a patch like that. > But what I would include is a patch that would allow a user to install C-c C-c > (and perhaps some other commands) in ebib-multiline-mode-map, if they so choose. > > Joost > > > -- > Joost Kremers > Life has its moments > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Ebib-users mailing list > Ebi...@li... > https://lists.sourceforge.net/lists/listinfo/ebib-users > |