Mercurial > emacs
annotate lisp/tcp.el @ 19445:94a54fbffb3e
A lot of comment and doc fixes.
Replace: 'nil by nil, '() by nil, 't by t.
(ps-print-version): New version number (3.05).
(ps-zebra-stripe, ps-number-of-zebra, ps-line-number)
(ps-print-background-image, ps-print-background-text): New variables
to customize zebra stripes, line number, image background and text
background features, respectively.
(ps-adobe-tag): Tagged to PostScript level 3.
(ps-print-buffer, ps-print-buffer-with-faces)
(ps-print-region, ps-print-region-with-faces)
(ps-spool-buffer, ps-spool-buffer-with-faces)
(ps-spool-region, ps-spool-region-with-faces): Call more primitive
functions for PostScript printing (functions below).
(ps-print-with-faces, ps-print-without-faces)
(ps-spool-with-faces, ps-spool-without-faces): More primitive
functions for PostScript printing.
(ps-line-lengths, ps-nb-pages-buffer, ps-nb-pages-region)
(ps-line-lengths-internal, ps-nb-pages): Doc fixes.
(ps-print-prologue-1): a lot of PostScript programming:
/dobackgroundstring, /dounderline, /UL: Postscript functions deleted.
/reencodeFontISO, /F, /BG, /HL, /W, /S, /BeginDSCPage, /BeginPage,
/EndPage: adjusted for new effects (outline, shadow, etc).
/PLN, /EF, /Hline, /doBox, /doRect, /doShadow, /doOutline,
/FillBgColor, /doLineNumber, /printZebra, /doColumnZebra,
/doZebra, /BeginBackImage, /EndBackImage, /ShowBackText: New procedures.
(ps-current-underline-p, ps-set-underline): Var and fn deleted.
(ps-showline-count, ps-background-pages, ps-background-all-pages)
(ps-background-text-count, ps-background-image-count): New variables.
(ps-header-font, ps-header-title-font)
(ps-header-line-height, ps-header-title-line-height)
(ps-landscape-page-height): Set initial value to nil.
(ps-print-face-extension-alist, ps-print-face-map-alist):
New variables for face remapping.
(ps-new-faces, ps-extend-face-list, ps-extend-face):
New functions for face remapping.
(ps-override-list, ps-extension-to-bit-face)
(ps-extension-to-screen-face, ps-extension-bit)
(ps-initialize-faces, ps-map-font-lock, ps-screen-to-bit-face):
New internal functions for face remapping.
(ps-get-page-dimensions): Fix error message.
(ps-insert-file): Doc fix and programming enhancement.
(ps-begin-file, ps-end-file, ps-get-buffer-name, ps-begin-page)
(ps-next-line, ps-plot-region, ps-face-attributes)
(ps-face-attribute-list, ps-plot-with-face)
(ps-generate-postscript-with-faces): Handle new output features.
(ps-generate): save-excursion inserted to return back point at
position before calling ps-print.
(ps-do-spool): Access dos-ps-printer variable through symbol-value.
(ps-prsc, ps-c-prsc, ps-s-prsc): Use backquote.
(ps-basic-plot-whitespace, ps-emacs-face-kind-p): Internal blank
line eliminated.
(ps-float-format, ps-current-effect): New internal variables.
(ps-output-list, ps-count-lines, ps-background-pages)
(ps-get-boundingbox, ps-float-format, ps-background-text)
(ps-background-image, ps-background, ps-header-height)
(ps-get-face): New internal functions.
(ps-control-character): Handle control characters.
(ps-gnus-print-article-from-summary): Updated for Gnus 5.
(ps-jack-setup): Replace 'nil by nil, 't by t.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 20 Aug 1997 23:11:35 +0000 |
parents | bd56cdc4d07b |
children |
rev | line source |
---|---|
15261 | 1 ;;; tcp.el --- TCP/IP stream emulation for GNU Emacs |
14169 | 2 |
2908 | 3 ;; Copyright (C) 1988, 1989, 1993 Free Software Foundation, Inc. |
4 | |
14169 | 5 ;; Author: Masanobu Umeda |
6 ;; Maintainer: umerin@mse.kyutech.ac.jp | |
2908 | 7 |
8 ;; This file is part of GNU Emacs. | |
9 | |
2909 | 10 ;; GNU Emacs is free software; you can redistribute it and/or modify |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
2908 | 14 |
2909 | 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 | |
14169 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
2909 | 24 |
25 ;;; Commentary: | |
2908 | 26 |
27 ;; Notes on TCP package: | |
28 ;; | |
29 ;; This package provides a TCP/IP stream emulation for GNU Emacs. If | |
30 ;; the function `open-network-stream' is not defined in Emacs, but | |
31 ;; your operating system has a capability of network stream | |
32 ;; connection, this tcp package can be used for communicating with | |
33 ;; NNTP server. | |
34 ;; | |
35 ;; The tcp package runs inferior process which actually does the role | |
36 ;; of `open-network-stream'. The program `tcp' provided with this | |
37 ;; package can be used for such purpose. Before loading the package, | |
38 ;; compile `tcp.c' and install it as `tcp' in a directory in the emacs | |
39 ;; search path. If you modify `tcp.c', please send diffs to the author | |
40 ;; of GNUS. I'll include some of them in the next releases. | |
41 | |
2909 | 42 ;;; Code: |
43 | |
2908 | 44 (provide 'tcp) |
45 | |
46 (defvar tcp-program-name "tcp" | |
47 "*The name of the program emulating open-network-stream function.") | |
48 | |
49 (defun open-network-stream (name buffer host service) | |
50 "Open a TCP connection for a service to a host. | |
51 Returns a subprocess-object to represent the connection. | |
52 Input and output work as for subprocesses; `delete-process' closes it. | |
53 Args are NAME BUFFER HOST SERVICE. | |
54 NAME is name for process. It is modified if necessary to make it unique. | |
55 BUFFER is the buffer (or buffer-name) to associate with the process. | |
56 Process output goes at end of that buffer, unless you specify | |
57 an output stream or filter function to handle the output. | |
58 BUFFER may be also nil, meaning that this process is not associated | |
59 with any buffer | |
60 Third arg is name of the host to connect to. | |
61 Fourth arg SERVICE is name of the service desired, or an integer | |
62 specifying a port number to connect to." | |
63 (let ((proc (start-process name buffer | |
64 tcp-program-name | |
65 host | |
66 (if (stringp service) | |
67 service | |
68 (int-to-string service)) | |
69 ))) | |
70 (process-kill-without-query proc) | |
71 ;; Return process | |
72 proc | |
73 )) | |
2909 | 74 |
75 ;;; tcp.el ends here |