1. 25 Jan, 2013 5 commits
  2. 24 Jan, 2013 3 commits
  3. 23 Jan, 2013 4 commits
    • Stefan Monnier's avatar
      * src/xdisp.c (message2, message2_nolog): Remove functions. · b09cca6a
      Stefan Monnier authored
      (message3, message3_nolog): Extract nbytes and multibyteness directly
      from the string.  Change all callers.
      (message3_nolog): Don't set message_enable_multibyte since set_message
      will reset it anyway.
      (message1, message1_nolog): Use message3.
      (vmessage): Use a stack allocated buffer rather than f->message_buf.
      (with_echo_area_buffer): Remove last two arguments.  Update all callers.
      (set_message): Drop all but the second arg, which has to be a string.
      (set_message_1): Simplify now that we know that a1 is NULL and the
      second arg is a string.
      * src/frame.h (struct frame): Remove `message_buf' field.
      Use glyphs_initialized_p instead.
      (FRAME_MESSAGE_BUF): Remove macro.
      * src/w16select.c (Fw16_set_clipboard_data): Prefer message3 to message2.
      * src/lisp.h (message2, message2_nolog): Remove declarations.
      (message3, message3_nolog): Update declarations.
      * src/keyboard.c (read_char_minibuf_menu_text)
      (read_char_minibuf_menu_width): Remove vars.
      (read_char_minibuf_menu_prompt): Rewrite the menu's construction so as
      to correctly handle multibyte strings.
      * src/frame.c (delete_frame): Don't free message_buf any more.
      * src/editfns.c (message_text, message_length): Remove vars.
      (Fmessage_box): Don't copy the Lisp string's bytes any longer.
      * src/fileio.c (auto_save_error): Use message3 instead of message2.
      * src/dispnew.c (adjust_frame_message_buffer): Remove function.
      b09cca6a
    • Eli Zaretskii's avatar
      Fix dimensions of maximized frame on MS-Windows. · 54ab1c5a
      Eli Zaretskii authored
       src/w32term.c (w32fullscreen_hook): Account correctly for the screen
       real estate used for the tool bar, the menu bar, and scroll bar.
      54ab1c5a
    • Eli Zaretskii's avatar
      Fix bug #13515 with processing DBCS file names on MS-Windows. · 6d2851de
      Eli Zaretskii authored
       src/w32.c (max_filename_mbslen): New function.
       (normalize_filename, readdir): Use it to detect locales where ANSI
       encoding of file names uses a double-byte character set (DBCS).
       If a DBCS encoding is used, advance by characters using
       CharNextExA, instead of incrementing a 'char *' pointer.  Use
       _mbslwr instead of _strlwr.
      6d2851de
    • Dmitry Antipov's avatar
      * insdel.c (prepare_to_modify_buffer): Force redisplay if · 6c27465b
      Dmitry Antipov authored
      hidden buffer is prepared to modification (Bug#13164).
      6c27465b
  4. 22 Jan, 2013 5 commits
  5. 21 Jan, 2013 2 commits
  6. 20 Jan, 2013 1 commit
    • Andreas Schwab's avatar
      Fixes: debbugs:13505 · ba14c607
      Andreas Schwab authored
      * src/coding.c (detect_coding_iso_2022): Move back mis-reordered code
      at check_extra_latin label.
      ba14c607
  7. 19 Jan, 2013 10 commits
  8. 18 Jan, 2013 2 commits
  9. 17 Jan, 2013 3 commits
    • Dmitry Antipov's avatar
      * lisp.h (toplevel): Add comment about using Lisp_Save_Value · 468afbac
      Dmitry Antipov authored
      objects, related functions and macros.
      (make_save_value): Adjust prototype.
      (make_save_pointer): New prototype.
      (SAFE_NALLOCA): Fix indentation.  Use make_save_pointer.
      (SAFE_ALLOCA_LISP): Adjust make_save_value usage.
      * alloc.c (format_save_value): Rename to make_save_value.
      (make_save_pointer): New function.
      (record_xmalloc): Use make_save_pointer.
      * dired.c, editfns.c, fileio.c, font.c, gtkutil.c, lread.c:
      * nsmenu.m, nsterm.m, xfns.c, xmenu.c, xselect.c, keymap.c:
      Change users of make_save_value to make_save_pointer.
      Likewise for format_save_value and make_save_value.
      468afbac
    • Dmitry Antipov's avatar
      * buffer.h (NARROWED, BUF_NARROWED): Drop unused macros. · 0e70695a
      Dmitry Antipov authored
      (DECODE_POSITION, BUFFER_CHECK_INDIRECTION): Fix indentation.
      * buffer.c (toplevel, syms_of_buffer): Drop old commented-out
      debugging stubs.
      0e70695a
    • Glenn Morris's avatar
      * src/fns.c (Frandom): Doc fix. · 085d34c4
      Glenn Morris authored
      085d34c4
  10. 15 Jan, 2013 4 commits
    • Paul Eggert's avatar
      * src/alloc.c (free_save_value): Now static. · 963ea40f
      Paul Eggert authored
      963ea40f
    • Dmitry Antipov's avatar
      * keymap.c (map_keymap_internal): Use format_save_value. · 3346c1d0
      Dmitry Antipov authored
      (map_keymap_char_table_item): Adjust accordingly.
      * fileio.c (non_regular_fd, non_regular_inserted)
      (non_regular_nbytes): Remove.
      (Finsert_file_contents): Convert trytry to ptrdiff_t.  Use
      format_save_value to pass parameters to read_non_regular.
      (read_non_regular): Use XSAVE_ macros to extract parameters.
      Adjust comment.
      * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Use
      format_save_value.
      (pop_down_menu) [!USE_X_TOOLKIT && !USE_GTK]: Adjust user.
      3346c1d0
    • Dmitry Antipov's avatar
      * src/lisp.h (XSAVE_POINTER, XSAVE_INTEGER): Change to allow extraction · 2b30549c
      Dmitry Antipov authored
      from any Lisp_Save_Value slot.  Add type checking.
      * src/alloc.c, src/dired.c, src/editfns.c, src/fileio.c, src/ftfont.c:
      * src/gtkutil.c, src/keymap.c, src/lread.c, src/nsterm.h, src/nsmenu.c:
      * src/xfns.c, src/xmenu.c, src/xselect.c: All users changed.
      * admin/coccinelle/xsave.cocci: Semantic patch to adjust users of
      XSAVE_POINTER and XSAVE_INTEGER macros.
      2b30549c
    • Dmitry Antipov's avatar
      Some convenient bits to deal with Lisp_Save_Values. · 1b971ac1
      Dmitry Antipov authored
      * lisp.h (XSAVE_OBJECT): New macro to extract saved objects.
      (allocate_misc): Remove prototype.
      (format_save_value): New prototype.
      * alloc.c (allocate_misc): Revert back to static.
      (format_save_value): New function to build Lisp_Save_Value
      object with the specified internal structure.
      (make_save_value): Reimplement using format_save_value.
      * editfns.c (save_excursion_save): Use format_save_value.
      (save_excursion_restore): Use XSAVE_OBJECT.
      1b971ac1
  11. 14 Jan, 2013 1 commit
    • Paul Eggert's avatar
      Avoid needless casts with XSAVE_POINTER. · c50cf2ea
      Paul Eggert authored
      * alloc.c (mark_object) [GC_MARK_STACK]:
      * dired.c (directory_files_internal_unwind):
      * fileio.c (do_auto_save_unwind):
      * gtkutil.c (pop_down_dialog):
      * keymap.c (map_keymap_char_table_item):
      * lread.c (load_unwind):
      * nsmenu.m (pop_down_menu):
      * print.c (print_object) [GC_MARK_STACK]:
      * xfns.c (clean_up_file_dialog):
      * xmenu.c (cleanup_widget_value_tree):
      Omit casts between XSAVE_POINTER and a pointer type.
      c50cf2ea