annotate etc/emacs.csh @ 37998:706af946b1e7

* reftex-ref.el (reftex-select-label-help): Added "z" key description. * reftex-sel.el (reftex-select-jump): New command. * reftex-toc.el (reftex-toc-help): Added "z" key description. (reftex-toc-jump): New command. * reftex-cite.el (reftex-parse-bibitem): Regexp changed to parse international characters as well. * reftex.el: Added autoloads for eftex-varioref-vref', eftex-fancyref-fref', eftex-fancyref-Fref' * reftex-vars.el: Protected single backslash in many docstrings. * reftex-dcr.el (reftex-view-crossref): added SPACE and TAB to the key separaotrs.
author Carsten Dominik <dominik@science.uva.nl>
date Fri, 08 Jun 2001 08:43:20 +0000
parents e96ffe544684
children 695cf19ef79e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
1 # This defines a csh command named `edit' which resumes an
Dave Love <fx@gnu.org>
parents:
diff changeset
2 # existing Emacs or starts a new one if none exists.
Dave Love <fx@gnu.org>
parents:
diff changeset
3 # One way or another, any arguments are passed to Emacs to specify files
Dave Love <fx@gnu.org>
parents:
diff changeset
4 # (provided you have loaded `resume.el').
Dave Love <fx@gnu.org>
parents:
diff changeset
5 # - Michael DeCorte
Dave Love <fx@gnu.org>
parents:
diff changeset
6
Dave Love <fx@gnu.org>
parents:
diff changeset
7 # These are the possible values of $whichjob
Dave Love <fx@gnu.org>
parents:
diff changeset
8 # 1 = new ordinary emacs (the -nw is so that it doesn't try to do X)
Dave Love <fx@gnu.org>
parents:
diff changeset
9 # 2 = resume emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
10 # 3 = new emacs under X (-i is so that you get a reasonable icon)
Dave Love <fx@gnu.org>
parents:
diff changeset
11 # 4 = resume emacs under X
Dave Love <fx@gnu.org>
parents:
diff changeset
12 # 5 = new emacs under suntools
Dave Love <fx@gnu.org>
parents:
diff changeset
13 # 6 = resume emacs under suntools
Dave Love <fx@gnu.org>
parents:
diff changeset
14 # 7 = new emacs under X and suntools - doesn't make any sense, so use X
Dave Love <fx@gnu.org>
parents:
diff changeset
15 # 8 = resume emacs under X and suntools - doesn't make any sense, so use X
Dave Love <fx@gnu.org>
parents:
diff changeset
16 set EMACS_PATTERN="^\[[0-9]\] . Stopped ............ $EMACS"
Dave Love <fx@gnu.org>
parents:
diff changeset
17
Dave Love <fx@gnu.org>
parents:
diff changeset
18 alias edit 'set emacs_command=("emacs -nw \!*" "fg %emacs" "emacs -i \!* &"\
Dave Love <fx@gnu.org>
parents:
diff changeset
19 "emacsclient \!* &" "emacstool \!* &" "emacsclient \!* &" "emacs -i \!* &"\
Dave Love <fx@gnu.org>
parents:
diff changeset
20 "emacsclient \!* &") ; \
Dave Love <fx@gnu.org>
parents:
diff changeset
21 jobs >! $HOME/.jobs; grep "$EMACS_PATTERN" < $HOME/.jobs >& /dev/null; \
Dave Love <fx@gnu.org>
parents:
diff changeset
22 @ isjob = ! $status; \
Dave Love <fx@gnu.org>
parents:
diff changeset
23 @ whichjob = 1 + $isjob + $?DISPLAY * 2 + $?WINDOW_PARENT * 4; \
Dave Love <fx@gnu.org>
parents:
diff changeset
24 test -S ~/.emacs_server && emacsclient \!* \
Dave Love <fx@gnu.org>
parents:
diff changeset
25 || echo `pwd` \!* >! ~/.emacs_args && eval $emacs_command[$whichjob]'