Paul Eggert
5976c3fe90
* fileio.c: conform to C89 pointer rules
2011-02-06 14:02:50 -08:00
Paul Eggert
637de37e96
* minibuf.c: conform to C89 pointer rules
2011-02-06 12:12:53 -08:00
Paul Eggert
01c9aa3af4
* keymap.c: conform to C89 pointer rules
2011-02-06 11:56:30 -08:00
Paul Eggert
b68864e5b9
* insdel.c: conform to C89 pointer rules
2011-02-06 11:44:36 -08:00
Paul Eggert
847c082469
* keyboard.c: conform to C89 pointer rules
2011-02-06 01:03:25 -08:00
Paul Eggert
b8dc29e93c
* image.c: conform to C89 pointer rules
2011-02-06 00:51:35 -08:00
Paul Eggert
5f742c1bf2
* xfns.c: conform to C89 pointer rules
2011-02-05 19:48:28 -08:00
Paul Eggert
4c83cffcce
* xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
...
Emacs assumes two's complement elsewhere, but the assumption is
easy to remove here, and this suppresses a warning with Sun C 5.8.
2011-02-05 19:13:16 -08:00
Paul Eggert
82470039ae
* xterm.c: conform to C89 pointer rules
2011-02-05 18:50:02 -08:00
Paul Eggert
9eee99eb8a
* doc.c: conform to C89 pointer rules
...
(get_doc_string, Fsnarf_documentation, Fsubstitute_command_keys):
Change types between char * and unsigned char *, to satisfy C89
rules about pointer type compatibility.
2011-02-05 17:56:00 -08:00
Paul Eggert
32299e3380
don't ignore chdir failure
...
* sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
failure and exit.
(sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
remaining unchecked chdir calls in this function; some DOS/NT
expert needs to fix them.
* emacs.c (main): Mark with a FIXME the unchecked chdir calls
in this function; some NextStep expert needs to fix them.
2011-02-05 17:25:41 -08:00
Glenn Morris
233ba4d924
Merge from emacs-23; up to 2010-05-26T14:19:15Z!monnier@iro.umontreal.ca.
2011-02-05 14:30:14 -08:00
Paul Eggert
25a48bd06b
xstrcasecmp: conform to C89 pointer rules
2011-02-05 02:20:15 -08:00
Paul Eggert
dfb6afda10
* charset.c: conform to C89 pointer rules
...
(define_charset_internal): Switch between char * and unsigned char *.
2011-02-05 01:57:53 -08:00
Paul Eggert
cc618f4e69
* xmenu.c: conform to C89 const rules
...
(xmenu_show, xdialog_show): Declare local var as char *, not
const char *, to stay compatible with C89 const rules.
2011-02-05 01:49:52 -08:00
Paul Eggert
9bcaafce53
* xdisp.c: conform to C89 pointer rules
...
(store_mode_line_noprop, display_string, reseat_to_string):
(c_string_pos, number_of_chars, message_dolog):
(message_log_check_duplicate, set_message_1, store_mode_line_noprop):
(display_mode_element, display_string):
Switch between char * and unsigned char * to stay compatible wth
C89 pointer rules.
2011-02-05 01:26:46 -08:00
Paul Eggert
5b0534c888
* regex.c: conform to C89 pointer rules
2011-02-04 21:48:19 -08:00
Paul Eggert
d67985d3f9
sync from gnulib to remove HAVE_STDBOOL_H
2011-02-04 21:07:22 -08:00
Eli Zaretskii
f90e08f57d
Update dependencies in src/makefile.w32-in.
...
makefile.w32-in (LISP_H, PROCESS_H): New variables.
Replace all uses of lisp.h with $(LISP_H), and all uses of
process.h with $(PROCESS_H).
($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
($(BLD)/sysdep.$(O)): Depend on ../lib/ignore-value.h.
2011-02-04 17:32:34 +02:00
Eli Zaretskii
be50df37a3
deps.mk: Update for recent changes: gnutls, gnulib imports, globals.h.
2011-02-04 14:01:34 +02:00
Eli Zaretskii
a5d733f5d7
Adapt to addition of ignore-value.h in 2011-02-03T19:29:35Z!eggert@cs.ucla.edu.
...
src/makefile.w32-in (IGNORE_VALUE_H): New variable.
($(BLD)/sysdep.$(O)): Depend on $(IGNORE_VALUE_H).
nt/config.nt (inline) [__GNUC__]: Define (for gnulib).
2011-02-04 11:17:36 +02:00
Paul Eggert
67342916c9
allow C code to suppress warnings about ignored return values
2011-02-03 11:29:35 -08:00
Jan Djärv
36941b32f3
* xterm.c (x_connection_closed): Remove all calls that calls XSync.
...
Fixes: debbugs:7949
2011-02-03 14:46:03 +01:00
Glenn Morris
95838641ae
Doc fixes related to face heights. (Bug#2659)
...
* lisp/faces.el (set-face-attribute): Doc fix.
* src/xfaces.c (Finternal_set_lisp_face_attribute):
Try to clarify some error messages.
2011-02-02 22:55:48 -08:00
Stefan Monnier
aca092acca
* src/editfns.c (save_restriction_restore): Don't forget to invalidate the
...
current_column cache.
Fixes: debbugs:7946
2011-02-02 10:53:20 -05:00
Kenichi Handa
15d73a19fc
merge emacs-23
2011-02-02 11:16:53 +09:00
Kenichi Handa
ea2460a0d8
Use FC_DUAL only when it is defined.
2011-02-02 11:15:29 +09:00
Eli Zaretskii
3082f6173c
Fix a compiler warning in image.c.
...
image.c (tiff_load): Avoid compiler warning in 2nd arg to TIFFClientOpen.
2011-02-01 21:46:21 +02:00
Andreas Schwab
29feb0e9b5
* src/window.c (Fselect_window): Add missing return value.
2011-02-01 20:01:25 +01:00
Jan Djärv
4df0af9b7b
Use add/delete_read_fd in xsmfns to simplify. Also restart with initial_argv.
...
* xsmfns.c (ice_connection_closed): Call delete_read_fd.
(x_session_check_input): Change args and return type so it can be used
as argument to add_read_fd. Make static. Remove call to select.
Call kbd_buffer_store_event for emacs_event.
(smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
(ice_conn_watch_CB): Call add_read_fd.
* xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
x_session_check_input.
(x_session_initialized): Remove definition.
(x_initialize): Remove setting of x_session_initialized.
* xterm.h (x_session_check_input): Remove declaration.
2011-02-01 09:53:03 +01:00
Paul Eggert
a4180391ac
format-time-string now supports subsecond time stamp resolution
2011-01-31 23:23:48 -08:00
Chong Yidong
14beddf471
Merge changes from emacs-23 branch
2011-01-31 18:54:50 -05:00
Eli Zaretskii
8b3c625b7d
Don't define HAVE_STRFTIME on MS-Windows.
...
s/ms-w32.h (HAVE_STRFTIME): Don't define.
2011-01-31 22:00:40 +02:00
Eli Zaretskii
70b0d280eb
Fix the MS-Windows build broken by 2011-01-30T23:34:18Z!eggert@cs.ucla.edu and 2011-01-31T08:15:13Z!eggert@cs.ucla.edu.
...
lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/strftime.$(O) and
$(BLD)/time_r.$(O).
($(BLD)/dtoastr.$(O)): Depend on $(EMACS_ROOT)/src/s/ms-w32.h and
$(EMACS_ROOT)/src/m/intel386.h.
($(BLD)/strftime.$(O)):
($(BLD)/time_r.$(O)): Define prerequisites.
src/makefile.w32-in (OBJ2): Remove strftime.$(O).
($(BLD)/strftime.$(O)): Remove prerequisites.
lib-src/makefile.w32-in (VERSION): Don't define, defined on nt/config.nt.
(ECLIENT_CFLAGS): Remove -DVERSION.
($(BLD)/emacsclient.$(O)): Don't depend on makefile.w32-in.
nt/config.nt (VERSION): Uncomment definition.
(restrict): Define.
nt/inc/stdbool.h: New file.
admin/admin.el (set-version): Remove lib-src/makefile.w32-in. Add
nt/config.nt.
2011-01-31 21:36:08 +02:00
Paul Eggert
3df3a1fc82
Merge: src/emacs.c now gets version number from configure.in
2011-01-31 00:15:13 -08:00
Paul Eggert
16fab14354
src/emacs.c now gets version number from configure.in
2011-01-31 00:12:52 -08:00
Jim Meyering
546961a989
charset.c (load_charset_map): Don't deref NULL on failed malloc.
2011-01-31 08:34:45 +01:00
Paul Eggert
16c3e636a6
strftime: import from gnulib
2011-01-30 15:34:18 -08:00
Paul Eggert
4eec7f8b2b
Use SSDATA when the context wants char *.
2011-01-30 14:22:58 -08:00
Paul Eggert
42a5b22fc0
Use SSDATA when the context wants char *.
...
* alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
* dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
* fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
* lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
* xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
Use SSDATA (not SDATA) when the context of the expression wants
char * (not unsigned char *).
2011-01-30 14:17:44 -08:00
Jan Djärv
2787bba35d
* .gdbinit: Read global lisp variables as globals.f_V*.
2011-01-30 19:36:12 +01:00
Andreas Schwab
4ec88040a1
* src/font.c (PROP_MATCH): Remove parameter N and use strlen instead.
...
All uses changed.
(PROP_SAVE): Likewise.
2011-01-30 01:35:35 +01:00
Andreas Schwab
df61c79005
Fix use of pointers to image library functions
...
* src/image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
of int. All uses adjusted.
(PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
(svg_load_image): Remove casts.
2011-01-30 00:56:33 +01:00
Chong Yidong
c2e79cb408
Fix macro definitions in last change to image.c
2011-01-29 17:33:02 -05:00
Chong Yidong
7f9c5df966
Fix png support to allow compiling with libpng-1.5 (Bug#7908).
...
* image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
function definitions for compiling with libpng-1.5.
(PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
(my_png_error, png_load): Use them. Suggested by Thomas Klausner.
2011-01-29 16:28:26 -05:00
Chong Yidong
b6bcd04894
* keyboard.c (make_lispy_position): Fix typo in last change (Bug#7935).
2011-01-29 10:17:00 -05:00
Eli Zaretskii
f915f0f7c8
Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
...
lib/makefile.w32-in:
lib/getopt_.h: New files.
src/s/ms-w32.h (HAVE_MKTIME): Remove.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GNULIB): New variable.
(LIBS): Add $(GNULIB).
$(TEMACS): Depend on $(GNULIB).
<top-level>: Fix font-lock disrupted by a lone `"'.
src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
(GETOPTOBJS, GETOPTDEPS): Remove targets.
(MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
(ECLIENTOBJS, ETAGSOBJ, CTAGSOBJ, EBROWSEOBJ): Replace getopt.o
and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
(clean): Don't remove getopt.h.
(getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
$(EMACS_ROOT)/lib/getopt.h.
nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
(bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
(bootstrap-clean-gmake, clean-other-dirs-nmake)
(clean-other-dirs-gmake, cleanall-other-dirs-nmake)
(cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
(distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
(maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
nt/configure.bat: Create lib/makefile.
nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
(HAVE_ATTRIBUTE_ALIGNED, HAVE_C99_STRTOLD, HAVE_DECL_GETENV)
(HAVE_DECL_LOCALTIME_R, HAVE_WCHAR_T, PACKAGE, VERSION, inline)
(_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
2011-01-29 14:36:11 +02:00
Jan Djärv
497a1925ec
Handle nul-character in copy/paste (Bug#7934).
...
* nsselect.m (ns_string_from_pasteboard): Get length of string
and use make_string instead of build_string.
(ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
instead of stringWithUTF8String (Bug#7934).
2011-01-29 12:30:11 +01:00
Jan Djärv
481ae0855f
Handle floating point errors in ns-fonts (Bug#7887).
...
* nsfont.m (nsfont_open): Ensure that fonts with inexact
descenders would not become one pixel too tall (Bug#7887).
2011-01-29 11:36:16 +01:00
Chong Yidong
6b91861333
Fix text pos part of lispy positions for right fringe clicks (Bug#7839).
...
* src/keyboard.c (make_lispy_position): For clicks on right fringe or
margin, compute text position using the X coordinate relative to
the left of the text area (Bug#7839).
2011-01-28 15:30:38 -05:00