1. 12 Nov, 2012 1 commit
  2. 07 Nov, 2012 1 commit
    • Martin Rudalics's avatar
      Fix and rewrite doc on window recombining facilities. · fdaf534a
      Martin Rudalics authored
      * window.c (Fsplit_window_internal): Set combination limit of
      new parent window to t iff Vwindow_combination_limit is t;
      fixing a regression introduced with the change from 2012-09-22.
      (Fwindow_combination_limit, Fset_window_combination_limit): Fix
      doc-strings.
      
      * elisp.texi (Top): Add Recombining Windows to menu.
      * windows.texi (Recombining Windows): New subsection.
      (Splitting Windows): Rewrite text on handling of window
      combinations and move it to new subsection.
      fdaf534a
  3. 06 Nov, 2012 1 commit
    • Eli Zaretskii's avatar
      Fix bug #12811 with scrolling under scroll-up/down-aggressively. · acf93bcf
      Eli Zaretskii authored
       src/xdisp.c (try_scrolling): Fix correction of aggressive-scroll
       amount when the scroll margins are too large.  When scrolling
       backwards in the buffer, give up if cannot reach point or the
       scroll margin within a reasonable number of screen lines.  Fixes
       point position in window under scroll-up/down-aggressively when
       point is positioned many lines beyond the window top/bottom.
      acf93bcf
  4. 05 Nov, 2012 1 commit
  5. 03 Nov, 2012 4 commits
  6. 01 Nov, 2012 1 commit
  7. 31 Oct, 2012 4 commits
    • Paul Eggert's avatar
      Spelling fixes. · 5c6ce1c7
      Paul Eggert authored
      5c6ce1c7
    • Paul Eggert's avatar
      Fix crash when using Emacs as commit editor for git. · 322aea6d
      Paul Eggert authored
      * callproc.c (setpgrp): Remove macro, as we now use setpgid
      and it is configured in conf_post.h.
      (Fcall_process): Don't invoke both setsid and setpgid; the former
      is enough, if it exists.
      * callproc.c (Fcall_process, child_setup):
      * process.c (create_process): Use setpgid.
      * conf_post.h (setpgid) [!HAVE_SETPGID]: New macro, which substitutes
      for the real thing.
      * dispnew.c (init_display): Initialize the foreground group
      if we are running a tty display.
      * emacs.c (main): Do not worry about setpgrp; init_display does it now.
      * lisp.h (init_foreground_group): New decl.
      * sysdep.c (inherited_pgroup): New static var.
      (init_foreground_group, tcsetpgrp_without_stopping)
      (narrow_foreground_group, widen_foreground_group): New functions.
      (init_sys_modes): Narrow foreground group.
      (reset_sys_modes): Widen foreground group.
      
      Fixes: debbugs:12697
      322aea6d
    • Michael Albinus's avatar
    • Martin Rudalics's avatar
      Install fixes for Bug#12764 and Bug#12766. · 218e997a
      Martin Rudalics authored
      * window.el (quit-restore-window): If the window has been
      created on an existing frame and ended up as the sole window on
      that frame, do not delete it (Bug#12764).
      
      * minibuf.c (read_minibuf): Restore current buffer since
      choose_minibuf_frame calling Fset_frame_selected_window may
      change it (Bug#12766).
      218e997a
  8. 30 Oct, 2012 4 commits
  9. 29 Oct, 2012 1 commit
    • Daniel Colascione's avatar
      2012-10-29 Daniel Colascione <dancol@dancol.org> · ba116008
      Daniel Colascione authored
      cygw32.h, cygw32.c (Qutf_16le, from_unicode, to_unicode): In
      preparation for fixing bug#12739, move these functions from
      here...
      
      * coding.h, coding.c: ... to here, and compile them only when
      WINDOWSNT or HAVE_NTGUI.  Moving these functions out of cygw32
      proper lets us write cygw32-agnostic code for the HAVE_NTGUI case.
      ba116008
  10. 28 Oct, 2012 3 commits
    • Eli Zaretskii's avatar
      Don't use CLOCKS_PER_SEC in w32 timers. · 640bf8ad
      Eli Zaretskii authored
       src/w32proc.c (TIMER_TICKS_PER_SEC): New macro.
       (timer_loop, getitimer, setitimer): Use it instead of
       CLOCKS_PER_SEC, which is no longer pertinent, since we don't use
       'clock'.
       (w32_get_timer_time): Use 10*TIMER_TICKS_PER_SEC instead of a
       literal 10000.
      640bf8ad
    • Jan Djärv's avatar
      * nsterm.m (NO_APPDEFINED_DATA): New define. · 64ccff5f
      Jan Djärv authored
      (last_appdefined_event_data): New variable
      (last_appdefined_event): Remove.
      (ns_select): Initialize t from last_appdefined_event_data instead
      of [last_appdefined_event data1].
      (sendEvent:): Save [theEvent data1] to last_appdefined_event_data,
      remove last_appdefined_event.
      
      Fixes: debbugs:12698
      64ccff5f
    • Stefan Monnier's avatar
      e483264c
  11. 27 Oct, 2012 4 commits
    • Eli Zaretskii's avatar
      Fix compiler warnings in w32proc.c. · 2f246cd3
      Eli Zaretskii authored
       src/w32proc.c (sys_spawnve): Avoid compiler warning about format mismatch.
       (timer_loop): Remove unused variable.
      2f246cd3
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix a typo in a comment. · 15cc05e9
      Eli Zaretskii authored
      15cc05e9
    • Eli Zaretskii's avatar
      Fix w32 implementation of itimers: overflow and ITIMER_PROF. · 6c16c13e
      Eli Zaretskii authored
       Avoid overflow in w32 implementation of interval timers.  When
       possible, for ITIMER_PROF count only times the main thread
       actually executes.
      
       src/w32proc.c <struct itimer_data>: 'expire' and 'reload' are now
       ULONGLONG types.  Likewise for all the other data which was
       previously clock_t.
       (GetThreadTimes_Proc): New typedef.
       (w32_get_timer_time): New function, returns a suitable time value
       for the timer.
       (timer_loop): Enter critical section when accessing ULONGLONG
       values of the itimer_data struct, as these accesses are no longer
       atomic.  Call 'w32_get_timer_time' instead of 'clock'.
       (init_timers): Initialize s_pfn_Get_Thread_Times.
       (start_timer_thread): Don't assign itimer->caller_thread here.
       (getitimer): Assign itimer->caller_thread here.
       (setitimer): Always call getitimer to get the value of ticks_now.
      6c16c13e
  12. 26 Oct, 2012 1 commit
  13. 25 Oct, 2012 1 commit
    • Paul Eggert's avatar
      Don't assume process IDs fit in int. · 69deda53
      Paul Eggert authored
      * emacs.c (shut_down_emacs) [!DOS_NT]:
      * sysdep.c (sys_suspend) [SIGTSTP && !MSDOS]:
      * term.c (dissociate_if_controlling_tty) [!DOS_NT]:
      Use pid_t, not int, to store process IDs, as 'int'
      is not wide enough on a few platforms (e.g., AIX and IRIX).
      69deda53
  14. 23 Oct, 2012 2 commits
  15. 21 Oct, 2012 4 commits
  16. 20 Oct, 2012 3 commits
    • Paul Eggert's avatar
      Port to OpenBSD 5.1. · 4973679b
      Paul Eggert authored
      * frame.c (Fmouse_position, Fmouse_pixel_position):
      * xdisp.c (produce_stretch_glyph):
      Declare local vars only when they're needed.
      This is clearer and avoids a warning on OpenBSD about unused vars.
      * frame.h (FRAME_WINDOW_P): Always evaluate its argument.
      This is safer, and avoids OpenBSD warnings about unused vars.
      * keyboard.c (record_menu_key): Remove unnecessary decl.
      (poll_timer): Define only if POLL_FOR_INPUT is defined.
      * unexelf.c (ELFSIZE) [!ElfW]: Do not define if already defined,
      as our definition clashes with OpenBSD's.
      * xfaces.c (load_face_colors, check_lface_attrs)
      (get_lface_attributes_no_remap, get_lface_attributes)
      (lface_fully_specified_p, x_supports_face_attributes_p)
      (tty_supports_face_attributes_p, face_fontset, realize_face)
      (realize_x_face, realize_tty_face):
      Declare parameters to be Lisp_Object[LFACE_VECTOR_SIZE], not
      merely Lisp_Object *.  This is more informative and avoids
      a warning on OpenBSD about accessing beyond an object's size.
      4973679b
    • Eli Zaretskii's avatar
    • Chong Yidong's avatar
      * lread.c (Fload): Doc fix. · c664f463
      Chong Yidong authored
      Fixes: debbugs:12592
      c664f463
  17. 19 Oct, 2012 4 commits
    • Paul Eggert's avatar
      Undo faccessat change. · f0a80175
      Paul Eggert authored
      f0a80175
    • Paul Eggert's avatar
      Use faccessat, not access, when checking file permissions. · e752e0b0
      Paul Eggert authored
      * .bzrignore: Add lib/fcntl.h.
      * configure.ac (euidaccess): Remove check; gnulib does this for us now.
      (gl_FCNTL_O_FLAGS): Define a dummy version.
      * lib/at-func.c, lib/euidaccess.c, lib/faccessat.c, lib/fcntl.in.h:
      * lib/getgroups.c, lib/group-member.c, lib/root-uid.h:
      * lib/xalloc-oversized.h, m4/euidaccess.m4, m4/faccessat.m4:
      * m4/fcntl_h.m4, m4/getgroups.m4, m4/group-member.m4:
      New files, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * admin/merge-gnulib (GNULIB_MODULES): Add faccessat.
      (GNULIB_TOOL_FLAGS): Avoid at-internal, fchdir, malloc-posix,
      openat-die, openat-h, save-cwd.  Do not avoid fcntl-h.
      Omit gnulib's m4/fcntl-o.m4.
      * nt/inc/ms-w32.h (AT_FDCWD, AT_EACCESS): New symbols.
      (access): Remove.
      (faccessat): New macro.
      * src/Makefile.in (LIB_EACCESS): New macro.
      (LIBES): Use it.
      * src/callproc.c (init_callproc):
      * src/charset.c (init_charset):
      * src/fileio.c (check_existing, check_executable):
      * src/lread.c (openp, load_path_check):
      * src/process.c (allocate_pty):
      * src/xrdb.c (file_p):
      Use faccessat, not access or euidaccess.  Use symbolic names
      instead of integers for the flags, as they're portable now.
      * src/charset.c, src/xrdb.c: Include <fcntl.h>, for the new flags used.
      * src/fileio.c (Ffile_readable_p):
      Use faccessat, not stat + open + close.
      (file_directory_p): New function, which uses 'stat' on most places
      but 'access' (for efficiency) if WINDOWSNT.
      * src/fileio.c (Ffile_directory_p, Fset_file_times):
      * src/xrdb.c (file_p): Use file_directory_p.
      * src/lisp.h (file_directory_p): New decl.
      * src/lread.c (openp): When opening a file, use fstat rather than
      stat, as that avoids a permissions race.  When not opening a file,
      use file_directory_p rather than stat.
      * src/process.c, src/sysdep.c, src/term.c: All uses of '#ifdef O_NONBLOCK'
      changed to '#if O_NONBLOCK', to accommodate gnulib O_* tyle.
      * src/w32.c (sys_faccessat): Rename from sys_access and switch to
      faccessat's API.  All uses changed.
      
      Fixes: debbugs:12632
      e752e0b0
    • Kenichi Handa's avatar
      src/ChangeLog: Fix changers name. · 6ec83f92
      Kenichi Handa authored
      6ec83f92
    • Kenichi Handa's avatar
      font.c (Ffont_at): Fix previous change. · a0d7415f
      Kenichi Handa authored
      a0d7415f