From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.devel Subject: Re: the overloading of `tab-width' Date: 15 Jun 2002 14:21:27 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <1024165287.12055.591.camel@space-ghost> References: <1024162700.14414.578.camel@space-ghost> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-qQnW2qMqmbEFAhEeZibI" X-Trace: main.gmane.org 1024165838 4780 127.0.0.1 (15 Jun 2002 18:30:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Jun 2002 18:30:38 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17JIJq-0001Ez-00 for ; Sat, 15 Jun 2002 20:30:38 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17JIjD-00019q-00 for ; Sat, 15 Jun 2002 20:56:51 +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 17JIJf-000650-00; Sat, 15 Jun 2002 14:30:27 -0400 Original-Received: from monk.debian.net ([216.185.54.61] helo=monk.verbum.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17JIJ9-0005u4-00 for ; Sat, 15 Jun 2002 14:29:55 -0400 Original-Received: from space-ghost.verbum.private (freedom.cis.ohio-state.edu [164.107.60.183]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "space-ghost.verbum.org", Issuer "monk.verbum.org" (verified OK)) by monk.verbum.org (Postfix (Debian/GNU)) with ESMTP id EC7F974000BA for ; Sat, 15 Jun 2002 14:29:54 -0400 (EDT) Original-Received: by space-ghost.verbum.private (Postfix (Debian/GNU), from userid 1000) id C16748FCAFF; Sat, 15 Jun 2002 14:21:27 -0400 (EDT) Original-To: emacs-devel@gnu.org In-Reply-To: <1024162700.14414.578.camel@space-ghost> X-Mailer: Ximian Evolution 1.0.3 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:4894 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4894 --=-qQnW2qMqmbEFAhEeZibI Content-Type: text/plain Content-Transfer-Encoding: 7bit Ah, and you probably need the patch for xdisp.c... --=-qQnW2qMqmbEFAhEeZibI Content-Disposition: attachment; filename=xdisp.patch Content-Transfer-Encoding: quoted-printable Content-Type: text/x-patch; name=xdisp.patch; charset=ISO-8859-1 Index: src/xdisp.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/emacs/emacs/src/xdisp.c,v retrieving revision 1.755 diff -u -d -r1.755 xdisp.c --- src/xdisp.c 12 Jun 2002 09:37:34 -0000 1.755 +++ src/xdisp.c 15 Jun 2002 18:20:51 -0000 @@ -1614,7 +1614,8 @@ it->redisplay_end_trigger_charpos =3D XINT (w->redisplay_end_trigger); =20 /* Correct bogus values of tab_width. */ - it->tab_width =3D XINT (current_buffer->tab_width); + it->tab_width =3D INTEGERP (current_buffer->display_tab_width) ? + current_buffer->display_tab_width : XINT (current_buffer->tab_width); if (it->tab_width <=3D 0 || it->tab_width > 1000) it->tab_width =3D 8; =20 --=-qQnW2qMqmbEFAhEeZibI--