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

  • SEARCH
  • Home
  • 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 8169859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:58:54+00:00 2026-06-06T20:58:54+00:00

I use GNU EMACS on multiple monitors from a Windoze PC via VNC. (Currently

  • 0

I use GNU EMACS on multiple monitors from a Windoze PC via VNC.

(Currently 5 – 4 big, 1 the small monitor on my tablet PC. Two vertical 1200×1920, two horizontal 1920×1200, plus the small.)

The way I am currently doing this is to run a separate VNC on each monitor. I then open a single emacs, and use make-frame-other-display to open emacs’ frames in the other VNC window.

To make things more complicated – I run the VNCs on an up-to-date Ubuntu system, but I run the emacs on a quite out of date machine where the rest of the build tools live. I.e. the VNC displays are not local to the same machine as emacs.

Rather than xhost+, I open an xterm in each of the VNCs, and ssh to the machine running emacs. This creates DISPLAYS of the form localhost:16.0. I then use make-frame-on-display using these localhost DISPLAYs.

This gets confusing.

It helps if I leave an “echo $DISPLAY” in the xterm windows. Or chamnge the xterm’s title.

I’d like to similarly change the EMACS’ frames’ titles, to reflect what each frame things is its current DISPLAY. But doing

(defvar frame-title-specific-ag "emacs"
 "title element from frame-title-format that is specific to a particular emacs instance; andy glew")
(setq frame-title-format
  (list
    "frame=%F "
    (format "%s" frame-title-specific-ag)
    " " 'system-name
    " DISPLAY="
    (getenv "DISPLAY")
    " %b"
    " " (format "pid:%d" (emacs-pid))
    " user:"(user-login-name))
  )

only gets the DISPLAY variable for the entire emacs.

Q: is there a way to find out the display associated with any particular frame?

  • 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-06-06T20:58:56+00:00Added an answer on June 6, 2026 at 8:58 pm

    To get the display name for the current frame, use

    (frame-parameter nil 'display)
    

    or replace nil with a specific frame to get the name of its display instead of the current one. For example, use this to show the display in the title:

    (setq frame-title-format
          '("DISPLAY=" (:eval (frame-parameter nil 'display))))
    

    Note that it is important that this form is completely quoted, so the list that is used has an :eval which tells Emacs to run the code whenever it renders a frame title. Without that, you might be tempted to write something like:

    (setq frame-title-format
          (list "DISPLAY=" (frame-parameter nil 'display)))
    

    but this doesn’t work. The problem is that the function call happens immediately when this form is evaluated, and the result is a list holding a particular string, which is the name of whatever frame was in effect this evaluation happened, and the string will not change magically.

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

Sidebar

Related Questions

In emacs (23.3.1, GNU) i have set a theme (doesn't matter which i use
When trying to use a modified version of the Lisp snippet from the GNU
I'm using GNU Emacs 22.2.1. I usually use a different editor, but am learning
I compiled GNU Emacs 23.2.1 on remote host but really want to use command
is it legal to use GNU-Code in a software project developed from a company
As some of you who use GNU/Emacs to develop for Android, you are surely
I want to use the function gmp_random() by GNU MP in PHP. I need
I want to use nVIDIA compiler to generate a shared library for my GNU
I've been trying to make GNU gdb 6.5-14 to use the source code embedded
I'm running Ubuntu 11.10 and GNU Screen version "4.00.03jw4", and I'm trying to use

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.