unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim Johnson <tim@akwebsoft.com>
To: Emacs <Help-gnu-emacs@gnu.org>
Subject: Re: Suppress (pop kill-ring) from *Messages*
Date: Sun, 1 Nov 2015 12:55:23 -0900	[thread overview]
Message-ID: <20151101215523.GE3304@mail.akwebsoft.com> (raw)
In-Reply-To: <87poztl807.fsf@mbork.pl>

* Marcin Borkowski <mbork@mbork.pl> [151101 12:39]:
> 
> 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)
  Yes! And this is very handy to know for other applications.
  Thanks very much
-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com



  reply	other threads:[~2015-11-01 21:55 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
2015-11-01 21:55   ` Tim Johnson [this message]
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=20151101215523.GE3304@mail.akwebsoft.com \
    --to=tim@akwebsoft.com \
    --cc=Help-gnu-emacs@gnu.org \
    /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).