1. 31 Dec, 2012 1 commit
  2. 30 Dec, 2012 3 commits
    • Paul Eggert's avatar
      * coding.c (Qmac): Now static. · 84cc1ab6
      Paul Eggert authored
      84cc1ab6
    • Jan Djärv's avatar
      Check for deprecated gtk tearoff menu item in configure. · 8b745d92
      Jan Djärv authored
      * configure.ac: Check for GtkHandlebox.
      Check for GtkTearoffMenuItem.
      
      * src/gtkutil.c (TOOLBAR_TOP_WIDGET): New macro.
      (xg_pack_tool_bar): Use TOOLBAR_TOP_WIDGET, condition out use of
      handlebox_widget.  Set toolbar_in_hbox to false/true, set
      toolbar_is_packed to true.
      (xg_update_tool_bar_sizes): Use widget returned by TOOLBAR_TOP_WIDGET.
      (update_frame_tool_bar): Check toolbar_is_packed for packing.
      Show all on TOOLBAR_TOP_WIDGET.
      (free_frame_tool_bar): Check toolbar_is_packed.  Use widget returned
      by TOOLBAR_TOP_WIDGET.
      (xg_change_toolbar_position): Use widget returned by TOOLBAR_TOP_WIDGET.
      Check toolbar_is_packed.
      (xg_have_tear_offs, tearoff_remove, tearoff_activate): Condition on
      HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
      (xg_have_tear_offs): When ! HAVE_GTK_TEAROFF_MENU_ITEM_NEW, return
      false.
      (create_menus): Create tearoff only if HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
      (xg_update_menubar): Update title only if
      HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
      (xg_update_submenu): Skip tearoff only if
      HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
      (xg_initialize): Initialize xg_detached_menus only if
      HAVE_GTK_TEAROFF_MENU_ITEM_NEW.
      8b745d92
    • Jan Djärv's avatar
      Check for deprecated gtk_handle_box in configure. · 5a1d858b
      Jan Djärv authored
      * configure.ac: Check for GtkHandlebox.
      
      * src/gtkutil.c (TOOLBAR_TOP_WIDGET): New macro.
      (xg_pack_tool_bar): Use TOOLBAR_TOP_WIDGET, condition out use of
      handlebox_widget.  Set toolbar_in_hbox to false/true, set
      toolbar_is_packed to true.
      (xg_update_tool_bar_sizes): Use widget returned by TOOLBAR_TOP_WIDGET.
      (update_frame_tool_bar): Check toolbar_is_packed for packing.
      Show all on TOOLBAR_TOP_WIDGET.
      (free_frame_tool_bar): Check toolbar_is_packed.  Use widget returned
      by TOOLBAR_TOP_WIDGET.
      (xg_change_toolbar_position): Use widget returned by TOOLBAR_TOP_WIDGET.
      Check toolbar_is_packed.
      
      * src/xterm.h (struct x_output): Surround handlebox_widget with
      #ifdef HAVE_GTK_HANDLE_BOX_NEW.  toolbar_is_packed is new,
      toolbar_in_hbox is bool.
      5a1d858b
  3. 29 Dec, 2012 4 commits
    • Andreas Schwab's avatar
      Properly configure GNUstep libraries · 2550c6e4
      Andreas Schwab authored
      * configure.ac (TEMACS_LDFLAGS2): Don't define.
      (LIBS_GNUSTEP): Set for GNUstep and substitute.
      (LD_SWITCH_SYSTEM_TEMACS): Don't set for GNUstep.
      
      * src/Makefile.in (TEMACS_LDFLAGS2): Remove.
      (LIBS_GNUSTEP): Define.
      (LIBES): Add $(LIBS_GNUSTEP).
      (temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2).
      2550c6e4
    • Eli Zaretskii's avatar
      Improve copy-file diagnostics on MS-Windows. · 8d23a331
      Eli Zaretskii authored
       src/fileio.c (Fcopy_file) [WINDOWSNT]: Improve diagnostics when CopyFile
       fails by looking at what GetLastError returns.
      8d23a331
    • Eli Zaretskii's avatar
      Fix bug #13298 with failed backups by falling back on set-file-modes. · ccad023b
      Eli Zaretskii authored
       src/fileio.c (Fset_file_selinux_context, Fset_file_acl): Return t if
       file's SELinux context or ACLs successfully set, nil otherwise.
      
       lisp/files.el (backup-buffer-copy, basic-save-buffer-2): If
       set-file-extended-attributes fails, fall back on set-file-modes
       instead of signaling an error.
      
       doc/lispref/files.texi (Changing Files): Document the return values of
       set-file-selinux-context and set-file-acl.
      ccad023b
    • Eli Zaretskii's avatar
      More cleanup in handling subprocess exiting on MS-Windows. · e7ae8039
      Eli Zaretskii authored
       src/w32proc.c (reader_thread): Avoid passing NULL handles to
       SetEvent and WaitForSingleObject.
      e7ae8039
  4. 28 Dec, 2012 1 commit
  5. 27 Dec, 2012 2 commits
  6. 26 Dec, 2012 4 commits
  7. 25 Dec, 2012 3 commits
  8. 24 Dec, 2012 3 commits
    • Eli Zaretskii's avatar
      Fix bug #13262 with crashes in completion on MS-Windows with non-ASCII filenames. · f5c81c80
      Eli Zaretskii authored
       src/fileio.c (file_name_as_directory, directory_file_name): Accept
       an additional argument MULTIBYTE to indicate whether the input C
       came from a multibyte or a unibyte Lisp string; all callers
       adjusted.  Don't assume the input string is always multibyte.
       (Ffile_name_directory) [DOS_NT]: Handle unibyte strings correctly:
       don't ENCODE_FILE them, and return a unibyte string if the input
       was unibyte.
       (Fexpand_file_name): Don't mix unibyte with multibyte strings, and
       don't assume the input strings will always be multibyte.  If the
       input strings are multibyte, decode strings obtained from C
       library functions.
      f5c81c80
    • Dmitry Antipov's avatar
      * buffer.c (Fset_buffer_modified_p): Use buffer_window_count · 2944d406
      Dmitry Antipov authored
      to check whether the buffer is displayed in some window.
      * xdisp.c (message_dolog): Likewise.
      2944d406
    • Dmitry Antipov's avatar
      * buffer.h (BUF_COMPACT): New macro to follow the common style. · f9e7c67e
      Dmitry Antipov authored
      * buffer.c (Fget_buffer_create): Use it to set compact field of
      struct buffer_text to avoid accessing an uninitialized value
      when compact_buffer is called for the first time.
      (compact_buffer): Use convenient BUF_COMPACT and BUF_MODIFF.
      f9e7c67e
  9. 23 Dec, 2012 3 commits
    • Eli Zaretskii's avatar
      Don't fail in acl_set_file on MS-Windows if the operation is a no-op. · 40ff07a5
      Eli Zaretskii authored
       src/w32.c (acl_set_file): If setting the file security descriptor
       fails, and the new DACL is identical to the existing one, silently
       return success.  This fixes problems for users backing up their
       own files without having the necessary privileges for setting
       security descriptors.
      40ff07a5
    • Eli Zaretskii's avatar
      Improve handling of subprocess shutdown on MS-Windows. · 299614f3
      Eli Zaretskii authored
       src/w32proc.c (reader_thread): Do not index fd_info[] with negative
       values.
       (reader_thread): Exit when cp->status becomes STATUS_READ_ERROR
       after WaitForSingleObject returns normally.  This expedites reader
       thread shutdown when delete_child triggers it.
       (reap_subprocess): More accurate commentary for why we call
       delete_child only when cp->fd is negative.
       src/w32.c (sys_close): Do not call delete_child on a subprocess
       whose handle is not yet closed.  Instead, set its file descriptor
       to a negative value, so that reap_subprocess will call
       delete_child on that subprocess when its SIGCHLD arrives.  This
       avoids closing handles used for communications between sys_select
       and reader_thread, which doesn't give sys_select a chance to
       notice that the process exited and invoke the SIGCHLD handler for
       it.
      299614f3
    • Jan Djärv's avatar
      * nsfns.m (Fns_do_applescript): Run event loop until script has · cf162aee
      Jan Djärv authored
      been executed.
      (ns_run_ascript): Chech as_script for nil, set to nil after
      executing script.
      
      Fixes: debbugs:12969
      cf162aee
  10. 22 Dec, 2012 2 commits
  11. 21 Dec, 2012 4 commits
  12. 20 Dec, 2012 4 commits
  13. 19 Dec, 2012 1 commit
  14. 18 Dec, 2012 1 commit
  15. 17 Dec, 2012 4 commits
    • Juanma Barranquero's avatar
      8725c076
    • Stefan Monnier's avatar
      * src/xdisp.c (select_frame_for_redisplay): Use select_window_1 to · 1e101a4b
      Stefan Monnier authored
      propagate redisplay's scrolling (if any) to the right window.
      (redisplay_internal): Use ensure_selected_frame.
      (display_mode_lines): Complete last fix.
      * src/window.c (select_window_1): New func, extracted from select_window.
      (select_window): Use it.
      * src/window.h (select_window_1): Declare.
      1e101a4b
    • Eli Zaretskii's avatar
      Support Posix ACL APIs on MS-Windows. · 66447e07
      Eli Zaretskii authored
       src/w32.c: Include sddl.h and sys/acl.h.
       (SDDL_REVISION_1): Define if not already defined.
       (g_b_init_get_security_descriptor_dacl)
       (g_b_init_convert_sd_to_sddl, g_b_init_convert_sddl_to_sd)
       (g_b_init_is_valid_security_descriptor)
       (g_b_init_set_file_security): New static flags.
       (globals_of_w32): Initialize them to zero.
       (SetFileSecurity_Name): New string constant.
       (SetFileSecurity_Proc, GetSecurityDescriptorDacl_Proc)
       (ConvertStringSecurityDescriptorToSecurityDescriptor_Proc)
       (ConvertSecurityDescriptorToStringSecurityDescriptor_Proc)
       (IsValidSecurityDescriptor_Proc): New typedefs.
       (get_file_security, get_security_descriptor_owner)
       (get_security_descriptor_group): Set errno to ENOTSUP.
       (set_file_security, get_security_descriptor_dacl)
       (is_valid_security_descriptor, convert_sd_to_sddl)
       (convert_sddl_to_sd, acl_valid, acl_to_text, acl_from_text)
       (acl_free, acl_get_file, acl_set_file): New functions.
       src/fileio.c (Fcopy_file) [WINDOWSNT]: Support copying ACLs.
      
       nt/inc/sys/acl.h: New file.
       nt/inc/ms-w32.h (ENOTSUP): Define if undefined.
       nt/config.nt (HAVE_POSIX_ACL): Define.
      
       doc/lispref/files.texi (File Attributes, Changing Files): Update to include
       MS-Windows support for ACLs.
      66447e07
    • Paul Eggert's avatar
      Don't reraise SIGCHLD, as that can now lose. · 207a7ef0
      Paul Eggert authored
      With the 2012-12-03 fix for Bug#12980 in place, an old workaround
      for some of that bug's symptoms can now cause Emacs to abort.
      Remove the workaround.
      * process.c (wait_reading_process_output): Don't reraise SIGCHLD.
      The bug that caused SIGCHLD to get lost has been fixed, and the
      workaround for it can now cause Emacs to abort.
      
      Fixes: debbugs:13192
      207a7ef0