From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [juri@jurta.org: cursor-in-echo-area ignores the default cursor type] Date: Fri, 13 Jan 2006 17:25:48 -0500 Message-ID: <87wth3g3yr.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137192695 4643 80.91.229.2 (13 Jan 2006 22:51:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2006 22:51:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 13 23:51:33 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ExXlR-0000bK-PL for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2006 23:51:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ExXnb-0003gf-55 for ged-emacs-devel@m.gmane.org; Fri, 13 Jan 2006 17:53:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ExXOG-0003Sc-0h for emacs-devel@gnu.org; Fri, 13 Jan 2006 17:27:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ExXOC-0003OH-O6 for emacs-devel@gnu.org; Fri, 13 Jan 2006 17:27:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ExXOC-0003O2-5x for emacs-devel@gnu.org; Fri, 13 Jan 2006 17:27:20 -0500 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ExXRB-0000oK-8F; Fri, 13 Jan 2006 17:30:25 -0500 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 78923120337; Fri, 13 Jan 2006 17:25:48 -0500 (EST) Original-To: rms@gnu.org, Juri Linkov In-Reply-To: (Richard M. Stallman's message of "Wed, 28 Dec 2005 12:01:18 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (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:49038 Archived-At: > After setting the default cursor type to something other than the default > block cursor: > > (setq default-cursor-type 'bar) > > and using a function that internally sets the variable `cursor-in-echo-area' > to non-nil, e.g.: > > (y-or-n-p "prompt: ") > > the specified cursor type is ignored and the minibuffer in all these cases > displays the block cursor. How about this fix? *** emacs/src/xdisp.c.~1.1069.~ 2005-12-12 14:31:22.000000000 -0500 --- emacs/src/xdisp.c 2006-01-13 17:14:42.000000000 -0500 *************** *** 20772,20779 **** { if (w == XWINDOW (echo_area_window)) { ! *width = FRAME_CURSOR_WIDTH (f); ! return FRAME_DESIRED_CURSOR (f); } *active_cursor = 0; --- 20772,20784 ---- { if (w == XWINDOW (echo_area_window)) { ! if (EQ (b->cursor_type, Qt) || NILP (b->cursor_type)) ! { ! *width = FRAME_CURSOR_WIDTH (f); ! return FRAME_DESIRED_CURSOR (f); ! } ! else ! return get_specified_cursor_type (b->cursor_type, width); } *active_cursor = 0;