From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: invisible Date: Mon, 26 Nov 2007 10:17:22 -0500 Message-ID: References: <20040225.150142.12214540.kazu@iijlab.net> <200402282128.i1SLSuY15359@raven.dms.auburn.edu> <200402290224.i1T2Oip15705@raven.dms.auburn.edu> <87sl3fdqs3.fsf@escher.local.home> <87zlxc5r2f.fsf@escher.local.home> <474059CD.1060107@gmx.at> <87r6ihi1z7.fsf@escher.local.home> <4746E2CF.4010604@gmx.at> <87k5o8q0y5.fsf@escher.local.home> <4747312D.7020605@gmx.at> <87fxywpuuy.fsf@escher.local.home> <47474B8C.9020806@gmx.at> <87bq9kpnqd.fsf@escher.local.home> <4747EFE8.5090405@gmx.at> <87k5o7mnhw.fsf@escher.local.home> <4748A52C.6090407@gmx.at> <474A7D7E.20504@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196090339 17684 80.91.229.12 (26 Nov 2007 15:18:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 15:18:59 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Stephen Berman , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 26 16:19:06 2007 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.50) id 1Iwfjl-0000ja-Qz for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 16:19:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwfjW-0004BZ-O7 for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 10:18:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwfjT-0004B2-26 for emacs-devel@gnu.org; Mon, 26 Nov 2007 10:18:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwfjR-0004Ad-8L for emacs-devel@gnu.org; Mon, 26 Nov 2007 10:18:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwfjR-0004Aa-5h for emacs-devel@gnu.org; Mon, 26 Nov 2007 10:18:45 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IwfjN-0007hB-2D; Mon, 26 Nov 2007 10:18:41 -0500 Original-Received: from ceviche.home (vpn-132-204-232-58.acd.umontreal.ca [132.204.232.58]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id lAQFIYRM031354; Mon, 26 Nov 2007 10:18:34 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id D2722B42E5; Mon, 26 Nov 2007 10:17:22 -0500 (EST) In-Reply-To: <474A7D7E.20504@gmx.at> (martin rudalics's message of "Mon, 26 Nov 2007 09:02:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-NAI-Spam-Score: -1.2 X-NAI-Spam-Rules: 2 Rules triggered BAYES_01=-1.2, HAS_X_HELO=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:84141 gmane.emacs.pretest.bugs:20370 Archived-At: >>>> Do you think facemenu-set-invisible should set rear-nonsticky to t? >>> Probably. >> I don't think it would be significiantly better. Since the text is >> invisible, the user has generally no way to know whether she's inserting >> text before or after the invisible text anyway. > I think Stephen was talking about invisible text followed by visible > text where the user (1) wants to insert text precisely at the beginning > of the visible text and (2) probably wants to see new text while typing. The point-adjustment already tries to move point to the non-sticky side of an invisible text so that text inserted is indeed visible. The rear-nonsticky change proposed above will just make both ends non-sticky so the point-adjustment will not have a preference and will sometimes choose one sometimes the other. In general facemenu-set-invisible can't know whether the user will want to insert text "precisely at the beginning of the visible text" or "precisely at the end of the visible text". This said, I think you're right: the rear-nonsticky property would be beneficial for the case where the invisible text is shown as an ellipsis, in which case the user can indeed choose where she inserts the text. Stefan