From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Etienne Prud'homme Newsgroups: gmane.emacs.bugs Subject: bug#23238: [PATCH] Fix alignement rule for CSS Date: Thu, 7 Apr 2016 13:30:31 -0400 Message-ID: <20160407133031.5de081ef@ThinkPax> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/.nSglL__sgeIY1ZPCZ5DCGv" X-Trace: ger.gmane.org 1460065889 17361 80.91.229.3 (7 Apr 2016 21:51:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Apr 2016 21:51:29 +0000 (UTC) To: 23238@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 07 23:51:18 2016 Return-path: Envelope-to: geb-bug-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 1aoHpd-0006rk-AA for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Apr 2016 23:51:17 +0200 Original-Received: from localhost ([::1]:52192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoHpc-0005EA-JV for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Apr 2016 17:51:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoEx2-0000yW-TU for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 14:46:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoEuH-00088Z-7e for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 14:43:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoEuH-00088V-3b for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 14:43:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoEC3-0002gq-Op for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 13:58:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoEBu-0003Lg-8a for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 13:58:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoEBu-0003Lc-5L for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 13:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aoEBt-0005X2-Vt for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 13:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Etienne Prud'homme Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Apr 2016 17:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23238 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146005183821205 (code B ref -1); Thu, 07 Apr 2016 17:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Apr 2016 17:57:18 +0000 Original-Received: from localhost ([127.0.0.1]:53168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoEBC-0005Vx-H7 for submit@debbugs.gnu.org; Thu, 07 Apr 2016 13:57:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoEBB-0005Vl-0r for submit@debbugs.gnu.org; Thu, 07 Apr 2016 13:57:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoEB5-00030c-10 for submit@debbugs.gnu.org; Thu, 07 Apr 2016 13:57:11 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoEB4-00030T-Tp for submit@debbugs.gnu.org; Thu, 07 Apr 2016 13:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoEAz-0002gq-On for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 13:57:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoDlO-00032L-5Z for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 13:30:41 -0400 Original-Received: from mail-qg0-x241.google.com ([2607:f8b0:400d:c04::241]:34390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoDlN-00032E-Oj for bug-gnu-emacs@gnu.org; Thu, 07 Apr 2016 13:30:37 -0400 Original-Received: by mail-qg0-x241.google.com with SMTP id j35so7847392qge.1 for ; Thu, 07 Apr 2016 10:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version; bh=ZJhmh1DDvTr40D86h0wRzkrzxX2EDoQIiElxEIUtqxU=; b=rEjTDGfYVK7mEO3KDAfKopWUM/FqIkj70F9o1vX5VRWRbCJX79oljN87O8rZ+VdwW6 udyb3dU/W6tIk9bIynXOjmHRSh8xQNchfCKJe2gSbEH4rpLL0BqJeFk/En3U9kWNDUFg rlZEC+3apAae6XmtS1vdTBd02VfFyY9a/R5dfw6PuDQcgnHFrp1zHPRe7lkWLLNrAjNW PHFyqUrUbF64rgqgh1gFkqfJpoFqALGbZ0LtaYF0t0te6lymIPrNUeWU7g13IzrSOqyt qWpsHTxAOrgRePA15ujH+89s2ja2FyLMXbtzk6HTV+XiuhJv0apNMKBJqOikA7CdP3rq yK6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version; bh=ZJhmh1DDvTr40D86h0wRzkrzxX2EDoQIiElxEIUtqxU=; b=k9mW7LHFbB0LuvyO56GFCsnRnzD6TUmw6p4+8D7MEOjll3VVJc2svNww/06rlbM0zu elR8XexAUNmXJV2BDUJBcZ3zWyphhJDOJZcPr7vCDKRZ2qZ4jvtcv9+Lslc3kgOuhJYz B9N9zwIj2fN7/Xe39Vu3I8nERVOBu8FLKBqGGpIqw6b1gjliVMtAJudSmlL/C4nOJDdX 6R9aQEMnyiAXe0yT1bUH+ljlDMAFF7Dop7fyfSQGYWtBwtHcaDSewaFgdVwixE9Zl4jk +75U9P6OMEsydMOw6InX378u6RvJGxEccXnV0CKaey5M07grg5rYlfAd4+tCdumC5lRy +9Bg== X-Gm-Message-State: AD7BkJIJeO72Z4BlZ9VS+RE2bOgprYoN8u41zJFTsAWVDSqXp8Vayja2rNkxYrNAOVpvjA== X-Received: by 10.140.89.19 with SMTP id u19mr5438137qgd.90.1460050237117; Thu, 07 Apr 2016 10:30:37 -0700 (PDT) Original-Received: from ThinkPax ([173.199.65.2]) by smtp.gmail.com with ESMTPSA id w66sm3800263qgd.26.2016.04.07.10.30.36 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Apr 2016 10:30:36 -0700 (PDT) X-Mailer: Claws Mail 3.13.1 (GTK+ 2.24.23; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116171 Archived-At: --MP_/.nSglL__sgeIY1ZPCZ5DCGv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline The attached patch fixes a bug in `align-rules-list` for `css-declaration`. The Regex rule didn't recognize properties with more than one word like `background-color`. I've sent an email to asign@gnu.org and I still got no response. We shall consider this work as Copyright paperwork exempt since it's only one line. --MP_/.nSglL__sgeIY1ZPCZ5DCGv Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-Fix-alignement-rule-for-CSS.patch >From 0b50ef758085624a94eead9826eaf42e688e3f76 Mon Sep 17 00:00:00 2001 From: Etienne Date: Wed, 6 Apr 2016 17:05:41 -0400 Subject: [PATCH] Fix alignement rule for CSS * lisp/align.el (align-rules-list): Support CSS properties that have multiple words. Copyright-paperwork-exempt: yes --- lisp/align.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/align.el b/lisp/align.el index c3389dc..41519a5 100644 --- a/lisp/align.el +++ b/lisp/align.el @@ -577,7 +577,7 @@ The possible settings for `align-region-separate' are: (eq '- current-prefix-arg))))) (css-declaration - (regexp . "^\\s-*\\w+:\\(\\s-*\\).*;") + (regexp . "^\\s-*\\(?:\\w-?\\)+:\\(\\s-*\\).*;") (group . (1)) (modes . '(css-mode html-mode)))) "A list describing all of the available alignment rules. -- 2.8.1 --MP_/.nSglL__sgeIY1ZPCZ5DCGv--