annotate etc/emacs.csh @ 75050:27f521750ce8

(Bindat Spec): Fix Texinfo usage.
author Richard M. Stallman <rms@gnu.org>
date Tue, 02 Jan 2007 20:58:02 +0000
parents 3681678d3d86
children 0259a1711394 a8190f7e546e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
71189
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
1 # Copyright (c) 1999, 2003, 2006
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
2 # Free software Foundation, Inc.
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
3 #
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
4 # This defines a csh command named `edit' which resumes an
Dave Love <fx@gnu.org>
parents:
diff changeset
5 # existing Emacs or starts a new one if none exists.
Dave Love <fx@gnu.org>
parents:
diff changeset
6 # One way or another, any arguments are passed to Emacs to specify files
Dave Love <fx@gnu.org>
parents:
diff changeset
7 # (provided you have loaded `resume.el').
Dave Love <fx@gnu.org>
parents:
diff changeset
8 # - Michael DeCorte
Dave Love <fx@gnu.org>
parents:
diff changeset
9
Dave Love <fx@gnu.org>
parents:
diff changeset
10 # These are the possible values of $whichjob
Dave Love <fx@gnu.org>
parents:
diff changeset
11 # 1 = new ordinary emacs (the -nw is so that it doesn't try to do X)
Dave Love <fx@gnu.org>
parents:
diff changeset
12 # 2 = resume emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
13 # 3 = new emacs under X (-i is so that you get a reasonable icon)
Dave Love <fx@gnu.org>
parents:
diff changeset
14 # 4 = resume emacs under X
Dave Love <fx@gnu.org>
parents:
diff changeset
15 # 5 = new emacs under suntools
Dave Love <fx@gnu.org>
parents:
diff changeset
16 # 6 = resume emacs under suntools
Dave Love <fx@gnu.org>
parents:
diff changeset
17 # 7 = new emacs under X and suntools - doesn't make any sense, so use X
Dave Love <fx@gnu.org>
parents:
diff changeset
18 # 8 = resume emacs under X and suntools - doesn't make any sense, so use X
Dave Love <fx@gnu.org>
parents:
diff changeset
19 set EMACS_PATTERN="^\[[0-9]\] . Stopped ............ $EMACS"
Dave Love <fx@gnu.org>
parents:
diff changeset
20
Dave Love <fx@gnu.org>
parents:
diff changeset
21 alias edit 'set emacs_command=("emacs -nw \!*" "fg %emacs" "emacs -i \!* &"\
Dave Love <fx@gnu.org>
parents:
diff changeset
22 "emacsclient \!* &" "emacstool \!* &" "emacsclient \!* &" "emacs -i \!* &"\
Dave Love <fx@gnu.org>
parents:
diff changeset
23 "emacsclient \!* &") ; \
Dave Love <fx@gnu.org>
parents:
diff changeset
24 jobs >! $HOME/.jobs; grep "$EMACS_PATTERN" < $HOME/.jobs >& /dev/null; \
Dave Love <fx@gnu.org>
parents:
diff changeset
25 @ isjob = ! $status; \
Dave Love <fx@gnu.org>
parents:
diff changeset
26 @ whichjob = 1 + $isjob + $?DISPLAY * 2 + $?WINDOW_PARENT * 4; \
Dave Love <fx@gnu.org>
parents:
diff changeset
27 test -S ~/.emacs_server && emacsclient \!* \
Dave Love <fx@gnu.org>
parents:
diff changeset
28 || echo `pwd` \!* >! ~/.emacs_args && eval $emacs_command[$whichjob]'
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 25853
diff changeset
29
71189
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
30 #COPYING PERMISSIONS:
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
31 #
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
32 # Permission is hereby granted, free of charge, to any person obtaining
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
33 # a copy of this file, to deal in the file without restriction, including
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
34 # without limitation the rights to use, copy, modify, merge, publish,
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
35 # distribute, sublicense, and/or sell copies of the file, and to
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
36 # permit persons to whom the file is furnished to do so, subject to
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
37 # the following condition:
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
38 #
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
39 # The above copyright notice and this permission notice shall be
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
40 # included in all copies or substantial portions of the file.
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
41
3681678d3d86 Add copyright notice and copying permissions.
Eli Zaretskii <eliz@gnu.org>
parents: 52401
diff changeset
42
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 25853
diff changeset
43 # arch-tag: 433d58df-15b9-446f-ad37-f0393e3a23d4