1. 01 Feb, 2013 1 commit
    • Paul Eggert's avatar
      Use fdopendir, fstatat and readlinkat, for efficiency. · 8654f9d7
      Paul Eggert authored
      On my host, this speeds up directory-files-and-attributes by a
      factor of 3, when applied to Emacs's src directory.
      These functions are standardized by POSIX and are common these
      days; fall back on a (slower) gnulib implementation if the host
      is too old to supply them.
      * .bzrignore: Add lib/dirent.h.
      * lib/Makefile.am (libgnu_a_SOURCES): Add openat-die.c, save-cwd.c.
      * lib/careadlinkat.c, lib/careadlinkat.h: Merge from gnulib,
      incorporating: 2013-01-29 careadlinkat: do not provide careadlinkatcwd.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/dirent.in.h, lib/fdopendir.c, lib/fstatat.c, lib/openat-priv.h:
      * lib/openat-proc.c, lib/openat.h, m4/dirent_h.m4, m4/fdopendir.m4:
      * m4/fstatat.m4: New files, from gnulib.
      * lib/openat-die.c, lib/save-cwd.c, lib/save-cwd.h: New files.
      These last three are specific to Emacs and are not copied from gnulib.
      They are simpler than the gnulib versions and are tuned for Emacs.
      * admin/merge-gnulib (GNULIB_MODULE...
      8654f9d7
  2. 31 Jan, 2013 2 commits
  3. 28 Jan, 2013 2 commits
  4. 27 Jan, 2013 1 commit
  5. 26 Jan, 2013 1 commit
  6. 25 Jan, 2013 7 commits
  7. 24 Jan, 2013 3 commits
  8. 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
  9. 22 Jan, 2013 5 commits
  10. 21 Jan, 2013 2 commits
  11. 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
  12. 19 Jan, 2013 10 commits
  13. 18 Jan, 2013 1 commit
    • Dmitry Antipov's avatar
      Fix crash when inserting data from non-regular files. See · e07469fa
      Dmitry Antipov authored
      http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00406.html
      for the error description produced by valgrind.
      * fileio.c (read_non_regular): Rename to read_contents.
      Free Lisp_Save_Value object used to pass parameters.
      (read_non_regular_quit): Rename to read_contents_quit.
      (Finsert_file_contents): Redesign internal file reading loop to adjust
      gap and end positions after each read and so help make_gap to work
      properly.  Do not signal an I/O error too early and so do not leave
      not yet decoded characters in a buffer, which was the reason of
      redisplay crash.  Use list2 to build return value.  Adjust comments.
      e07469fa