From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Enabling truncate-lines on a per-line basis Date: Sat, 05 Dec 2009 14:05:43 -0500 Organization: UseNetServer.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260042227 23299 80.91.229.12 (5 Dec 2009 19:43:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 19:43:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 20:43:40 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NH0Xb-0004Ne-Hn for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 20:43:40 +0100 Original-Received: from localhost ([127.0.0.1]:40900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH0Xb-0003yT-9f for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 14:43:39 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!TEKSAVVY.COM-Free-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:pLOZ2vaEumtrUJdNt966orBYgwE= Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 16 Original-X-Trace: beea74b1aaf07e0003b4728753 Original-Xref: news.stanford.edu gnu.emacs.help:175370 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70446 Archived-At: >>> Maybe you could set the display text property on each line (starting >>> just before the right margin), to emulate truncate-lines. >> Nope, text from the 'display' property text still wraps. Also, you >> can't navigate through it with the point. :( > I meant, if you want the buffer text truncated at column N, set the display > property at column N - 1 through the rest of the line to a single character > (e.g. U+2026 HORIZONTAL ELLIPSIS or U+22EF MIDLINE HORIZONTAL ELLIPSIS) to > indicate truncation. That can sadly be a lot more tricky that you'd like (even without getting into proportional fonts, you have the problem of fixed-width fonts but with varying facs giving varying font-sizes, or TABs, or \NNN escape sequences, or images, or ...). Stefan