Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4020328
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:12:53+00:00 2026-05-20T10:12:53+00:00

My Emacs frame looks like this: +—————————+ | | | | | | |

  • 0

My Emacs frame looks like this:

+---------------------------+
|             |             |
|             |             |
|             |      B      |
|      A      |             |
|             |             |
|             |             |
|             |-------------|
|             |      C      |
+---------------------------+

C is usually a terminal with some kind of long-running process, like a web server or daemon. Unfortunately, all sorts of things like to switch the buffer in that window and occasionally it gets resized. How can I lock the buffer and height of window C?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:12:54+00:00Added an answer on May 20, 2026 at 10:12 am

    If you don’t want to be annoyed by window stealing and resizing, put the following lines in your .emacs for a definitive solution that works even with libraries like gud that tries to open a new frame when they can’t steal your windows :

    (see this answer for info on the following advice)

    (defadvice pop-to-buffer (before cancel-other-window first)
      (ad-set-arg 1 nil))
    
    (ad-activate 'pop-to-buffer)
    
    ;; Toggle window dedication
    (defun toggle-window-dedicated ()
      "Toggle whether the current active window is dedicated or not"
      (interactive)
      (message
       (if (let (window (get-buffer-window (current-buffer)))
             (set-window-dedicated-p window 
                                     (not (window-dedicated-p window))))
           "Window '%s' is dedicated"
         "Window '%s' is normal")
       (current-buffer)))
    
    ;; Press [pause] key in each window you want to "freeze"
    (global-set-key [pause] 'toggle-window-dedicated)
    

    and customize pop-up-windows variable to nil.

    you could also use StickyWindows instead of window-dedicated feature.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My windows configuration looks like this: +----------+-----------+ | | | | | | |
I have this in my .emacs: (set-frame-font Consolas-10) and I also tried this: (set-frame-font
Emacs 23 is running on a remote Linux box. It displays its frame on
In emacs, I've read the following code snippet in simple.el : (frame-parameter frame 'buried-buffer-list)
Emacs puts backup files named foo~ everywhere and I don't like having to remember
I am facing some strange behavior with file-name completion in emacs. C-x C-f to
I normally open a new emacs frame when context switching to a different project.
I love using GDB withing emacs. And I most like the configuration that I
Does Emacs have the capability to open recent files (e.g. a menu like File
I've successfully installed clojure-mode, slime, slime-repl within Emacs. I start a swank server with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.