Question about Emacs calc:
Is there a simple way to replace a simple expression in a buffer with a calculated result, without a lot of hassle of copying back and forth between a calc window? For example, if I put the cursor on "72 * 11 + 8" in a buffer, I'd like to have it replaced with "800".
I looked in the manual and found "quick calculator mode", C-x * q, but that prompts you for an expression and simply displays the result in the modeline. I found "embedded mode", and I can make that do what I want, but it's kind of awkward. I have to highlight the expression, then
C-0 C-x * e C-x * e
(You have to repeat the C-x * e to exit embedded mode).
I may wind up wrapping that sequence in a function and binding it to a keystroke, but does anyone know of a simpler way?