From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Wahl Newsgroups: gmane.emacs.help Subject: Re: calc: putting the top of the stack in the kill ring Date: Wed, 11 Mar 2015 14:42:20 +0100 Organization: Aioe.org NNTP Server Message-ID: <84twxrbqgz.fsf@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426081640 27297 80.91.229.3 (11 Mar 2015 13:47:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2015 13:47:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 11 14:47:15 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YVgya-0003oh-UJ for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Mar 2015 14:47:09 +0100 Original-Received: from localhost ([::1]:54716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVgya-0001pQ-6B for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Mar 2015 09:47:08 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: IW8O097IsPBW5M+96fUQKQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEX9/P3zn/zqYfve CPz///+XZmJwAAAAAWJLR0QEj2jZUQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB94JCBca NKS0JvoAAAD9SURBVDjLnZRbssMgCIYFN2B0A2nYQCv731tFk+KFTHsOD52Ub+Dnljj3D4PoIJiA d36ZIcT8tPxb4mymYuLdzMR8A7YzIvJMsALPS23IoWU8QVBQu2HOVVJTJonwJ4AuY9VAA4A84qVB KuYoN8erVa3AiwhQLc5BNyHkh3jOv76bXMkVD2plAnV9EotkHX4ZULcDERQrLclvv0S1o98Nqnsb dpY+/nXrzcIdMLZrA/ozSN8inpMfvmWa/bKio0x9aQ/lCgLEBaR2ojCfMLRDK7UNRcV8XEeRhtsl Ld8P4DrZJSIpoOwGEQVTvbh/gP1aQyf3G8DbiHDzTRntDTmSOFjmLqzUAAAAGXRFWHRjb21tZW50 AENyZWF0ZWQgd2l0aCBHSU1Q569AywAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNC0wOS0wOFQyMzoy Njo1MiswMjowMPcoeH4AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMDktMDhUMjM6MjY6NTIrMDI6 MDCGdcDCAAAAAElFTkSuQmCC X-Face: &"bk.O^qRpF*sK+/, &mRxu!P61bKc5"jprbZ_Rax6=! I`CX6#kmDJ~k3QZ, 69ZJor.hJCO)QXAv?&~]EP.<'HHmggrk?>ptlgr:`@WB+YuWwL=^Hl7iYYD"J) "/wg9Ps9}&2Dy^/:1V~vvHS+hK0}6P{*i`"Zyx8 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103105 Archived-At: Rainer Thiel 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