unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25373: 25.1.91; emacs align.el patch for CSS alignment
@ 2017-01-06  7:23 John Wiegley
  2017-01-06 16:43 ` Simen Heggestøyl
  0 siblings, 1 reply; 2+ messages in thread
From: John Wiegley @ 2017-01-06  7:23 UTC (permalink / raw)
  To: 25373

From: Le Wang <l26wang@gmail.com>

The regexp for CSS currently fails for the following CSS:

div.indented{
 margin-left: 2.0em;
 background: #ccccff;
 border:     1px solid red;}

because of the dash in "margin-left"

Here is a patch

--- c:/emacs/emacs-23.3/lisp/align.el   2011-01-08 12:45:14.000000000 +0800
+++ c:/Users/Le/cygwin_home/tmp/align.el        2011-08-28
00:28:28.966461600 +0800
@@ -578,7 +578,7 @@
                    (eq '- current-prefix-arg)))))

    (css-declaration
-     (regexp . "^\\s-*\\w+:\\(\\s-*\\).*;")
+     (regexp . "^\\s-*\\(?:\\w\\|\\s_\\)+:\\(\\s-*\\).*;")
     (group . (1))
     (modes . '(css-mode html-mode))))
  "A list describing all of the available alignment rules.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#25373: 25.1.91; emacs align.el patch for CSS alignment
  2017-01-06  7:23 bug#25373: 25.1.91; emacs align.el patch for CSS alignment John Wiegley
@ 2017-01-06 16:43 ` Simen Heggestøyl
  0 siblings, 0 replies; 2+ messages in thread
From: Simen Heggestøyl @ 2017-01-06 16:43 UTC (permalink / raw)
  To: John Wiegley; +Cc: 25373, Le Wang

This was fixed for Emacs 26.1 by commit d6ea6453f3d1696b
(https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23238).

-- Simen






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-06 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-06  7:23 bug#25373: 25.1.91; emacs align.el patch for CSS alignment John Wiegley
2017-01-06 16:43 ` Simen Heggestøyl

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).