From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Lindner Newsgroups: gmane.emacs.help Subject: align-regexp not working as intended Date: Mon, 18 Mar 2013 11:15:25 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1363601752 19320 80.91.229.3 (18 Mar 2013 10:15:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Mar 2013 10:15:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 18 11:16:18 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1UHX73-0004Yo-7y for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Mar 2013 11:16:17 +0100 Original-Received: from localhost ([::1]:34959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHX6g-0007eA-8H for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Mar 2013 06:15:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHX6K-0007e1-JJ for help-gnu-emacs@gnu.org; Mon, 18 Mar 2013 06:15:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHX6F-0008Gp-E6 for help-gnu-emacs@gnu.org; Mon, 18 Mar 2013 06:15:32 -0400 Original-Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:55471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHX6F-0008Gf-4I for help-gnu-emacs@gnu.org; Mon, 18 Mar 2013 06:15:27 -0400 Original-Received: by mail-we0-f180.google.com with SMTP id k14so4631688wer.11 for ; Mon, 18 Mar 2013 03:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=google; h=mime-version:x-received:sender:x-google-sender-delegation :x-originating-ip:date:x-google-sender-auth:message-id:subject:from :to:content-type; bh=t8Lzj4n7p4xrrEVAFQpxWyNnI/CB2rVA5MpIM4q4pSA=; b=lhW9XQM5BW0aAdy3GivU4NvrikL2NLlXW+cNmVkBJWj4RgMooef1SsSZEY0b0RzKKq Pc6A75kuvQ96Ki1aYN+tR1+M8qRIqJOb/zyeCFZ7/496sjZnVk7Y6KZbHwB9YtSatvaS WcJRarAlxmxgA1jRhcj0rkf80pHDpFnKQzQPw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:x-google-sender-delegation :x-originating-ip:date:x-google-sender-auth:message-id:subject:from :to:content-type:x-gm-message-state; bh=t8Lzj4n7p4xrrEVAFQpxWyNnI/CB2rVA5MpIM4q4pSA=; b=Ns+l+pxm/REx58G5gx+UMvi5E1BKef+F9qQUqdOOndvCAAxdIdqxVUHrAUgXFoSUIY eZvKPTtflmRjLN2JeCgzyjk6qT2pTxzOPPb+nZqV4rXy3XbmyELFiPPc4hlpNJk0JCqH qTwj9pmTdL1sCzx32WsLITB1Aum/AdNA/8PzM2zGlbolumAw8xWQWB51yBUgnb10NM9w 45dAABaV7lEvvxxM0wlqhf0IueM2t93NRUNPSNYSZs5eqs3k+GItkDRsaEnW/K3vaqEZ 03Dhf4nIKsBGXSH+msBwzSPaeoBjVbt26rN22864/3+MKFCI+upo0bp7DM/JjSlGc1j7 VRow== X-Received: by 10.194.82.34 with SMTP id f2mr23681605wjy.25.1363601725618; Mon, 18 Mar 2013 03:15:25 -0700 (PDT) X-Google-Sender-Delegation: florian.lindner@xgm.de Original-Received: by 10.180.92.132 with HTTP; Mon, 18 Mar 2013 03:15:25 -0700 (PDT) X-Originating-IP: [129.187.68.60] X-Google-Sender-Auth: 5t9zQngTwEvx4wRg_LVB8XkcG9w X-Gm-Message-State: ALoCoQkw6xsOZfqKB8u+S5rENwONNSWSNiCYpZqc76P0CeLHJVX2at6GxjUHt/gHmgWcmJHh0/S5 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89576 Archived-At: Hello, on my Emacs 24.2.1 7 / Arch align-regexp is not working like I expect it to: I have a latex table: & $C_D$ & $C_L$ & $C_M$ & $C_D$ & $C_L$ & $C_M$ & $C_D$ & $C_L$ & $C_M$ \\ \hline 5-Spoke & $0.640$ & $0.396$ & $\approx 0$ & $0.599$ & $0.394$ & $0.017$ & $0.599$ & $0.356$ & $0.019$ \\ 7-Spoke & $0.646$ & $0.407$ & $0.0017$ & $0.592$ & $0.377$ & $0.0167$ & $0.606$ & $0.349$ & $0.0280$ \\ DA Wheel & $0.649$ & $0.421$ & $-0.0004$ & $0.607$ & $0.392$ & $0.0145$ & $0.614$ & $0.384$ & $0.024$ \\ GenWheel Open & $0.640$ & $0.330$ & $0.0012$ & $0.613$ & $0.253$ & $0.018$ & $0.660$ & $0.201$ & $0.031$ \\ GenWheel Closed & $0.617$ & $0.302$ & $0.0015$ & $0.579$ & $0.280$ & $0.0206$ & $0.580$ & $0.281$ & $0.0206$ \\ This should be aligned at the &: M-x align-regexp & with the part above as active region gives me: & $C_D$ & $C_L$ & $C_M$ & $C_D$ & $C_L$ & $C_M$ & $C_D$ & $C_L$ & $C_M$ \\ \hline 5-Spoke & $0.640$ & $0.396$ & $\approx 0$ & $0.599$ & $0.394$ & $0.017$ & $0.599$ & $0.356$ & $0.019$ \\ 7-Spoke & $0.646$ & $0.407$ & $0.0017$ & $0.592$ & $0.377$ & $0.0167$ & $0.606$ & $0.349$ & $0.0280$ \\ DA Wheel & $0.649$ & $0.421$ & $-0.0004$ & $0.607$ & $0.392$ & $0.0145$ & $0.614$ & $0.384$ & $0.024$ \\ GenWheel Open & $0.640$ & $0.330$ & $0.0012$ & $0.613$ & $0.253$ & $0.018$ & $0.660$ & $0.201$ & $0.031$ \\ GenWheel Closed & $0.617$ & $0.302$ & $0.0015$ & $0.579$ & $0.280$ & $0.0206$ & $0.580$ & $0.281$ & $0.0206$ \\ (you should swith your font to fixed-width now) The align is fine at the first columns but somehow got off later... What is the problem here? If there is some problem with mail reader introduced line breaks or font width, the entire posting is available here: http://pastebin.com/raw.php?i=3JZiKiaS Thanks! Florian