From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.devel Subject: Intermittent problem with unencodable-char-position Date: Wed, 14 Apr 2010 00:19:55 -0400 (EDT) Message-ID: <20100414.001955.448182314.hanche@math.ntnu.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1271219220 13966 80.91.229.12 (14 Apr 2010 04:27:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Apr 2010 04:27:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 14 06:26:58 2010 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.69) (envelope-from ) id 1O1uBk-0000dD-FG for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 06:26:58 +0200 Original-Received: from localhost ([127.0.0.1]:55837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1uBj-00067X-BC for ged-emacs-devel@m.gmane.org; Wed, 14 Apr 2010 00:26:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1uBf-00067N-Bs for emacs-devel@gnu.org; Wed, 14 Apr 2010 00:26:51 -0400 Original-Received: from [140.186.70.92] (port=43973 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1uBe-000678-2y for emacs-devel@gnu.org; Wed, 14 Apr 2010 00:26:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1uBb-0005qe-Vb for emacs-devel@gnu.org; Wed, 14 Apr 2010 00:26:49 -0400 Original-Received: from anne.math.ntnu.no ([129.241.15.150]:58948) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O1uBb-0005pm-JN for emacs-devel@gnu.org; Wed, 14 Apr 2010 00:26:47 -0400 Original-Received: (qmail 10007 invoked from network); 14 Apr 2010 04:20:02 -0000 Original-Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.102) by anne.math.ntnu.no with ESMTPA; 14 Apr 2010 04:20:02 -0000 X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.3.50 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:123609 Archived-At: Evaluating the form (unencodable-char-position 0 5 'iso-latin-1-unix 1 "100 Ω") normally returns the list (4), since capital Omega is not encodable in latin-1. However, after I have run emacs for a while, it happens that this form begins to return nil [*]. I have no idea what triggers this behaviour, and the only cure seems to be to quit and restart emacs. I suspect some internal memory corruption, but if anyone here can suggest another possible reason, I'd like to hear about it. Or if you can think of a debugging technique that might shed some light on this, I'll be happy to try it when it happens again. (I warn you that I run on OS X, though, so debugging is, um, different.) [*] I notice because attempts to save a buffer containing non-latin-1 characters with the latin-1 charset fails without the usual offer to select a different character set. I have narrowed the problem down to the above behaviour inside select-safe-coding-system-interactively. (That code doesn't use the string argument, but it happens whether you look at a string or the current buffer.) - Harald