Discussion:
Weird file buffering in emacs shell.
(too old to reply)
DaLoverhino
2008-01-14 19:31:42 UTC
Permalink
Sorry. I don't know where to post this, but I got this strange
behavior going on.

I have two emacs windows called "oracle", and "development". I have
an emacs shell in both. Now, in the development emacs shell, I add a
few trace println() in a java file. In the development emacs shell, I
do a grep and I see the trace statements placed in the java file. My
oracle emacs window is running as oracle user. My development emacs
window is running as me.

Now, I move my mouse pointer over to my oracle emacs window. And I go
to the oracle emacs shell, I do the same grep on the same file, and I
don't see the trace statements. I check a few times that I am indeed
grepping in the same directory and on the same files. And indeed I
don't see the trace statement.

So, now I go over to a normal xterm as oracle user, go to the same
directory, and I do the same grep. I now see the trace statements.

So, now when I do an ls -l on the java file. I see that the
modification times look the same on my development emacs window, and
my oracle xterm window. But, the modfiication time on my oracle emacs
window is much older.

What is going on here?

I am using Emacs 21.4.1. I am using GNU bash 3.1.17. I am using
Linux Fedora Core 6.

thanks.
DaLoverhino
2008-01-14 19:38:42 UTC
Permalink
Post by DaLoverhino
Sorry. I don't know where to post this, but I got this strange
behavior going on.
I have two emacs windows called "oracle", and "development". I have
an emacs shell in both. Now, in the development emacs shell, I add a
few trace println() in a java file. In the development emacs shell, I
do a grep and I see the trace statements placed in the java file. My
oracle emacs window is running as oracle user. My development emacs
window is running as me.
Now, I move my mouse pointer over to my oracle emacs window. And I go
to the oracle emacs shell, I do the same grep on the same file, and I
don't see the trace statements. I check a few times that I am indeed
grepping in the same directory and on the same files. And indeed I
don't see the trace statement.
So, now I go over to a normal xterm as oracle user, go to the same
directory, and I do the same grep. I now see the trace statements.
So, now when I do an ls -l on the java file. I see that the
modification times look the same on my development emacs window, and
my oracle xterm window. But, the modfiication time on my oracle emacs
window is much older.
What is going on here?
I am using Emacs 21.4.1. I am using GNU bash 3.1.17. I am using
Linux Fedora Core 6.
thanks.
Just some more information. I am not using ESC-x grep. I am doing a
grep inside the emacs shells.
j***@gmail.com
2008-03-12 09:23:49 UTC
Permalink
Post by DaLoverhino
But, the modfiication time on my oracle emacs
window is much older.
Do you mean the time shown if you do "ls -l" in the oracle emacs
window? Sounds like it might be a machine, or login, using a different
time zone.

Loading...