aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2010-12-04 13:25:09 +0200
committerEli Zaretskii2010-12-04 13:25:09 +0200
commit62d72a4a699e91940934bb607d932f263fd13beb (patch)
tree106cf5fb54703e7ee09130add56b9e55760e5d0d
parentb8a9e13683bad70020e6f07af21b06e5c6edd7aa (diff)
downloademacs-62d72a4a699e91940934bb607d932f263fd13beb.tar.gz
emacs-62d72a4a699e91940934bb607d932f263fd13beb.zip
Describe MS-Windows specific startup issues, incl. emacsclientw.exe
msdog.texi (Windows Startup): New node. Move the stuff about the current directory from "Windows HOME", and explain all possible ways of invoking Emacs on Windows.
-rw-r--r--doc/emacs/ChangeLog2
-rw-r--r--doc/emacs/emacs.texi1
-rw-r--r--doc/emacs/msdog.texi70
3 files changed, 66 insertions, 7 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index fc9c34a296a..6f1f706fb58 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 * msdog.texi (Windows HOME): Mention that HOME can also be set in the 3 * msdog.texi (Windows HOME): Mention that HOME can also be set in the
4 registry, with a cross-reference. 4 registry, with a cross-reference.
5 (Windows Startup): New node. Move the stuff about the current
6 directory from "Windows HOME".
5 7
62010-11-23 Bob Rogers <rogers-emacs@rgrjr.dyndns.org> 82010-11-23 Bob Rogers <rogers-emacs@rgrjr.dyndns.org>
7 9
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi
index 91ce399d4c1..7f6321d44d3 100644
--- a/doc/emacs/emacs.texi
+++ b/doc/emacs/emacs.texi
@@ -1191,6 +1191,7 @@ Emacs and Mac OS / GNUstep
1191 1191
1192Emacs and Microsoft Windows/MS-DOS 1192Emacs and Microsoft Windows/MS-DOS
1193 1193
1194* Windows Startup:: How to start Emacs on Windows.
1194* Text and Binary:: Text files use CRLF to terminate lines. 1195* Text and Binary:: Text files use CRLF to terminate lines.
1195* Windows Files:: File-name conventions on Windows. 1196* Windows Files:: File-name conventions on Windows.
1196* ls in Lisp:: Emulation of @code{ls} for Dired. 1197* ls in Lisp:: Emulation of @code{ls} for Dired.
diff --git a/doc/emacs/msdog.texi b/doc/emacs/msdog.texi
index a38f23a65bd..22300267315 100644
--- a/doc/emacs/msdog.texi
+++ b/doc/emacs/msdog.texi
@@ -28,6 +28,7 @@ However, a few special considerations apply, and they are described
28here. 28here.
29 29
30@menu 30@menu
31* Windows Startup:: How to start Emacs on Windows.
31* Text and Binary:: Text files use CRLF to terminate lines. 32* Text and Binary:: Text files use CRLF to terminate lines.
32* Windows Files:: File-name conventions on Windows. 33* Windows Files:: File-name conventions on Windows.
33* ls in Lisp:: Emulation of @code{ls} for Dired. 34* ls in Lisp:: Emulation of @code{ls} for Dired.
@@ -44,6 +45,68 @@ here.
44@end ifnottex 45@end ifnottex
45@end menu 46@end menu
46 47
48@node Windows Startup
49@section How to Start Emacs on MS-Windows
50@cindex starting Emacs on MS-Windows
51
52 There are several ways of starting Emacs on MS-Windows:
53
54@enumerate
55@item
56@pindex runemacs.exe
57@cindex desktop shortcut, MS-Windows
58@cindex start directory, MS-Windows
59@cindex directory where Emacs starts on MS-Windows
60From the desktop shortcut icon: either double-click the left mouse
61button on the icon, or click once, then press @key{RET}. The desktop
62shortcut should specify as its ``Target'' (in the ``Properties'' of
63the shortcut) the full absolute file name of @file{runemacs.exe},
64@emph{not} of @file{emacs.exe}. This is because @file{runemacs.exe}
65hides the console window that would have been created if the target of
66the shortcut were @file{emacs.exe} (which is a console program, as far
67as Windows is concerned). If you use this method, Emacs starts in the
68directory specified by the shortcut. To control where that is,
69right-click on the shortcut, select ``Properties'', and in the
70``Shortcut'' tab modify the ``Start in'' field to your liking.
71
72@item
73From the Command Prompt window, by typing @kbd{emacs @key{RET}} at the
74prompt. The Command Prompt window where you did that will not be
75available for invoking other commands until Emacs exits. In this
76case, Emacs will start in the current directory of the Windows shell.
77
78@item
79From the Command Prompt window, by typing @kbd{runemacs @key{RET}} at
80the prompt. The Command Prompt window where you did that will be
81immediately available for invoking other commands. In this case,
82Emacs will start in the current directory of the Windows shell.
83
84@item
85@cindex invoking Emacs from Windows Explorer
86@pindex emacsclient.exe
87@pindex emacsclientw.exe
88Via the Emacs client program, @file{emacsclient.exe} or
89@file{emacsclientw.exe}. This allows to invoke Emacs from other
90programs, and to reuse a running Emacs process for serving editing
91jobs required by other programs. @xref{Emacs Server}. The difference
92between @file{emacsclient.exe} and @file{emacsclientw.exe} is that the
93former waits for Emacs to signal that the editing job is finished,
94while the latter does not wait. Which one of them to use in each case
95depends on the expectations of the program that needs editing
96services. If the program will use the edited files, it needs to wait
97for Emacs, so you should use @file{emacsclient.exe}. By contrast, if
98the results of editing are not needed by the invoking program, you
99will be better off using @file{emacsclientw.exe}. A notable situation
100where you would want @file{emacsclientw.exe} is when you right-click
101on a file in the Windows Explorer and select ``Open With'' from the
102pop-up menu. Use the @samp{--alternate-editor=} or @samp{-a} options
103if Emacs might not be running (or not running as a server) when
104@command{emacsclient} is invoked---that will always give you an
105editor. When invoked via @command{emacsclient}, Emacs will start in
106the current directory of the program that invoked
107@command{emacsclient}.
108@end enumerate
109
47@node Text and Binary 110@node Text and Binary
48@section Text Files and Binary Files 111@section Text Files and Binary Files
49@cindex text and binary files on MS-DOS/MS-Windows 112@cindex text and binary files on MS-DOS/MS-Windows
@@ -375,13 +438,6 @@ names, the Windows port of Emacs supports an alternative name
375@file{_emacs} as a fallback, if such a file exists in the home 438@file{_emacs} as a fallback, if such a file exists in the home
376directory, whereas @file{.emacs} does not. 439directory, whereas @file{.emacs} does not.
377 440
378@cindex start directory, MS-Windows
379@cindex directory where Emacs starts on MS-Windows
380 If you use a Windows desktop shortcut to start Emacs, it starts in
381the directory specified by the shortcut. To control where that is,
382right-click on the shortcut, select ``Properties'', and in the
383``Shortcut'' tab modify the ``Start in'' field to your liking.
384
385@node Windows Keyboard 441@node Windows Keyboard
386@section Keyboard Usage on MS-Windows 442@section Keyboard Usage on MS-Windows
387@cindex keyboard, MS-Windows 443@cindex keyboard, MS-Windows