From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Suppress (pop kill-ring) from *Messages* Date: Sun, 1 Nov 2015 12:55:23 -0900 Organization: AkWebsoft Message-ID: <20151101215523.GE3304@mail.akwebsoft.com> References: <20151101195356.GD3304@mail.akwebsoft.com> <87poztl807.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1446414958 20146 80.91.229.3 (1 Nov 2015 21:55:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2015 21:55:58 +0000 (UTC) To: Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 01 22:55:49 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 1Zt0bM-0008DK-4C for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 22:55:48 +0100 Original-Received: from localhost ([::1]:39028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt0bL-0001xu-4H for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 16:55:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt0b2-0001xe-6e for Help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:55:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zt0ax-0002I7-Qr for Help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:55:28 -0500 Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:60032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt0ax-0002I2-Ir for Help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:55:23 -0500 Original-Received: by tj49.com (Postfix, from userid 1000) id 65786200496; Sun, 1 Nov 2015 12:55:23 -0900 (AKST) Mail-Followup-To: Emacs Content-Disposition: inline In-Reply-To: <87poztl807.fsf@mbork.pl> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.4.232.191 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:107893 Archived-At: * Marcin Borkowski [151101 12:39]: > > On 2015-11-01, at 20:53, Tim Johnson wrote: > > > I often prefer to have an item popped off of the kill ring > > programmatically/automatically. > > > > If I invoke (pop kill-ring) from some elisp code, the top item shows in in *Messages* > > I would guess that what you are doing is M-: (pop kill-ring) or > something similar. Since `pop' returns the popped value, it is then > shown. > > On the other hand, this: > > (defun pop-from-kill-ring () > "Pop an item from kill-ring and discard it." > (interactive) > (pop kill-ring)) > > does not show anything when invoked via M-x pop-from-kill-ring, and > shows the discarded value again when invoked via > M-: (pop-from-kill-ring) Yes! And this is very handy to know for other applications. Thanks very much -- Tim http://www.akwebsoft.com, http://www.tj49.com