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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:38:30+00:00 2026-06-05T05:38:30+00:00

My MacBook has two enter keys. One is return Other is enter key placed

  • 0

My MacBook has two enter keys.

  1. One is return
  2. Other is enter key placed right beside command key on right hand side.

I have recently started using Emacs24. I have noticed, whenever I am in viper-mode and I issue any command, for example

M-x toggle-viper-mode

Return key does not work. Instead I get an error.

Wrong type argument: characterp, return

I have to use fn+return or Ctrl+m or the enter.

If I disable viper-mode return works without any error.

I tried using a solution from Gnu Emacs mailing list archive but it didn’t work.

(define-key function-key-map [return] [?\C-m])

How can I fix it so that return key works with commands in viper-mode too?

Update

The result of C-h k for return key when viper-mode is not loaded.

<return> runs the command autopair-newline, which is an interactive Lisp function in `autopair.el'.
It is bound to RET, <return>.

The result of C-h k for enter key when viper-mode is not loaded.

RET (translated from <kp-enter>) runs the command autopair-newline, which is an interactive Lisp function in `autopair.el'.
It is bound to RET, <return>

The result of C-h k for return key when viper-mode is loaded.

<return> runs the command autopair-newline, which is an interactive Lisp function in `autopair.el'.
It is bound to RET, <return>.

The result of C-h k for enter key when viper-mode is loaded.

RET (translated from <kp-enter>) runs the command autopair-newline, which is an interactive Lisp function in `autopair.el'.
It is bound to RET, <return>.

The problem is return key does not work in minibuffer when viper-mode is loaded, although the mappings are similar as you can see above.

  • 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-05T05:38:31+00:00Added an answer on June 5, 2026 at 5:38 am

    So it appears that autopair-newline is not working correctly in viper-mode. The source for that function indicates is has some special handling of the “RET” keyboard binding.

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

Sidebar

Related Questions

I have two physically adjacent macbook pro machines. One has a 3.8GB file (XCode
The recent MacBook Pro keyboard and the bluetooth keyboard layout has only one Control
I have recently moved to a MacBook Pro, which has meant leaving my beloved
I know there is this one: sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode: But since the CGSize always has the
I'm writing this question because one little invisible problem has taken from me hours
I've been developing an app with MacBook Pro (MBP) so far. Last week one
My MacBook Pro has Mac OS X 10.6.8 XCode 4.0 Build 4A304a I updated
My python program has two calls to raw_input() The first raw_input() is to take
Our reception has a barcode scanner plugged into a Macbook Mini, which is used
I am using a Macbook running 10.6. I am using VMware Fusion to run

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.