summaryrefslogtreecommitdiff
path: root/src/ChangeLog
AgeCommit message (Collapse)Author
2011-11-11merge trunkKenichi Handa
2011-11-11xdisp.c (fill_composite_glyph_string): Always set s->face, to avoid a crash ↵Kenichi Handa
(bug#9496).
2011-11-10Standardize on VIRT_ADDR_VARIES behavior; otherwise, valgrindPaul Eggert
does not work on some platforms. Problem reported by Andreas Schwab in <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00081.html>. * puresize.h (pure, PURE_P): Always behave as if VIRT_ADDR_VARIES is set, removing the need for VIRT_ADDRESS_VARIES. (PURE_P): Use a more-efficient implementation that needs just one comparison, not two: on x86-64 with GCC 4.6.2, this cut down the number of instructions from 6 (xorl, cmpq, jge, xorl, cmpq, setge) to 4 (xorl, subq, cmpq, setbe). * alloc.c (pure): Always extern now, since that's the VIRT_ADDR_VARIES behavior. (PURE_POINTER_P): Use a single comparison, not two, for consistency with the new puresize.h. * lisp.h (PNTR_COMPARISON_TYPE): Remove; no longer needed. * m/ibms390.h, m/intel386.h, m/template.h, s/cygwin.h, s/hpux10-20.h: Remove VIRT_ADDR_VARIES no longer needed.
2011-11-09Disallow calling window-inside-edges and related functions on internal windows.Chong Yidong
* src/window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges) (Fwindow_inside_absolute_pixel_edges): Only allow live windows.
2011-11-08* s/gnu.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS (Bug#9926).Paul Eggert
2011-11-08Avoid some portability problems by eschewing 'extern inline' functions.Paul Eggert
The trivial performance wins aren't worth the portability hassles; see <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html> et seq. * dispextern.h (window_box, window_box_height, window_text_bottom_y) (window_box_width, window_box_left, window_box_left_offset) (window_box_right, window_box_right_offset): Undo previous change, by removing the "extern"s. * intervals.c (adjust_intervals_for_insertion) (adjust_intervals_for_deletion): Undo previous change, making these static again. (offset_intervals, temp_set_point_both, temp_set_point) (copy_intervals_to_string): No longer inline. * xdisp.c (window_text_bottom_y, window_box_width) (window_box_height, window_box_left_offset) (window_box_right_offset, window_box_left, window_box_right) (window_box): No longer inline.
2011-11-08Move low-level window width/height functions to C, and high-level functions ↵Chong Yidong
to Lisp. * lisp/window.el (window-total-height, window-total-width): Doc fix. (window-body-size): Move from C. (window-body-height, window-body-width): Move to C. * src/window.c (Fwindow_left_column, Fwindow_top_line): Doc fix. (Fwindow_body_height, Fwindow_body_width): Move from Lisp. Signal an error if not a live window. (Fwindow_total_width, Fwindow_total_height): Move from Lisp. (Fwindow_total_size, Fwindow_body_size): Move to Lisp.
2011-11-07src/lisp.h (syms_of_abbrev): Remove declaration.Juanma Barranquero
Reported by CHENG Gao <chenggao@royau.me>.
2011-11-07Allow to run temacs.exe on MS-Windows in GUI mode.Eli Zaretskii
src/w32.c (check_windows_init_file): Don't look for term/w32-win.el if Vpurify_flag is non-nil. Fixes a crash when running w32 build of temacs in GUI mode.
2011-11-07Remove term "subwindow" from code and documentation.Martin Rudalics
* window.h: Declare delete_all_child_windows instead of delete_all_subwindows. * window.c (Fwindow_nest, Fset_window_nest) (Fset_window_new_total, Fset_window_new_normal) (Fwindow_resize_apply): Don't use term subwindow in doc-strings. (delete_all_subwindows): Rename to delete_all_child_windows. (Fdelete_other_windows_internal, Fset_window_configuration): Call delete_all_child_windows instead of delete_all_subwindows. * frame.c (delete_frame): Call delete_all_child_windows instead of delete_all_subwindows. * window.el (window-combinations): Make WINDOW argument mandatory. Rewrite doc-string. (walk-window-subtree, window-atom-check, window-min-delta) (window-max-delta, window--resize-this-window) (window--resize-root-window-vertically, window-tree) (balance-windows, window-state-put): Rewrite doc-strings as to not mention the term "subwindow". (window--resize-subwindows-skip-p): Rename to window--resize-child-windows-skip-p. (window--resize-subwindows-normal): Rename to window--resize-child-windows-normal. (window--resize-subwindows): Rename to window--resize-child-windows. (window-or-subwindow-p): Rename to window--in-subtree-p. * windows.texi (Resizing Windows, Splitting Windows) (Window Configurations): Use "child window" instead of "subwindow".
2011-11-06* alloc.c (DEADP): New macro, for porting to GNU/Hurd (Bug#9926).Paul Eggert
This is also needed for porting to any host where GC_MARK_STACK is not GC_MAKE_GCPROS_NOOPS. (which_symbols): Use it.
2011-11-07merge trunkKenichi Handa
2011-11-07Set members of the struct coding_system before accessing them ↵Kenichi Handa
(bug#9910,9911,9912).
2011-11-06Merge from emacs-23; up to 2010-06-22T07:41:10Z!rgm@gnu.orgGlenn Morris
2011-11-06Fix some portability problems with 'inline'.Paul Eggert
* dispextern.h (window_box, window_box_height, window_text_bottom_y) (window_box_width, window_box_left, window_box_left_offset) (window_box_right, window_box_right_offset): Declare extern. Otherwise, these inline functions do not conform to C99 and are miscompiled by Microsoft compilers. Reported by Eli Zaretskii in <http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html>. * intervals.c (adjust_intervals_for_insertion) (adjust_intervals_for_deletion): Now extern, because otherwise the extern inline functions 'offset_intervals' couldn't refer to it. (static_offset_intervals): Remove. (offset_intervals): Rewrite using the old contents of static_offset_intervals. The old version didn't conform to C99 because an extern inline function contained a reference to an identifier with static linkage.
2011-11-06* src/keyboard.c (interrupt_signal): Don't call kill-emacs while inAndreas Schwab
GC.
2011-11-06Fix bug #9963 with abort in "temacs -nw".Eli Zaretskii
src/xdisp.c (init_iterator, reseat_to_string): Don't set the iterator's bidi_p flag if Vpurify_flag is non-nil. (Fcurrent_bidi_paragraph_direction): If Vpurify_flag is non-nil, return Qleft_to_right.
2011-11-06Delete window-combination-p; tweaks to window-top-child and window-left-child.Chong Yidong
* lisp/window.el (window-combination-p): Function deleted; its side-effect is not used in any existing code. (window-combinations, window-combined-p): Call window-*-child directly. * window.c (Fwindow_live_p, Fwindow_frame, Fframe_root_window) (Fminibuffer_window, Fwindow_buffer, Fwindow_splits) (Fset_window_splits, Fwindow_nest, Fset_window_nest) (Fwindow_use_time, Fwindow_total_size, Fwindow_normal_size) (Fwindow_new_normal, Fwindow_left_column, Fwindow_top_line) (Fwindow_margins, Fwindow_fringes, Fwindow_scroll_bars) (Fwindow_vscroll): Doc fix. (Fwindow_top_child, Fwindow_left_child): Eliminate a nil default argument, since it makes no sense to pass a live window and for consistency with window-child.
2011-11-05* src/makefile.w32-in ($(TEMACS), (gl-stamp)): Use $(THISDIR) toChristoph Scholtes
support MSVC.
2011-11-06* src/w32font.c (font_matches_spec): Filter out non-Japanese kana fonts.Jason Rumney
(add_font_entity_to_list): Filter out non-Japanese Shift-JIS fonts. (add_font_entity_to_list): Fix logic errors in mixed boolean and bitwise arithmetic preventing use of unicode-sip and non-truetype opentype fonts. Fixes: debbugs:6029
2011-11-05Fix MSVC build in lib-src.Eli Zaretskii
src/s/ms-w32.h (fstat, stat, utime): Move redirections to "emacs"-only part. Fixes: debbugs:99690
2011-11-05Modify w32fns.c similarly to 2011-11-05T12:04:34Z!jan.h.d@swipnet.se.Eli Zaretskii
src/w32fns.c (x_create_tip_frame, Fx_create_frame): Rearrange initialization code to keep similarity to xfns.c after changes from 2011-11-05. Fixes: debbugs:9943
2011-11-05* nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG.Jan Djärv
(unwind_create_frame): New function. (Fx_create_frame): Restructure code to be more similar to the one in xfns.c. Call record_unwind_protect with unwind_create_frame (Bug#9943). Initialize image_cache_refcount if GLYPH_DEBUG (Bug#9943). Move terminal->reference_count++ just before making the frame official (Bug#9943). * nsterm.m (x_free_frame_resources): New function. (x_destroy_window): Move code to x_free_frame_resources.
2011-11-05* xfns.c (unwind_create_frame): Fix comment.Jan Djärv
(Fx_create_frame, x_create_tip_frame): Move terminal->reference_count++ just before making the frame official. Move initialization of image_cache_refcount and dpyinfo_refcount before calling init_frame_faces. Fixes: debbugs:9943
2011-11-05Support MSVC build with newer versions of Visual Studio.Eli Zaretskii
Small portions of the changes by Fabrice Popineau <fabrice.popineau@supelec.fr>. src/makefile.w32-in (TAGS-gmake): Don't use $(patsubst ...), as Nmake barfs on that. Use $(OBJ*_c) variables instead, defined on nt/gmake.defs. src/lisp.h (ENUM_BF): New macro, for enumerated types in bitfields, which are not supported by MSVC. (Lisp_Symbol, Lisp_Misc_Any, Lisp_Marker, Lisp_Misc_Overlay) (Lisp_Save_Value, Lisp_Free): Use ENUM_BF for enumerated types in bitfields. (Lisp_Object) [USE_LISP_UNION_TYPE]: Use ENUM_BF for enumerated types in bitfields. (DEFUN) [_MSC_VER]: Define in a different way for MSVC. src/w32fns.c [_MSC_VER]: DECLARE_HANDLE for any MSVC version. src/w32.c: Don't include w32api.h for MSVC. (init_environment) [_MSC_VER]: Call sys_access, not _access. src/s/ms-w32.h <sigset_t, ssize_t> [_MSC_VER]: Typedefs for MSVC. [_MSC_VER]: Include sys/timeb.h, sys/stat.h, and signal.h. (fstat, stat, utime) [_MSC_VER]: Redirect to their sys_* cousins. (malloc, free, realloc, calloc) [_MSC_VER]: Always redirect to the e_* cousins. (alloca) [_MSC_VER]: Define to _alloca. src/lisp.h (DECL_ALIGN) [_MSC_VER]: Define for MSVC. src/regex.c <re_char> [_MSC_VER]: A separate definition for MSVC. nt/makefile.w32-in (clean-other-dirs-nmake) (distclean-other-dirs-nmake, maintainer-clean-other-dirs-nmake): Update for current structure of doc/ subdirectories. nt/gmake.defs (OBJ0_c, OBJ1_c, OBJ2_c): New variables. nt/INSTALL: Update for newer versions of MSVC. lib/makefile.w32-in (FRC): New dummy target. (TAGS): Depend on FRC. Fixes: debbugs:9960
2011-11-04Fix bug #9955 with mouse-highlight that starts at beginning of window.Eli Zaretskii
src/xdisp.c (note_mouse_highlight): If either of previous/next-single-property-change returns nil, treat that as the beginning or the end of the buffer.
2011-11-04* gtkutil.c (xg_make_tool_item): Add callbacks of one of wimage orJan Djärv
label is not null. (xg_tool_item_stale_p): Handle the fact that wimage and/or wlbl may be NULL. Fixes: debbugs:9951
2011-11-04Fix documentation per bug #9949.Eli Zaretskii
src/window.c (Fwindow_body_size): Mention in the doc string that the return value is in frame's canonical units. lisp/window.el (window-body-height, window-body-width): Mention in the doc string that the return values are in frame's canonical units. doc/lispref/windows.texi (Window Sizes): Mention in the doc string that the return values of `window-body-height' and `window-body-width' are in frame's canonical units.
2011-11-04Fix bug #9947 with referencing uninitialized variable.Eli Zaretskii
src/xdisp.c (note_mouse_highlight): Initialize `area'.
2011-11-03Fix bug #9943 on X.Eli Zaretskii
src/xfns.c (unwind_create_frame): If needed, free the glyph matrices of the partially constructed frame.
2011-11-03src/ChangeLog: Fix entry for last commit.Eli Zaretskii
2011-11-03Fix bug #9943 with abort at shutdown.Eli Zaretskii
src/w32fns.c (unwind_create_frame): If needed, free the glyph matrices of the partially constructed frame.
2011-11-01Merge from trunk.Paul Eggert
2011-11-01Rename locals to match their nature.Eli Zaretskii
src/xdisp.c (mouse_face_from_buffer_pos, note_mouse_highlight): Rename cover_string to disp_string.
2011-11-01Fix mouse highlight in continued lines on a TTY.Eli Zaretskii
src/xdisp.c (mouse_face_from_buffer_pos): Fix a typo in a comment. Don't stop backward scan on the continuation glyph, even though its CHARPOS is positive.
2011-11-01Remove unused variable temp-buffer-show-specifiers.Martin Rudalics
* window.c (temp_output_buffer_show): Don't use Vtemp_buffer_show_specifiers. (Vtemp_buffer_show_specifiers): Remove unused variable. * help.el (with-help-window): Don't reference temp-buffer-show-specifiers in doc-string.
2011-10-31Merge from trunk.Paul Eggert
2011-10-31Fix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).YAMAMOTO Mitsuharu
* xmenu.c (cleanup_widget_value_tree): New function. (xmenu_show, xdialog_show): Use it in record_unwind_protect instead of calling free_menubar_widget_value_tree directly (Bug#9830).
2011-10-30Fix random crashes while scrolling backwards.Eli Zaretskii
src/xdisp.c (try_cursor_movement): Make sure ROW isn't decremented past the beginning of the current glyph matrix.
2011-10-30Fix bug 9869.Jan Djärv
xterm.c: Include X11/Xproto.h if HAVE_GTK3. (x_error_handler): Ignore BadMatch for X_SetInputFocus for HAVE_GTK3 (Bug#9869).
2011-10-30* gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): InitializeJan Djärv
type to GDK_NOTHING so valgrind does not complain. Fixes: debbugs:9901
2011-10-30Fix hang after C-z in gnome-shell.Jan Djärv
* xterm.c: Declare x_handle_net_wm_state to return int. (handle_one_xevent): Check if we are iconified but don't have _NET_WM_STATE_HIDDEN. If do, treat as deiconify. (get_current_wm_state): Return non-zero if not hidden, check for _NET_WM_STATE_HIDDEN (Bug#9893). (do_ewmh_fullscreen): Ignore return value from get_current_wm_state. (x_handle_net_wm_state): Return what get_current_wm_state returns. (x_term_init): Initialize dpyinfo->Xatom_net_wm_state_hidden. * xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893).
2011-10-29Merge from trunk.Paul Eggert
2011-10-29* alloc.c (which_symbols): Declare EXTERNALLY_VISIBLE,Paul Eggert
so that this new function doesn't get optimized away by a whole-program optimizer. Make the 2nd arg EMACS_INT, not int.
2011-10-29* src/frame.h (MOUSE_HL_INFO): Remove excess parens.Andreas Schwab
2011-10-29Fix attribution for last commit in src/ChangeLog.Eli Zaretskii
2011-10-29Fix the `xbytecode' user-defined command in .gdbinit.Eli Zaretskii
src/.gdbinit (xprintbytestr): New command. (xwhichsymbols): Renamed from `which'; all callers changed. (xbytecode): Print the byte-code string as well. src/alloc.c (which_symbols): New function.
2011-10-29Revert last commit.Eli Zaretskii
2011-10-29Fix bug #9902 with crash caused by clearing mouse highlight.Eli Zaretskii
src/xdisp.c (note_mouse_highlight): Don't clear mouse highlight if hlinfo->mouse_face_window is nil.
2011-10-29Fixes: debbugs:9903Andreas Schwab
* src/minibuf.c (read_minibuf_noninteractive): Allow reading empty line.