all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco Wahl <marcowahlsoft@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: calc: putting the top of the stack in the kill ring
Date: Wed, 11 Mar 2015 14:42:20 +0100	[thread overview]
Message-ID: <84twxrbqgz.fsf@gmail.com> (raw)
In-Reply-To: mailman.1839.1426079711.31049.help-gnu-emacs@gnu.org

Rainer Thiel <r.thiel@uni-jena.de> writes:

> 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?

I don't know if there is already a possibility to get just the value
(opposed to the whole line) into the kill-ring.

But there is C-x * y.  You can use it typically in a buffer to get the
top of the stack into that buffer.

You might also consider to use 'y' from within the calc buffer.


Bye,
                                          Marco
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2


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

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

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

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

  git send-email \
    --in-reply-to=84twxrbqgz.fsf@gmail.com \
    --to=marcowahlsoft@gmail.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.