help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove minibuffer message after appending to file


From: Glenn Morris
Subject: Re: Remove minibuffer message after appending to file
Date: Tue, 06 Oct 2009 16:37:27 -0700
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

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))
;                                    ^
;                                    |


reply via email to

[Prev in Thread] Current Thread [Next in Thread]