Bastien schrieb: > Sebastian Rose writes: > >> I'm running emacs 23.0.60.2 from last week here. Since that I noticed >> some strange behaviour when trying to open a file by C-x C-f. > > What if you check with a clean emacs -Q ? Does the error disappear? > > I guess the problem comes from one of the function in `find-file-hook'. > Can you see anything suspicious here? I wrote to emacs.devel too - maybe they know what's wrong / changed in subsystem of emacs. I found that 'find-file' does not work sometimes (first attempt in a session - subsequent attempts succeed). >> emacs opens a second window, 5 lines high only, on the bottom of >> frame. In that window I see an other file that was opened on start up >> (I use desktop). > > Is the error still here without desktop? > Hmmm.... there where some desktop related problems discussed on emacs.devel (desktop file not read to the end or something). This is a candidate since sometimes on start the window is not split korrektly (50%/50%) as it did before when loading more than one file by desktop. Starting emacs without desktop with more than one file as argument splits the window as expected. So this is definitively desktop related. >> case 2 (this one is worth): > > (You mean "worse", right? :) > >> If I export an *.org file sometimes an arbitrary existing file is >> overwritten! Same as above, first attempt in session, subsequent >> attempts succeed. > > You export with C-c C-e h, right? Or via org-publish.el? > >> I suspect emacs though, since I deleted all lisp files on my machine >> before installing. I used emacs 22 before (the current Debian testing >> package). I searched the mailinglist for something on this but to no >> avail. > > I suspect something weirdness with related to your `desktop' or > `session' customization, or maybe some function in find-file-hook. > > Can you try to narrow this problem with that directions? > Currently trying by erasing all custom customizations from init files (aaahhh, thanks, -Q does that! Great!). But it will take a week or so, since the problem doesn't show up regularly but rather from time to time. I put (setq debug-on-error t) in my .emacs. I will have to document the incidents to find out more too. Regards, Sebastian