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 8925089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:36:10+00:00 2026-06-15T07:36:10+00:00

I customized variable frame-title-format to change frame title. However, Emacs only updates frame title

  • 0

I customized variable frame-title-format to change frame title. However, Emacs only updates frame title when he/she wants to. Can I force Emacs to update (i.e. refresh) the title, say, after evaluating some custom functions?
Here is the frame-title-format:

(setq frame-title-format "%b  %*  %n")

I want %n (display if narrowing) to take effect right after narrowing the buffer.

  • 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-15T07:36:12+00:00Added an answer on June 15, 2026 at 7:36 am

    One way in elisp to force a redisplay is to use (sit-for 0). You can define your own functions like the following:

    (defun my-narrow-to-region (start end)
      (interactive "r")
      (narrow-to-region start end)
      (sit-for 0))
    

    Note: I can’t verify that this solves your problem, as I use Mac OS X, where the frame title is properly updated even without this.

    Update: In an earlier version of this answer I suggested using defadvice. I realized that this wasn’t a good idea as it affects all uses of the function, as it gives rise to unwanted side effects.

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

Sidebar

Related Questions

Description : I am creating customized title bar. The codes for customization is as
I have customized my own colors in eclipse but cannot find where to change
How can you transfer a variable such as ask_question in the URL such that
I have an UIImageView and an UILabel in my customized UIButton class. However, if
How can I add a custom user variable for the user object? I want
I customized the content of Defect in my Rally workspace adding a new custom
I'm using a customized version of the vhost connect/express middleware and inside it I
I have a customized show/hide toggle script that I'm using along with CSS3 transitions
I have listview having customized some textview and one imageview. When I long click
I have found and customized this JQuery script, which displays different content when different

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.