Discussion:
FVWM: Quoting of style name with quotes - do I need them?
Oleksandr Gavenko
2014-01-09 22:55:24 UTC
Permalink
According to fvwm(1) QUOTING section I don't need quote characters in:

Style "*" ...
Style "emacs" ...
Style "mc-*" ...

and this snippet can be rewritten as:

Style * ...
Style emacs ...
Style mc-* ...

The only thing why quotes is useful - syntax hilighting in Emacs fvwm-mode so
second word in:

Style "emacs" StartsOnPage 2 0 0

look highlighted if in quotes.

http://www.fvwm.org/documentation/faq/ usually doesn't use quotes for Style
except a few times.

FVWM-Crystal and Fvwm-Nightshade avoid quote characters at all for Style...

Is quotes good practice or better to avoid them?

Do * and ? preserve their special meaning in quoted string for Style (I guess
so as practice shown)?
--
Best regards!
Thomas Adam
2014-01-09 22:59:42 UTC
Permalink
Post by Oleksandr Gavenko
Style "*" ...
Style "emacs" ...
Style "mc-*" ...
Correct.
Post by Oleksandr Gavenko
Is quotes good practice or better to avoid them?
Avoid; there's very few reasons to use them.
Post by Oleksandr Gavenko
Do * and ? preserve their special meaning in quoted string for Style (I guess
so as practice shown)?
Yes; this isn't the shell.

-- Thomas Adam
Bert Geens
2014-01-20 09:57:47 UTC
Permalink
Post by Oleksandr Gavenko
Style "*" ...
Style "emacs" ...
Style "mc-*" ...
Style * ...
Style emacs ...
Style mc-* ...
The only thing why quotes is useful - syntax hilighting in Emacs fvwm-mode so
Style "emacs" StartsOnPage 2 0 0
look highlighted if in quotes.
Assuming you use fvwm-mode from
https://github.com/theBlackDragon/fvwm-mode (or its "old" home
http://lair.be/projects_fvwm-mode.php) then the highlighting is because
stuff in double quotes is highlighted as a string.

I'll into highlighting this bit of the Style definition as
string regardless of it being quoted.

Regards,

Bert
--
Fortuna vitrea est; tum cum splendet, fragintur.
Bert Geens
2014-01-20 14:07:21 UTC
Permalink
Post by Bert Geens
Post by Oleksandr Gavenko
Style "*" ...
Style "emacs" ...
Style "mc-*" ...
Style * ...
Style emacs ...
Style mc-* ...
The only thing why quotes is useful - syntax hilighting in Emacs fvwm-mode so
Style "emacs" StartsOnPage 2 0 0
look highlighted if in quotes.
Assuming you use fvwm-mode from
https://github.com/theBlackDragon/fvwm-mode (or its "old" home
http://lair.be/projects_fvwm-mode.php) then the highlighting is because
stuff in double quotes is highlighted as a string.
I'll into highlighting this bit of the Style definition as
string regardless of it being quoted.
Firtly apologies for the abhorrent spelling in my previous email.

I just implemented this during a break. Quotes or no quotes should be
highlighted the same now.
--
Fortuna vitrea est; tum cum splendet, fragintur.
Oleksandr Gavenko
2014-01-22 22:14:53 UTC
Permalink
Post by Bert Geens
Post by Oleksandr Gavenko
The only thing why quotes is useful - syntax hilighting in Emacs fvwm-mode so
Style "emacs" StartsOnPage 2 0 0
look highlighted if in quotes.
Assuming you use fvwm-mode from
https://github.com/theBlackDragon/fvwm-mode (or its "old" home
http://lair.be/projects_fvwm-mode.php) then the highlighting is because
stuff in double quotes is highlighted as a string.
I clone theBlackDragon, a long before this mode came in Debian, where I use
it. But modern releases omit it.

The only thing that surprise me that fvwm-mode doesn't released to any of
Emacs package repositories:

(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
))
Post by Bert Geens
I'll into highlighting this bit of the Style definition as
string regardless of it being quoted.
Will be nice to have distinct stylename face from options face!

Style/MenuStyle/FocusStyle
--
Best regards!
Jonathan Kotta
2014-01-30 16:59:51 UTC
Permalink
Post by Oleksandr Gavenko
The only thing that surprise me that fvwm-mode doesn't released to any of
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
))
I just submitted fvwm-mode to melpa. Should be there soon.
--
Thanks,

Jonathan Kotta

Hofstadter's Law:
It always takes longer than you expect, even
when you take into account Hofstadter's Law.
Bert Geens
2014-02-10 12:45:28 UTC
Permalink
Post by Jonathan Kotta
Post by Oleksandr Gavenko
The only thing that surprise me that fvwm-mode doesn't released to any of
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
))
I just submitted fvwm-mode to melpa. Should be there soon.
Seems it's in melpa now, thank you for taking the time to submit it!

Kind regards,

Bert Geens
--
Fortuna vitrea est; tum cum splendet, fragintur.
Bert Geens
2014-02-10 13:09:00 UTC
Permalink
Post by Oleksandr Gavenko
Post by Bert Geens
Post by Oleksandr Gavenko
The only thing why quotes is useful - syntax hilighting in Emacs fvwm-mode so
Style "emacs" StartsOnPage 2 0 0
look highlighted if in quotes.
Assuming you use fvwm-mode from
https://github.com/theBlackDragon/fvwm-mode (or its "old" home
http://lair.be/projects_fvwm-mode.php) then the highlighting is because
stuff in double quotes is highlighted as a string.
I clone theBlackDragon, a long before this mode came in Debian, where I use
it. But modern releases omit it.
Heh, I wasn't aware of this. Do you perchance remember what the package
was called? I'd be interested to see why they chose to remove it.

Kind regards,

Bert Geens

Loading...