- 08 Oct, 2012 12 commits
-
-
Daniel Colascione authored
which is broke under remote desktop, calculating the number of colors available for a display based on the display's number of planes and number of bits per pixel per plane. (bug#10397).
-
Juanma Barranquero authored
-
Juanma Barranquero authored
(HAVE_NTGUI): New macro. src/makefile.w32-in (LOCAL_FLAGS): Don't define HAVE_NTGUI, it's now in nt/config.nt.
-
Juanma Barranquero authored
-
Eli Zaretskii authored
src/makefile.w32-in ($(BLD)/unexw32.$(O)): ($(BLD)/w32.$(O)): ($(BLD)/w32console.$(O)): ($(BLD)/w32fns.$(O)): ($(BLD)/w32heap.$(O)): ($(BLD)/w32menu.$(O)): ($(BLD)/w32proc.$(O)): Add w32common.h.
-
Daniel Colascione authored
-
Eli Zaretskii authored
src/makefile.w32-in (FONT_H): Add $(FRAME_H). (W32TERM_H): Add $(ATIMER_H) and $(FRAME_H). ($(BLD)/emacs.$(O), $(BLD)/w32console.$(O)): Update dependencies. (GLOBAL_SOURCES): Add cygw32.c. lib-src/makefile.w32-in (obj): Add cygw32.o.
-
Eli Zaretskii authored
src/w32fns.c (w32_color_map_lookup, x_to_w32_color): Argument is now 'const char *'. (x_to_w32_color): Don't modify the argument, modify a copy instead.
-
Daniel Colascione authored
-
Eli Zaretskii authored
-
Eli Zaretskii authored
src/emacs.c (DAEMON_MUST_EXEC) [HAVE_NTGUI]: Define this only on Cygwin.
-
Daniel Colascione authored
-
- 07 Oct, 2012 6 commits
-
-
Eli Zaretskii authored
src/ralloc.c (relinquish): If a heap is ready to be relinquished, but it still has blocs in it, don't return it to the system, instead of aborting. (Bug#12402)
-
Jan Djärv authored
-
Jan Djärv authored
-
Jan Djärv authored
* configure.ac: Check that OSX is 10.4 or newer. * etc/NEWS (NextStep/OSX port changes): OSX 10.4 or newer is required. * src/nsfns.m (Fns_list_services): Remove comment and check for OSX < 10.4. (ns_do_applescript): Remove check for >= MAC_OS_X_VERSION_10_4. * src/nsimage.m (setPixmapData, getPixelAtX, setAlphaAtX): Remove onTiger. * src/nsmenu.m (fillWithWidgetValue:): Remove code for < MAC_OS_X_VERSION_10_2. * src/nsselect.m (ns_string_from_pasteboard): Remove check for >= MAC_OS_X_VERSION_10_4. * src/nsterm.h (MAC_OS_X_VERSION_10_3, onTiger): Remove. (EmacsApp): Remove check for >= MAC_OS_X_VERSION_10_4. (struct nsfont_info): Remove check for >= MAC_OS_X_VERSION_10_3.
-
Jan Djärv authored
(x_set_icon_name, ns_set_name, ns_set_name_as_filename): Remove ns_in_resize check. * nsterm.m (ns_in_resize): Remove. (ns_resize_handle_rect, mouseDown, mouseUp, mouseDragged): Remove. (ns_clear_frame, sendEvent, windowDidResize, drawRect:): Remove ns_in_resize check. (ns_clear_frame_area): Remove resize handle code. Fixes: debbugs:12479
-
Paul Eggert authored
* configure.ac (sys_siglist): Look for its decl in <signal.h>. Otherwise, it's not found in either Fedora 17 or Solaris 11. * src/sysdep.c (sys_siglist, init_signals): Use _sys_siglist if it's defined as a macro, as is done in Solaris. (sys_siglist_entries): New macro. (save_strsignal): Use it. * src/syssignal.h (safe_strsignal): Now ATTRIBUTE_CONST, to pacify GCC 4.7.2 on Fedora 17 with the fixed sys_siglist detection.
-
- 06 Oct, 2012 2 commits
-
-
Jan Djärv authored
* nsfns.m (Fx_create_frame): Call x_default_parameter with fullscreen/Fullscreen. * nsterm.h (EmacsView): Rename tbar_height to tibar_height. tobar_height is new. * nsterm.m (x_make_frame_visible): Check for fullscreen. (ns_fullscreen_hook): Activate old style fullscreen with a timer. (ns_term_init): Set activateIgnoringOtherApps if old style fullscreen. (windowDidResize:): Check for correct window if old style fullscreen. Capitalize word in comment. Remove incorrect comment. (initFrameFromEmacs:): tbar_height renamed tibar_height. (windowDidEnterFullScreen:): Toggle toolbar for fullscreen to fix error in drawing background. (toggleFullScreen:): Remove comment. Rearrange calls. Set toolbar values to zero, save old height in tobar_height. Restore tool bar height when leaving fullscreen. (canBecomeMainWindow): New function.
-
Paul Eggert authored
-
- 05 Oct, 2012 2 commits
-
-
Eli Zaretskii authored
src/w32proc.c (stop_timer_thread): Fix declaration of 'err'.
-
Eli Zaretskii authored
src/w32.c (utime): Open the file with FILE_FLAG_BACKUP_SEMANTICS, so that time stamps of directories could also be changed. Don't request the too broad GENERIC_WRITE, only the more restrictive FILE_WRITE_ATTRIBUTES access rights. src/fileio.c (Fset_file_times): Special-case ignoring errors for directories only on MSDOS, not on MS-Windows.
-
- 04 Oct, 2012 4 commits
-
-
Eli Zaretskii authored
src/w32.c (utime): Test for INVALID_HANDLE_VALUE, not for NULL, to see whether CreateFile failed.
-
Ikumi Keita authored
Fixes: debbugs:12555
-
Paul Eggert authored
-
Paul Eggert authored
to avoid similar races. * keyboard.c (pending_signals): Now bool, not int.
-
- 02 Oct, 2012 8 commits
-
-
Paul Eggert authored
that caused Emacs to hang on Fedora 17 when profiling Lisp.
-
Jan Djärv authored
-
Eli Zaretskii authored
src/w32proc.c (sys_wait): Declare 'signame' 'const char *', to be consistent with the change in return value of 'safe_strsignal'. nt/preprep.c (RVA_TO_PTR): Cast the result to 'void *', to avoid compiler warnings when using the value.
-
Paul Eggert authored
* bidi.c (bidi_get_type, bidi_check_type, bidi_get_category) (bidi_set_sor_type, bidi_push_embedding_level) (bidi_pop_embedding_level, bidi_remember_char, bidi_copy_it) (bidi_cache_reset, bidi_cache_shrink, bidi_cache_fetch_state) (bidi_cache_search, bidi_cache_ensure_space) (bidi_cache_iterator_state, bidi_cache_find) (bidi_peek_at_next_level, bidi_set_paragraph_end) (bidi_count_bytes, bidi_char_at_pos, bidi_fetch_char) (bidi_explicit_dir_char, bidi_resolve_neutral_1): Now 'static', not 'static inline'. Fixes: debbugs:12541
-
Paul Eggert authored
* lisp/profiler.el (profiler-sampling-interval): Change units from ms to ns, multiplying the default by 1000000 so that it remains 1 ms. (profiler-report-cpu-line-format): Give enough room for the maximum counters on 64-bit hosts. (profiler-report-render-calltree-1): Call them "CPU samples", not "Time (ms)", since they are not milliseconds now (and never really were). * src/profiler.c (handle_profiler_signal): Count sampling intervals, not ms. Give extra weight to samples after overruns, to attempt to count the time more accurately. (setup_cpu_timer): Change sampling interval units from ms to ns, since the underlying primitives nominally do ns. (Fprofiler_cpu_start): Document the change. Mention that the sampling intervals are only approximate.
-
Stefan Monnier authored
(fix_start_end_in_overlays): Remove redundant recentering.
-
Stefan Monnier authored
* src/buffer.c (Fset_buffer_multibyte): Signal an error instead of widening. (Fmake_overlay): Remove redundant tests. * src/coding.h (ENCODE_FILE, DECODE_FILE, DECODE_SYSTEM): Remove special case for the special 0 coding-system. * src/frame.c (Fmake_terminal_frame): Prefer safer CONSP over !NILP.
-
Juanma Barranquero authored
-
- 01 Oct, 2012 6 commits
-
-
Paul Eggert authored
A signal can arrive in the middle of a malloc, and Emacs's signal handler can invoke strsignal, which can invoke malloc, which is not portable. This race condition bug makes Emacs hang on GNU/Linux. Fix it by altering the signal handler so that it does not invoke strsignal. * emacs.c (shut_down_emacs): Use safe_strsignal, not strsignal. * process.c (status_message): Use const pointer, in case strsignal is #defined to safe_strsignal. * sysdep.c (sys_siglist, init_signals): Always define and initialize a substitute sys_siglist if the system does not define one, even if HAVE_STRSIGNAL. (safe_strsignal): Rename from strsignal. Always define, using sys_siglist. Return a const pointer. * syssignal.h (safe_strsignal): New decl. (strsignal) [!HAVE_STRSIGNAL]: Define in terms of safe_strsignal.
-
Eli Zaretskii authored
src/w32proc.c (timer_loop): Fix code that waits for timer expiration, to avoid high CPU usage.
-
Stefan Monnier authored
(sweep_weak_table): Remove redundant prototypes.
-
Fabrice Popineau authored
src/emacs.c: Move the inclusion of TERM_HEADER after including windows.h on WINDOWSNT. This avoids compilation problems with MSVC.
-
Eli Zaretskii authored
nt/preprep.c (RVA_TO_PTR): Use 'unsigned char *' instead of 'void *', for pointer arithmetics. (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_SECTION_OFFSET): Enclose all macro arguments in parentheses. src/unexw32.c (OFFSET_TO_RVA, RVA_TO_OFFSET) (RVA_TO_SECTION_OFFSET): Encode all macro arguments in parentheses. (RVA_TO_PTR): Cast the result of RVA_TO_OFFSET to 'unsigned char *', as the previous version used 'void *'. src/ralloc.c (ROUNDUP): Fix last change. (MEM_ROUNDUP): Don't cast MEM_ALIGN, it is already of type 'size_t'. Fixes: debbugs:12544
-
Eli Zaretskii authored
src/w32proc.c (alarm) [HAVE_SETITIMER]: Be more conformant to the expected return results. [!HAVE_SETITIMER]: Behave as the previous version that didn't support timers.
-