From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3109 invoked by alias); 16 Jan 2015 17:30:05 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 3094 invoked by uid 89); 16 Jan 2015 17:30:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f172.google.com Received: from mail-we0-f172.google.com (HELO mail-we0-f172.google.com) (74.125.82.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 16 Jan 2015 17:30:03 +0000 Received: by mail-we0-f172.google.com with SMTP id k11so21414710wes.3 for ; Fri, 16 Jan 2015 09:30:00 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.181.27.199 with SMTP id ji7mr8409205wid.76.1421429392945; Fri, 16 Jan 2015 09:29:52 -0800 (PST) Received: by 10.27.39.198 with HTTP; Fri, 16 Jan 2015 09:29:52 -0800 (PST) In-Reply-To: <83iog61xrl.fsf@gnu.org> References: <83k3149k5b.fsf@gnu.org> <837fwn2cvc.fsf@gnu.org> <83iog61xrl.fsf@gnu.org> Date: Fri, 16 Jan 2015 17:30:00 -0000 Message-ID: Subject: Re: [PATCH] TUI: Expand TABs into spaces From: Doug Evans To: Eli Zaretskii Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00473.txt.bz2 On Fri, Jan 16, 2015 at 8:43 AM, Eli Zaretskii wrote: >> Date: Fri, 16 Jan 2015 08:32:15 -0800 >> From: Doug Evans >> Cc: "gdb-patches@sourceware.org" >> >> >> 2015-01-03 Eli Zaretskii >> >> >> >> * tui/tui-regs.c (tui_register_format): Expand TABs into the >> >> appropriate number of spaces. >> >> >> >> * tui/tui-io.c (tui_puts, tui_redisplay_readline): Expand TABs >> >> into the appropriate number of spaces. >> >> I'd have to read the patch more to say it's ok, >> but one thing that is missing are comments >> explaining *why* we are expanding tabs into spaces. > > You mean, the fact that the Windows port of ncurses doesn't? Sure, > can do that. But note that a similar feature in displaying the source > doesn't have any such comments. Is that in relation to the tabset command? And is that to provide a knob so that source written with an expectation that \t was different than 8 can be made readable? Or is there existing code that is coping with these windows, umm, quirks?