[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suppress (pop kill-ring) from *Messages*
From: |
Tim Johnson |
Subject: |
Re: Suppress (pop kill-ring) from *Messages* |
Date: |
Sun, 1 Nov 2015 12:55:23 -0900 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* 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
- Suppress (pop kill-ring) from *Messages*, Tim Johnson, 2015/11/01
- Re: Suppress (pop kill-ring) from *Messages*, Random832, 2015/11/01
- Re: Suppress (pop kill-ring) from *Messages*, Random832, 2015/11/01
- Re: Suppress (pop kill-ring) from *Messages*, Marcin Borkowski, 2015/11/01
- Re: Suppress (pop kill-ring) from *Messages*,
Tim Johnson <=
- Re: Suppress (pop kill-ring) from *Messages*, Emanuel Berg, 2015/11/01
- restrictive/discrete messages log (was: Re: Suppress (pop kill-ring) from *Messages*), Emanuel Berg, 2015/11/01