Mercurial > emacs
comparison etc/emacs.bash @ 75457:873c558e1383
Add FSF copyright and GPL. Copyright years from those where this file
has been in public Emacs CVS.
[email from rms, 2007/1/22 "Copyright Years"]
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 28 Jan 2007 00:28:01 +0000 |
parents | 615a90f44f52 |
children | 713172dcf518 f83d17e1ace6 |
comparison
equal
deleted
inserted
replaced
75456:e058065ef04c | 75457:873c558e1383 |
---|---|
1 # This defines a bash command named `edit' which contacts/resumes an | 1 ### emacs.bash --- contact/resume an existing Emacs, or start a new one |
2 # existing emacs or starts a new one if none exists. | 2 |
3 # | 3 ## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
4 # One way or another, any arguments are passed to emacs to specify files | 4 ## Free Software Foundation, Inc. |
5 # (provided you have loaded `resume.el'). | 5 |
6 # | 6 ## Author: Noah Friedman |
7 # This function assumes the emacs program is named `emacs' and is somewhere | 7 |
8 # in your load path. If either of these is not true, the most portable | 8 ## This file is part of GNU Emacs. |
9 # (and convenient) thing to do is to make an alias called emacs which | 9 |
10 # refers to the real program, e.g. | 10 ## GNU Emacs is free software; you can redistribute it and/or modify |
11 # | 11 ## it under the terms of the GNU General Public License as published by |
12 # alias emacs=/usr/local/bin/gemacs | 12 ## the Free Software Foundation; either version 2, or (at your option) |
13 # | 13 ## any later version. |
14 # Written by Noah Friedman. | 14 |
15 ## GNU Emacs is distributed in the hope that it will be useful, | |
16 ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ## GNU General Public License for more details. | |
19 | |
20 ## You should have received a copy of the GNU General Public License | |
21 ## along with GNU Emacs; see the file COPYING. If not, write to the | |
22 ## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
23 ## Boston, MA 02110-1301, USA. | |
24 | |
25 ### Commentary: | |
26 | |
27 ## This defines a bash command named `edit' which contacts/resumes an | |
28 ## existing emacs or starts a new one if none exists. | |
29 | |
30 ## One way or another, any arguments are passed to emacs to specify files | |
31 ## (provided you have loaded `resume.el'). | |
32 | |
33 ## This function assumes the emacs program is named `emacs' and is somewhere | |
34 ## in your load path. If either of these is not true, the most portable | |
35 ## (and convenient) thing to do is to make an alias called emacs which | |
36 ## refers to the real program, e.g. | |
37 ## | |
38 ## alias emacs=/usr/local/bin/gemacs | |
15 | 39 |
16 function edit () | 40 function edit () |
17 { | 41 { |
18 local windowsys="${WINDOW_PARENT+sun}" | 42 local windowsys="${WINDOW_PARENT+sun}" |
19 | 43 |
42 fi | 66 fi |
43 } | 67 } |
44 | 68 |
45 | 69 |
46 # arch-tag: 1e1b74b9-bf2c-4b23-870f-9eebff7515cb | 70 # arch-tag: 1e1b74b9-bf2c-4b23-870f-9eebff7515cb |
71 ### emacs.bash ends here |