3/7 In emacs 21, is there a way in Emacs-Lisp to detect whether emacs was
started with the "-r" switch? In C mode, the syntax colors are
different when I start emasc with and without "-r". I want to do the
same in my elisp code, but I can't find how this is done in cc-mode.el.
Thanks. -- yuen
\- are you sure what you are talking about is being done by the cc*.el
and not the font-lock package? also, it is likely they are checking
"inverse-video" than the argv. btw, who are you? i almost always
run emacs in a terminal window without any syntax highlighting,
so i havent looked at this deeply, but i'm guessing from
plausibility. --psb
"inverse-video" than the argv. btw, who are you? --psb
\_ Actually I'm not sure whether it's cc*.el or font-lock.el.
Whether I run "emacs" or "emacs -r", "inverse-video" is always
nil. -- yuen
\- the cmdline is parsed by the "startup.el" file.
[which in turn calls a function in $lisp/term/x-*.el
for "windowish" commands].
for "windowish" options].
if you want to test for reverse video, i guess the modern
way is to look in default-frame-alist. it sounds like you
know how to do that. i'd look in the frame properites,
not the command lien to do this. that is sort of the
point of the side-effects of the startup funcs. --psb
------------------------------------------------------
default-frame-alist's value is
((tool-bar-lines . 0)
(menu-bar-lines . 0)
(reverse . t))
Documentation:
Alist of default values for frame creation.
These may be set in your init file, like this:
(setq default-frame-alist '((width . 80) (height . ...
These override values given in window system configuration
data, including X Windows' defaults database. |