Making C-Tab work outside of Emacsw32

Asked by Stewart

I am trying to get the functionality of control-tab from Emacsw32 working in Aquamacs on my Mac. I understand (at least I think) that it is a combination of using swbuff, swbuff-y, and the ourcomments-ido-ctrl-tab functionality from nXhtml. Setting certain combinations of the different modes and variables gives me certain combinations of the different functionality. But I can't get the entire thing working correctly.

Any advise as to how to set the whole combination up?

Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Solved by:
Stewart
Solved:
Last query:
Last reply:
Revision history for this message
lborgman (lennart-borgman) said :
#1

swbuff and swbuff-y is not used any more in EmacsW32. I just distribute them if someone is still using them.

The new C-Tab functionality uses ido-switch-buffer. That function comes with Emacs. However to make this work with C-Tab I had do tweak it a bit. This changes are in ourcomments-util.el (I hope Kim, the author of ido, can get time to include something like my changes later.)

The easiest way to get this working is to just install nXhtml, load it and customize ourcomments-ido-ctrl-tab to turn it on.

Revision history for this message
Stewart (stewartbryson) said :
#2

Thanks Lennart for answering this question.

I had already tried this... however, the my result depends on the different versions of either Aquamacs or Gnu Emacs that I am using.

Here is the effect:

Gnu Emacs 22.x, or Aquamacs based on Gnu Emacs 22.x:

When I hit Control-Tab, it populates the mini-buffer with an array of open tabs, as it does on EmacsW32. However, each subsequent use of Control-Tab does nothing.

I can, however, start typing other characters to get autocomplete to work for the tabs in the mini-buffer.

Gnu Emacs 23.x, or Aquamacs based on Gnu Emacs 23.x:
When I hit Control-Tab, it populates the mini-buffer with an rray of open tabs, as it does on EmacsW32. However, each subsequent use of Control-Tab causes the highlighted tab to skip over the next tab and land two tabs away. So each subsequent use of Control-Tab increments two tabs instead of one.

If I then start typing to try and get autocomplete of open tabs to work, the mini buffer dissappears, and I find that the characters I have just typed were actually inserted into what was the current buffer before I pressed Control-Tab to start this process.

Thanks for having a look at this. Let me know if there is some more information that is needed to troubleshoot.

Revision history for this message
lborgman (lennart-borgman) said :
#3

I think I stumbled on some bugs in defadvice. I believe I have worked around that now. Can you please try the latest nXhtml 1.77 beta? (Download it from http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/)

Revision history for this message
Stewart (stewartbryson) said :
#4

Sorry Lennart... this has the same effect. It did not correct the issue.

Revision history for this message
lborgman (lennart-borgman) said :
#5

Hi Stewart, I have not had time to answer you. Can you please try the latest beta 1.77 that I just uploaded. I do not think the problem is cured there since you said it was not before, but just to be sure, please test it. I have at the moment no idea why it does not work for you so I want to get rid of as much choices for possible confusion as possible.

Revision history for this message
Stewart (stewartbryson) said :
#6

Lennart: the newest beta did not have any effect.

I think some screen shots would be helpful... but I don't have any way with this format to upload them.

Revision history for this message
lborgman (lennart-borgman) said :
#7

Hi Stewart, it stopped working for me too. I made some more changes and also made a new release of nXhtml. Can you please try version 1.78 which I have just released?

Revision history for this message
lborgman (lennart-borgman) said :
#8

I have created a bug report from this. Please continue the discussion there. (There is a link to the right to "Related bugs".)

Revision history for this message
Stewart (stewartbryson) said :
#9

The latest download fixed the problem for me in Aquamacs 1.7 based on Gnu Emacs 22.3.1. I will update the bug report when I have tested other versions/distros.

Thanks very much Lennart.

Revision history for this message
Stewart (stewartbryson) said :
#10

Lennart:

Everything seems to be working now in Aquamacs 1.8, which is based on Gnu Emacs 23.1.50.1, except one thing. Perhaps you can make sense of it... it also occurs in the regular build of Gnu Emacs as well.

Every time I press C-Tab, the emphasis does not skip to the next buffer in the list, but instead, jumps two spots. It happens the first time I press C-Tab, which populates the Mini-Buffer with the list of open buffers, and also it skips two each additional time I press it.

Any ideas?