From: Etienne Prud'homme <e.e.f.prudhomme@gmail.com>
To: 23238@debbugs.gnu.org
Subject: bug#23238: [PATCH] Fix alignement rule for CSS
Date: Thu, 7 Apr 2016 13:30:31 -0400 [thread overview]
Message-ID: <20160407133031.5de081ef@ThinkPax> (raw)
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
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.
[-- Attachment #2: 0001-Fix-alignement-rule-for-CSS.patch --]
[-- Type: text/x-patch, Size: 863 bytes --]
From 0b50ef758085624a94eead9826eaf42e688e3f76 Mon Sep 17 00:00:00 2001
From: Etienne <etienne@ThinkPax>
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
next reply other threads:[~2016-04-07 17:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 17:30 Etienne Prud'homme [this message]
2016-04-10 21:35 ` bug#23238: [PATCH] Fix alignement rule for CSS Simen Heggestøyl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160407133031.5de081ef@ThinkPax \
--to=e.e.f.prudhomme@gmail.com \
--cc=23238@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.