Emacs gdb speedbar in same window - emacs

I am using emacs gdb with gdb-many-windows mode,
I am noticing that the gdb watch expressions speedbar opens in a different window.
I want to have it in the same window. I looked into http://www.emacswiki.org/emacs/SrSpeedbar which claimed to allow speedbar to open in the same window, i installed it and it works fine for the normal speedbar.
But how do i get it to work with the gdb watch expressions speedbar,
is there any way i can get gdb watch expressions sppedbar to open in the same window by default (say as the 7th window in the GDB gui interface)?

C-x 2 (split any existing buffer into two)
C-x b SPEEDBAR ( Switch to speed bar buffer)
Note: This worked for me in Emacs version 25.1

Related

Dropdown buffer menu for emacs 25.1 doesn't show new buffers

I have just installed emacs 25.1 on a machine with an Ubuntu 17.04 OS. However, drop-down buffer list only list the 3 initial buffers (i.e. GNU Emacs, scatch and messages), regardless of which buffers I've opened. C-x C-b gives me an accurate list of open buffers, and the value of my buffers-menu-max-size is 10.
What can I do so that the drop-down menu for buffers accurately reflects my open buffers and can be used to switch between them?
I had the same problem with emacs 25.2.2 running in ubuntu 18.04. I followed user1245262's suggestion and ran it from terminal, and the problem went away. So it seems to be related to default behaviour of Ubuntu Unity, where menus for a window are shown in the Unity menu bar at the top, rather than in the window's title bar. By changing this default behaviour (settings->appearance->behavior) you can then launch emacs from the Unity launcher and the buffer menu problem is fixed.

Ergoemacs C-x and C-c Shortcuts, and Apple Cmd shortcuts

For ergoemacs, what are the C-x and C-c shortcuts re-mapped to?
There doesn't seem to be a page to help people transition from regular emacs to ergoemacs mode. They just have a keyboard picture with everything in it, without any information on C-x and C-c.
Also for Apple keyboards, when it says Ctrl/Cmd, does that mean either can be used? It doesn't look like it. It seems that OS X Cmd shortcuts are taking precedence over the ergoemacs ones. Until Ctrl/Cmd means something else?
Ctrl-c is copy and Ctrl-x is cut.
According to ErgoEmacs Documentation, the keybindings C-c and C-y are respectively associated with native <copy> and <paste> functionality using emacs kill-ring-save and yank commands.
The traditional C-k and C-y methods of line pulling / yanking used in GNU Emacs and XEmacs are left behind in an attempt to "[make it] so you don't have to change your mindset when you switch in and out of emacs". We can expect many features of ergoemacs to be intuitive to the sort of end-users who have never been religiously bound to a text editor.
In current version of ergoemacs-mode, by default C-x and C-c are same as GNU Emacs's.
in older version of ergoemacs-mode, the gnu emacs's C-x and C-c are simply left intact. ergoemacs-mode just turn on cua-mode.

emacs won't repaint buffer (windows 7)

I am using GNU Emacs 24.2.1 on 64-bit Windows 7. Sometimes emacs window goes blank. This usually happens when switching focus back to emacs from another window. The only way to get the content back is to switch to another buffer and then back. No other programs behave like this. I do not have this problem on my home PC with similar hardware and OS.
I added the following code to my init.el so that when it happens to me (in 24.4), I just need to press F5:
(global-set-key (kbd "<f5>") #'redraw-display)

Prevent mouse-selected text from being put into Emacs paste buffer?

In emacs, there is a feature where if I select text with a mouse, then without pressing
ctrl-c I can paste into emacs with ctrl-v if I have cua mode turned on.
I want to turn off this feature while keeping the cua mode on. I mean I want to
explicitly press ctrl-c so that the text will get copied to the clipboard.
I suspect that you are using a version of Emacs older than version 24? If so, see the last paragraph of this page of the current Emacs manual. You can probably get rid of the behaviour you dislike by setting x-select-enable-primary to nil.
From my quick tests, setting it to T (which isn't the default on Emacs 24) reproduces the problem behaviour, and this happens both in and not in cua-mode.

How to switch split screen Emacs where one screen is the editor while the other is terminal emulator?

I have ssh'ed to a remote machine and started emacs. I opened one small python application, and then split the screen into two, and M-x terminal-emulator in the other. I would like to edit the script in one section, then press C-x o and run it on the other section. Unfortunately, I can't seem to C-x o away from the terminal emulator and it just ends up typing x o.
Is there a better quick way of doing what I'm trying to do? Or is there a keystroke that will let me switch back to the editor section?
Edit: I just tried doing 'M-x shell', instead of 'M-x term', and that allows me to use C-x o to switch.
While at the * terminal* window, C-^ o to switch to other window, and C-^ C-h for more help.
ALT-X other-window
C-TAB also works locally. Will that translate over SSH? If not, bind other-window to another key that will go over SSH.
I found this post and I customized the .emacs file accordingly.
http://nex-3.com/posts/45-efficient-window-switching-in-emacs