From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: word-wrap and wrapping before window-width Date: Mon, 29 Dec 2014 22:04:46 -0500 Message-ID: References: <83bnmvowdb.fsf@gnu.org> <83ppbanqhe.fsf@gnu.org> <87vbl2xigp.fsf@ferrier.me.uk> <83ioh2nlow.fsf@gnu.org> <87sig6xech.fsf@ferrier.me.uk> <83fvc5ni0u.fsf@gnu.org> <87k31fwwyv.fsf@ferrier.me.uk> <87bnmq9ibf.fsf@ferrier.me.uk> <87lhlrx5fc.fsf@building.gnus.org> <878uhrcr5l.fsf@building.gnus.org> <83sifzjflk.fsf@gnu.org> <87egric2ki.fsf_-_@violet.siamics.net> <83387ycjmb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1419908715 29756 80.91.229.3 (30 Dec 2014 03:05:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2014 03:05:15 +0000 (UTC) Cc: ivan@siamics.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 30 04:05:07 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Y5n7K-0006A4-Ml for ged-emacs-devel@m.gmane.org; Tue, 30 Dec 2014 04:05:06 +0100 Original-Received: from localhost ([::1]:35459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5n7J-0005CO-P2 for ged-emacs-devel@m.gmane.org; Mon, 29 Dec 2014 22:05:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5n76-0005C0-2p for emacs-devel@gnu.org; Mon, 29 Dec 2014 22:04:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5n75-0001Cy-2y for emacs-devel@gnu.org; Mon, 29 Dec 2014 22:04:52 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:4823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5n71-0001CV-Hj; Mon, 29 Dec 2014 22:04:47 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsPAOwQflRFpY0B/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgnWWQEBAQEGAQEBAR6QDGMHhEgFiwGkLoF4hBkhgncBAQE X-IPAS-Result: AjsPAOwQflRFpY0B/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgnWWQEBAQEGAQEBAR6QDGMHhEgFiwGkLoF4hBkhgncBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="104003457" Original-Received: from 69-165-141-1.dsl.teksavvy.com (HELO ceviche.home) ([69.165.141.1]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Dec 2014 22:04:46 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id C1203660FB; Mon, 29 Dec 2014 22:04:46 -0500 (EST) In-Reply-To: <83387ycjmb.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 Dec 2014 21:59:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:180875 Archived-At: >> I would actually welcome a new text-property which lets the wrap-column >> be set locally to a different value (ideally, this should also allow >> specifying that some part of the text should be word-wrapped while >> others should be truncated). > This is too vague. Unsurprisingly, yes. > On what text will this property be put? E.g., it cannot be on the > part that could be after the wrap point, so it will probably have to > be on the first character of a line. I was thinking of placing on the whole wrappable chunk of text. But if that's inconvenient, it can be placed elsewhere. The first char of the line sounds usable as well. > Next, what is the extent of text for which this takes effect? IOW, > where does this setting end? Either at the end of the line, or as soon as the text-property is not present any more. > There are also issues with cursor placement and continuation > glyphs/bitmaps. I'd expect the continuation glyphs to be placed in the fringe as usual. As for cursor placement, I'm not sure what issues that entails (I can't think of any situation where it's not clear where the cursor should be drawn, ideally). > This all needs to be decided before it can be implemented. To some extent the implementation can constrain the design. Stefan