From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: face vs. mouse-face text property Date: Fri, 20 Jan 2012 21:18:47 +0100 Message-ID: <87y5t2f7q0.fsf@web.de> References: <87pqegeluf.fsf@web.de> Reply-To: emacs-devel@gnu.org, michael_heerdegen@web.de NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327090658 14973 80.91.229.12 (20 Jan 2012 20:17:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 20:17:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 20 21:17:34 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RoKtx-0005mX-RJ for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 21:17:33 +0100 Original-Received: from localhost ([::1]:51796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoKtx-0006Id-Al for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 15:17:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoKtu-0006IX-Jf for emacs-devel@gnu.org; Fri, 20 Jan 2012 15:17:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoKtt-0005Zm-KS for emacs-devel@gnu.org; Fri, 20 Jan 2012 15:17:30 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:38358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoKtr-0005Yj-Fi; Fri, 20 Jan 2012 15:17:27 -0500 Original-Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate01.web.de (Postfix) with ESMTP id A02571A9591B8; Fri, 20 Jan 2012 21:17:25 +0100 (CET) Original-Received: from snow ([217.185.137.14]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0McneT-1S5adR1Nar-00Ic0z; Fri, 20 Jan 2012 21:17:25 +0100 In-Reply-To: (Eli Zaretskii's message of "Thu, 19 Jan 2012 07:19:06 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-Provags-ID: V02:K0:TVOWgO/Y1DSQfQlQAWjxKd3TRhpGDv5BImc0VUcD1S0 rpIwJvLh6amkG+pCNrIr+khFOw2isr3sfm50aFSOgxdw3PEZix GUU2dxR2DX5N3n1JTR+YwIifAuDZAFt3CYIkQkR9gN2ubWFMdV OLgAPmyWRYe0cdrbQDhYgvnriW1M7C8Fluz8LyFdxUR+iGEewn E0qvBOpAnUAuQU4bLT+AAhxq/ajkwMya7fbLABYx0c= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.221 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:147789 Archived-At: Eli Zaretskii writes: > Could you please describe your scenario in more detail? Empty lines > have no text, so it's unclear how can you talk about "clickable text" > in that case. I'm talking about completion candidates that can be selected with the mouse. I stumbled over this problem in Icicles, but it also appears in vanilla Emacs. Try this: (completing-read "foo: " '(("aaaa") ("bbbb") ("\n") ("cccc"))) The "\n" candidate gets no visible mouse-face when you move the mouse over it in *Completions*, so the user doesn't see where to click to select it. If you try that: (completing-read "foo: " '(("a\n\nb"))) the whole area between a and b gets a mouse-face (from the left to the right border of the window), but only if the mouse is exactly over the a or the b. Such completion candidates are a bit exotic, right, but they _do_ appear in some situations. - Michael