From: Eric L. <Eri...@ma...> - 2011-03-23 12:59:15
|
Hi, It looks like the original algorithm was quite simple. The attached patch will hopefully have the kind of behavior you are looking for. Let me know how it goes. Eric -----Original Message----- From: rp...@gm... [mailto:rp...@gm...] Sent: Wednesday, March 16, 2011 5:33 AM To: mat...@li... Subject: [Matlab-emacs-discuss] Tab completion in emacs deletes my windows Hello everyone, running matlab-shell 3.3.1 in emacs 23 (ubuntu 10.04), I get the following annoying bug: Suppose I have to windows open side by side ( source code & matlab-shell ). In matlab-shell when I hit Tab to autocomplete for example a function name, if this name is not unique, it will show all options in the other (source code) window, which is fine. However, if I continue typing until the function name or whatever I am autocompleting is unique, and hit tab again, the window is closed and now I only have one window open, running the matlab-shell. This is very annoying since I have split my window again and switch to the source code buffer each time I hit tab. This only happens if the windows are split horizontally (left-right). I had a look at the function matlab-shell-tab in matlab.el, but I don't know enough lisp to see what is happening there. To me it seems that the lines (delete-windows-on *Completions*) should only be called, if the matlab-shell actually owns these buffers. If not, it should just close the *Completions* buffer instead of deleting the window Is this standard behavior or is there something wrong with my emacs? Thanks Hans ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |