annotate etc/emacs.csh @ 41266:c08a55ae8e5d
(calc-wrapper, calc-slow-wrapper)
(math-showing-full-precision, math-with-extra-prec, math-working)
(calc-with-default-simplification)
(calc-with-trail-buffer): Use backtick.
(Math-zerop, Math-integer-negp, Math-integer-posp, Math-negp)
(Math-looks-negp, Math-posp, Math-integerp, Math-natnump)
(Math-ratp, Math-realp, Math-anglep, Math-numberp, Math-scalarp)
(Math-vectorp, Math-messy-integerp, Math-objectp, Math-objvecp)
(Math-integer-neg, Math-equal, Math-lessp, Math-primp)
(Math-num-integerp, Math-bignum-test, Math-equal-int)
(Math-natnum-lessp, math-format-radix-digit): Change to `defsubst'.
(calc-record-compilation-date-macro): Deleted. Callers updated.
(math-format-radix-digit): Move to calc-bin.el.
Change all toplevel `setq' forms to `defvar' forms, and move them
before their first use. Use `when', `unless'. Remove trailing
periods from error forms. Add description and headers suggested by
Emacs Lisp coding conventions.
author |
Colin Walters <walters@gnu.org> |
date |
Mon, 19 Nov 2001 07:35:49 +0000 |
parents |
e96ffe544684 |
children |
695cf19ef79e |
rev |
line source |
25853
|
1 # This defines a csh command named `edit' which resumes an
|
|
2 # existing Emacs or starts a new one if none exists.
|
|
3 # One way or another, any arguments are passed to Emacs to specify files
|
|
4 # (provided you have loaded `resume.el').
|
|
5 # - Michael DeCorte
|
|
6
|
|
7 # These are the possible values of $whichjob
|
|
8 # 1 = new ordinary emacs (the -nw is so that it doesn't try to do X)
|
|
9 # 2 = resume emacs
|
|
10 # 3 = new emacs under X (-i is so that you get a reasonable icon)
|
|
11 # 4 = resume emacs under X
|
|
12 # 5 = new emacs under suntools
|
|
13 # 6 = resume emacs under suntools
|
|
14 # 7 = new emacs under X and suntools - doesn't make any sense, so use X
|
|
15 # 8 = resume emacs under X and suntools - doesn't make any sense, so use X
|
|
16 set EMACS_PATTERN="^\[[0-9]\] . Stopped ............ $EMACS"
|
|
17
|
|
18 alias edit 'set emacs_command=("emacs -nw \!*" "fg %emacs" "emacs -i \!* &"\
|
|
19 "emacsclient \!* &" "emacstool \!* &" "emacsclient \!* &" "emacs -i \!* &"\
|
|
20 "emacsclient \!* &") ; \
|
|
21 jobs >! $HOME/.jobs; grep "$EMACS_PATTERN" < $HOME/.jobs >& /dev/null; \
|
|
22 @ isjob = ! $status; \
|
|
23 @ whichjob = 1 + $isjob + $?DISPLAY * 2 + $?WINDOW_PARENT * 4; \
|
|
24 test -S ~/.emacs_server && emacsclient \!* \
|
|
25 || echo `pwd` \!* >! ~/.emacs_args && eval $emacs_command[$whichjob]'
|