annotate etc/emacs.csh @ 75810:fbbac2460322

Convert from info.png in GTK 2 sources.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 12 Feb 2007 19:11:43 +0000
parents dc23aaa67696
children bb0664431a90 52a7f3f50b89
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75774
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
1 ### emacs.csh
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
2
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
3 ## Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
4 ## Free Software Foundation, Inc.
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
5
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
6 ## Author: Michael DeCorte
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
7
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
8 ## This program is free software; you can redistribute it and/or modify
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
9 ## it under the terms of the GNU General Public License as published by
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
10 ## the Free Software Foundation; either version 2, or (at your option)
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
11 ## any later version.
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
12
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
13 ## This program is distributed in the hope that it will be useful,
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
16 ## GNU General Public License for more details.
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
17
75774
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
18 ## You should have received a copy of the GNU General Public License
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
19 ## along with this program; see the file COPYING. If not, write to the
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
20 ## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
21 ## Boston, MA 02110-1301, USA.
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
22
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
23 ### Commentary:
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
24
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
25 ## This defines a csh command named `edit' which resumes an
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
26 ## existing Emacs or starts a new one if none exists.
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
27 ## One way or another, any arguments are passed to Emacs to specify files
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
28 ## (provided you have loaded `resume.el').
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
29
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
30 ## These are the possible values of $whichjob
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
31 ## 1 = new ordinary emacs (the -nw is so that it doesn't try to do X)
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
32 ## 2 = resume emacs
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
33 ## 3 = new emacs under X (-i is so that you get a reasonable icon)
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
34 ## 4 = resume emacs under X
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
35 ## 5 = new emacs under suntools
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
36 ## 6 = resume emacs under suntools
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
37 ## 7 = new emacs under X and suntools - doesn't make any sense, so use X
dc23aaa67696 Switch to standard GPL text for license.
Glenn Morris <rgm@gnu.org>
parents: 75343
diff changeset
38 ## 8 = resume emacs under X and suntools - doesn't make any sense, so use X
25853
Dave Love <fx@gnu.org>
parents:
diff changeset
39 set EMACS_PATTERN="^\[[0-9]\] . Stopped ............ $EMACS"
Dave Love <fx@gnu.org>
parents:
diff changeset
40
Dave Love <fx@gnu.org>
parents:
diff changeset
41 alias edit 'set emacs_command=("emacs -nw \!*" "fg %emacs" "emacs -i \!* &"\
Dave Love <fx@gnu.org>
parents:
diff changeset
42 "emacsclient \!* &" "emacstool \!* &" "emacsclient \!* &" "emacs -i \!* &"\
Dave Love <fx@gnu.org>
parents:
diff changeset
43 "emacsclient \!* &") ; \
Dave Love <fx@gnu.org>
parents:
diff changeset
44 jobs >! $HOME/.jobs; grep "$EMACS_PATTERN" < $HOME/.jobs >& /dev/null; \
Dave Love <fx@gnu.org>
parents:
diff changeset
45 @ isjob = ! $status; \
Dave Love <fx@gnu.org>
parents:
diff changeset
46 @ whichjob = 1 + $isjob + $?DISPLAY * 2 + $?WINDOW_PARENT * 4; \
Dave Love <fx@gnu.org>
parents:
diff changeset
47 test -S ~/.emacs_server && emacsclient \!* \
Dave Love <fx@gnu.org>
parents:
diff changeset
48 || echo `pwd` \!* >! ~/.emacs_args && eval $emacs_command[$whichjob]'
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 25853
diff changeset
49
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 25853
diff changeset
50 # arch-tag: 433d58df-15b9-446f-ad37-f0393e3a23d4