Mercurial > emacs
annotate lisp/cdl.el @ 112450:16ddab338c43
Remove HAVE_RAW_DECL_CHOWN etc. from config.h
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 23 Jan 2011 20:53:39 -0800 |
parents | ef719132ddfa |
children |
rev | line source |
---|---|
38409
153f1b1f2efd
Emacs lisp coding convention fixes.
Pavel Janík <Pavel@Janik.cz>
parents:
30294
diff
changeset
|
1 ;;; cdl.el --- Common Data Language (CDL) utility functions for GNU Emacs |
4865 | 2 |
74439 | 3 ;; Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, |
112218
376148b31b5e
Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents:
106815
diff
changeset
|
4 ;; 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
4865 | 5 |
4866 | 6 ;; Author: ATAE@spva.physics.imperial.ac.uk (Ata Etemadi) |
30294 | 7 ;; Maintainer: FSF |
4866 | 8 ;; Keywords: data |
9 | |
4865 | 10 ;; This file is part of GNU Emacs. |
11 | |
94678
ee5932bf781d
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
12 ;; GNU Emacs is free software: you can redistribute it and/or modify |
4865 | 13 ;; it under the terms of the GNU General Public License as published by |
94678
ee5932bf781d
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
14 ;; the Free Software Foundation, either version 3 of the License, or |
ee5932bf781d
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
15 ;; (at your option) any later version. |
4865 | 16 |
17 ;; GNU Emacs is distributed in the hope that it will be useful, | |
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 ;; GNU General Public License for more details. | |
21 | |
22 ;; You should have received a copy of the GNU General Public License | |
94678
ee5932bf781d
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
4865 | 24 |
38412
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
38409
diff
changeset
|
25 ;;; Commentary: |
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
38409
diff
changeset
|
26 |
4865 | 27 ;;; Code: |
28 | |
29 (defun cdl-get-file (filename) | |
30 "Run file through ncdump and insert result into buffer after point." | |
31 (interactive "fCDF file: ") | |
32 (message "ncdump in progress...") | |
33 (let ((start (point))) | |
34 (call-process "ncdump" nil t nil (expand-file-name filename)) | |
35 (goto-char start)) | |
36 (message "ncdump in progress...done")) | |
37 | |
38 (defun cdl-put-region (filename start end) | |
39 "Run region through ncgen and write results into a file." | |
40 (interactive "FNew CDF file: \nr") | |
41 (message "ncgen in progress...") | |
42 (call-process-region start end "ncgen" | |
43 nil nil nil "-o" (expand-file-name filename)) | |
44 (message "ncgen in progress...done")) | |
45 | |
18383 | 46 (provide 'cdl) |
47 | |
38409
153f1b1f2efd
Emacs lisp coding convention fixes.
Pavel Janík <Pavel@Janik.cz>
parents:
30294
diff
changeset
|
48 ;;; cdl.el ends here |