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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:39:10+00:00 2026-05-24T00:39:10+00:00

This is a follow-up to How to get C-x C-e to display the result

  • 0

This is a follow-up to How to get C-x C-e to display the result in octal and hexadecimal by default?

Is there a way to get C-x C-e to to display the result in decimal and hexadecimal only?

e.g.

(+ 40 2)

should produce

42 (#x2a)

instead of

42 (#o52, #x2a, ?*)
  • 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-24T00:39:11+00:00Added an answer on May 24, 2026 at 12:39 am

    You just need to rewrite/tweak the routine that creates the printed format for this. Add the following to your .emacs and you’ll be good to go.

    (require 'simple)
    (defun eval-expression-print-format (value)
      "Format VALUE as a result of evaluated expression.
    Return a formatted string which is displayed in the echo area
    in addition to the value printed by prin1 in functions which
    display the result of expression evaluation."
      (if (and (integerp value)
               (or (not (memq this-command '(eval-last-sexp eval-print-last-sexp)))
                   (eq this-command last-command)
                   (if (boundp 'edebug-active) edebug-active)))
          (let ((char-string
                 (if (or (if (boundp 'edebug-active) edebug-active)
                         (memq this-command '(eval-last-sexp eval-print-last-sexp)))
                     (prin1-char value))))
            (format " (#x%x)" value value))))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I follow this tutorial online exactly but somehow it's giving me errors. Saying there
Trying to follow this example. (Section String sorting...) Is there anything obvious that would
I tried to follow this but the default modelbinder let my array null on
This is a follow-up to this question . How do I display properties defined
I try to get this following url using the downloadURL function as follows: http://www.ncbi.nlm.nih.gov/nuccore/27884304
I have this follow code in my javascript. I call this function when the
I follow this rule but some of my colleagues disagree with it and argue
I just follow this DIHQuickStart , try to import data to solr from mysql.
Sorry to follow this topic http://stackoverflow.com/questions/11044825/javascript-run-on-ie-7 I want to use document.GetElementByClassName ON INTERNET EXPLORE
If you follow this link to one of the pages on my site and

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.