all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Difference when using a variable and a function
@ 2006-11-12  2:01 Ronald
  2006-11-12  2:46 ` Markus Triska
  0 siblings, 1 reply; 2+ messages in thread
From: Ronald @ 2006-11-12  2:01 UTC (permalink / raw)


1. (setq global-font-lock-mode t)
2. (global-font-lock-mode t)

I tried both in .emacs, the first doesn't work, the second do. Why? 

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

* Re: Difference when using a variable and a function
  2006-11-12  2:01 Difference when using a variable and a function Ronald
@ 2006-11-12  2:46 ` Markus Triska
  0 siblings, 0 replies; 2+ messages in thread
From: Markus Triska @ 2006-11-12  2:46 UTC (permalink / raw)


"Ronald" <followait@163.com> writes:

> 1. (setq global-font-lock-mode t)

,----
| global-font-lock-mode is a variable defined in `font-core.el'.
| ...
| Setting this variable directly does not take effect;
| either customize it (see the info node `Easy Customization')
| or call the function `global-font-lock-mode'.
`----

> I tried both in .emacs, the first doesn't work, the second do. Why?

In the function, additional things are done that otherwise aren't.

All the best! -- Markus

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

end of thread, other threads:[~2006-11-12  2:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-12  2:01 Difference when using a variable and a function Ronald
2006-11-12  2:46 ` Markus Triska

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.