From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Two adjacent spaces and tabify Date: Sun, 9 Nov 2014 15:33:07 +0000 Message-ID: <20141109153307.GA3681@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1415547257 13780 80.91.229.3 (9 Nov 2014 15:34:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Nov 2014 15:34:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 09 16:34:10 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XnUVF-0005eD-4F for ged-emacs-devel@m.gmane.org; Sun, 09 Nov 2014 16:34:09 +0100 Original-Received: from localhost ([::1]:39098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnUVE-00027j-MN for ged-emacs-devel@m.gmane.org; Sun, 09 Nov 2014 10:34:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnUV3-00027Y-M0 for emacs-devel@gnu.org; Sun, 09 Nov 2014 10:34:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnUUv-0007uo-Dm for emacs-devel@gnu.org; Sun, 09 Nov 2014 10:33:57 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:61725 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnUUu-0007ts-V2 for emacs-devel@gnu.org; Sun, 09 Nov 2014 10:33:49 -0500 Original-Received: (qmail 99239 invoked by uid 3782); 9 Nov 2014 15:33:45 -0000 Original-Received: from acm.muc.de (pD951B193.dip0.t-ipconnect.de [217.81.177.147]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 09 Nov 2014 16:33:44 +0100 Original-Received: (qmail 4163 invoked by uid 1000); 9 Nov 2014 15:33:07 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176624 Archived-At: Hello, Emacs. I have some elisp source on which tabify has been run. This is fine and good, but in many places in comments (and even strings), two spaces have been replaced by a tab. Even worse, in many other places, two spaces have been replaced by tab, space. With a tab-width of 8, one of these can be expected to occur every fourth end of sentence, more or less. This is not good. It is easy enough to configure tabify such that only spaces at the beginning of a line are candidates for tabs, but that might wipe out desired tabs (for example, in commented out code). Does anybody already have a solution for this problem, or any good ideas on how to fix the current state (or even how to stop it happening in the first place)? Thanks! -- Alan Mackenzie (Nuremberg, Germany).