annotate etc/emacs.csh @ 48638:fff05c8f251d

(gud-running): Rename from gdb-running. Update uses. (gud-tool-bar-map): Use tool-bar-local-item-from-menu rather than tool-bar-add-item-from-menu to avoid let binding tool-bar-map which fails if tool-bar.el is loaded in the mean time. (gud-file-name): New fun. (gud-find-file): Use it as default value for gud-find-file. (gud-speedbar-buttons): Discriminate on gud-minor-mode rather than on gud-find-file. (gud-gdb-find-file, gud-dbx-file-name, gud-dbx-find-file) (gud-xdb-file-name, gud-xdb-find-file, gud-perldb-find-file) (gud-pdb-find-file, gud-jdb-find-file): Remove. (gud-query-cmdline): Don't stuff the whole cwd in the command. (gdb, dbx, xdb, perldb, pdb, jdb): Use the default for gud-find-file. (gud-mipsdbx-massage-args): Remove. (gud-dbx-command-name): New var. Do what gud-mipsdbx-massage-args did. (gud-irixdbx-marker-filter): Use match-string and gud-file-name. (gud-jdb-command-name): New var. (gud-common-init): Re-instate RMS code of 11/13.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 03 Dec 2002 21:07:39 +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]'