1. 11 Jan, 2013 1 commit
    • Paul Eggert's avatar
      emacsclient -t should not suspend Emacs server · b8956427
      Paul Eggert authored
      * lisp.h, sysdep.c (block_tty_out_signal, unblock_tty_out_signal):
      New functions.
      * term.c (init_tty): Use them instead of rolling our own code.
      * sysdep.c (tcsetpgrp_without_stopping): Likewise.  Here, this
      switches from 'signal' to 'pthread_sigmask', which is safer in
      multithreaded applications.
      * term.c (Fresume_tty): Don't bother dissociating if O_IGNORE_CTTY,
      which has already arranged for that.
      (dissociate_if_controlling_tty): If setsid fails, fall back on TIOCNOTTY.
      This is the main part of the bug fix.
      
      Fixes: debbugs:13387
      b8956427
  2. 10 Jan, 2013 2 commits
    • Jan Djärv's avatar
      * gtkutil.c (xg_initialize): Add ifdef HAVE_FREETYPE around · 48660ca5
      Jan Djärv authored
      x_last_font_name.
      
      Fixes: debbugs:13403
      48660ca5
    • Dmitry Antipov's avatar
      Omit buffer_slot_type_mismatch and use generic predicates to enforce · 58cc0a01
      Dmitry Antipov authored
      the type of per-buffer values where appropriate.
      * src/lisp.h (struct Lisp_Buffer_Objfwd): Rename slottype member to
      predicate, which is how it's really used now.  Adjust comment.
      * src/buffer.h (buffer_slot_type_mismatch): Remove prototype.
      * src/buffer.c (buffer_slot_type_mismatch): Remove.
      (DEFVAR_PER_BUFFER, defvar_per_buffer): Rename type argument to
      predicate.  Adjust comment.
      (syms_of_buffer): Use Qsymbolp for major-mode.  Use Qintegerp for
      fill-column, left-margin, tab-width, buffer-saved-size,
      left-margin-width, right-margin-width, left-fringe-width,
      right-fringe-width, scroll-bar-width and buffer-display-count.
      Use Qstringp for default-directory, buffer-file-name,
      buffer-file-truename and buffer-auto-save-file-name.  Use Qfloatp for
      scroll-up-aggressively and scroll-down-aggressively.  Use Qnumberp for
      line-spacing.
      * src/data.c (store_symval_forwarding): Adjust to call the predicate.
      * lisp/cus-start.el (toplevel): Only allow float values for
      scroll-up-aggressively and scroll-down-aggressively.
      Allow any number for line-spacing.
      58cc0a01
  3. 09 Jan, 2013 3 commits
  4. 08 Jan, 2013 3 commits
  5. 06 Jan, 2013 1 commit
    • Chong Yidong's avatar
      Fix echoing of replayed keys. · 56ed110a
      Chong Yidong authored
      * keyboard.c (echo_add_char): New function, factored out from
      echo_char.  Don't add a space if the previous echo string was
      empty.
      (echo_char): Use it.
      (read_key_sequence): When echoing mock input, ensure that the
      trailing dash is properly added.
      
      Fixes: debbugs:13255
      56ed110a
  6. 05 Jan, 2013 1 commit
    • Eli Zaretskii's avatar
      Improve display of glyph matrix by dump-glyph-matrix. · b630991b
      Eli Zaretskii authored
       src/xdisp.c (dump_glyph): Align glyph data better.  Use "pD" instead
       of a non-portable "t" to print ptrdiff_t values.  Allow up to 9
       digits for buffer positions, before misalignment starts.  Display
       "0" for integer "object" field.
       (dump_glyph_row): Adapt the header line to changes in dump_glyph.
       Display the newline glyph more unambiguously.
      b630991b
  7. 04 Jan, 2013 4 commits
  8. 02 Jan, 2013 2 commits
    • Glenn Morris's avatar
      Correct dates of merged ChangeLog entries · 9539d465
      Glenn Morris authored
      9539d465
    • Paul Eggert's avatar
      Simplify via eabs. · 71376d4b
      Paul Eggert authored
      * dired.c (file_name_completion):
      * doc.c (get_doc_string):
      * floatfns.c (round2):
      * font.c (font_score, font_delete_unmatched):
      * fringe.c (compute_fringe_widths):
      * lread.c (read_list):
      * minibuf.c (Ftry_completion):
      * term.c (tty_ins_del_lines):
      * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
      Use eabs (x) rather than open-coding it as (x < 0 ? -x : x).
      71376d4b
  9. 01 Jan, 2013 1 commit
  10. 31 Dec, 2012 2 commits
  11. 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
  12. 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
  13. 28 Dec, 2012 1 commit
  14. 27 Dec, 2012 2 commits
  15. 26 Dec, 2012 4 commits
  16. 25 Dec, 2012 3 commits
  17. 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