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:26 -0500 Message-ID: <878u6hju3l.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 1446412833 20637 80.91.229.3 (1 Nov 2015 21:20:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2015 21:20:33 +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:25 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 1Zt035-0003Io-Re for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 22:20:24 +0100 Original-Received: from localhost ([::1]:38923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt035-00036X-7V for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Nov 2015 16:20:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt02p-00032g-8G for help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:20:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zt02o-0003xr-9g for help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:20:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:44172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt02o-0003xJ-1D for help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 16:20:06 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zt02m-00030l-6O for help-gnu-emacs@gnu.org; Sun, 01 Nov 2015 22:20:04 +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:20:04 +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:20:04 +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:ab9SuJtHWt1dY5xC0jvOkm4jrPc= 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:107891 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-:.