Mercurial > emacs
annotate lisp/cdl.el @ 71957:61cb5aae3bc3
Put period and comma inside quotes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 18 Jul 2006 00:08:15 +0000 |
parents | 3bd95f4f2941 |
children | ddcbd2c1b70d c5406394f567 |
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 |
68651
3bd95f4f2941
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64762
diff
changeset
|
3 ;; Copyright (C) 1993, 2002, 2003, 2004, 2005, |
3bd95f4f2941
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64762
diff
changeset
|
4 ;; 2006 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 | |
12 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
13 ;; it under the terms of the GNU General Public License as published by | |
14 ;; the Free Software Foundation; either version 2, or (at your option) | |
15 ;; any later version. | |
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 | |
14169 | 23 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
64091 | 24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 ;; Boston, MA 02110-1301, USA. | |
4865 | 26 |
38412
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
38409
diff
changeset
|
27 ;;; Commentary: |
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
38409
diff
changeset
|
28 |
4865 | 29 ;;; Code: |
30 | |
31 (defun cdl-get-file (filename) | |
32 "Run file through ncdump and insert result into buffer after point." | |
33 (interactive "fCDF file: ") | |
34 (message "ncdump in progress...") | |
35 (let ((start (point))) | |
36 (call-process "ncdump" nil t nil (expand-file-name filename)) | |
37 (goto-char start)) | |
38 (message "ncdump in progress...done")) | |
39 | |
40 (defun cdl-put-region (filename start end) | |
41 "Run region through ncgen and write results into a file." | |
42 (interactive "FNew CDF file: \nr") | |
43 (message "ncgen in progress...") | |
44 (call-process-region start end "ncgen" | |
45 nil nil nil "-o" (expand-file-name filename)) | |
46 (message "ncgen in progress...done")) | |
47 | |
18383 | 48 (provide 'cdl) |
49 | |
52401 | 50 ;;; arch-tag: b8e95a6e-2387-4077-ad9a-af54b09b8615 |
38409
153f1b1f2efd
Emacs lisp coding convention fixes.
Pavel Janík <Pavel@Janik.cz>
parents:
30294
diff
changeset
|
51 ;;; cdl.el ends here |