From: Sebastian Wiesner <lunaryorn@gmail.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Inhibit "Wrote foo" from write-region
Date: Wed, 22 Jan 2014 13:37:24 +0100 [thread overview]
Message-ID: <m2ppnkkxa3.fsf@lunaryorn-air.fritz.box> (raw)
In-Reply-To: <87k3dte17j.fsf@fleche.redhat.com>
tromey@redhat.com writes:
>>>>>> "Sebastian" == Sebastian Wiesner <lunaryorn@gmail.com> writes:
>
> Sebastian> For individual calls to write-region, this behaviour can be
> Sebastian> inhibited by passing a symbol as VISIT argument,
> Sebastian> e.g. (write-region "Hello world" nil "foo" 'no-message),
> Sebastian> however package.el, url.el and other involved packages do not
> Sebastian> make general use of this. For instance,
> Sebastian> "package--write-file-no-coding" is defined as follows:
>
> Sebastian> (defun package--write-file-no-coding (file-name)
> Sebastian> (let ((buffer-file-coding-system 'no-conversion))
> Sebastian> (write-region (point-min) (point-max) file-name)))
>
> I agree it would be nice to fix this.
>
> Meanwhile as a workaround I think your program could advise write-region
> to add the needed argument.
I do that now, but this does obviously not catch messages, which specify
a string for VISIT. In this case, "write-region" still produces these
messages.
Also, overriding a core function like write-region just to silence some
messages feels a little brittle.
Thank you for your advice, though
next prev parent reply other threads:[~2014-01-22 12:37 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-21 12:32 Inhibit "Wrote foo" from write-region Sebastian Wiesner
2014-01-21 12:38 ` Sebastian Wiesner
2014-01-21 15:57 ` Eli Zaretskii
2014-01-21 16:31 ` Sebastian Wiesner
2014-01-21 16:47 ` Eli Zaretskii
2014-01-22 12:35 ` Sebastian Wiesner
2014-01-22 15:11 ` Stefan Monnier
2014-01-22 17:00 ` Sebastian Wiesner
[not found] ` <<834n4xgu3z.fsf@gnu.org>
2014-01-21 17:59 ` Drew Adams
2014-01-21 18:26 ` Eli Zaretskii
2014-01-22 8:05 ` Juri Linkov
2014-01-21 16:42 ` Tom Tromey
2014-01-22 12:37 ` Sebastian Wiesner [this message]
2014-01-22 15:09 ` Stefan Monnier
2014-01-22 17:08 ` Sebastian Wiesner
2014-01-22 19:20 ` Stefan Monnier
2014-01-23 9:35 ` Sebastian Wiesner
2014-01-23 13:50 ` Stefan Monnier
2014-01-23 14:24 ` Sebastian Wiesner
2014-01-23 15:18 ` Stefan Monnier
2014-01-23 16:15 ` Sebastian Wiesner
2014-01-23 16:29 ` Eli Zaretskii
2014-01-23 17:31 ` Sebastian Wiesner
2014-01-23 18:04 ` Eli Zaretskii
2014-01-24 20:14 ` Sebastian Wiesner
2014-01-23 16:25 ` Eli Zaretskii
2014-01-23 17:37 ` Sebastian Wiesner
2014-01-23 18:07 ` Eli Zaretskii
2014-01-24 13:34 ` Johan Andersson
2014-01-24 13:48 ` Stefan Monnier
2014-01-24 14:25 ` Eli Zaretskii
[not found] <"<m2r481o6rh.fsf"@lunaryorn-air.fritz.box>
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=m2ppnkkxa3.fsf@lunaryorn-air.fritz.box \
--to=lunaryorn@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=tromey@redhat.com \
/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.