From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: face vs. mouse-face text property Date: Tue, 24 Jan 2012 03:14:21 -0800 Message-ID: <73B792BB-2350-41F5-9790-C836AB2CE7FF@gmail.com> References: <87pqegeluf.fsf@web.de> <87y5t2f7q0.fsf@web.de> <83vco52wph.fsf@gnu.org> <87bopv8jla.fsf@web.de> <883D91EC-D57E-4A97-A1F9-B3C37F74EF49@gmail.com> <8339b62lo5.fsf@gnu.org> <83zkdd222e.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/alternative; boundary="Apple-Mail=_23216759-28F3-440F-AEA8-701E6BD6F8E5" X-Trace: dough.gmane.org 1327403693 14516 80.91.229.12 (24 Jan 2012 11:14:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2012 11:14:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 24 12:14:49 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 1RpeKr-0001Fj-9t for ged-emacs-devel@m.gmane.org; Tue, 24 Jan 2012 12:14:45 +0100 Original-Received: from localhost ([::1]:45665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpeKq-0005BS-Re for ged-emacs-devel@m.gmane.org; Tue, 24 Jan 2012 06:14:44 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpeKj-0005BK-KQ for emacs-devel@gnu.org; Tue, 24 Jan 2012 06:14:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpeKd-0000cv-MA for emacs-devel@gnu.org; Tue, 24 Jan 2012 06:14:37 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:53454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpeKX-0000cQ-50; Tue, 24 Jan 2012 06:14:25 -0500 Original-Received: by iadk27 with SMTP id k27so1043277iad.0 for ; Tue, 24 Jan 2012 03:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=jLVKPdNMrXKKJphqDpohB0NRujBN7aGPBsqnhU3eZYk=; b=PnowZHqR0pxcyi2t0qWi19UM6zDwrT88OhvfnYnbiWOVB8/4UlVkDQ9oHVoOgP8N4Y aGow8S6O09HVk866BAzBHmx+W3JO1lKGTImWRG1gMnbo1BYcgASBLFd0joH/y/ts0dGf Z5MaOTnxPs33mTWX6SFiKsVUk3X7NGYsSMQGo= Original-Received: by 10.42.117.193 with SMTP id u1mr11383082icq.24.1327403664097; Tue, 24 Jan 2012 03:14:24 -0800 (PST) Original-Received: from [10.0.1.21] (c-98-247-148-125.hsd1.wa.comcast.net. [98.247.148.125]) by mx.google.com with ESMTPS id bj1sm22248783igb.0.2012.01.24.03.14.22 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jan 2012 03:14:23 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 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:147874 Archived-At: --Apple-Mail=_23216759-28F3-440F-AEA8-701E6BD6F8E5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Jan 24, 2012, at 1:11 AM, Eli Zaretskii wrote: >>=20 >> I trust your experience far more than mine these days, but I have to = wonder if empty rectangle might not be good enough for the suggested use = case. >=20 > I doubt that. The issue at hand is how to display mouse-highlighted > newline so that it is clear to the user it's a newline that (e.g.) > will be inserted when she clicks on it in *Completions* buffer. > Showing an empty rectangle hardly accomplishes that effect. I suppose that there are tricky edges, but I thought that the = first-order problem was being able to tell a newline or tab apart from = nothing. If the use-case is more complicated, then I'll certainly = believe that `something not-normal but not-nothing' is not sufficient. I = had mostly hoped to improve upon Lars' `4 chars of garbage' experience. >=20 >> I assume that C-x =3D DTRT with those empty rectangles? >=20 > You meant "C-u C-x =3D", I presume. =20 Yes, that's what I meant; thanks. In truth, I have quite a bit of very old tty-only experience, but almost = all of it predates reasonable tty+mouse setups, so I tend to forget the = mouse part in this domain. I did check that mouse-selecting such a = character in order to describe-char it was a bust, but I assumed = (probably wrongly) that the mouse-case wasn't as interesting for the tty = users as a the keyboard-motion case. For the mouse case, I was wondering idly about a tooltip version of = describe-char, but it seemed unlikely to be as useful as a special face = for this purpose.=20 Thanks! *Chad --Apple-Mail=_23216759-28F3-440F-AEA8-701E6BD6F8E5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

I = trust your experience far more than mine these days, but I have to = wonder if empty rectangle might not be good enough for the suggested use = case.

I doubt that.  The issue at hand is how = to display mouse-highlighted
newline so that it is clear to the user = it's a newline that (e.g.)
will be inserted when she clicks on it in = *Completions* buffer.
Showing an empty rectangle hardly accomplishes = that effect.

I suppose that = there are tricky edges, but I thought that the first-order problem was = being able to tell a newline or tab apart from nothing. If the use-case = is more complicated, then I'll certainly believe that `something = not-normal but not-nothing' is not sufficient. I had mostly hoped to = improve upon Lars' `4 chars of garbage' experience.


I assume that C-x =3D = DTRT with those empty rectangles?

You meant "C-u C-x = =3D", I presume.  

Yes, = that's what I meant; thanks.

In truth, I have = quite a bit of very old tty-only experience, but almost all of it = predates reasonable tty+mouse setups, so I tend to forget the mouse part = in this domain.  I did check that mouse-selecting such a character = in order to describe-char it was a bust, but I assumed (probably = wrongly) that the mouse-case wasn't as interesting for the tty users as = a the keyboard-motion case.

For the mouse case, I = was wondering idly about a tooltip version of describe-char, but it = seemed unlikely to be as useful as a special face for this = purpose. 

Thanks!
*Chad
=
= --Apple-Mail=_23216759-28F3-440F-AEA8-701E6BD6F8E5--