[Top][All Lists]

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

Re: Inhibit "Wrote foo" from write-region

From: Tom Tromey
Subject: Re: Inhibit "Wrote foo" from write-region
Date: Tue, 21 Jan 2014 09:42:08 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>>>>> "Sebastian" == Sebastian Wiesner <address@hidden> 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.


reply via email to

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