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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:27:30+00:00 2026-05-27T12:27:30+00:00

I was wondering how to implement a command on a region when highlighted if

  • 0

I was wondering how to implement a command on a region when highlighted if it starts with Ctrl+C when Cua bindings are on.

For example, I want to highlight like four lines of text in LaTeX mode and run the command Ctrl+C Ctrl+f Ctrl+b which changes the text to bold or italics. With cua bindings on it copies the region immediately, is there a way to select region after the mark has been set and say run the commmand on this region to operate correctly in this case. If you just run the command straight after setting the mark it puts the command in place not on the region.

Not sure if this is possible but I like the cua binding and only do the above occasionally but was just wondering or if the easiest thing is removing the cua binding.

Note: I realized with the below set that it works correctly because it doesn’t deactivate the region with a copy and actually continues commands and doesn’t stop at Ctrl+C like with it turned off. Is it possible to do something similar without setting keep region after copy?

(setq cua-keep-region-after-copy t) 
  • 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-27T12:27:30+00:00Added an answer on May 27, 2026 at 12:27 pm

    This has to due with the speed you press another key after pressing a cua key binding. If highlighted any you press a key binding with a cua binded key really fast it will activate the command on the region. I think the default is like 0.2 seconds or something relatively fast. The variable that changes this if you want to set it longer or slower:

    cua-prefix-override-inhibit-delay:

    If non-nil, time in seconds to delay before overriding prefix key. If
    there is additional input within this time, the prefix key is used as
    a normal prefix key. So typing a key sequence quickly will inhibit
    overriding the prefix key. As a special case, if the prefix keys
    repeated within this time, the first prefix key is discarded, so
    typing a prefix key twice in quick succession will also inhibit
    overriding the prefix key. If the value is nil, use a shifted prefix
    key to inhibit the override.

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

Sidebar

Related Questions

I would like to implement something equivalent to the unix command 'rm foo*' using
I'm wondering how to implement what is stated in the title. I've tried something
I was wondering how to implement the debuggger mouse over display functionality, U know
Hey all. I'm wondering how to implement a timeout event in the System.Windows.Forms.Webbrowser control?
I'm wondering how you can implement a program similar to tail -f in C/C++,
I'm wondering how you'd implement the following use-case in REST. Is it even possible
I wondering what the best practice way (in C#) is to implement this xpath
I was wondering about how to exactly implement domain service in RIA. Is it
I was wondering what would be the best strategy to implement a badges system
I was wondering if there is a way to implement an action listener for

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.