1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 06:50:39 -08:00
Commit graph

99417 commits

Author SHA1 Message Date
Paul Eggert
7f650bb9a8 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
This also avoids a warning with gcc -Wstrict-overflow.
2011-03-21 11:09:45 -07:00
Paul Eggert
b1f961e1fa * ebrowse.c: Use size_t, not int, for sizes.
This avoids a warning with gcc -Wstrict-overflow, and works
better for very large objects.
(inbuffer_size): Now size_t.  All uses changed.
(xmalloc, xrealloc, operator_name, process_file): Use size_t for
sizes.  Don't bother testing whether a size_t value can be negative.
2011-03-21 11:03:15 -07:00
Paul Eggert
58cb46fbf4 * etags.c (Ada_funcs): Redo slightly to avoid overflow warning. 2011-03-21 09:41:03 -07:00
Paul Eggert
3ef271f27f etags: In Prolog functions, don't assume int fits in size_t.
This avoids a warning with gcc -Wstrict-overflow.
* etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t,
not int, to store sizes.
(prolog_atom): Return 0, not -1, on error.  All callers changed.
2011-03-21 09:40:05 -07:00
Paul Eggert
a44c5709ce Merge from gnulib. 2011-03-21 09:26:05 -07:00
Paul Eggert
5d6d7e5701 Add Bug#. 2011-03-21 09:22:16 -07:00
Paul Eggert
f0d80d43ba update-game-score: fix bug with -r
* update-game-score.c (main): Don't set 'scores' to garbage when
-r is specified and scorecount != MAX_SCORES.  This bug was
introduced in the 2002-04-10 change, and was found with gcc
-Wstrict-overflow (GCC 4.5.2, x86-64).
2011-03-21 00:46:53 -07:00
Paul Eggert
37dd57d1e5 Add Bug#. 2011-03-20 22:50:24 -07:00
Paul Eggert
6e5fa6bfce Merge from trunk and from gnulib stdio. 2011-03-20 22:34:48 -07:00
Paul Eggert
77185bdf91 Autogenerate. 2011-03-20 22:06:47 -07:00
Paul Eggert
cbd350f1f3 * .bzrignore: Add lib/stdio.h. 2011-03-20 22:05:49 -07:00
Paul Eggert
d5cad867ec [ChangeLog]
fakemail: Remove dependency on ignore-value.
* Makefile.in (GNULIB_MODULES): Add stdio.
* lib/stdio.in.h, m4/stdio_h.m4: New files, automatically
imported from gnulib.
[lib-src/ChangeLog]
fakemail: Remove dependency on ignore-value.
This undoes some of the recent fakemail-related changes.
It is made possible due to recent changes to gnulib's stdio module.
* Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h.
* fakemail.c: Do not include ignore-value.h.
(put_line): Do not use ignore_value.
2011-03-20 22:04:41 -07:00
Paul Eggert
81e56e612d * fileio.c (Fcopy_file): Report error if fchown or fchmod fail. 2011-03-20 19:40:27 -07:00
Glenn Morris
99ea4cd9ea Fix typo in a README. 2011-03-20 17:28:18 -07:00
Glenn Morris
84ea55580d Fix date of merged entry. 2011-03-20 17:20:24 -07:00
Glenn Morris
e22c7d937a * autogen/update_autogen: Make bzr commit respect -q option. 2011-03-20 17:08:01 -07:00
Glenn Morris
dccef36192 Auto-commit of generated files. 2011-03-20 20:03:58 -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
Paul Eggert
699979fc4c Add Bug#. 2011-03-20 16:56:23 -07:00
Paul Eggert
dc1ca6a87f * emacs.c (Fdaemon_initialized): Do not ignore I/O errors. 2011-03-20 14:03:44 -07:00
Jay Belanger
1fe275ee28 * calc/calc-menu.el (calc-units-menu): Add entries for logarithmic
units and musical notes.
2011-03-20 15:59:29 -05:00
Paul Eggert
c184bbfdfd Merge: Use socklen_t, not int, for socket lengths. 2011-03-20 09:55:33 -07:00
Paul Eggert
6a90a4f198 Merge from gnulib, for socklen_t. 2011-03-20 09:28:22 -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
Christian Ohler
7d476bdec5 * emacs-lisp/ert.el (ert-run-tests-batch): Remove unused variable.
(ert-delete-all-tests): Use `called-interactively-p' rather than
`interactive-p'.
(ert--make-xrefs-region): Respect END.
2011-03-20 21:17:10 +11:00
Paul Eggert
c939f91b4d Add Bug#8298. 2011-03-19 22:15:59 -07:00
Paul Eggert
12d8b6ab59 * process.c (create_process): Use 'volatile' to avoid vfork clobbering. 2011-03-19 20:07:54 -07:00
Paul Eggert
7b8081265e * process.c (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros. 2011-03-19 19:48:50 -07:00
Paul Eggert
f990b4e5d9 * process.c (process_send_signal): Add cast to avoid pointer signedness problem. 2011-03-19 19:45:19 -07:00
Paul Eggert
0da4933597 * process.c (Fnetwork_interface_info): Fix pointer signedness. 2011-03-19 19:42:34 -07:00
Paul Eggert
4dc343ee36 * process.c (Fmake_network_process): Define label "retry_connect" only if needed. 2011-03-19 19:41:23 -07:00
Paul Eggert
b93aacde82 * process.c: Rename or move locals to avoid shadowing.
(list_processes_1, Fmake_network_process):
(read_process_output_error_handler, exec_sentinel_error_handler):
Rename or move locals.
2011-03-19 19:40:14 -07:00
Paul Eggert
af8a867c62 Make tparam.h and terminfo.c consistent.
* cm.c (tputs, tgoto, BC, UP): Remove extern decls.  Include
tparam.h instead, since it declares them.
* cm.h (PC): Remove extern decl; tparam.h now does this.
* deps.mk (cm.o, terminfo.o): Depend on tparam.h.
* terminfo.c: Include tparam.h, to check interfaces.
(tparm): Make 1st arg a const pointer in decl.  Put it at top level.
(tparam): Adjust signature to match interface in tparam.h;
this removes some undefined behavior.  Check that outstring and len
are zero, which they always are with Emacs.
* tparam.h (PC, BC, UP): New extern decls.
2011-03-19 15:46:50 -07:00
Chong Yidong
ff854b0bde Add error for dired-create-directory on existing file (Bug#8246).
* lisp/dired-aux.el (dired-create-directory): Signal an error if the
directory already exists.
2011-03-19 18:07:41 -04:00
Chong Yidong
fe0fb33e83 Fix facemenu to populate buffer inside the with-help-window call.
See http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01193.html

* facemenu.el (list-colors-display): Call list-faces-display from
inside with-help-window.
(list-colors-print): Use display property to align the final
column, instead of checking window-width.
2011-03-19 17:37:21 -04:00
Chong Yidong
b14e3e21ec Merge changes from emacs-23 branch 2011-03-19 14:49:31 -04:00
Chong Yidong
4525ce3eb5 Fix tar package handling, and clean up package-subdirectory-regexp usage.
* lisp/startup.el (package-subdirectory-regexp): Move from package.el.
Omit \\` and \\', and let callers add them.

* lisp/emacs-lisp/package.el (package-strip-version)
(package-load-all-descriptors): Add \\` and \\' to
package-subdirectory-regexp before using it.
(package-untar-buffer): New arg DIR; ensure that file untars only
into this expected directory.  Remove superfluous delete-region.
(package-unpack): Caller changed.
(package-tar-file-info): Use package-subdirectory-regexp.
2011-03-19 14:27:55 -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
Eli Zaretskii
576bce3267 Fix emerge.el on MS-Windows and MS-DOS.
lisp/emerge.el (emerge-metachars): Separate value for ms-dos and
 windows-nt systems.
 (emerge-protect-metachars): Quote correctly for ms-dos and
 windows-nt systems.
2011-03-19 11:30:56 +02:00
Paul Eggert
001a7ab41b * xftfont.c (xftfont_open): Rename locals to avoid shadowing. 2011-03-18 22:07:42 -07:00
Paul Eggert
0248044d31 * xftfont.c (xftfont_shape): Now static, and defined only if needed. 2011-03-18 22:05:19 -07:00
Paul Eggert
49eaafbac1 * ftfont.c: (get_adstyle_property, ftfont_pattern_entity):
(ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
Rename locals to avoid shadowing.
2011-03-18 22:03:30 -07:00
Paul Eggert
e932860f4b * ftfont.c (ftfont_list): Remove unused local. 2011-03-18 21:57:02 -07:00
Paul Eggert
a00924bbce * ftfont.c (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
(OTF_TAG_SYM): Omit macro if not needed.
2011-03-18 21:56:15 -07:00
Juanma Barranquero
0a19a6f875 Fix typos. 2011-03-19 04:58:45 +01:00
Juanma Barranquero
f2b726e626 src/makefile.w32-in: Update dependencies. 2011-03-19 04:22:14 +01:00
Paul Eggert
8ff096c18c * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness. 2011-03-18 19:49:10 -07:00
Paul Eggert
e2be39f6af * xfont.c (xfont_list_family): Mark var as initialized. 2011-03-18 19:45:11 -07:00
Paul Eggert
c9735e30ca * xml.c (make_dom): Now static. 2011-03-18 19:43:47 -07:00