From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: display question: should ^N and \NNN widths be fixed? Date: Fri, 24 May 2002 16:20:39 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200205242114.g4OLE2T02822@aztec.santafe.edu> Reply-To: ttn@glug.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1022282820 9738 127.0.0.1 (24 May 2002 23:27:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 24 May 2002 23:27:00 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17BOSa-0002Wx-00 for ; Sat, 25 May 2002 01:27:00 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17BOig-0007Zs-00 for ; Sat, 25 May 2002 01:43:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17BOSp-00060W-00; Fri, 24 May 2002 19:27:15 -0400 Original-Received: from ca-crlsbd-u5-c4a-a-172.crlsca.adelphia.net ([24.48.214.172] helo=giblet) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17BOQI-0005sW-00; Fri, 24 May 2002 19:24:38 -0400 Original-Received: from ttn by giblet with local (Exim 3.35 #1 (Debian)) id 17BOMR-0007c6-00; Fri, 24 May 2002 16:20:39 -0700 Original-To: rms@gnu.org In-Reply-To: <200205242114.g4OLE2T02822@aztec.santafe.edu> (message from Richard Stallman on Fri, 24 May 2002 15:14:02 -0600 (MDT)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4362 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4362 From: Richard Stallman Date: Fri, 24 May 2002 15:14:02 -0600 (MDT) Currently the functions in indent.c don't handle variable width fonts at all. Extending them to do so is an important project. When that is done, I expect it won't be too hard to handle these two cases also. ok. here's my proposal for doing this -- i hope everyone picks it apart and/or lends expertise to fill the gaps so that emacs can have the best variable-width font support possible: - establish iso-type contour + make indent.c C column vars float + make callers of indent.c C functions cast retval to int + make indent.c C getter functions compute and return float - make callers of indent.c C functions cast args to float - make indent.c C setter functions accept floats - selectively expand contour to propagate float usage - determine criteria for propagation - determine which funcs/vars fit that criteria (maybe all?) - do the changes where needed - remove casts - fix resulting breakage - introduce font sensitivity in column computations - unify current_column / current_column_1 / string_display_width - consult font text-property <-- potential race condition? - (re-)optimize common cases - [maybe] extend width-run cache facilities - [maybe] do other caching some of these (sub)tasks can (and probably should) be done concurrently. that's not noted here explicitly, but should be easy enough to figure out for anyone who wants to join in. logistical questions: is it ok to make a branch in cvs? what should it be named? where can we check in this kind of info for future reference? is it ok to check in the above in etc/TODO? if no, then where? (IMHO, digging through spam-ridden mailing list archives is neither fun nor effective.) thi