From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Suppress (pop kill-ring) from *Messages* Date: Sun, 01 Nov 2015 22:33:44 +0100 Message-ID: <87poztl807.fsf@mbork.pl> References: <20151101195356.GD3304@mail.akwebsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446413667 862 80.91.229.3 (1 Nov 2015 21:34:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2015 21:34:27 +0000 (UTC) Cc: Emacs To: Tim Johnson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 01 22:34:20 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 1Zt0GZ-0006d6-UX for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 22:34:20 +0100 Original-Received: from localhost ([::1]:38954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt0GZ-0005bh-6q for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 16:34:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt0GP-0005bc-EP for Help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:34:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zt0GK-00063P-I5 for Help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:34:09 -0500 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:51653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt0GK-00063H-Ao for Help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:34:04 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 60BBC4F6003; Sun, 1 Nov 2015 22:34:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fl+hmkMS6Fq9; Sun, 1 Nov 2015 22:33:52 +0100 (CET) Original-Received: from localhost (103-115.echostar.pl [213.156.103.115]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 96AAE4F6001; Sun, 1 Nov 2015 22:33:52 +0100 (CET) User-agent: mu4e 0.9.15; emacs 25.0.50.1 In-reply-to: <20151101195356.GD3304@mail.akwebsoft.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:5e00:2:52::8 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:107892 Archived-At: 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) > If I invoke browse-kill-ring and delete the top item, it is done > silently. > > How can I suppress the recording of the item in messages? Hth, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University