Re: bump : *EDE Shell v2* buffer consecutively kills other windows content
Xaver Gerster <[email protected]>
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
On 10/14/2014 03:53 AM, Eric M. Ludlam wrote:
> On 10/13/2014 11:15 AM, Xaver Gerster wrote:
>> simplest init.el I get this problem with is just
>>
>> (global-ede-mode 1)
>> (setq ede-project-directories t)
>> (require 'ede/proj-prog)
>>
>> Once again: using just this init.el, starting Emacs, opening some
>> 'main.cc' from a project, typing 'C-c . R' once, pops up an *EDE Shell
>> v2* window, which splits the Emacs pane. Typing 'C-c . R' a 2nd time,
>> will not reuse the *EDE Shell v2* window, but place another *EDE Shell
>> v2* buffer into the window previously containing 'main.cc'.
>
> I installed GNU hello to try out the shell, and found what it is. The
> program that runs the command in the shell calls `shell' to init the
> buffer. This used to be harmless, but now it calls a function that
> effectively replaces the contents of the current window with the shell
> buffer.
>
> I hadn't understood what you had originally asked, and thought you meant
> that the buffer was killed, not that the window contents were replaced.
>
> I've attached a patch. I would have just checked it in, but bzr is
> giving me some sort of lock error on that file preventing me from
> checking it in.
I'm sorry, but I applied your patch to my local bazar version of cedet
and the issue I described just remains as is. No change at all.
Apart from stripping my init.el down to the aforementioned 3 lines, I
now also generated an absolutely bare-bones ede automake project with a
single program target comprising of the following sophisticated piece of
code
#include <iostream>
using namespace std;
int main() {
cout << "Hi there" << endl;
return 0;
}
I compile the project with 'C-c . C', I close all windows except for the
one showing the code, I invoke 'C-c . R' once, this pops up an *EDE
Shell ...* window, splitting the Emacs pane, and saying "Hi there". I
invoke 'C-c . R' a 2nd time, this pops up another *EDE Shell ...*
replacing the windows content which previously showed the code, leaving
me with two identical *EDE Shell ...* buffers displayed in two windows
on the emacs pane.
To make absolutely sure that the bazar version on my system was not
somehow contaminated by emacs-built-in stuff, I replaced the string
"*EDE Shell %s" on line 73 in shell.el by "*xxEDE Shell %s", which in
turn was actually also the buffers name I got on invoking 'C-c . R'.
Any other idea?
Xaver
PS.: now how cool is it that there is even a Gnu hello project? I didn't
know that. And its tar.gz even takes a full 700K. That's something.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho