Mercurial > hg > xemacs-beta
annotate src/console-stream-impl.h @ 5658:289cf21be887
Don't augment ENVIRONMENT when that's not indicated, #'macroexpand.
This reflects better understanding on my part of the &environment macro
keyword, and I've expanded the Lisp manual and docstrings to reflect that.
lisp/ChangeLog addition:
2012-05-06 Aidan Kehoe <kehoea@parhasard.net>
* cl-macs.el (block): Comment on why we can't use &environment
here.
* cl-macs.el (defmacro*): Document &environment in more detail.
* cl-macs.el (macrolet): Use &environment, instead of referencing
byte-compile-macro-environment directly.
* cl-macs.el (symbol-macrolet): Ditto.
* cl-macs.el (lexical-let): Ditto.
* cl-macs.el (labels): Ditto.
man/ChangeLog addition:
2012-05-06 Aidan Kehoe <kehoea@parhasard.net>
* lispref/macros.texi (Expansion):
Cross-reference to documentation of #'cl-prettyexpand, #'defmacro*
when talking about #'macroexpand.
tests/ChangeLog addition:
2012-05-06 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el:
Use &environment appropriately in #'macrolet, instead of relying
on #'macroexpand to guess what we mean.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 06 May 2012 15:29:59 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
872 | 1 /* Define stream specific console, device, and frame object for XEmacs. |
2 Copyright (C) 1995 Board of Trustees, University of Illinois. | |
3 Copyright (C) 1995 Free Software Foundation, Inc. | |
1204 | 4 Copyright (C) 2002 Ben Wing. |
872 | 5 |
6 This file is part of XEmacs. | |
7 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
8 XEmacs is free software: you can redistribute it and/or modify it |
872 | 9 under the terms of the GNU General Public License as published by the |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
10 Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
11 option) any later version. |
872 | 12 |
13 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5127
diff
changeset
|
19 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
872 | 20 |
21 /* Synched up with: Not in FSF. */ | |
22 | |
23 /* Written by Ben Wing. */ | |
24 | |
25 #ifndef INCLUDED_console_stream_impl_h_ | |
26 #define INCLUDED_console_stream_impl_h_ | |
27 | |
28 #include "console-impl.h" | |
29 #include "console-stream.h" | |
30 | |
31 DECLARE_CONSOLE_TYPE (stream); | |
32 | |
33 struct stream_console | |
34 { | |
3092 | 35 #ifdef NEW_GC |
5127
a9c41067dd88
more cleanups, terminology clarification, lots of doc work
Ben Wing <ben@xemacs.org>
parents:
5120
diff
changeset
|
36 NORMAL_LISP_OBJECT_HEADER header; |
3092 | 37 #endif /* NEW_GC */ |
872 | 38 FILE *in; |
39 FILE *out; | |
40 FILE *err; | |
41 int needs_newline; | |
1204 | 42 Lisp_Object instream; |
872 | 43 }; |
44 | |
3092 | 45 #ifdef NEW_GC |
46 typedef struct stream_console Lisp_Stream_Console; | |
47 | |
5118
e0db3c197671
merge up to latest default branch, doesn't compile yet
Ben Wing <ben@xemacs.org>
parents:
3092
diff
changeset
|
48 DECLARE_LISP_OBJECT (stream_console, Lisp_Stream_Console); |
3092 | 49 |
50 #define XSTREAM_CONSOLE(x) \ | |
51 XRECORD (x, stream_console, Lisp_Stream_Console) | |
52 #define wrap_stream_console(p) wrap_record (p, stream_console) | |
53 #define STREAM_CONSOLE_P(x) RECORDP (x, stream_console) | |
54 #endif /* NEW_GC */ | |
55 | |
872 | 56 #define CONSOLE_STREAM_DATA(con) CONSOLE_TYPE_DATA (con, stream) |
57 | |
58 #endif /* INCLUDED_console_stream_impl_h_ */ |