From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: utf8 char display in buffer Date: Sat, 13 Jun 2009 10:36:46 +0900 Message-ID: <87my8czzgx.fsf@catnip.gol.com> References: <7I2dndeTy7sqkLLXnZ2dnUVZ_gmdnZ2d@sysmatrix.net> <4A32D54D.1040405@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1244857042 9856 80.91.229.12 (13 Jun 2009 01:37:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2009 01:37:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 13 03:37:19 2009 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 1MFIBK-0005IH-JQ for ged-emacs-devel@m.gmane.org; Sat, 13 Jun 2009 03:37:18 +0200 Original-Received: from localhost ([127.0.0.1]:48431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFIBK-0000Ld-0b for ged-emacs-devel@m.gmane.org; Fri, 12 Jun 2009 21:37:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFIBE-0000IH-Lf for emacs-devel@gnu.org; Fri, 12 Jun 2009 21:37:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFIBA-0000Bd-2F for emacs-devel@gnu.org; Fri, 12 Jun 2009 21:37:12 -0400 Original-Received: from [199.232.76.173] (port=37113 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFIB9-0000BE-Rz for emacs-devel@gnu.org; Fri, 12 Jun 2009 21:37:07 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:59187 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MFIB9-0001Pk-Et for emacs-devel@gnu.org; Fri, 12 Jun 2009 21:37:07 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MFIB5-0003Lm-7X for emacs-devel@gnu.org; Sat, 13 Jun 2009 01:37:03 +0000 Original-Received: from 218.231.174.5.eo.eaccess.ne.jp ([218.231.174.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Jun 2009 01:37:03 +0000 Original-Received: from miles by 218.231.174.5.eo.eaccess.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Jun 2009 01:37:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 218.231.174.5.eo.eaccess.ne.jp System-Type: x86_64-unknown-linux-gnu Cancel-Lock: sha1:XWJyRXOt1Qv79SPPFYY41zKw618= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:111470 Archived-At: Lennart Borgman writes: > Ken, I think this is a good idea so I have sent this along to Emacs devel. > >> Yet emacs puts a little box in the place of a character it cannot find >> (or, per your explanation) possibly confused about.  The fact remains >> that the little box is not a correct rendering of the code.  It is an >> error... at least it is for me, because that's not what I typed in.  So >> it is an error.  As an error, there should be a corresponding error >> message, hopefully one (or more) which would help diagnose the problem. An "error message" _when_? Whether a character is displayable or not isn't known until display time, and error messages for display issues are generally a very bad idea. For some display errors, the display code will put messages in the *Messages* buffer (though they aren't displayed to the user), but even that must be done with careful consideration; currently they typically indicate that something seriously screwy is going on (and a non-displayable character, however annoying, isn't "seriously screwy"). If an "error message" were displayed, what would it say? The only thing I can think of is "no font could be found to display character FOO", but that fact is already obvious from the little box. Given no extra detail, is a message even useful? Maybe some sort of _once-only_ pop-up buffer note to the user saying "little boxes indicate characters for which a font could not found; see info manual section X.Y for details on blah blah"? I suppose that could help some people, but such a thing, even if once-only, would probably be pretty annoying to non-complete-noob users, so ... -Miles -- [|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that will make every christian in the world foamm at the mouth? [iddt] nurg, that's the goal