1. 03 Feb, 2013 5 commits
  2. 02 Feb, 2013 8 commits
    • Paul Eggert's avatar
      Avoid file time stamp bug on MS-Windows. · 8ea41ea9
      Paul Eggert authored
      * fileio.c (Fwrite_region): Don't use the heuristic on empty files,
      as FAT32 doesn't update time stamps when truncating them.
      Also, check that a file time stamp is not a multiple of 100 ns;
      this should catch all instances of the problem on MS-Windows,
      as its native file system resolution is 100 ns or worse, and
      checking for a non-multiple of 100 ns should impose only a small
      overhead on systems with ns resolution.
      Fixes: debbugs:13149
    • Eli Zaretskii's avatar
      Avoid encoding file names run through dostounix_filename on MS-Windows. · e7ac588e
      Eli Zaretskii authored
       src/w32.c (normalize_filename): Accept an additional argument
       MULTIBYTE; if non-zero, traverse the file name by bytes and don't
       downcase it even if w32-downcase-file-names is non-nil.
       (dostounix_filename): Accept an additional argument MULTIBYTE and
       pass it to normalize_filename.
       (emacs_root_dir): Adjust.
       src/msdos.h (dostounix_filename): Adjust prototype.
       src/w32.h (dostounix_filename): Adjust prototype.
       src/msdos.c (dostounix_filename): Accept an additional argument and
       ignore it.
       (init_environment): Adjust callers of dostounix_filename.
       src/fileio.c (Ffile_name_directory, file_name_as_directory)
       (directory_file_name, Fexpand_file_name)
       (Fsubstitute_in_file_name): [DOS_NT] Adjust call to
       [WINDOWSNT]: Downcase file names if w32-downcase-file-names is
       (Fsubstitute_in_file_name): [DOS_NT] Don't downcase environment
       variables, as egetenv is case-insensitive for DOS_NT.
       src/dired.c (file_name_completion): Don't call Fdirectory_file_name
       with an encoded file name.
       src/w32proc.c (Fw32_short_file_name, Fw32_long_file_name): Adjust
       calls to dostounix_filename.
       src/w32fns.c (Fx_file_dialog): Adjust call to dostounix_filename.
       src/unexw32.c (unexec): Adjust call to dostounix_filename.
       src/termcap.c (tgetent) [MSDOS]: Adjust call to dostounix_filename.
       src/emacs.c (decode_env_path) [DOS_NT]: Adjust call to
       src/callproc.c (Fcall_process) [MSDOS]: Adjust call to
    • Christopher Schmidt's avatar
      * progmodes/compile.el (compilation-mode-hook) · 85a83ea0
      Christopher Schmidt authored
      (compilation-start-hook, compilation-window-height): Simplify
      docstrings.  (Bug#13379)
    • Christopher Schmidt's avatar
    • Christopher Schmidt's avatar
      * progmodes/compile.el (compilation-error-regexp-alist-alist): · 35114711
      Christopher Schmidt authored
      Identify g++ template instantiation trace.  (Bug#12287)
    • Paul Eggert's avatar
      Spelling fixes. · d9c287e5
      Paul Eggert authored
    • Glenn Morris's avatar
    • Juri Linkov's avatar
      * lisp/progmodes/grep.el (grep-regexp-alist): Use variable grep-match-face · 98da8c0f
      Juri Linkov authored
      instead of hard-coded default face `match'.  (Bug#9438)
  3. 01 Feb, 2013 20 commits
    • Stefan Monnier's avatar
      * lisp/mouse.el (mouse-drag-track): Always deactivate the mark before · 13841bfc
      Stefan Monnier authored
      running the final event's command since that command is in charge of
      activating the mark if needed.
      Fixes: debbugs:13523
    • Juri Linkov's avatar
      * lisp/replace.el (perform-replace): Move let-bindings of isearch-* · dc2bc295
      Juri Linkov authored
      variables deeper to the loop that searches for the next match.
      Add bindings for `isearch-nonincremental' and `isearch-adjusted'.
      Use `isearch-search-fun-default' instead of `isearch-search-fun'.
      * lisp/isearch.el (isearch-search-fun-default): Check for null
      first element of isearch-cmds as a precaution when it's used
      with inactive isearch.
      Fixes: debbugs:13579
    • Andrew W. Nosenko's avatar
      * net/tramp.el (tramp-check-for-regexp): Avoid "Args out of range" · f864e0ea
      Andrew W. Nosenko authored
      error when buffer in question is narrowed so position 1 is out of
      visible part.
    • Paul Eggert's avatar
      Fix timestamp bug when write-region appends nothing. · 35e85499
      Paul Eggert authored
      * fileio.c (Fwrite_region): When neither O_EXCL nor O_TRUNC is used,
      the file's time stamp doesn't change if Emacs happens to write nothing
      to the file, and on a buggy file system this could cause Emacs to
      incorrectly infer that the file system doesn't have the bug.
      Avoid this problem by inhibiting the inference in this case.
      Fixes: debbugs:13149
    • Christopher Schmidt's avatar
      * vc/vc-arch.el (vc-arch-registered): · af314ba0
      Christopher Schmidt authored
      * vc/vc-bzr.el (vc-bzr-registered):
      * vc/vc-cvs.el (vc-cvs-registered):
      * vc/vc-git.el (vc-git-registered):
      * vc/vc-hg.el (vc-hg-registered):
      * vc/vc-mtn.el (vc-mtn-registered):
      * vc/vc-svn.el (vc-svn-registered): Suppress load messages.
    • Christopher Schmidt's avatar
      * info.el (Info-next-reference, Info-prev-reference): Add numeric · 7b6d5ecf
      Christopher Schmidt authored
      prefix argument.  (Bug#11656)
    • Stefan Monnier's avatar
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 25b4eb90
      Glenn Morris authored
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · 7f12eefa
      Glenn Morris authored
    • Glenn Morris's avatar
      Auto-commit of generated files. · d7ad186c
      Glenn Morris authored
    • Eli Zaretskii's avatar
      Make sure program names are encoded before using them to invoke subprocesses. · e7c3fb06
      Eli Zaretskii authored
       src/callproc.c (Fcall_process): Make sure program name in PATH and
       new_argv[0] is encoded, if needed.  Otherwise, un-encoded string
       is passed to exec/spawnve, which fails unless the file-name
       encoding is UTF-8.
    • Eli Zaretskii's avatar
      w32proc.c (sys_spawnve): Initialize escape_char. · 18a80473
      Eli Zaretskii authored
       src/w32proc.c (sys_spawnve): Make sure escape_char is initialized,
       even if w32-quote-process-args is nil.
    • Glenn Morris's avatar
      * vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item · 1f4f0f46
      Glenn Morris authored
      if the backend is known not to support it.
    • Glenn Morris's avatar
      * imenu.el (imenu-default-create-index-function): · 48c828b9
      Glenn Morris authored
      Tweak infinite loop test to check for forward motion as well as none.
    • Alex Harsanyi's avatar
    • Dmitry Antipov's avatar
      * window.h (struct window): Convert base_line_number, base_line_pos · 422ff52b
      Dmitry Antipov authored
      and column_number_displayed members from Lisp_Object to ptrdiff_t.
      Convert region_showing member from Lisp_Object to bitfield.
      Remove sequence_number member.  Adjust comments.
      * window.c (sequence_number): Remove.
      (make_window): Initialize column_number_displayed.
      * print.c (print_object): Follow the printed representation of
      frames and print window pointer to distinguish between windows.
      (adjust_window_count): Invalidate base_line_pos.  Adjust comment.
      * xdisp.c (wset_base_line_number, wset_base_line_pos)
      (wset_column_number_displayed, wset_region_showing): Remove.
      (window_buffer_changed, mode_line_update_needed, redisplay_internal)
      (try_scrolling, try_cursor_movement, redisplay_window)
      (try_window_reusing_current_matrix, try_window_id, display_line)
      (display_mode_lines, decode_mode_spec): Adjust users.
      * .gdbinit (pwinx): Do not print sequence_number.
    • 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_MODULES): Add fdopendir, fstatat, readlinkat.
      (GNULIB_TOOL_FLAGS): Do not avoid at-internal, openat-h.
      Avoid dup, open, opendir.
      * nt/inc/sys/stat.h (fstatat):
      * nt/inc/unistd.h (readlinkat): New decls.
      * src/conf_post.h (GNULIB_SUPPORT_ONLY_AT_FDCWD): Remove.
      * src/dired.c: Include <fcntl.h>.
      (open_directory): New function, which uses open and fdopendir
      rather than opendir.  DOS_NT platforms still use opendir, though.
      (directory_files_internal, file_name_completion): Use it.
      (file_attributes): New function, with most of the old Ffile_attributes.
      (directory_files_internal, Ffile_attributes): Use it.
      (file_attributes, file_name_completion_stat): First arg is now fd,
      not dir name.  All uses changed.  Use fstatat rather than lstat +
      (file_attributes): Use emacs_readlinkat rather than Ffile_symlink_p.
      * src/fileio.c: Include <allocator.h>, <careadlinkat.h>.
      (emacs_readlinkat): New function, with much of the old
      Ffile_symlink_p, but with an fd argument for speed.
      It uses readlinkat rather than careadlinkatcwd, so that it
      need not assume the working directory.
      (Ffile_symlink_p): Use it.
      * src/filelock.c (current_lock_owner): Use emacs_readlinkat
      rather than emacs_readlink.
      * src/lisp.h (emacs_readlinkat): New decl.
      (READLINK_BUFSIZE, emacs_readlink): Remove.
      * src/sysdep.c: Do not include <allocator.h>, <careadlinkat.h>.
      (emacs_norealloc_allocator, emacs_readlink): Remove.
      This stuff is moved to fileio.c.
      * src/w32.c (fstatat, readlinkat): New functions.
      (careadlinkat): Don't check that fd == AT_FDCWD.
      (careadlinkatcwd): Remove; no longer needed.
      Fixes: debbugs:13539
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Move lisp/calc/README* to etc/CALC-NEWS · 0eb61895
      Glenn Morris authored
      * make-dist: Only README files exist in lisp/ now, not README*.
      * doc/misc/calc.texi (Help Commands): Mention etc/CALC-NEWS.
      * etc/CALC-NEWS: Move here from lisp/calc/README, README.prev.
      * lisp/calc/README, lisp/calc/README.prev: Rename/merge to etc/CALC-NEWS.
    • Glenn Morris's avatar
      Merge calc news from lisp/calc/README into etc/NEWS files · 86e100a6
      Glenn Morris authored
      * doc/misc/calc.texi (Help Commands): Update calc-view-news description.
      * lisp/calc/calc-help.el (calc-view-news): Use view-emacs-news.
      * lisp/calc/README: Move news entries from here...
      * etc/NEWS, etc/NEWS.23: ... to here
  4. 31 Jan, 2013 7 commits