Commit Graph

30574 Commits

Author SHA1 Message Date
Stefan Monnier
cafdcef32d Merge from trunk 2011-03-21 12:42:16 -04:00
Glenn Morris
66b874939b (Re)move autotools generated files from the repository.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00225.html

* autogen/: New directory, to be excluded from releases.
* autogen/copy_autogen, autogen/update_autogen: New scripts.
* autogen/README: New file.
* autogen/aclocal.m4, autogen/config.in, autogen/configure:
* autogen/Makefile.in: Add auto-updated generated files.

* autogen.sh: No longer a no-op, now it tests for autotools
and runs them as necessary.

* configure.in: Defaule maintainer-mode to on.

* aclocal.m4, configure, lib/Makefile.in: Remove files.

* src/config.in: Remove file.

* INSTALL.BZR, admin/make-tarball.txt: Update instructions.
2011-03-20 16:58:23 -07:00
Juanma Barranquero
45b6f6d5cb src/minibuf.c: Fix previous change.
* minibuf.c (Vcompleting_read_function): Don't declare, global variables
  are now in src/globals.h.
  (syms_of_minibuf): Remove spurious & from previous change.
2011-03-20 14:57:22 +01:00
Leo Liu
3ec03f7e46 New variable completing-read-function to customize completing-read 2011-03-20 18:35:27 +08:00
Chong Yidong
b14e3e21ec Merge changes from emacs-23 branch 2011-03-19 14:49:31 -04:00
Chong Yidong
20f5695598 Backport fix for Bug#8219 from trunk.
* buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
(BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
These macros can no longer be used for assignment.

* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
struct members directly, instead of using BUF_BEGV etc.
(record_buffer_markers, fetch_buffer_markers): New functions for
recording and fetching special buffer markers.
(set_buffer_internal_1, set_buffer_temp): Use them.

* lread.c (unreadchar): Use SET_BUF_PT_BOTH.

* insdel.c (adjust_point): Use SET_BUF_PT_BOTH.

* intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
(get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.

* xdisp.c (hscroll_window_tree):
(reconsider_clip_changes): Use PT instead of BUF_PT.
2011-03-19 12:42:53 -04:00
Juanma Barranquero
f2b726e626 src/makefile.w32-in: Update dependencies. 2011-03-19 04:22:14 +01:00
Paul Eggert
fffe2e1404 Restore failure returns to unexaix.c, unexcoff.c, unexcw.c 2011-03-17 13:18:59 -07:00
Eli Zaretskii
09f6ff021c Update MS-Windows dependencies after 2011-03-17T18:41:30Z!eggert@cs.ucla.edu.
src/makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
2011-03-17 21:55:40 +02:00
Paul Eggert
381259ef0d Change unexec implementations to match prototype. 2011-03-17 11:41:30 -07:00
Paul Eggert
a3a6c54ec7 Merge: Fix more problems found by GCC 4.5.2's static checks. 2011-03-17 09:51:42 -07:00
Paul Eggert
b1d876f1a1 Merge from mainline. 2011-03-17 09:32:03 -07:00
Juanma Barranquero
45763476fc src/xfaces.c (Fx_load_color_file): Read color file from absolute filename.
Fixes: debbugs:8250
2011-03-17 16:44:02 +01:00
Paul Eggert
b766f86726 * process.c (make_serial_process_unwind, send_process_trap):
(sigchld_handler): Now static.
2011-03-16 22:18:33 -07:00
Paul Eggert
be02381c5d * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
That way, the code declares only the vars that it needs.
* s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
* s/cygwin.h (PTY_ITERATION): Likewise.
* s/darwin.h (PTY_ITERATION): Likewise.
* s/gnu-linux.h (PTY_ITERATION): Likewise.
2011-03-16 22:15:08 -07:00
Paul Eggert
5704874403 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
* process.c (allocate_pty): Don't declare stb unless it's needed.
2011-03-16 19:36:27 -07:00
Paul Eggert
615f2d59a5 * bytecode.c (CONSTANTLIM): Remove; unused.
(METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
Define only if needed.
2011-03-16 19:18:00 -07:00
Paul Eggert
7914961cd7 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else". 2011-03-16 19:11:29 -07:00
Paul Eggert
73366a004b * unexelf.c (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused. 2011-03-16 19:09:36 -07:00
Paul Eggert
9ae7151257 * unexelf.c: Use a different way to cause a compilation error if anyone uses
n rather than nn, a way that does not involve shadowing.
2011-03-16 19:07:47 -07:00
Paul Eggert
b3967b18cd * unexelf.c (unexec): Name an expression,
to avoid gcc -Wbad-function-cast warning.
2011-03-16 18:52:35 -07:00
Paul Eggert
43cfc33e3d Add Bug#. 2011-03-16 18:49:15 -07:00
Paul Eggert
29a6015ab3 * deps.mk (unexalpha.o): Remove; unused. 2011-03-16 17:22:09 -07:00
Paul Eggert
7feda0d218 * unexec.h: New file. 2011-03-16 17:03:31 -07:00
Paul Eggert
ce701a3393 New file unexec.h, the (simple) interface for unexec.
* deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
(unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
Depend on unexec.h.
* emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
* unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
* unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
2011-03-16 16:59:54 -07:00
Paul Eggert
4f63c6bb76 * syntax.c (back_comment, skip_chars): Mark vars as initialized. 2011-03-16 14:47:59 -07:00
Paul Eggert
01f44d5a68 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
shadowing.
2011-03-16 14:43:38 -07:00
Paul Eggert
0902fe4540 * lread.c (Fload, readevalloop, read1): Rename locals to avoid shadowing. 2011-03-16 14:40:51 -07:00
Paul Eggert
a6670b0ba2 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
Rename locals to avoid shadowing.
2011-03-16 14:34:32 -07:00
Paul Eggert
cef2010db4 * lread.c (read1): Rewrite so as not to use empty "else". 2011-03-16 14:29:13 -07:00
Paul Eggert
d4d7173a91 * print.c (Fredirect_debugging_output): Fix pointer signedess. 2011-03-16 14:28:29 -07:00
Paul Eggert
f08b802adc * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
warning when compiling print.c.
2011-03-16 14:27:03 -07:00
Paul Eggert
5ad03b978f * font.c (font_sort_entities): Mark var as initialized. 2011-03-16 14:23:37 -07:00
Paul Eggert
3ddb063971 * font.c (font_unparse_fcname): Abort in an "impossible" situation
instead of using an uninitialized var.
2011-03-16 14:14:06 -07:00
Stefan Monnier
ca1055060d Remove bytecomp- prefix, plus misc changes.
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Make it work to
inline lexbind interpreted functions into lexbind code.
(bytedecomp-bytes): Not a dynamic var any more.
(disassemble-offset): Get the bytes via an argument instead.
(byte-decompile-bytecode-1): Use push.
* lisp/emacs-lisp/bytecomp.el: Remove the bytecomp- prefix now that we use
lexical-binding.
(byte-compile-outbuffer): Rename from bytecomp-outbuffer.
* lisp/emacs-lisp/cl-macs.el (load-time-value):
* lisp/emacs-lisp/cl.el (cl-compiling-file): Adjust to new name.
* lisp/emacs-lisp/pcase.el (pcase-mutually-exclusive-predicates):
Add byte-code-function-p.
(pcase--u1): Remove left-over code from early development.
Fix case of variable shadowing in guards and predicates.
(pcase--u1): Add a new `let' pattern.
* src/image.c (parse_image_spec): Use Ffunctionp.
* src/lisp.h: Declare Ffunctionp.
2011-03-16 16:08:39 -04:00
Stefan Monnier
fb103ca9a7 * src/print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
(print_preprocess, print_object): New macro to fix last change.
2011-03-16 13:34:26 -04:00
Stefan Monnier
35ac2a97f5 * src/print.c (print_preprocess): Don't forget font objects. 2011-03-16 10:23:26 -04:00
Paul Eggert
13a547c679 * font.c: (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
(font_update_drivers, Ffont_get_glyphs, font_add_log):
Rename or move locals to avoid shadowing.
2011-03-16 01:34:44 -07:00
Paul Eggert
170a2692ec * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing. 2011-03-16 01:31:20 -07:00
Paul Eggert
ea838e10ea * font.c (font_get_spec): Remove; unused. 2011-03-16 01:22:49 -07:00
Paul Eggert
7b81e2d023 * font.c (font_delete_unmatched): Now static. 2011-03-16 01:22:13 -07:00
Paul Eggert
89bc529a4c * font.c (font_parse_fcname): Remove unused vars. 2011-03-16 01:20:40 -07:00
Paul Eggert
e663c700e7 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
pointers to constants.
2011-03-16 01:19:22 -07:00
Paul Eggert
612f56dfff * fns.c (Ffillarray): Rename locals to avoid shadowing. 2011-03-16 00:49:54 -07:00
Paul Eggert
2a80c887c7 * fns.c (require_nesting_list, require_unwind): Now static. 2011-03-16 00:48:36 -07:00
Paul Eggert
a885e2ed79 * floatfns.c (Ffrexp, Fldexp): Rename locals to avoid shadowing. 2011-03-16 00:47:02 -07:00
Paul Eggert
1384fa3358 * floatfns.c (domain_error2): Define only if needed. 2011-03-16 00:45:34 -07:00
Paul Eggert
1faed8ae39 * eval.c (Fdefvar): Rename locals to avoid shadowing. 2011-03-16 00:44:19 -07:00
Paul Eggert
8b2c52e913 * alloc.c (mark_backtrace): Move decl from here ...
* lisp.h: ... to here, so that it can be checked.
2011-03-16 00:37:10 -07:00
Paul Eggert
cfcbfb1aa5 * eval.c (lisp_indirect_variable): Name an expression,
to avoid gcc -Wbad-function-cast warning.
2011-03-16 00:34:28 -07:00