From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Random832 Newsgroups: gmane.emacs.help Subject: Re: Suppress (pop kill-ring) from *Messages* Date: Sun, 01 Nov 2015 16:19:10 -0500 Message-ID: <87a8qxju41.fsf@fastmail.com> 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 1446412815 20390 80.91.229.3 (1 Nov 2015 21:20:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2015 21:20:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 01 22:20:07 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 1Zt02o-00032F-HP for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 22:20:06 +0100 Original-Received: from localhost ([::1]:38915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt02n-0002oq-Nh for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 16:20:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt02c-0002oZ-W5 for help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:19:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zt02Z-0003tu-QH for help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:19:54 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:44165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt02Z-0003tm-Jd for help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:19:51 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zt02X-0002lL-9K for help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 22:19:49 +0100 Original-Received: from c-68-39-146-59.hsd1.in.comcast.net ([68.39.146.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Nov 2015 22:19:49 +0100 Original-Received: from random832 by c-68-39-146-59.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Nov 2015 22:19:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 11 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:3ekli9KiaHCPOxjU9RBhqQF18ow= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:107890 Archived-At: Tim Johnson writes: > If I invoke (pop kill-ring) from some elisp code, the top item shows > in in *Messages* > How can I suppress the recording of the item in messages? pop _returns_ the popped object. It's printing as a message because, I suspect, you're executing it with C-x C-e or M-:. You can suppress this by having it return nil, but it shouldn't be an issue when the code is being run normally (being called a function you've put in a key binding, or a hook etc) rather than through C-x C-e or M-:.