Mercurial > emacs
annotate lisp/cdl.el @ 83323:61487e73bbc2
Cleanup: Move kboard fields from struct frame and device-specific descriptors to struct display.
* src/termhooks.h (display): New field: kboard.
* src/xterm.h (x_display_info): Remove kboard field.
* src/termchar.h (tty_display_info): Ditto.
* src/frame.h (frame): Ditto.
(FRAME_KBOARD): Update.
* src/dispnew.c (init_display): Don't initialize kboard.
* src/frame.c (make_frame, make_initial_frame, make_terminal_frame): Ditto.
* src/frame.c (make_frame_without_minibuffer, Fdelete_frame): Update kboard access.
* src/keyboard.c (delete_kboard): Ditto.
* src/term.c (term_init): Ditto.
* src/xfns.c (Fx_create_frame, x_create_tip_frame): Ditto.
* src/xselect.c (x_handle_selection_clear): Ditto.
* src/xterm.c (x_term_init): Ditto.
* src/term.c (init_initial_display): Initialize kboard.
* src/xterm.c (x_term_init): Ditto.
* src/term.c (delete_tty): Remove kboard deletion.
(delete_display): Delete kboard as well.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-363
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Mon, 27 Jun 2005 00:56:21 +0000 |
parents | 695cf19ef79e |
children | 6fb026ad601f 375f2633d815 |
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 |
3 ;; Copyright (C) 1993 Free Software Foundation, Inc. | |
4 | |
4866 | 5 ;; Author: ATAE@spva.physics.imperial.ac.uk (Ata Etemadi) |
30294 | 6 ;; Maintainer: FSF |
4866 | 7 ;; Keywords: data |
8 | |
4865 | 9 ;; This file is part of GNU Emacs. |
10 | |
11 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
12 ;; it under the terms of the GNU General Public License as published by | |
13 ;; the Free Software Foundation; either version 2, or (at your option) | |
14 ;; any later version. | |
15 | |
16 ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 ;; GNU General Public License for more details. | |
20 | |
21 ;; You should have received a copy of the GNU General Public License | |
14169 | 22 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
24 ;; Boston, MA 02111-1307, USA. | |
4865 | 25 |
38412
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
38409
diff
changeset
|
26 ;;; Commentary: |
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
38409
diff
changeset
|
27 |
4865 | 28 ;;; Code: |
29 | |
30 (defun cdl-get-file (filename) | |
31 "Run file through ncdump and insert result into buffer after point." | |
32 (interactive "fCDF file: ") | |
33 (message "ncdump in progress...") | |
34 (let ((start (point))) | |
35 (call-process "ncdump" nil t nil (expand-file-name filename)) | |
36 (goto-char start)) | |
37 (message "ncdump in progress...done")) | |
38 | |
39 (defun cdl-put-region (filename start end) | |
40 "Run region through ncgen and write results into a file." | |
41 (interactive "FNew CDF file: \nr") | |
42 (message "ncgen in progress...") | |
43 (call-process-region start end "ncgen" | |
44 nil nil nil "-o" (expand-file-name filename)) | |
45 (message "ncgen in progress...done")) | |
46 | |
18383 | 47 (provide 'cdl) |
48 | |
52401 | 49 ;;; arch-tag: b8e95a6e-2387-4077-ad9a-af54b09b8615 |
38409
153f1b1f2efd
Emacs lisp coding convention fixes.
Pavel Janík <Pavel@Janik.cz>
parents:
30294
diff
changeset
|
50 ;;; cdl.el ends here |