From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuele Giaquinta Newsgroups: gmane.emacs.devel Subject: Re: termios tab expansion on darwin Date: Mon, 20 Oct 2008 22:53:44 +0200 Message-ID: <20081020205344.GB39757@orion.lan> References: <20080707230842.GE48604@orion.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224542201 10223 80.91.229.12 (20 Oct 2008 22:36:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 22:36:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 21 00:37:40 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ks1mN-0001ZF-37 for ged-emacs-devel@m.gmane.org; Mon, 20 Oct 2008 22:55:07 +0200 Original-Received: from localhost ([127.0.0.1]:49074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ks1lH-0002Um-Rn for ged-emacs-devel@m.gmane.org; Mon, 20 Oct 2008 16:53:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ks1lD-0002US-Dw for emacs-devel@gnu.org; Mon, 20 Oct 2008 16:53:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ks1lB-0002U2-QR for emacs-devel@gnu.org; Mon, 20 Oct 2008 16:53:54 -0400 Original-Received: from [199.232.76.173] (port=35462 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ks1lB-0002Tz-La for emacs-devel@gnu.org; Mon, 20 Oct 2008 16:53:53 -0400 Original-Received: from gv-out-0910.google.com ([216.239.58.184]:2359) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ks1lB-00068D-6w for emacs-devel@gnu.org; Mon, 20 Oct 2008 16:53:53 -0400 Original-Received: by gv-out-0910.google.com with SMTP id i36so399631gve.17 for ; Mon, 20 Oct 2008 13:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to; bh=fGr1uzlObvyD99ZnbJ0dp/86LMnekRMzZXOfz41i5q8=; b=xufZoTBnOTIBpAqjJYZxB1exrVlUyG+NWapy5SNa/3roqTWUb+tEC+3PYgWJrtQDsN QqGkLea5ofrcDz8eXnJtyAypT0ADYzyKyvGhdf6QW1ClYEIsiaLPNxMKY278pjt3PirM GqN2ThEiK1kTwT45SlqqzQqV3Tb9gCJJDDP5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=Gs7+JCh1Jd1QFyDLrjQ25B4ptU4rLgw/prkvEXiv9iT38vTyQcqaruqGvx+KtKEjfD O3ewrThiBYrcC945vlMHbgVoRWlKNUxBIttbaDmu8CHOIjOv5MaPpZ4t7G1fcDhcPOfb 2gSX2tTHVDrEiU41EbovR19B4QSzUnPcHxwuA= Original-Received: by 10.86.26.11 with SMTP id 11mr7194539fgz.71.1224536031500; Mon, 20 Oct 2008 13:53:51 -0700 (PDT) Original-Received: from localhost ( [87.6.105.4]) by mx.google.com with ESMTPS id d4sm12414364fga.5.2008.10.20.13.53.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 20 Oct 2008 13:53:47 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20080707230842.GE48604@orion.lan> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104700 Archived-At: On Tue, Jul 08, 2008 at 01:08:42AM +0200, Emanuele Giaquinta wrote: > the os headers in src/s/ for *BSD and darwin define TAB3 to OXTABS, > which is the equivalent of TAB3 on those systems to control tab > expansion. On darwin-8 sys/termios.h defines TAB3 though (to a no-op > flag it seems), and since sysdep.c includes config.h (which includes > the os header in s/) before sys/termios.h, TAB3 is redefined (as > it can be seen using -Wsystem-headers) to the no-op flag. The effect > is that tab expansion is not disabled, so if it is originally active > for the terminal from which emacs is started (which is the case for > xterm) it will cause cursor movements performed with tabs to corrupt > the display. The attached patch fixes it, not sure if it is the best > approach though. ping? Emanuele