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

The Archive Base Latest Questions

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

Frequently, I’ve dug into apropos and docs looking for something like the following only

  • 0

Frequently, I’ve dug into apropos and docs looking for something like the following only to give up to get back to the task at hand:

(repeat-last-command)

do the last C- or M- command I just executed (to be rebound to a fn key)

or sometimes the related:

(describe-last-function)

what keystroke did I just mistakenly issue, the effect of which I’d like to add to my bag of tricks. describe-key is close, but requires knowing what I typed.

Am I simply asking too much from my trusty sidekick?

  • 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. 2026-05-10T21:39:21+00:00Added an answer on May 10, 2026 at 9:39 pm

    with regards to ‘describe-last-function‘:

    There’s a variable last-command which is set to a symbol representative of the last thing you did. So this elisp snippet – (describe-function last-command) – ought to bring up the documentation for the thing that immediately happened.

    So you could make a trivial working describe-last-function like so

    (defun describe-last-function()    (interactive)    (describe-function last-command)) 

    Put that elisp in .emacs or equivalent, and you’ll have a M-x describe-last-function.

    If you’ve banged on a few keys or done something that modified last-command since the thing you’re interested in, the command-history function might be of interest. You can get that by M-x command-history

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

Sidebar

Related Questions

I frequently write something like this: a_hash['x'] ? a_hash['x'] += ' some more text'
I frequently find myself wanting to change something like this, in a layout file:
Frequently I'll have a workflow like the following: Commit changes to a group of
I frequently have code that looks something like this: if (itm != null) {
I frequently reboot into Windows on a bootcamp partition in my Mac Pro (e2008)
I frequently need to ssh into a server, but I can't ssh into it
Frequently I am aligning text such as: To: 07/02/2010 From: 07/02/2010 Id like it
Frequently I have run into a problem when installing gems that provides a problem
I frequently get what appears to be a stackoverflow error ;-) from YUICompressor. The
I frequently come across this problem. I have a file: something something2 something3 which

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.