* Remove minibuffer message after appending to file
@ 2009-10-06 6:34 Sebastien
2009-10-06 12:12 ` Pascal J. Bourguignon
2009-10-06 23:37 ` Glenn Morris
0 siblings, 2 replies; 6+ messages in thread
From: Sebastien @ 2009-10-06 6:34 UTC (permalink / raw
To: help-gnu-emacs
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) ?
The souce code generating the message is in "fileio.c" in the
function Fwrite_region .
if (!auto_saving)
message_with_string ((INTEGERP (append)
? "Updated %s"
: ! NILP (append)
? "Added to %s"
: "Wrote %s"),
visit_file, 1);
It would be nice to have a technique to bypass the message_with_string
function.
Regards,
Sebastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Remove minibuffer message after appending to file
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 23:37 ` Glenn Morris
1 sibling, 1 reply; 6+ messages in thread
From: Pascal J. Bourguignon @ 2009-10-06 12:12 UTC (permalink / raw
To: help-gnu-emacs
Sebastien <us021121@yahoo.com> writes:
> 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) ?
Yes, call (message "")
(progn
(or (append-to-file min max filename)
(write-region min max filename t))
(message ""))
--
__Pascal Bourguignon__
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Remove minibuffer message after appending to file
2009-10-06 12:12 ` Pascal J. Bourguignon
@ 2009-10-06 20:23 ` Sebastien
2009-10-06 21:12 ` Pascal J. Bourguignon
0 siblings, 1 reply; 6+ messages in thread
From: Sebastien @ 2009-10-06 20:23 UTC (permalink / raw
To: help-gnu-emacs
On Oct 6, 2:12 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Sebastien <us021...@yahoo.com> writes:
> > 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) ?
>
> Yes, call (message "")
>
> (progn
> (or (append-to-file min max filename)
> (write-region min max filename t))
> (message ""))
>
> --
> __Pascal Bourguignon__
With (message "") , the "Added to ..." text is overwritten and
therefore not visible.
It would be great if the text is not written at all (with emacs -Q
startup, the text still appears)...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Remove minibuffer message after appending to file
2009-10-06 20:23 ` Sebastien
@ 2009-10-06 21:12 ` Pascal J. Bourguignon
0 siblings, 0 replies; 6+ messages in thread
From: Pascal J. Bourguignon @ 2009-10-06 21:12 UTC (permalink / raw
To: help-gnu-emacs
Sebastien <us021121@yahoo.com> writes:
> On Oct 6, 2:12 pm, p...@informatimago.com (Pascal J. Bourguignon)
> wrote:
>> Sebastien <us021...@yahoo.com> writes:
>> > 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) ?
>>
>> Yes, call (message "")
>>
>> (progn
>> (or (append-to-file min max filename)
>> (write-region min max filename t))
>> (message ""))
>>
>> --
>> __Pascal Bourguignon__
>
> With (message "") , the "Added to ..." text is overwritten and
> therefore not visible.
> It would be great if the text is not written at all (with emacs -Q
> startup, the text still appears)...
You know enough, and have enough freedom, to make it so. Why are you
asking? Do you want an official permission? What form would it take?
Would a copy of the GPL printed on parchment and signed by Richard
Stallman be enough? Would it have to be hand caligraphied by him?
Written with his own blood?
--
__Pascal Bourguignon__
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Remove minibuffer message after appending to file
2009-10-06 6:34 Remove minibuffer message after appending to file Sebastien
2009-10-06 12:12 ` Pascal J. Bourguignon
@ 2009-10-06 23:37 ` Glenn Morris
2009-10-07 19:28 ` Sebastien
1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2009-10-06 23:37 UTC (permalink / raw
To: help-gnu-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))
; ^
; |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Remove minibuffer message after appending to file
2009-10-06 23:37 ` Glenn Morris
@ 2009-10-07 19:28 ` Sebastien
0 siblings, 0 replies; 6+ messages in thread
From: Sebastien @ 2009-10-07 19:28 UTC (permalink / raw
To: help-gnu-emacs
On Oct 7, 1:37 am, Glenn Morris <rgm+n...@stanford.edu> wrote:
>
> (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))
> ; ^
> ; |
It works fine using the fifth argument in the write-region call.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-10-07 19:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-10-07 19:28 ` Sebastien
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.