1. 16 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Rename window-nest to window-combination-limit. · b6f67890
      Martin Rudalics authored
      * window.h (window): Rename slot "nest" to "combination_limit".
      * window.c (Fwindow_nest): Rename to Fwindow_combination_limit.
      (Fset_window_nest): Rename to Fset_window_combination_limit.
      (Vwindow_nest): Rename to Vwindow_combination_limit.
      (recombine_windows, make_parent_window, make_window)
      (Fsplit_window_internal, saved_window)
      (Fset_window_configuration, save_window_save): Rename all
      occurrences of window_nest to window_combination_limit.
      * window.el (split-window, window-state-get-1)
      (window-state-put-1, window-state-put-2): Rename occurrences of
      window-nest to window-combination-limit.
      * cus-start.el (window-nest): Rename to
      window-combination-limit.
      * windows.texi (Resizing Windows, Splitting Windows): Rename
      occurrences of window-nest to window-combination-limit.
      b6f67890
  2. 15 Nov, 2011 1 commit
  3. 14 Nov, 2011 3 commits
  4. 12 Nov, 2011 4 commits
    • Eli Zaretskii's avatar
      Allow building temacs with a larger heap on MS-Windows. · 7ef3cbd5
      Eli Zaretskii authored
       src/makefile.w32-in (HEAPSIZE): New variable, allows to build temacs
       with user-defined heap size.  Bump the default size of the temacs
       heap to 27MB, to avoid memory warning when running temacs.
       ($(TEMACS)): Use HEAPSIZE instead of a hardcoded value.
      7ef3cbd5
    • Eli Zaretskii's avatar
      Verify glyph row's hash values. · 7a7270dd
      Eli Zaretskii authored
       src/dispnew.c (verify_row_hash) [XASSERTS]: New function.
       (adjust_glyph_matrix, row_equal_p): Use it in xassert to verify
       that the hash value of glyph rows is correct.
      7a7270dd
    • Eli Zaretskii's avatar
      dispnew.c (scrolling_window): Fix index usage. · 1e5b2111
      Eli Zaretskii authored
       src/dispnew.c (scrolling_window): Fix incorrect indices in accessing
       current_matrix and desired_matrix.  (Bug#9990)
      1e5b2111
    • Martin Rudalics's avatar
      Don't handle splits status. · 89d61221
      Martin Rudalics authored
      * window.h (window): Remove splits slot.
      * window.c (Fwindow_splits, Fset_window_splits): Remove.
      (Fdelete_other_windows_internal, make_parent_window)
      (make_window, Fsplit_window_internal, Fdelete_window_internal)
      (Fset_window_configuration, save_window_save): Don't deal with
      split status of windows.
      (saved_window): Remove splits slot.
      (Vwindow_splits): Rewrite doc-string.
      * window.el (window-resize, delete-window): Use window-splits
      variable instead of function.
      (window-state-get-1, window-state-put-2, window-state-put):
      Don't deal with windows' splits status.
      * windows.texi (Splitting Windows, Deleting Windows): Remove
      references to splits status of windows.
      89d61221
  5. 11 Nov, 2011 4 commits
  6. 09 Nov, 2011 1 commit
  7. 08 Nov, 2011 3 commits
  8. 07 Nov, 2011 5 commits
    • Juanma Barranquero's avatar
      src/lisp.h (syms_of_abbrev): Remove declaration. · ae9e237f
      Juanma Barranquero authored
      Reported by CHENG Gao <chenggao@royau.me>.
      ae9e237f
    • Eli Zaretskii's avatar
      Allow to run temacs.exe on MS-Windows in GUI mode. · c7aa8333
      Eli Zaretskii authored
       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.
      c7aa8333
    • Martin Rudalics's avatar
      Remove term "subwindow" from code and documentation. · be7f5545
      Martin Rudalics authored
      * 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".
      be7f5545
    • Paul Eggert's avatar
      * alloc.c (DEADP): New macro, for porting to GNU/Hurd (Bug#9926). · ca78dc43
      Paul Eggert authored
      This is also needed for porting to any host where GC_MARK_STACK is
      not GC_MAKE_GCPROS_NOOPS.
      (which_symbols): Use it.
      ca78dc43
    • Kenichi Handa's avatar
  9. 06 Nov, 2011 4 commits
    • Paul Eggert's avatar
      Fix some portability problems with 'inline'. · cb41b32a
      Paul Eggert authored
      * 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.
      cb41b32a
    • Andreas Schwab's avatar
    • Eli Zaretskii's avatar
      Fix bug #9963 with abort in "temacs -nw". · 88a37c4d
      Eli Zaretskii authored
       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.
      88a37c4d
    • Chong Yidong's avatar
      Delete window-combination-p; tweaks to window-top-child and window-left-child. · 49745b39
      Chong Yidong authored
      * 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.
      49745b39
  10. 05 Nov, 2011 7 commits
    • Christoph Scholtes's avatar
      1f05cd82
    • Jason Rumney's avatar
      * src/w32font.c (font_matches_spec): Filter out non-Japanese kana fonts. · 22610910
      Jason Rumney authored
      (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
      22610910
    • Eli Zaretskii's avatar
      Fix MSVC build in lib-src. · 3ad924ba
      Eli Zaretskii authored
       src/s/ms-w32.h (fstat, stat, utime): Move redirections to
       "emacs"-only part.
      
      Fixes: debbugs:99690
      3ad924ba
    • Eli Zaretskii's avatar
      Modify w32fns.c similarly to 2011-11-05T12:04:34Z!jan.h.d@swipnet.se. · a06776b2
      Eli Zaretskii authored
       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
      a06776b2
    • Jan Djärv's avatar
      * nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG. · a97f8f3f
      Jan Djärv authored
      (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.
      a97f8f3f
    • Jan Djärv's avatar
      * xfns.c (unwind_create_frame): Fix comment. · c9e7db78
      Jan Djärv authored
      (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
      c9e7db78
    • Eli Zaretskii's avatar
      Support MSVC build with newer versions of Visual Studio. · a6fc3b5c
      Eli Zaretskii authored
      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
      a6fc3b5c
  11. 04 Nov, 2011 3 commits
    • Eli Zaretskii's avatar
      Fix bug #9955 with mouse-highlight that starts at beginning of window. · a58c13ed
      Eli Zaretskii authored
       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.
      a58c13ed
    • Jan Djärv's avatar
      * gtkutil.c (xg_make_tool_item): Add callbacks of one of wimage or · fe0b6370
      Jan Djärv authored
      label is not null.
      (xg_tool_item_stale_p): Handle the fact that wimage and/or wlbl
      may be NULL.
      
      Fixes: debbugs:9951
      fe0b6370
    • Eli Zaretskii's avatar
      Fix documentation per bug #9949. · 89bd5ee1
      Eli Zaretskii authored
       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.
      89bd5ee1
  12. 03 Nov, 2011 4 commits