From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Herring, Davis" Newsgroups: gmane.emacs.devel Subject: Re: Variable-width font indentation Date: Tue, 6 Mar 2018 04:05:37 +0000 Message-ID: <64ad488a4aa74c37b9711bf89d1d8abb@lanl.gov> References: <87inaiss6l.fsf@web.de> <6FCF6ACA-4F29-4B6B-BE9D-D7130C6E9495@gnu.org> <87fu5moe4c.fsf@web.de> <877eqyocro.fsf@web.de> <83zi3uz4nb.fsf@gnu.org> <0b1dd3fa-e0b0-ed20-a256-dd92d1c1826f@dancol.org> <8bc3c4c7-dfc7-987a-95e7-bd309e2326c6@cs.ucla.edu> <03118DC0-39DA-4AB5-980E-A33809B9A5EE@raeburn.org> <83vaeas8uz.fsf@gnu.org> <83lgf6s3aa.fsf@gnu.org>, NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520310471 19502 195.159.176.226 (6 Mar 2018 04:27:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2018 04:27:51 +0000 (UTC) Cc: Paul Eggert To: =?iso-8859-1?Q?Cl=E9ment_Pit-Claudel?= , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 06 05:27:47 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1et4CR-0003g0-BR for ged-emacs-devel@m.gmane.org; Tue, 06 Mar 2018 05:27:39 +0100 Original-Received: from localhost ([::1]:53182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et4ET-0001FU-Uq for ged-emacs-devel@m.gmane.org; Mon, 05 Mar 2018 23:29:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et3sZ-0005zA-Gl for emacs-devel@gnu.org; Mon, 05 Mar 2018 23:07:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et3sT-000697-Ax for emacs-devel@gnu.org; Mon, 05 Mar 2018 23:07:06 -0500 Original-Received: from proofpoint7.lanl.gov ([204.121.3.46]:40762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1et3sT-000687-2k for emacs-devel@gnu.org; Mon, 05 Mar 2018 23:07:01 -0500 Original-Received: from pps.filterd (proofpoint7.lanl.gov [127.0.0.1]) by proofpoint7.lanl.gov (8.16.0.21/8.16.0.21) with SMTP id w2643Tj8036608; Mon, 5 Mar 2018 21:05:49 -0700 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by proofpoint7.lanl.gov with ESMTP id 2gftydng7x-1; Mon, 05 Mar 2018 21:05:49 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 43C9913D114F; Mon, 5 Mar 2018 21:05:49 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from EXG16-P-MBX02.win.lanl.gov (exg16-p-mbx02.win.lanl.gov [128.165.106.182]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 2E2A313D1135; Mon, 5 Mar 2018 21:05:49 -0700 (MST) Original-Received: from EXG16-P-MBX03.win.lanl.gov (128.165.106.183) by EXG16-P-MBX02.win.lanl.gov (128.165.106.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1415.2; Mon, 5 Mar 2018 21:05:43 -0700 Original-Received: from EXG16-P-MBX03.win.lanl.gov ([fe80::c837:e407:296a:c173]) by EXG16-P-MBX03.win.lanl.gov ([fe80::c837:e407:296a:c173%2]) with mapi id 15.01.1415.002; Mon, 5 Mar 2018 21:05:37 -0700 Thread-Topic: Variable-width font indentation Thread-Index: AQHTtMCarybDDX1nBU2EqFCt7t9t9aPCbIL+ In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [128.165.106.201] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2018-03-06_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=688 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803060048 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 204.121.3.46 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:223320 Archived-At: > I don't know of a good solution to this problem: in general, > there's not enough information to distinguish 'indentation' > spaces (the two spaces before `printf (', `pr ()', and `return 0') > and 'line-up' spaces (the spaces before `char ()'). This is of course an argument in favor of "smart tabs" : you make each tab occupy some user-specified width= , and _then_ count one character per space to do alignment. That doesn't h= elp if those tabs aren't present, although heuristics to detect certain exa= ct numbers of spaces, comparing to the previous lines and looking for enclo= sing delimiters, might close enough of the gap between "treat all spaces as= ASCII art alignment" and the ideal. Davis=