unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#31338: none of the css-* defuns are available
@ 2018-05-01 20:30 積丹尼 Dan Jacobson
  2018-05-14 15:43 ` Simen Heggestøyl
  0 siblings, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2018-05-01 20:30 UTC (permalink / raw)
  To: 31338

We take a css file that is all on one line,
$ wc /tmp/o.css
   1  144 4835 /tmp/o.css
and try to reformat it.
$ emacs /tmp/o.css
But none of the css-* defuns are available,
M-x css-<TAB>
only shows css-mode.
And C-h m only shows prog-indent-sexp which is of no help.
emacs-version "25.2.2"

OK I ended up doing
(query-replace "}" "}
" nil (if (use-region-p) (region-beginning)) (if (use-region-p)
(region-end)) nil nil)
which was all I needed.





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

* bug#31338: none of the css-* defuns are available
  2018-05-01 20:30 bug#31338: none of the css-* defuns are available 積丹尼 Dan Jacobson
@ 2018-05-14 15:43 ` Simen Heggestøyl
  2018-05-14 21:51   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 4+ messages in thread
From: Simen Heggestøyl @ 2018-05-14 15:43 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 31338

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

CSS mode doesn't provide a function that re-formats a CSS file that is
all on one line. I think the closest you'll get is
`css-fill-paragraph', which re-formats whole selectors at a time.

Maybe it would be nice to make `css-fill-paragraph' interactive,
making that functionality easier to discover through `M-x'?

-- Simen

[-- Attachment #2: Type: text/html, Size: 412 bytes --]

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

* bug#31338: none of the css-* defuns are available
  2018-05-14 15:43 ` Simen Heggestøyl
@ 2018-05-14 21:51   ` 積丹尼 Dan Jacobson
  2018-06-24 12:32     ` Simen Heggestøyl
  0 siblings, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2018-05-14 21:51 UTC (permalink / raw)
  To: Simen Heggestøyl; +Cc: 31338

Well the whole thing needs to be documented giving examples of how one
is supposed to use the mode.

And then how to tackle e.g., Facebook and Google's CSS, which is all on
one line.





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

* bug#31338: none of the css-* defuns are available
  2018-05-14 21:51   ` 積丹尼 Dan Jacobson
@ 2018-06-24 12:32     ` Simen Heggestøyl
  0 siblings, 0 replies; 4+ messages in thread
From: Simen Heggestøyl @ 2018-06-24 12:32 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 31338-done

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

The mode's documentation string was extended in Emacs 26.1, please see
if you find the documentation there sufficient. Otherwise feel free to
provide concrete suggestions for further improvements.

I've updated the docstring to mention fill-paragraph too, which will
be visible in Emacs 26.2.

[-- Attachment #2: Type: text/html, Size: 406 bytes --]

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

end of thread, other threads:[~2018-06-24 12:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 20:30 bug#31338: none of the css-* defuns are available 積丹尼 Dan Jacobson
2018-05-14 15:43 ` Simen Heggestøyl
2018-05-14 21:51   ` 積丹尼 Dan Jacobson
2018-06-24 12:32     ` 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).