unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#50345: 28.0.50; [PATCH] Filling holes in css-mode.el
@ 2021-09-02 18:46 Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-09-02 21:22 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-09-03  6:15 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 5+ messages in thread
From: Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-09-02 18:46 UTC (permalink / raw)
  To: 50345

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]


Hello!

In $DAYJOB, right now we are working on a larger redesign of our
customer facing web app.  As such I'm knee deep in css these days.  I've
noticed there are some holes in the completion keywords, and I'd like to
start addressing those.  Hence the first, simple starting-point patch.
Before I continue adding patches, I'd like some pointers as to how I
should structure them.  For example - lots of keywords are now shared
between grid and flex. An example is `align-content', which is now
under a section devoted to flex.  However, there are some newer,
grid-related completion keywords that are not in this section, nor
anywhere else.  See line 306 in css-mode.el. I guess the solution here
is to add `start' and `end' there, but I want to check first.

Should I add several, smaller patches, or one big correction of most of
the things I see at the moment?  

Best,
Theodor Thornhill



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-selection-to-css-pseudo-element-ids.patch --]
[-- Type: text/x-patch, Size: 853 bytes --]

From b0a4ec120d3371982878e523f33c34bed59c1371 Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <theo@thornhill.no>
Date: Thu, 2 Sep 2021 20:27:19 +0200
Subject: [PATCH] Add selection to css-pseudo-element-ids

 * lisp/textmodes/css-mode.el (css-pseudo-element-ids): Add selection
 as an element id
---
 lisp/textmodes/css-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 61a2f6b3bc..3bcd9c9766 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -57,7 +57,7 @@
   "Identifiers for pseudo-classes.")
 
 (defconst css-pseudo-element-ids
-  '("after" "before" "first-letter" "first-line")
+  '("after" "before" "first-letter" "first-line" "selection")
   "Identifiers for pseudo-elements.")
 
 (defconst css-at-ids
-- 
2.30.1 (Apple Git-130)


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

end of thread, other threads:[~2021-09-03  9:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 18:46 bug#50345: 28.0.50; [PATCH] Filling holes in css-mode.el Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-02 21:22 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-03  7:46   ` Simen Heggestøyl
2021-09-03  9:08     ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-09-03  6:15 ` Lars Ingebrigtsen

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).