From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: saveplace: don't ask for coding system Date: Thu, 29 Nov 2007 10:05:43 +0100 Message-ID: References: <198E2B70-D060-41D8-8BC2-A9614C2729CC@inf.ed.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196327182 8823 80.91.229.12 (29 Nov 2007 09:06:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2007 09:06:22 +0000 (UTC) Cc: emacs- devel To: "David Reitter" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 29 10:06:31 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IxfLi-000431-AD for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2007 10:06:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxfLS-0002LO-T2 for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2007 04:06:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IxfLD-0002GC-CU for emacs-devel@gnu.org; Thu, 29 Nov 2007 04:05:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IxfL8-0002CK-Pv for emacs-devel@gnu.org; Thu, 29 Nov 2007 04:05:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IxfL8-0002C5-9J for emacs-devel@gnu.org; Thu, 29 Nov 2007 04:05:46 -0500 Original-Received: from nz-out-0506.google.com ([64.233.162.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IxfL7-0000ls-Vp for emacs-devel@gnu.org; Thu, 29 Nov 2007 04:05:46 -0500 Original-Received: by nz-out-0506.google.com with SMTP id f1so1336128nzc for ; Thu, 29 Nov 2007 01:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=zve2UuuqEu62iWR05db57mdoTSpRkObt57BgzRLHb64=; b=Nn+6DGhkvJqfxA6YDKMxtU8700FCWKlhd9mmMed+uPIKHlyqbIynKmCmrkE/uTbY3PIesKK/6k9k/g54MIsnwEvXQfjueJtzpgoDRdqmm4ImTRUgS+R1FL1hV7tzZUK1VWqEH9egJ8uv/Mgzj3n9iRflwMWUaEAbc5hlm1TvfnA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vTlj4olnO36C7UdvFFvt8GL7GkyaO/eCuZW9rOyjCnZ71yWsNCX33uAZpN7bIRNWy3XA8YFOcoR5cGIEfDjwhlwAIwm0kjIPIQStzmLdKmszCP9NnMTiE5pJ7uNiuv8JoeYlXfOn3ZrHLCXzmhGFYSTFwfYrVEc0VbS2XJ5zM9A= Original-Received: by 10.114.52.1 with SMTP id z1mr1714324waz.1196327143942; Thu, 29 Nov 2007 01:05:43 -0800 (PST) Original-Received: by 10.114.168.11 with HTTP; Thu, 29 Nov 2007 01:05:43 -0800 (PST) In-Reply-To: <198E2B70-D060-41D8-8BC2-A9614C2729CC@inf.ed.ac.uk> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84287 Archived-At: On Nov 28, 2007 3:46 PM, David Reitter wrote: > --- 224,235 ---- > t)))) > (condition-case nil > ;; Don't use write-file; we don't want this buffer to visit it. > ! (let ((coding-system-for-write 'utf-8)) > ! (write-region (point-min) (point-max) file)) > ! (file-error (message "Saving places: Can't write %s" file))) > (kill-buffer (current-buffer)) > ! ;;(message "Saving places to %s...done" file) > ! )))) > I think you should also add a "-*- coding: XXX -*-" line to the file. Juanma