From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13399: 24.3.50; Word-wrap can't wrap at zero-width space U-200B Date: Fri, 11 Jan 2013 11:08:02 -0500 Message-ID: References: <50EE7BE5.2060806@gmx.at> <83hamohmtj.fsf@gnu.org> <50EFCA6D.7090702@gmx.at> <83ip74ume7.fsf@gnu.org> <50EFE99A.5070508@gmx.at> <838v80ugv1.fsf@gnu.org> <50F021EC.4040107@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357920546 28745 80.91.229.3 (11 Jan 2013 16:09:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2013 16:09:06 +0000 (UTC) Cc: 13399@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 17:09:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TthAY-0006aS-JH for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2013 17:09:22 +0100 Original-Received: from localhost ([::1]:50038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthAI-00014M-H4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2013 11:09:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthAD-00013W-Sa for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2013 11:09:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TthA7-00027b-CQ for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2013 11:09:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TthA7-00027X-90 for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2013 11:08:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TthAE-0007mZ-Eq for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2013 11:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Jan 2013 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13399-submit@debbugs.gnu.org id=B13399.135792049929857 (code B ref 13399); Fri, 11 Jan 2013 16:09:02 +0000 Original-Received: (at 13399) by debbugs.gnu.org; 11 Jan 2013 16:08:19 +0000 Original-Received: from localhost ([127.0.0.1]:55695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tth9W-0007lW-LR for submit@debbugs.gnu.org; Fri, 11 Jan 2013 11:08:18 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:12061) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tth9U-0007lJ-Sn for 13399@debbugs.gnu.org; Fri, 11 Jan 2013 11:08:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhoHAG6Zu09MCpYP/2dsb2JhbABEgXuuTYNJgQiCFQEBBAFWIwULCzQSFBgNJIgcBboJkEQDiEKacYFYgwc X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212303688" Original-Received: from 76-10-150-15.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.15]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Jan 2013 11:08:03 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id F0DEE59441; Fri, 11 Jan 2013 11:08:02 -0500 (EST) In-Reply-To: <50F021EC.4040107@gmx.at> (martin rudalics's message of "Fri, 11 Jan 2013 15:30:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69614 Archived-At: > Never mind, it works. What I meant was that when, for example, I have > two adjacent parts of text with the same mouse-face property and the > mouse hovers over one of the words, the other word gets highlighted as > well. Maybe it's just stickyness or whatever, but till now I hadn't > found a method to turn this off. Not recommended for normal buffers > because `forward-char' appears to hang, but that's a different story. Text properties apply to characters, so they don't have a natural notion of "extent" and "boundaries", but Emacs usually invents those notions when needed by treating any run of characters whose text-property value is `eq' as one extent. In the case of the mouse-face property that means you can use (list 'my-face) on the chunk you want to make sure it's not `eq' to an adjacent chunk. >> The latter already exists as window-line-height, doesn't it? > This needs an up to date display, IIUC :-( W.r.t. functions that return the pixel width/height of a string, I guess you'd presume that the string would be displayed at the leftmost position on a line, since the width/height of a string will depend on where it's displayed in the window (which affects the width of TAB chars, and the placement of line wraps). >> Anyway, how would you word-wrap in Lisp, except by adding display >> strings with newlines (which AFAIR features like longlines >> etc. already do)? > By adding hard newlines. All I care about is to (1) show the entire > buffer text in a fixed-width window and (2) make that window as small as > possible. How 'bout starting my making the window as high as you can, then call (posn-at-point (point-max)), then shrink the window accordingly? Stefan