all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm+news@stanford.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Remove minibuffer message after appending to file
Date: Tue, 06 Oct 2009 16:37:27 -0700	[thread overview]
Message-ID: <7rocok6qmg.fsf@xoc2.stanford.edu> (raw)
In-Reply-To: 95b0bbb5-f63b-4428-8b5c-55e159998aa1@r36g2000vbn.googlegroups.com

Sebastien wrote:

> Is it possible to remove the text
>
> "Added to <filename>"
>
> which appears in the minibuffer after appending text to a file via
>
> (append-to-file min max filename)
> or
> (write-region min max filename t)  ?


(defun my-append-to-file (start end filename)
  "Like `append-to-file', but silent."
  (interactive "r\nFAppend to file: ")
  (write-region start end filename t 1))
;                                    ^
;                                    |


  parent reply	other threads:[~2009-10-06 23:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-06  6:34 Remove minibuffer message after appending to file Sebastien
2009-10-06 12:12 ` Pascal J. Bourguignon
2009-10-06 20:23   ` Sebastien
2009-10-06 21:12     ` Pascal J. Bourguignon
2009-10-06 23:37 ` Glenn Morris [this message]
2009-10-07 19:28   ` Sebastien

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7rocok6qmg.fsf@xoc2.stanford.edu \
    --to=rgm+news@stanford.edu \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.