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.

View 2 Replies


ADVERTISEMENT

Ubuntu :: Closing 3 Window Bars - Dont Have The Minimize Maximize Or Close Buttons

May 20, 2010

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.

View 2 Replies View Related

OpenSUSE :: KDE Tends To Freeze Momentarily After Closing A Window - Pressing A Button

Sep 29, 2010

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.

[Code]....

View 9 Replies View Related

Ubuntu :: 10.04 Desktop - How To Configure Window Close Button

May 6, 2010

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)?

View 5 Replies View Related

Ubuntu :: Double-click Menu Button To Close Window?

Apr 22, 2011

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...)

View 3 Replies View Related

Ubuntu :: The "Close" Button From Window Button Applet In Panel Has Vanished

Feb 3, 2011

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

View 1 Replies View Related

Ubuntu :: Window Manager Thats Fast And Dosen't Have To Have The Minimize, Maximize, And Close Buttons At The Top?

Jun 17, 2010

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%

View 9 Replies View Related

General :: X Freezes When Closing Window ?

Mar 8, 2010

Since the incedent described in this thread:[url]

X just freezes whenever I close a window, I have to kill X when that happens. For some reason it doesn't do that in TWM, though.

View 14 Replies View Related

General :: How To Open Emacs In Its Own Window

Aug 20, 2010

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.

View 4 Replies View Related

Ubuntu :: Window Borders Keep Disappearing - Open Compiz Icon To Reload Window Manager?

Apr 23, 2010

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).

View 9 Replies View Related

General :: Emacs: Startup With No Window System?

Feb 9, 2011

I know to start emacs with no window system, I do:

emacs -nw filename.txt

But, I don't want to specify -nw constantly. What do I add in my .emacs to do this automatically?

View 3 Replies View Related

General :: Open Emacs In Maximized Window?

Apr 20, 2010

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?

View 4 Replies View Related

General :: How To Open Multiple Files With Splitting Window In EMacs

Apr 21, 2010

What's the command to open multiple files in Emacs vertically/horizontally splitting window.

View 4 Replies View Related

General :: Closing The Section Headings Window On The Left Of The Xpdf Screen?

May 24, 2011

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.

View 4 Replies View Related

General :: Switching The Close,maximize,minimize To Right Side Of The Window?

May 17, 2010

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.

View 2 Replies View Related

CentOS 5 :: Crash When Closing A Window?

Jul 3, 2009

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!!!!

View 17 Replies View Related

Ubuntu :: How To Scroll Down Other Window In Emacs

Oct 26, 2010

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.

View 2 Replies View Related

Fedora :: Prevent Accidental Closing Of A Window

Jul 12, 2009

I am running a program in gnome-terminal window (using metacity window manager) which will take many hrs to complete.

I was wondering if there is some way to "lock" that window, so that accidental closing of that window is prevented.

View 7 Replies View Related

Ubuntu :: Closing A Nautilus Window Instance ?

Apr 18, 2010

Is there a way to identify and close a given instance of an open nautilus window from a command line?

Or can one identify via a command line that a given instance is open?

I'd like to tag one when it is open with a specific title and then if that is already open not open it again all from the command line.

View 3 Replies View Related

Ubuntu :: Closing A Window With A Fire Effect ?

Aug 4, 2010

So far so good on the compiz effects but I couldn't figure out the fire effect when you close a window in compiz.

I looked everything in the compiz fusion menu but still couldn't find that effect out.. I have every plug-ins I believe in the compiz)

View 9 Replies View Related

Debian :: EMacs Default Without Split Window

Dec 22, 2010

When I open Emacs the default is a split window. I can remove the splits with control-x-1. How to get it to open with a single window by default?

View 4 Replies View Related

Ubuntu :: Compiz Window Effects - Minimizing - Closing

Dec 10, 2010

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

View 4 Replies View Related

Ubuntu :: Can't See Any Closing ,Minimize,Maximization Buttons On Any Window?

Mar 14, 2011

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

View 3 Replies View Related

Debian :: How To Avoid Closing Console - Bash Script - Window

Jul 30, 2011

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?

View 9 Replies View Related

Ubuntu :: Closing Internet Window - Lost Minimize Maximise ?

Feb 11, 2011

I seem to have lost the closewindow cross from my browser tool bar (which is hugely annoying!) - how do I get it back please?

Ive also lost minimize maximise

if I hit F11 then push the mouse off the top of the screen the whole window moves up and I can see minimize/maximixe/close then.

View 2 Replies View Related

OpenSUSE :: Emacs Window Doesn't Properly Snap To Other Windows

Jul 19, 2010

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!

View 1 Replies View Related

Ubuntu :: ESC Key To Close Any Active Window?

Jan 22, 2011

I'd like to set my ESC key to close any active window. Is it possible ?

View 4 Replies View Related

General :: Getting Used To Tiling Window Manager?

Jun 2, 2011

Whenever I have to use a computer that doesn't do tiling. Manually moving and resizing windows?

View 3 Replies View Related

General :: Want To Develop Window Manager

Jan 25, 2010

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?

View 11 Replies View Related

Fedora :: KDE Becomes Not Responding Everytime When Close A Window

Mar 21, 2010

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.

View 13 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved