1. 17 Nov, 2012 18 commits
    • Paul Eggert's avatar
      Assume POSIX 1003.1-1988 or later for fcntl.h. · 49cdacda
      Paul Eggert authored
      * admin/CPP-DEFINES (O_RDONLY, O_RDWR, HAVE_FCNTL_H): Remove.
      * admin/merge-gnulib (GNULIB_MODULES): Add fcntl-h.
      * configure.ac: Do not check for fcntl.h.
      * lib/gnulib.mk: Regenerate.
      * lib-src/movemail.c, lib-src/update-game-score.c: Assume <fcntl.h> exists.
      * nt/inc/sys/socket.h (O_NONBLOCK): Rename from O_NDELAY, since the
      POSIX name for this flag is O_NONBLOCK.  All uses changed.
      * nt/inc/unistd.h (O_RDWR, O_NOCTTY): New macros.  Like AT_FDCWD etc.
      these really should be moved to a replacement <fcntl.h> if and
      when that gets implemented.  In the meantime, include <fcntl.h>
      to make sure we don't override its definitions.
      * src/callproc.c (relocate_fd): Assume F_DUPFD.
      * src/emacs.c, src/term.c (O_RDWR): Remove.
      * src/keyboard.c (tty_read_avail_input): Use O_NONBLOCK rather than
      O_NDELAY, since O_NONBLOCK is the standard name for this flag.
      * src/nsterm.m: Assume <fcntl.h> exists.
      * src/process.c (NON_BLOCKING_CONNECT, allocate_pty, create_process)
      (create_pty, Fmake_network_process, server_accept_connection)
      (wait_reading_process_output, init_process_emacs):
      Assume O_NONBLOCK.
      (wait_reading_process_output): Put in a special case for WINDOWSNT
      to mimick the older behavior where it had O_NDELAY but not O_NONBLOCK.
      It's not clear this is needed, but it's a more-conservative change.
      (create_process): Assume FD_CLOEXEC.
      (create_process, create_pty): Assume O_NOCTTY.
      * src/sysdep.c (init_sys_modes, reset_sys_modes): Assume F_SETFL.
      (reset_sys_modes): Use O_NONBLOCK rather than O_NDELAY.
      Omit if not DOS_NT, since F_GETFL is not defined there.
      (serial_open): Assume O_NONBLOCK and O_NOCTTY.
      * src/term.c: Include <fcntl.h>, for flags like O_NOCTTY.
      (O_NOCTTY): Remove.
      (init_tty): Assume O_IGNORE_CTTY is defined to 0 on platforms that
      lack it, since gnulib guarantees this.
      * src/w32.c (fcntl): Test for O_NONBLOCK rather than O_NDELAY.
      
      Fixes: debbugs:12881
      49cdacda
    • Paul Eggert's avatar
      Calc now uses the Gregorian calendar for all dates, · 310e60d9
      Paul Eggert authored
      and uses January 1, 1 AD as its day number 1.
      * doc/misc/calc.texi (Date Forms): Document this.
      
      * lisp/calc/calc-forms.el (math-julian-date-beginning)
      (math-julian-date-beginning-int): Implement this.
      310e60d9
    • Juanma Barranquero's avatar
      lisp/*.el: Add missing declarations. · d7fe6352
      Juanma Barranquero authored
      * descr-text.el (quail-find-key):
      * dired.el (desktop-file-name):
      * dirtrack.el (shell-prefixed-directory-name, shell-process-cd):
      * generic-x.el (comint-mode, comint-exec):
      * image-dired.el (widget-forward):
      * info.el (speedbar-add-expansion-list, speedbar-center-buffer-smartly)
      (speedbar-change-expand-button-char)
      (speedbar-change-initial-expansion-list, speedbar-delete-subblock)
      (speedbar-make-specialized-keymap, speedbar-make-tag-line):
      * printing.el (easy-menu-add-item, easy-menu-remove-item)
      (widget-field-action, widget-value-set):
      * speedbar.el (imenu--make-index-alist):
      * term.el (ring-empty-p, ring-ref, ring-insert-at-beginning)
      (ring-length, ring-insert):
      * vcursor.el (compare-windows-skip-whitespace):
      * woman.el (dired-get-filename):
      Declare functions.
      
      * term/w32-win.el (cygwin-convert-path-from-windows): Fix declaration.
      d7fe6352
    • Jay Belanger's avatar
      3dc7dad2
    • Jay Belanger's avatar
      * calc/calc.el (calc-gregorian-switch): New variable. · c9f618db
      Jay Belanger authored
      * calc/calc-forms.el (math-day-in-year, math-dt-before-p)
      (math-absolute-from-gregorian-dt, math-absolute-from-julian-dt)
      (math-date-to-julian-dt, math-date-to-gregorian-dt): New functions.
      (math-leap-year-p): Add option to distinguish between Julian 
      and Gregorian calendars. 
      (math-day-number): Use `math-day-in-year' to do the computations.
      (math-absolute-from-dt): Rename from `math-absolute-from-date'.
      Use `math-absolute-from-gregorian' and `math-absolute-from-julian' 
      to do the computations.
      (math-date-to-dt): Use `math-date-to-julian-dt' and `math-date-to-gregorian-dt' 
      to do the computations.
      (calcFunc-weekday, math-format-date-part): Use the new version of the DATE to
      determine the weekday.
      (calcFunc-newmonth, calcFunc-newyear): Use `calc-gregorian-switch' when necessary.
      c9f618db
    • Eli Zaretskii's avatar
      Fix bug #12914 with drag-n-drop in native MS-Windows build. · 3804f7bc
      Eli Zaretskii authored
       lisp/term/w32-win.el (w32-handle-dropped-file): Use 'file://' only on
       Cygwin; otherwise use 'file:'.
       (cygwin-convert-path-from-windows): Declare, to avoid
       byte-compiler warnings.
      3804f7bc
    • Glenn Morris's avatar
      Relocate NEWS entry to correct section · 5248293f
      Glenn Morris authored
      5248293f
    • Paul Eggert's avatar
      Update comment to match recent change. · 9fa3ccd9
      Paul Eggert authored
      9fa3ccd9
    • Eli Zaretskii's avatar
      Fix MS-Windows emulation of 'faccessat' wrt directories. · 6ad30855
      Eli Zaretskii authored
       src/w32.c (faccessat): Pretend that directories have the execute bit
       set.  Emacs expects that, e.g., in files.el:cd-absolute.
      6ad30855
    • Eli Zaretskii's avatar
      Fix bug #12829 with aborts on MS-Windows when several child processes die. · 22bae83f
      Eli Zaretskii authored
       nt/inc/sys/wait.h: New file, with prototype of waitpid and
       definitions of macros it needs.
       nt/inc/ms-w32.h (wait): Don't define, 'wait' is not used anymore.
       (sys_wait): Remove prototype.
       nt/config.nt (HAVE_SYS_WAIT_H): Define to 1.
      
       src/w32proc.c (create_child): Don't clip the PID of the child
       process to fit into an Emacs integer, as this is no longer a
       restriction.
       (waitpid): Rename from sys_wait.  Emulate a Posix 'waitpid' by
       reaping only the process specified by PID argument, if that is
       positive.  Use PID instead of dead_child to know which process to
       reap.  Wait for the child to die only if WNOHANG is not in
       OPTIONS.
       (sys_select): Don't set dead_child.
       src/sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion,
       as it is no longer needed.
       src/process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions,
       no longer needed.
       (record_child_status_change): Remove the setting of
       record_at_most_one_child for the !WNOHANG case.
      22bae83f
    • Paul Eggert's avatar
      Fix problems in ns port found by static checking. · a631d0e0
      Paul Eggert authored
      * nsterm.m: Include <pthread.h>, for pthread_mutex_lock etc.
      (hold_event, setPosition:portion:whole:): Send SIGIO only to self,
      not to process group.
      (ns_select): Use emacs_write, not write, as that's more robust
      in the presence of signals.
      (fd_handler:): Check for read errors.
      a631d0e0
    • Glenn Morris's avatar
      Auto-commit of loaddefs files. · d76afb93
      Glenn Morris authored
      d76afb93
    • Glenn Morris's avatar
      Auto-commit of generated files. · a455a5ce
      Glenn Morris authored
      a455a5ce
    • Dani Moncayo's avatar
      Don't produce "barebin" zip file as part of MS-Windows distributions. · cd48a2e8
      Dani Moncayo authored
       nt/zipdist.bat (ZIP_CHECK): Remove unused label.  When invoking 7z
       to check if it's installed, redirect standard output and standard
       error to the null device.
       (ZIP_DIST): Don't build the "barebin" distribution.
      cd48a2e8
    • Andreas Politz's avatar
      Fix prefix arg handling in ibuffer marking commands. · de959d4d
      Andreas Politz authored
      * ibuffer.el (ibuffer-mark-forward, ibuffer-unmark-forward)
      (ibuffer-unmark-backward, ibuffer-mark-interactive): Support plain
      prefix and negative numeric prefix args.
      
      Fixes: debbugs:12795
      de959d4d
    • Stephen Berman's avatar
      Fix for gamegrid-add-score-with-update-game-score-1. · e45deaef
      Stephen Berman authored
      * lisp/play/gamegrid.el (gamegrid-add-score-with-update-game-score-1):
      Don't signal an error with a score that is too low to add to the list
      of top scores.
      
      Fixes: debbugs:12779
      e45deaef
    • Chong Yidong's avatar
      * help-mode.el (help-xref-interned): End on point-min. · 8e7696a1
      Chong Yidong authored
      Fixes: debbugs:12737
      8e7696a1
    • Chong Yidong's avatar
      ec15e0ff
  2. 16 Nov, 2012 14 commits
  3. 15 Nov, 2012 8 commits