issue3: Site opens in wrong buffer

Priority: bug Status: resolved
Messages
msg4 (view) Author: nicktastic Date: 2008-09-19.15:24:40
1. Enter the following code into your rc:

define_key(content_buffer_normal_keymap, "1", function () {
        var w = window_watcher.activeWindow;
        switch_to_buffer(w, w.buffers.get_buffer(0));
    });

2. Load a new instance of conkeror and load a web site.
3. Load another web site in another buffer using C-x C-f.
4. Press 1 to switch to the previous buffer.
5. Load a new web site by pressing g.
6. Observe that the new website loads in the other buffer.
msg94 (view) Author: nicktastic Date: 2008-10-09.02:32:45
I have a suspicion that this happens because the cursor 'focus' remains in the previous buffer after
switching to a new buffer, in which case the focused element should be updated on buffer switch. I
haven't confirmed this, but it is worth looking into. (I notice that in Firefox when you Ctrl+Pg[Up|Down]
to a new tab, then hit space to scroll the page, the page in the tab-switched-away-from scrolls rather
than the page in the current tab.)
msg101 (view) Author: jbms Date: 2008-10-15.01:10:38
Fixed.  The problem was that keyboard.js was giving an exception when trying to see if the bound command
was a prefix command, since it wasn't properly checking if the bound command is a function rather than a
string command name.
History
Date User Action Args
2008-10-15 01:10:38jbmssetstatus: chatting -> resolved
messages: + msg101
2008-10-09 02:32:48nicktasticsetmessages: - msg93
2008-10-09 02:32:45nicktasticsetmessages: + msg94
2008-10-09 02:31:29nicktasticsetmessages: + msg93
2008-10-09 02:30:40nicktasticsetmessages: - msg92
2008-10-09 02:29:41nicktasticsetstatus: unread -> chatting
messages: + msg92
2008-09-19 15:24:40nicktasticcreate