aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2002-06-20 20:44:02 +0000
committerJason Rumney2002-06-20 20:44:02 +0000
commitafcca90b4e54a6b49af67e9ac011271e3ccfb36f (patch)
treef9d9ce0e2571e51f7064597c764e2a0e679e157b
parentd78b64a088414ff8f8d991e09c6f7ca144e0f1e1 (diff)
downloademacs-afcca90b4e54a6b49af67e9ac011271e3ccfb36f.tar.gz
emacs-afcca90b4e54a6b49af67e9ac011271e3ccfb36f.zip
Add MS-Windows specific docs for envvars
-rw-r--r--man/cmdargs.texi84
1 files changed, 73 insertions, 11 deletions
diff --git a/man/cmdargs.texi b/man/cmdargs.texi
index 67d3f714112..6f7e610b400 100644
--- a/man/cmdargs.texi
+++ b/man/cmdargs.texi
@@ -351,13 +351,14 @@ and here's how to do it in csh or tcsh:
351setenv ORGANIZATION "not very much" 351setenv ORGANIZATION "not very much"
352@end example 352@end example
353 353
354 When Emacs is uses the X Window System, it inherits the use 354 When Emacs uses the X Window System, it inherits the use
355of a large number of environment variables from the X libraries. See 355of a large number of environment variables from the X libraries. See
356the X documentation for more information. 356the X documentation for more information.
357 357
358@menu 358@menu
359* General Variables:: Environment variables that all versions of Emacs use. 359* General Variables:: Environment variables that all versions of Emacs use.
360* Misc Variables:: Certain system-specific variables. 360* Misc Variables:: Certain system-specific variables.
361* MS-Windows Registry:: An alternative to the environment on MS-Windows.
361@end menu 362@end menu
362 363
363@node General Variables 364@node General Variables
@@ -408,7 +409,7 @@ The location of the user's files in the directory tree; used for
408expansion of file names starting with a tilde (@file{~}). On MS-DOS, it 409expansion of file names starting with a tilde (@file{~}). On MS-DOS, it
409defaults to the directory from which Emacs was started, with @samp{/bin} 410defaults to the directory from which Emacs was started, with @samp{/bin}
410removed from the end if it was present. On Windows, the default value 411removed from the end if it was present. On Windows, the default value
411of @code{HOME} is @file{C:/}, the root directory of drive @file{C:}. 412of @env{HOME} is @file{C:/}, the root directory of drive @file{C:}.
412@item HOSTNAME 413@item HOSTNAME
413The name of the machine that Emacs is running on. 414The name of the machine that Emacs is running on.
414@item INCPATH 415@item INCPATH
@@ -434,7 +435,12 @@ variables is not set, the category defaults to the value of the
434@env{LANG} is not set. But if @env{LC_ALL} is specified, it overrides 435@env{LANG} is not set. But if @env{LC_ALL} is specified, it overrides
435the settings of all the other locale environment variables. 436the settings of all the other locale environment variables.
436 437
437The value of the LC_CTYPE category is 438On MS-Windows, if @env{LANG} is not already set in the environment
439when Emacs starts, Emacs sets it based on the system-wide default
440language, which you can set in the @samp{Regional Settings} Control Panel
441on some versions of MS-Windows.
442
443The value of the @env{LC_CTYPE} category is
438matched against entries in @code{locale-language-names}, 444matched against entries in @code{locale-language-names},
439@code{locale-charset-language-names}, and 445@code{locale-charset-language-names}, and
440@code{locale-preferred-coding-systems}, to select a default language 446@code{locale-preferred-coding-systems}, to select a default language
@@ -469,13 +475,13 @@ Used by the Gnus package.
469@item SHELL 475@item SHELL
470The name of an interpreter used to parse and execute programs run from 476The name of an interpreter used to parse and execute programs run from
471inside Emacs. 477inside Emacs.
472@cindex background mode, on @code{xterm} 478@cindex background mode, on @command{xterm}
473@item TERM 479@item TERM
474The type of the terminal that Emacs is using. This variable must be 480The type of the terminal that Emacs is using. This variable must be
475set unless Emacs is run in batch mode. On MS-DOS, it defaults to 481set unless Emacs is run in batch mode. On MS-DOS, it defaults to
476@samp{internal}, which specifies a built-in terminal emulation that 482@samp{internal}, which specifies a built-in terminal emulation that
477handles the machine's own display. If the value of @env{TERM} indicates 483handles the machine's own display. If the value of @env{TERM} indicates
478that Emacs runs in non-windowed mode from @code{xterm} or a similar 484that Emacs runs in non-windowed mode from @command{xterm} or a similar
479terminal emulator, the background mode defaults to @samp{light}, and 485terminal emulator, the background mode defaults to @samp{light}, and
480Emacs will choose colors that are appropriate for a light background. 486Emacs will choose colors that are appropriate for a light background.
481@item TERMCAP 487@item TERMCAP
@@ -486,10 +492,10 @@ terminal specified by the @env{TERM} variable. This defaults to
486Used by the Emerge package as a prefix for temporary files. 492Used by the Emerge package as a prefix for temporary files.
487@item TZ 493@item TZ
488This specifies the current time zone and possibly also daylight 494This specifies the current time zone and possibly also daylight
489saving time information. On MS-DOS, if @code{TZ} is not set in the 495saving time information. On MS-DOS, if @env{TZ} is not set in the
490environment when Emacs starts, Emacs defines a default value as 496environment when Emacs starts, Emacs defines a default value as
491appropriate for the country code returned by DOS. On MS-Windows, Emacs 497appropriate for the country code returned by DOS. On MS-Windows, Emacs
492does not use @code{TZ} at all. 498does not use @env{TZ} at all.
493@item USER 499@item USER
494The user's login name. See also @env{LOGNAME}. On MS-DOS, this 500The user's login name. See also @env{LOGNAME}. On MS-DOS, this
495defaults to @samp{root}. 501defaults to @samp{root}.
@@ -544,8 +550,64 @@ actually used.
544 550
545@item WINDOW_GFX 551@item WINDOW_GFX
546Used when initializing the Sun windows system. 552Used when initializing the Sun windows system.
553
554@item PRELOAD_WINSOCK
555On MS-Windows, if you set this variable, Emacs will load and initialize
556the network library at startup, instead of waiting until the first
557time it is required.
558
559@item emacs_dir
560On MS-Windows, @env{emacs_dir} is a special environment variable, which
561indicates the full path of the directory in which Emacs is installed.
562If Emacs is installed in the standard directory structure, it
563calculates this value automatically. It is not much use setting this
564variable yourself unless your installation is non-standard, since
565unlike other environment variables, it will be overridden by Emacs at
566startup. When setting other environment variables, such as
567@env{EMACSLOADPATH}, you may find it useful to use @env{emacs_dir}
568rather than hard-coding an absolute path. This allows multiple
569versions of Emacs to share the same environment variable settings, and
570it allows you to move the Emacs installation directory, without
571changing any environment or registry settings.
547@end table 572@end table
548 573
574@node MS-Windows Registry
575@appendixsubsec The MS-Windows System Registry
576@pindex addpm, MS-Windows installation program
577@cindex registry, setting environment variables and resources on MS-Windows
578
579On MS-Windows, the installation program @command{addpm.exe} adds values
580for @env{emacs_dir}, @env{EMACSLOADPATH}, @env{EMACSDATA},
581@env{EMACSPATH}, @env{EMACSDOC}, @env{SHELL} and @env{TERM} to the
582@file{HKEY_LOCAL_MACHINE} section of the system registry, under
583@file{/Software/GNU/Emacs}. It does this because there is no standard
584place to set environment variables across different versions of
585Windows. Running @command{addpm.exe} is no longer strictly
586necessary in recent versions of Emacs, but if you are upgrading from
587an older version, running @command{addpm.exe} ensures that you do not have
588older registry entries from a previous installation, which may not be
589compatible with the latest version of Emacs.
590
591When Emacs starts, as well as checking the environment, it also checks
592the System Registry for those variables and for @env{HOME}, @env{LANG}
593and @env{PRELOAD_WINSOCK}.
594
595To determine the value of those variables, Emacs goes through the
596following procedure. First, the environment is checked. If the
597variable is not found there, Emacs looks for registry keys by that
598name under @file{/Software/GNU/Emacs}; first in the
599@file{HKEY_CURRENT_USER} section of the registry, and if not found
600there, in the @file{HKEY_LOCAL_MACHINE} section. Finally, if Emacs
601still cannot determine the values, compiled-in defaults are used.
602
603In addition to the environment variables above, you can also add many
604of the settings which on X belong in the @file{.Xdefaults} file
605(@pxref{X Resources}) to the @file{/Software/GNU/Emacs} registry key.
606Settings you add to the @file{HKEY_LOCAL_MACHINE} section will affect
607all users of the machine. Settings you add to the
608@file{HKEY_CURRENT_USER} section will only affect you, and will
609override machine wide settings.
610
549@node Display X 611@node Display X
550@appendixsec Specifying the Display Name 612@appendixsec Specifying the Display Name
551@cindex display name (X Window System) 613@cindex display name (X Window System)
@@ -598,7 +660,7 @@ Xlib: connection to "glasperle:0.0" refused by server
598@end smallexample 660@end smallexample
599 661
600@noindent 662@noindent
601You might be able to overcome this problem by using the @code{xhost} 663You might be able to overcome this problem by using the @command{xhost}
602command on the local system to give permission for access from your 664command on the local system to give permission for access from your
603remote machine. 665remote machine.
604 666
@@ -694,7 +756,7 @@ Normally you should use @samp{iso8859-1}.
694 You will probably want to use a fixed-width default font---that is, 756 You will probably want to use a fixed-width default font---that is,
695a font in which all characters have the same width. Any font with 757a font in which all characters have the same width. Any font with
696@samp{m} or @samp{c} in the @var{spacing} field of the long name is a 758@samp{m} or @samp{c} in the @var{spacing} field of the long name is a
697fixed-width font. Here's how to use the @code{xlsfonts} program to 759fixed-width font. Here's how to use the @command{xlsfonts} program to
698list all the fixed-width fonts available on your system: 760list all the fixed-width fonts available on your system:
699 761
700@example 762@example
@@ -704,7 +766,7 @@ xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*'
704@end example 766@end example
705 767
706@noindent 768@noindent
707To see what a particular font looks like, use the @code{xfd} command. 769To see what a particular font looks like, use the @command{xfd} command.
708For example: 770For example:
709 771
710@example 772@example
@@ -877,7 +939,7 @@ screen, and a minus sign there indicates the distance from the bottom.
877The values @var{xoffset} and @var{yoffset} may themselves be positive or 939The values @var{xoffset} and @var{yoffset} may themselves be positive or
878negative, but that doesn't change their meaning, only their direction. 940negative, but that doesn't change their meaning, only their direction.
879 941
880 Emacs uses the same units as @code{xterm} does to interpret the geometry. 942 Emacs uses the same units as @command{xterm} does to interpret the geometry.
881The @var{width} and @var{height} are measured in characters, so a large font 943The @var{width} and @var{height} are measured in characters, so a large font
882creates a larger frame than a small font. (If you specify a proportional 944creates a larger frame than a small font. (If you specify a proportional
883font, Emacs uses its maximum bounds width as the width unit.) The 945font, Emacs uses its maximum bounds width as the width unit.) The