From: Marcin Borkowski <mbork@mbork.pl>
To: Tim Johnson <tim@akwebsoft.com>
Cc: Emacs <Help-gnu-emacs@gnu.org>
Subject: Re: Suppress (pop kill-ring) from *Messages*
Date: Sun, 01 Nov 2015 22:33:44 +0100 [thread overview]
Message-ID: <87poztl807.fsf@mbork.pl> (raw)
In-Reply-To: <20151101195356.GD3304@mail.akwebsoft.com>
On 2015-11-01, at 20:53, Tim Johnson <tim@akwebsoft.com> 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
next prev parent reply other threads:[~2015-11-01 21:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-01 19:53 Suppress (pop kill-ring) from *Messages* Tim Johnson
2015-11-01 21:19 ` Random832
2015-11-01 21:19 ` Random832
2015-11-01 21:33 ` Marcin Borkowski [this message]
2015-11-01 21:55 ` Tim Johnson
2015-11-02 0:41 ` Emanuel Berg
2015-11-02 16:23 ` Tim Johnson
2015-11-03 2:46 ` Emanuel Berg
2015-11-02 1:05 ` restrictive/discrete messages log (was: Re: Suppress (pop kill-ring) from *Messages*) Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87poztl807.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=Help-gnu-emacs@gnu.org \
--cc=tim@akwebsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).