General :: Disallow Closing Last Emacs Window Via Window-Manager Close Button
Jul 8, 2011
I like to start Emacs as part of a login script and leave it running for the duration of my login session (which is typically weeks).
I have scripts to call emacs-client which will allow me to use a file-manager or Windows Explorer to locate files and right-click to edit them in Emacs.
I often end up with a lot of emacs windows (frames) open and I like to just be able to close them by clicking on the MS-Windows or KDE X button at the top-right.
The trouble is, if the window is the last one, this will shut down emacs which will lose all kinds of interesting history information.
As a work-around I use C-x 5 0 which won't let me close the last frame but this is often not as convenient as using the mouse
Does anyone know how to configure Emacs so that it can intercept the Window-Close button of the last frame to either request confirmation or simply disallow it?
On MS-Windows, disallowing closing of the last window may cause logoff to hang if emacs is still running but I'm not too worried about that.
So I have these three bars that I suppose are some kind of left over fragment of windows I had up the last time I rebooted. Anyhow, whenever I boot now, these three bars show on my desktop, and I cant get rid of them, they dont have the minimize, maximize or close buttons. Yet when I click the, "show desktop" buttom, they then minimize. HOwever, they don't show up on my window list. I've tried restarting my xsession and that didnt work, I've restarted nautilus that didn't work, I cant right click on them, I already tried xkill and force quite and that doesnt work. They're just always there.
KDE tends to freeze momentarily after performing some tasks, like closing a window, pressing a button that should result in an option pane being popped, or simply trying to drag a window around the desktop. It doesn't happen every single time, but it's very persistently. I first noticed that the mouse would freeze sometimes when I do something like close a window and it takes 3~4 seconds for me to get control back, and for the task that I requested (close a window for instance) to be carried out.
During this time, I notice that all of KDE freezes up because my binary clock widget freezes as well. Is this a known problem with KDE? Can somebody give me some advice as to what might be causing this behaviour? I recall having similar problems back when I first tried 11.0, but back then it was so bad that I ended up going with Gnome. Now KDE has me hooked again, except for this one niggling issue. If I can get this resolved, then I think I will finally have an absolutely stable linux desktop.
I upgraded 9.10 desktop to 10.04 using network (recommended) procedure.The window close button has moved (all desktop windows) from upper right corner to upper left corner. This causes untold frustration since I flip amongst numerous computers with Windows windows and other levels of UBUNTU windows. is there some way to configure where the window close button is (some way to put it back in the upper right corner)?
I've been using this feature since Win3.1 days. Double-click the menu button on the top-left of the window to close it.It doesn't work for me right now in KDE, and I can't find any option to enable it. Googling gave a few hits of people requesting this feature in gnome, but no clear instructions on how to enable it in KDE or whether it's possible. (Though perhaps my Google-fu is just weak...)
i was so happy using the window buttons applet in gnome panel. it was working fine in maximize window , now suddenly i find the close button has vanished i tried to remove and re install, changed theme and all the jugglery within my limits... have absolutely no idea what went wrong, any clue ? to get back the "CLOSE" button ? its funny with just the minimize and restore button visible in maximised mode... its the close button i use most in maximise mode
I am trying to build a linux distro based on xubuntu that I will install in my car. I need a window manager thats fast and dosen't have to have the minimize, maximize, and close buttons at the top. I also have somewhat of an idea on how to change from xfwm4 but not 100%
I am doing some project work and for that using the server at college with ssh connection. Every time I try to open emacs on the terminal after connecting, it opens emacs in the terminal itself i.e. not its own window. On my laptop on which ubuntu is installed, emacs always opens up in its own window an thats how I am used to it. There are several problems when it opens in the terminal like when I try to use commands such as M-V, actually terminal's view menu opens up, its very frustrating. Also I am pretty sure that the college server runs on red hat and has X installed on it. So what do I need to do to get my emacs window back.
I recently upgraded the motherboard/processor on my computer (as in quadrupled the processor and octupled the ram). The new board has a built in GPU (intel) and from searching the forums, I think this is part of the problem. Every time I boot up the computer, I need to open the Compiz icon and use it to reload the window manager before I see any title bars, borders, etc. 've tried the .bashrc hack (metacity --replace), but that doesn't do anything. In fact, whenever I open the terminal, I need to have two tabs open in order to use it, and when I close it all the borders go away again (even when I haven't done anything). Also, the onboard sound card (intel) doesn't work, but that's another task (I at least have a compatible card for that).
Every time i open Emacs window,it opens with a width=(monitor-width)/2;height=(3/4)*(monitor-height)I click the maximized icon every time.How can i set the maximized emacs window as default?
When I open a pdf file (e.g., beamer file) using xpdf, there's an annoying window on the left displaying section headings. Presumably it's possible to close it, ideally toggle it closed and open with a key binding, but I can't find out how to do this.
How to switch the close,maximize,minimize to right side the window in Ubuntu10.04. I found a way in www.makeuseof.com but that does not work.Run Applic.->gconf-editor->apps/metacity/general->menu:maximize,minimize,close.
I am using CentOS5.2 and gnome 2.16, sometimes (not very often) when I open something and close it by clicking the CROSS on the top-right corner. The application crash and I lose all control (no keyboard anymore), I have to reboot the system by reset the machine. What's going on?
Yesterday, when I logon as root and run service setup, after I uncheck a sevice in the list and then start it, I click the CROSS on the top-right corner of the window, it popup a window (in the background) to ask me to save it or not, but then I total lose the control, no mouse, no keyboard. I try to reset the machine many times, but everytime when I repeat the same operation, it crash again. Seems that if I don't close it, everything would be fine!!!!
I like emacs very much, and especially like using C-M-v and C-M-S-V to scroll other window up and down. It is cool, especially when I am coding and referring documents.The problem is, using C-M-v to scroll down is OK in both terminal and X,but using C-M-S-V to scroll up just works well in X, if I use it in terminal, it behaves scrolling down too.
I've been running Ubuntu on my laptop for a couple months now and I've been using compiz settings manager. For some reason I can't seem to get the window effects for minimizing, closing, etc. to work. I have followed a few tutorials and nothing seems to make any difference. As far as I can tell, that is the only thing in compiz that is not working. I am running Ubuntu 10.10
I cant see any closing ,Minimize,Maximization buttons on any window I had replaced my monitor with other crt am closing by using alt f4 and from file quit now
I have a bash script and I'm dropping a file on script launcher shortcut. Everything seems fine, only that after executing the script console window closes, so I can't see if some messages were produced during execution.
As I just recently switched from Windows, this kind of problem is solved there by adding 'pause' command in batch script, on which user has to press key and script will then continue (finish) or by launching through 'cmd /k' which makes console window persistent.
Googling I found about 'sleep' command and more appropriate for me 'read' command, so I did this:
Unfortunately, I can't see any effect of 'read' command as console windows again terminates after execution. Execution is successful BTW. So what's the catch?
with 11.2 and now with 11.3 (using KDE4) i got two issues with emacs:
1) The emacs window doesn't properly snap to other windows. There is mostly a small gap inbetween. 2) When switching between buffers with C-x b the emacs window shrinks vertically from below!
OK, so i have been thinking of developing my own distro. After experimenting with LFS(Linux From Scratch), i now know even more Linux, but i could not find out to create a Distro. Now, i want to use an existing Linux Distro, modify source code, and develop my own Window Manager(like GNOME and stuff.. i HAVE googled it, but it was nothing good there.) I also know that Elive has a good window manager, but i want to modify it a little. Do you guys know a good way to start, or a good website with resources i can use?
I'm using KDE. I installed codecs for playing songs today, and tried to play a song using amarok. It didn't work, rather flooded my tool bar and the system hanged and I rebooted. It was fine before, but after I rebooted, a new problem raised.
Every time I close any window, something changes, and the windows lose their title bars (minimizing, maximizing, closing option), and neither it can be closed from the tool bar (bottom) panel, nor can be moved. The Kickoff Application launcher is also not working. Every time i close a window, I got to log out and re log in. I tried to change in the System Settings>Appearance but nothing works, and even when I close that window, the same happens.