aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog (follow)
Commit message (Collapse)AuthorAgeFilesLines
* src/makefile.w32-in: Update dependencies.Juanma Barranquero2011-05-051-0/+5
|
* src/gnutls.c: Remove unused parameter `fildes'.Juanma Barranquero2011-05-051-0/+7
| | | | | | | * gnutls.h (emacs_gnutls_write, emacs_gnutls_read): * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Remove unused parameter `fildes'. * process.c (read_process_output, send_process): Don't pass it.
* Fix previous change: the library cache is defined in w32.c.Juanma Barranquero2011-05-041-0/+6
| | | | | * image.c (CACHE_IMAGE_TYPE) [!HAVE_NTGUI]: Define to noop. (Finit_image_library): Wrap Vlibrary_cache on "#ifdef HAVE_NTGUI".
* Implement dynamic loading of GnuTLS on Windows.Juanma Barranquero2011-05-041-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/term/w32-win.el (dynamic-library-alist): Add `gnutls'. * nt/INSTALL: Clarify GnuTLS support. * src/callproc.c, src/emacs.c: Include lisp.h before src/w32.h, not after. * src/gnutls.c (Qgnutls_dll): Define. (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): New macros. (gnutls_*): Declare function pointers. (init_gnutls_functions): New function to initialize function pointers. (emacs_gnutls_handshake, Fgnutls_error_string, Fgnutls_deinit) (emacs_gnutls_global_init, Fgnutls_bye): Use function pointers. (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno): Wrappers for gnutls_record_check_pending and gnutls_transport_set_errno. (emacs_gnutls_write, emacs_gnutls_read) (emacs_gnutls_handle_error, Fgnutls_error_fatalp) (Fgnutls_available_p): New function. (Fgnutls_boot): Call Fgnutls_available_p. Use function pointers. (syms_of_gnutls) <Qgnutls_dll>: Initialize and staticpro it. (syms_of_gnutls) <Sgnutls_available_p>: defsubr it. * src/gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro. (emacs_gnutls_write, emacs_gnutls_read): Mark as extern. (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno): Declare. * src/w32.c (QCloaded_from, Vlibrary_cache): Define. (w32_delayed_load): Move from image.c. When loading a library, record its filename in the :loaded-from property of the library id. (globals_of_w32) <QCloaded_from, Vlibrary_cache>: Initialize and staticpro them. (emacs_gnutls_pull, emacs_gnutls_push): Call emacs_gnutls_* functions. * src/image.c: Include w32.h. (Vimage_type_cache): Delete. (syms_of_image) <Vimage_type_cache>: Don't initialize and staticpro it. (CACHE_IMAGE_TYPE, Finit_image_library): Use Vlibrary_cache instead. (w32_delayed_load): Move to w32.c. * src/process.c: Include lisp.h before src/w32.h, not after. (wait_reading_process_output): Call emacs_gnutls_record_check_pending instead of gnutls_record_check_pending. * src/w32.h (VlibraryCache, QCloaded_from, w32_delayed_load): Declare.
* Support :keylist and :crlfiles options to `gnutls-boot' and use them.Ted Zlatanov2011-05-031-0/+6
| | | | | | * src/gnutls.c (Fgnutls_boot): Support :keylist and :crlfiles options instead of :keyfiles. Give GnuTLS the keylist and the CRL lists as passed in.
* * xterm.c (x_set_frame_alpha): Do not set property on anythingJan Djärv2011-05-031-0/+5
| | | | | | else than FRAME_X_OUTER_WINDOW. Fixes: debbugs:8608
* src/sysdep.c (get_tty_size) [WINDOWSNT]: Implement.Juanma Barranquero2011-05-021-0/+4
| | | | Fixes: debbugs:8596
* src/gnutls.c: Make static a bunch of variables.Juanma Barranquero2011-05-021-0/+12
|
* * src/callproc.c: Indentation fixup.Andreas Schwab2011-05-011-0/+2
|
* * src/sysdep.c (wait_for_termination_1): Make static.Andreas Schwab2011-05-011-0/+6
| | | | | (wait_for_termination, interruptible_wait_for_termination): Move after wait_for_termination_1.
* Extend `call-process' to take the `(:file "file")' syntax to redirectLars Magne Ingebrigtsen2011-05-011-0/+10
| | | | STDOUT to a file.
* Adapt the MSDOS build to latest changes.Eli Zaretskii2011-04-301-0/+3
| | | | | | | | | | | msdos/inttypes.h: New file. msdos/sed2v2.inp (HAVE_DECL_STRTOULL, HAVE_DECL_STRTOUMAX) (HAVE_STRTOULL, HAVE_STRTOULL): Define to 1. src/sedlibmk.inp (BUILT_SOURCES): Edit out inttypes.h. src/sed1v2.inp (CPPFLAGS): Edit to "-I../msdos". Add ../msdos/inttypes.h to prerequisites of lread.o. src/dosfns.c (Fint86, Fdos_memget, Fdos_memput): Use `ASIZE (FOO)' rather than `XVECTOR (FOO)->size'.
* Don't test HAVE_INTTYPES_H in process.c.Eli Zaretskii2011-04-301-0/+6
| | | | | | src/process.c: Remove HAVE_INTTYPES_H condition from inclusion of inttypes.h, as a gnulib replacement is used if it not available in system headers.
* Lift the MOST_POSITIVE_FIXNUM/4 limitation on visited files (bug#8528).Eli Zaretskii2011-04-291-1/+15
| | | | | | | | | | | | src/fileio.c (Finsert_file_contents): Don't limit file size to 1/4 of MOST_POSITIVE_FIXNUM. src/coding.c (coding_alloc_by_realloc): Error out if destination will grow beyond MOST_POSITIVE_FIXNUM. (decode_coding_emacs_mule): Abort if there isn't enough place in charbuf for the composition carryover bytes. Reserve an extra space for up to 2 characters produced in a loop. (decode_coding_iso_2022): Abort if there isn't enough place in charbuf for the composition carryover bytes.
* Don't abort in doprnt when passed unsupported %ll modifier.Eli Zaretskii2011-04-291-0/+5
| | | | | | | src/doprnt.c (doprnt) [!HAVE_LONG_LONG_INT]: Error out instead of aborting when %lld or %lll format is passed. [!HAVE_UNSIGNED_LONG_LONG_INT]: Error out instead of aborting when %llo or %llx format is passed. (Bug#8545)
* Fix bug #7952 with vertical motion in Grep buffers.Eli Zaretskii2011-04-291-0/+3
| | | | | src/window.c (window_scroll_line_based): Use a marker instead of simple variables to record original value of point.
* Fix doprnt when buffer is too small for multibyte sequences.Eli Zaretskii2011-04-291-0/+5
| | | | | src/doprnt.c (doprnt): Fix the case where a multibyte sequence produced by %s or %c overflows available buffer space. (Bug#8545)
* * doprnt.c (SIZE_MAX): Move defn after all includes, as they might #define it.Paul Eggert2011-04-281-0/+1
|
* * doprnt.c (doprnt): Omit useless test; int overflow check (Bug#8545).Paul Eggert2011-04-281-0/+4
|
* src/w32.c (init_environment): Warn about defaulting HOME to C:\.Juanma Barranquero2011-04-281-0/+4
|
* Add delayed warnings support.Juanma Barranquero2011-04-281-0/+8
| | | | | | | | | | | | | * etc/NEWS: Document `delayed-warnings-list' and `delayed-warnings-hook'. * lisp/subr.el (display-delayed-warnings): New function. (delayed-warnings-hook): New variable. * src/keyboard.c (Qdelayed_warnings_hook): Define. (command_loop_1): Run `delayed-warnings-hook' if Vdelayed_warnings_list is non-nil. (syms_of_keyboard) <delayed-warnings-hook>: DEFSYM it. (syms_of_keyboard) <delayed-warnings-list>: DEFVAR_LISP it.
* Fix return value from doprnt when message is truncated at non-ASCII character.Eli Zaretskii2011-04-281-0/+5
| | | | | src/doprnt.c (doprnt): Don't return value smaller than the buffer size if the message was truncated. (Bug#8545).
* src/w32fns.c: #if-0 some functions entirely, not just the bodies.Juanma Barranquero2011-04-281-0/+5
|
* Merge: * doprnt.c (doprnt): Support "ll" length modifier, for long long.Paul Eggert2011-04-271-0/+4
|\
| * Merge from mainline.Paul Eggert2011-04-271-4/+17
| |\
| * | * doprnt.c (doprnt): Support "ll" length modifier, for long long.Paul Eggert2011-04-271-0/+4
| | |
* | | src/makefile.w32-in: Update dependencies.Juanma Barranquero2011-04-281-0/+4
| |/ |/|
* | Fix ChangeLog typos.Juanma Barranquero2011-04-271-4/+4
| |
* | Improve `doprnt' and its usage. (Bug#8545)Eli Zaretskii2011-04-271-0/+13
|/ | | | | | | | | | src/doprnt.c (doprnt): Make sure `format' is never accessed beyond `format_end'. Remove support for %l as a conversion specifier. Don't use xrealloc. Improve diagnostics when the %l size modifier is used. Update the commentary. src/eval.c (verror): Simplify calculation of size_t. src/coding.c (Ffind_operation_coding_system): Fix diagnostic error messages.
* * buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Adjust to aliasing changePaul Eggert2011-04-271-0/+5
|
* * nsmenu.m: Replace all uses of XVECTOR with ASIZE and AREF.Paul Eggert2011-04-261-0/+5
| | | | This makes this file independent of the recent pseudovector change.
* * keyboard.c (handle_user_signal): Fix pointer signedness problem.Paul Eggert2011-04-261-0/+2
|
* Merge from mainline.Paul Eggert2011-04-261-7/+20
|\
| * src/keyboard.c (QCrtl): Rename from Qrtl. All uses changed.Juanma Barranquero2011-04-261-2/+6
| |
| * Don't return in emacs_gnutls_handshake without an explicit value.Ted Zlatanov2011-04-261-0/+6
| | | | | | | | | | | | * gnutls.c (emacs_gnutls_handshake): Return an error if we're not supposed to be handshaking. Reported by Paul Eggert <eggert@cs.ucla.edu>.
| * Implement debug-on-eventDaniel Colascione2011-04-261-0/+8
| |
* | Add bug numbers.Paul Eggert2011-04-261-3/+3
| |
* | * gnutls.c (emacs_gnutls_write): Don't use uninitialized rtnval if nbyte <= 0.Paul Eggert2011-04-261-0/+1
| |
* | * gnutls.c: Remove unused local.Paul Eggert2011-04-261-0/+1
| |
* | * gnutls.c (Fgnutls_boot): gnutls_certificate_verify_peers2 wants unsigned *.Paul Eggert2011-04-261-0/+1
| |
* | * gnutls.c (emacs_gnutls_handle_error): Remove unused local.Paul Eggert2011-04-261-0/+1
| |
* | * gnutls.c (emacs_gnutls_handshake): Don't return a garbage value.Paul Eggert2011-04-261-0/+6
| | | | | | | | | | | | | | Expect the caller to check whether GNUTLS_STAGE_HANDSHAKE_CANDO <= proc->gnutls_initstage, if the check is needed. The check isn't needed for one caller, Fgnutls_boot. (emacs_gnutls_read): Do that check. This is the other caller.
* | Merge from mainline.Paul Eggert2011-04-251-7/+171
|\ \ | |/
| * Convert some function definitions to standard C.Dan Nicolaescu2011-04-251-0/+5
| | | | | | | | | | * src/alloc.c (check_sblock, check_string_bytes) (check_string_free_list): Convert to standard C.
| * Fix typo in GnuTLS W32 support.Ted Zlatanov2011-04-251-0/+4
| | | | | | | | * w32.c (emacs_gnutls_push): Fix typo.
| * Avoid compilation warnings in gnutls.c on 64-bit hosts.Eli Zaretskii2011-04-251-0/+3
| | | | | | | | | | src/gnutls.c (emacs_gnutls_handshake): Avoid compiler warnings about "cast to pointer from integer of different size".
| * Improve doprnt and its use in verror. (Bug#8545)Eli Zaretskii2011-04-251-0/+11
| | | | | | | | | | | | | | | | | | src/doprnt.c (doprnt): Document the set of format control sequences supported by the function. Use SAFE_ALLOCA instead of always using `alloca'. src/eval.c (verror): Don't limit the buffer size at size_max-1, that is one byte too soon. Don't use xrealloc; instead xfree and xmalloc anew.
| * Add GnuTLS support for W32 and certificate and hostname verification in GnuTLS.Ted Zlatanov2011-04-241-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/gnutls.c: Renamed global_initialized to gnutls_global_initialized. Added internals for the :verify-hostname-error, :verify-error, and :verify-flags parameters of `gnutls-boot' and documented those parameters in the docstring. Start callback support. (emacs_gnutls_handshake): Add Woe32 support. Retry handshake unless a fatal error occured. Call gnutls_alert_send_appropriate on error. Return error code. (emacs_gnutls_write): Call emacs_gnutls_handle_error. (emacs_gnutls_read): Likewise. (Fgnutls_boot): Return handshake error code. (emacs_gnutls_handle_error): New function. (wsaerror_to_errno): Likewise. * src/gnutls.h: Add GNUTLS_STAGE_CALLBACKS enum to denote we're in the callbacks stage. * src/w32.c (emacs_gnutls_pull): New function for GnuTLS on Woe32. (emacs_gnutls_push): Likewise. * src/w32.h (emacs_gnutls_pull): Add prototype. (emacs_gnutls_push): Likewise.
| * Minor cleanup in src/xdisp.c.Eli Zaretskii2011-04-241-0/+5
| | | | | | | | | | | | | | src/xdisp.c (handle_single_display_spec): Rename the display_replaced_before_p argument into display_replaced_p, to make it consistent with the commentary. Fix typos in the commentary.
| * Minor cleanup in src/textprop.c.Eli Zaretskii2011-04-241-0/+5
| | | | | | | | | | | | | | src/textprop.c (syms_of_textprop): Remove dead code. (copy_text_properties): Delete obsolete commentary about an interface that was deleted long ago. Fix typos in the description of arguments.