From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Saving when the coding system can't code all buffer characters Date: Sat, 23 Dec 2006 08:31:39 +0100 Message-ID: <8564c3xe3o.fsf@lola.goethe.zz> References: <6f1c06d176.6d1766f1c0@net.lu.se> <868xh0szi3.fsf@lola.quinscape.zz> <458C068F.5070508@student.lu.se> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166859144 10836 80.91.229.10 (23 Dec 2006 07:32:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Dec 2006 07:32:24 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 23 08:32:22 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gy1Mh-0001eT-DN for ged-emacs-devel@m.gmane.org; Sat, 23 Dec 2006 08:32:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gy1Mg-0004yQ-QJ for ged-emacs-devel@m.gmane.org; Sat, 23 Dec 2006 02:32:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gy1MT-0004yJ-Ra for emacs-devel@gnu.org; Sat, 23 Dec 2006 02:32:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gy1MS-0004ww-6B for emacs-devel@gnu.org; Sat, 23 Dec 2006 02:32:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gy1MS-0004ws-3p for emacs-devel@gnu.org; Sat, 23 Dec 2006 02:32:04 -0500 Original-Received: from [212.7.152.119] (helo=mxout02.versatel.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gy1MQ-0002yx-KZ; Sat, 23 Dec 2006 02:32:03 -0500 Original-Received: from mx05.versatel.de (mx01.versatel.de [212.7.146.1]) by mxout02.versatel.de (8.12.11/8.12.11) with ESMTP id kBN7W0pY019925; Sat, 23 Dec 2006 08:32:01 +0100 Original-Received: from lola.goethe.zz (i53878307.versanet.de [83.135.131.7]) by mx05.versatel.de (8.12.11.20060308/8.12.11) with ESMTP id kBN7W06N003076; Sat, 23 Dec 2006 08:32:00 +0100 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id B066E1C3B764; Sat, 23 Dec 2006 08:31:39 +0100 (CET) Original-To: Lennart Borgman In-Reply-To: <458C068F.5070508@student.lu.se> (Lennart Borgman's message of "Fri\, 22 Dec 2006 17\:23\:43 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) 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:64152 Archived-At: Lennart Borgman writes: > David Kastrup wrote: >> >> Also an idea, but the warning is more dissociated from the buffer >> than a highlight and tooltip would be. >> > > The warning stays visible afterwards and that is very good in a case > like this. A highlight is also very good, but a tooltip is far to > obscure IMHO. A tooltip may be too obscure as the sole source of information (hardly surprising since that is pretty much generally true for tooltips). As additional info, it certainly is helpful. We already put tooltips on raw/illicit bytes in utf-8 buffers. It seems like it would be natural to do this for unsaveable bytes, too. Probably overlays rather than text properties are appropriate for that, however, since the unsaveability is rather a property of the buffer (and its encoding) than the text: with bad utf-8 bytes, it is rather a text property, in contrast. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum