unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Suppress (pop kill-ring) from *Messages*
Date: Mon, 02 Nov 2015 01:41:01 +0100	[thread overview]
Message-ID: <878u6h2pya.fsf@debian.uxu> (raw)
In-Reply-To: 20151101195356.GD3304@mail.akwebsoft.com

Tim Johnson <tim@akwebsoft.com> writes:

> 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*
>
> 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?

Perhaps (?) this experimentation is of interest to you:

(defun test-suppress-messages ()
  (interactive)
  (let ((log-size message-log-max)) ; (setq message-log-max 1000)
    (setq message-log-max nil)
    (message "No buffer, not last - suppressed!")
    (setq message-log-max log-size)
    (message "Buffer, so this message is logged.")
    (message "Buffer and last, so this message is echoed as well as logged.") ))
;; (test-suppress-messages)

-- 
underground experts united
http://user.it.uu.se/~embe8573




  parent reply	other threads:[~2015-11-02  0:41 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
2015-11-02  0:41 ` Emanuel Berg [this message]
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=878u6h2pya.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --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).