Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Try out a new idea by commenting out old code

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 try-code.el
README.md

Installation:

(autoload 'try-code "try-code"  nil t)
(global-set-key (kbd "C-?") 'try-code)

Commentary:

Scenario: you want to try an alternative implementation of a function while keeping the original within reach.

  1. Select lines.
  2. C-?
  3. (optional) C-y (yank original implementation)
  4. make changes as required
  5. press C-? again

When you reinvoke the function, you can choose which implementation to keep.

Try it out; bug reports are welcome.

Something went wrong with that request. Please try again.