From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#5984: Crash displaying composed characters Date: Tue, 20 Apr 2010 22:18:40 +0300 Message-ID: <83mxwy3pbj.fsf@gnu.org> References: <831vea5fjh.fsf@gnu.org> <83vdbm3udi.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1271791770 11985 80.91.229.12 (20 Apr 2010 19:29:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2010 19:29:30 +0000 (UTC) To: 5984@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 20 21:29:27 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@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 1O4J8R-0005Xu-69 for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Apr 2010 21:29:27 +0200 Original-Received: from localhost ([127.0.0.1]:44846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4J8Q-0003pu-GE for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Apr 2010 15:29:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4J8M-0003ou-BT for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 15:29:22 -0400 Original-Received: from [140.186.70.92] (port=46699 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4J8J-0003m5-2t for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 15:29:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4J8H-00060z-8S for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 15:29:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46566) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4J8H-00060o-50 for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2010 15:29:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O4IyL-0001f9-Kj; Tue, 20 Apr 2010 15:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Apr 2010 19:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5984 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5984-submit@debbugs.gnu.org id=B5984.12717911226383 (code B ref 5984); Tue, 20 Apr 2010 19:19:01 +0000 Original-Received: (at 5984) by debbugs.gnu.org; 20 Apr 2010 19:18:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Iy1-0001eu-Jb for submit@debbugs.gnu.org; Tue, 20 Apr 2010 15:18:41 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Ixz-0001ep-9l for 5984@debbugs.gnu.org; Tue, 20 Apr 2010 15:18:40 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0L1600G00WADYW00@a-mtaout23.012.net.il> for 5984@debbugs.gnu.org; Tue, 20 Apr 2010 22:18:33 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.237.174]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L1600GZTWAXU300@a-mtaout23.012.net.il> for 5984@debbugs.gnu.org; Tue, 20 Apr 2010 22:18:33 +0300 (IDT) In-reply-to: <83vdbm3udi.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 20 Apr 2010 15:19:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36379 Archived-At: > Date: Tue, 20 Apr 2010 20:29:29 +0300 > From: Eli Zaretskii > Cc: > > . The call to auto-composition-function loads uni-combining.el. And > because force-load-messages is non-nil, that displays the 2 > messages > > Loading lisp/international/uni-combining.el (source)... > Loading lisp/international/uni-combining.el (source)...done > > . Now the " *Echo Area0*" buffer holds a totally different text, > unbeknownst to autocmp_chars, which still passes the old values 32 > and 33 to TEMP_SET_PT_BOTH: > > if (NILP (string)) > TEMP_SET_PT_BOTH (pt, pt_byte); > return unbind_to (count, gstring); > > . temp_set_pt_both uses BUF_ZV and BUF_ZV_BYTE to validate its > argument, but now BUF_ZV and BUF_ZV_BYTE correspond to the text > "Loading ...", which has an entirely different length and > contents, and the validation fails. Therefore, temp_set_pt_both > aborts. > > One kludgy way of fixing this would be to bind force-load-messages to > nil around the call to auto-composition-function. But that sounds too > harsh: after all, whoever sets that variable, actually wants to see > all these messages. > > Another way is to force the "Loading..." messages use the second echo > area buffer. Do we have ways to do something like that? > > Ideas are welcome. Here's one idea: use push_message and restore_message to save and restore the current echo area message around the call to auto-composition-function. WDYT?