unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rainer Thiel <r.thiel@uni-jena.de>
To: help-gnu-emacs@gnu.org
Subject: calc: putting the top of the stack in the kill ring
Date: Wed, 11 Mar 2015 14:07:53 +0100	[thread overview]
Message-ID: <817funlm1i.fsf@uni-jena.de> (raw)

I am sorry if I am missing something very basic here, but I cannot seem
to find a way to put the result on top of the stack in the kill ring.  I
am aware of the `Kill and Yank' section of the calc manual, but the
problem is that M-w (calc-copy-region-as-kill) always copies the whole
line.

So when I say

   2
   3+

I get

   5

but what is copied to the kill-ring with M-w is `1:  5'.

Is there any easy way of copying only the number on stack (`5', in this
case) into the kill-ring?

Many thanks in advance

Rainer
-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.thiel@uni-jena.de




             reply	other threads:[~2015-03-11 13:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 13:07 Rainer Thiel [this message]
     [not found] <mailman.1839.1426079711.31049.help-gnu-emacs@gnu.org>
2015-03-11 13:42 ` calc: putting the top of the stack in the kill ring Marco Wahl
2015-03-11 20:23   ` Rainer Thiel
2015-03-11 23:09 ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=817funlm1i.fsf@uni-jena.de \
    --to=r.thiel@uni-jena.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).