Mercurial > hg > xemacs-beta
annotate modules/sample/external/Makefile.in.in @ 5803:b79e1e02bf01
Preserve extent information in the command builder code.
src/ChangeLog addition:
2014-07-14 Aidan Kehoe <kehoea@parhasard.net>
* event-stream.c:
* event-stream.c (mark_command_builder):
* event-stream.c (finalize_command_builder): Removed.
* event-stream.c (allocate_command_builder):
* event-stream.c (free_command_builder): Removed. Use
free_normal_lisp_object() instead.
* event-stream.c (echo_key_event):
* event-stream.c (regenerate_echo_keys_from_this_command_keys):
Detach all extents here.
* event-stream.c (maybe_echo_keys):
* event-stream.c (reset_key_echo):
* event-stream.c (execute_help_form):
* event-stream.c (Fnext_event):
* event-stream.c (command_builder_find_leaf_no_jit_binding):
* event-stream.c (command_builder_find_leaf):
* event-stream.c (lookup_command_event):
* events.h (struct command_builder):
Move the command builder's echo_buf to being a Lisp string rather
than a malloced Ibyte array. This allows passing through extent
information, which was previously dropped. It also simplifies the
allocation and release code for the command builder.
Rename echo_buf_index to echo_buf_fill_pointer, better reflecting
its function.
Don't rely on zero-termination (something not particularly
compatible with Lisp-level code) when showing a substring of
echo_buf that differs from that designated by
echo_buf_fill_pointer, keep a separate counter instead and use
that.
* minibuf.c:
* minibuf.c (echo_area_append):
Use the new START and END keyword arguments to #'append-message,
rather than consing a new string for basically every #'next-event
prompt displayed.
test/ChangeLog addition:
2014-07-14 Aidan Kehoe <kehoea@parhasard.net>
* automated/extent-tests.el:
Check that extent information is passed through to the echo area
correctly with #'next-event's PROMPT argument.
lisp/ChangeLog addition:
2014-07-14 Aidan Kehoe <kehoea@parhasard.net>
* simple.el (raw-append-message):
Use #'write-sequence in this, take its START and END keyword
arguments, so our callers don't have to cons as much.
* simple.el (append-message):
Pass through START and END here.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 14 Jul 2014 13:42:42 +0100 |
parents | 4aa8ee813265 |
children |
rev | line source |
---|---|
996 | 1 ## Makefile for the sample module in XEmacs. |
2 ## Copyright (C) 2002 Jerry James. | |
4737
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
3 ## |
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
4 ## This sample Makefile is free; you can redistribute it and/or modify it |
dce479915b74
Clarify the GPL status of several sample module files. J. Kean Johnston
Jerry James <james@xemacs.org>
parents:
1490
diff
changeset
|
5 ## under the terms of the GNU General Public License as published by the |
5417
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
4737
diff
changeset
|
6 ## Free Software Foundation, either version 3 of the License, or (at your |
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
4737
diff
changeset
|
7 ## option) any later version. |
996 | 8 |
9 ## This file is not part of XEmacs. | |
10 | |
11 ### Specialize this part for your module | |
12 MODNAME=sample | |
13 MODVER=0.0.1 | |
14 MODTITLE="Sample module for XEmacs" | |
15 SRCS=sample.c | |
16 | |
17 ### You should not need to modify anything below this line | |
5512
4aa8ee813265
Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents:
5417
diff
changeset
|
18 DESTDIR= |
996 | 19 SHELL=/bin/sh |
20 RM=rm -f | |
21 CFLAGS=@CFLAGS@ | |
22 LDFLAGS=@LDFLAGS@ | |
23 | |
24 srcdir=@srcdir@ | |
25 VPATH=@srcdir@ | |
26 | |
1490 | 27 SRC_SRCS=$(SRCS:%=$(srcdir)/%) |
28 OBJS=$(SRCS:.c=.o) | |
29 | |
996 | 30 ELLCC=@ELLCC@ |
31 MODARCHDIR=$(shell @ELLCC@ --mod-archdir) | |
32 INSTALLPATH=$(shell @ELLCC@ --mod-site-location) | |
33 INSTALL=@INSTALL@ | |
34 INSTALL_PROGRAM=@INSTALL_PROGRAM@ | |
35 | |
36 .PHONY: clean distclean install | |
37 all: $(MODNAME).ell | |
38 | |
39 .c.o: | |
40 $(ELLCC) $(CFLAGS) --mode=compile --mod-output=$@ \ | |
41 -I$(MODARCHDIR)/include -c $< | |
42 | |
43 $(MODNAME).ell: $(OBJS) $(MODNAME)_i.o | |
1489 | 44 $(ELLCC) --mode=link --mod-output=$@ $(OBJS) $(MODNAME)_i.o $(LDFLAGS) |
996 | 45 |
46 $(MODNAME)_i.c: $(SRCS) | |
47 ELLMAKEDOC=$(MODARCHDIR)/make-docfile $(ELLCC) --mode=init \ | |
48 --mod-output=$@ --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | |
49 --mod-title=$(MODTITLE) $(SRC_SRCS) | |
50 | |
51 clean: | |
52 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~ | |
53 | |
54 distclean: clean | |
55 $(RM) Makefile config.* configure | |
56 | |
57 install: $(MODNAME).ell | |
5512
4aa8ee813265
Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents:
5417
diff
changeset
|
58 $(INSTALL_PROGRAM) $< $(DESTDIR)$(INSTALLPATH) |