comparison emacs/e.bat @ 628:d7536d442db1

Prevent exposing variables.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Tue, 14 Feb 2017 22:42:52 +0200
parents 285855784c5a
children 815567721a82
comparison
equal deleted inserted replaced
627:a8d3e5e8a1c7 628:d7536d442db1
7 REM If emacs not already running, run it. 7 REM If emacs not already running, run it.
8 REM Put this file (e.bat) in your PATH. 8 REM Put this file (e.bat) in your PATH.
9 REM Name `e' because `edit'. `ew' wait to `C-x #'. `ec' create new frame. 9 REM Name `e' because `edit'. `ew' wait to `C-x #'. `ec' create new frame.
10 10
11 REM If path to file contain spaces it must be inclosed into quotes. 11 REM If path to file contain spaces it must be inclosed into quotes.
12
13 setlocal
12 14
13 for %%X in (emacsclient-w32.exe) do (set FOUND=%%~$PATH:X) 15 for %%X in (emacsclient-w32.exe) do (set FOUND=%%~$PATH:X)
14 if defined FOUND ( 16 if defined FOUND (
15 rem Cygwin Emacs-w32. 17 rem Cygwin Emacs-w32.
16 set RUNEMACSARG=-a emacs-w32 18 set RUNEMACSARG=-a emacs-w32