1. 20 Nov, 2012 3 commits
    • Dmitry Antipov's avatar
      * xdisp.c (buffer_shared): Adjust comment. · 952580c5
      Dmitry Antipov authored
      (buffer_shared_and_changed): New function.
      (prepare_menu_bars, redisplay_internal): Use it to
      decide whether all windows or frames should be updated.
      952580c5
    • Stefan Monnier's avatar
      Make called-interactively-p work for edebug or advised code. · 23ba2705
      Stefan Monnier authored
      * lisp/subr.el (called-interactively-p-functions): New var.
      (internal--called-interactively-p--get-frame): New macro.
      (called-interactively-p, interactive-p): Rewrite in Lisp.
      * lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): New fun.
      (called-interactively-p-functions): Use it.
      * lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): New fun.
      (called-interactively-p-functions): Use it.
      * lisp/allout.el (allout-called-interactively-p): Don't assume
      called-interactively-p is a subr.
      * src/eval.c (Finteractive_p, Fcalled_interactively_p, interactive_p): Remove.
      (syms_of_eval): Remove corresponding defsubr.
      * src/bytecode.c (exec_byte_code): `interactive-p' is now a Lisp function.
      * test/automated/advice-tests.el (advice-tests--data): Remove.
      (advice-tests): Move the tests directly here instead.
      Add called-interactively-p tests.
      23ba2705
    • Glenn Morris's avatar
      Add a menu for profiler report mode · b0636be7
      Glenn Morris authored
      * lisp/profiler.el (profiler-report-mode-map): Add a menu.
      No need to bind `q' because we derive from special-mode.
      (profiler-report-find-entry): Handle calls from the menu-bar.
      b0636be7
  2. 19 Nov, 2012 11 commits
  3. 18 Nov, 2012 12 commits
  4. 17 Nov, 2012 14 commits
    • Juanma Barranquero's avatar
      nt/config.nt: Sync with autogen/config.in. · 1b474373
      Juanma Barranquero authored
      (HAVE_FPATHCONF): Remove.
      1b474373
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      Add some cindex entries for previous change · e3369c41
      Glenn Morris authored
      e3369c41
    • Juanma Barranquero's avatar
      lib-src/makefile.w32-in, src/makefile.w32-in: Update dependencies. · a75ce9d3
      Juanma Barranquero authored
      * lib-src/makefile.w32-in (SYSWAIT_H): New macro.
      ($(BLD)/movemail.$(O)): Update dependencies.
      
      * src/makefile.w32-in (SYSWAIT_H): New macro.
      ($(BLD)/callproc.$(O), $(BLD)/w32proc.$(O), $(BLD)/process.$(O))
      ($(BLD)/sysdep.$(O)): Update dependencies.
      a75ce9d3
    • Glenn Morris's avatar
      * minibuf.texi (Basic Completion): Mention misc completion-table funcs. · a045a167
      Glenn Morris authored
      * etc/NEWS: Related edit.
      a045a167
    • 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
    • Eli Zaretskii's avatar
      Fix bug #12878 with compilation failure with Visual C++ 11.0. · d8715cdf
      Eli Zaretskii authored
       src/w32select.c: Include w32common.h before w32term.h, so that
       windows.h gets included before w32term.h uses some of its
       features, see below.
       src/w32term.h (LOCALE_ENUMPROCA, LOCALE_ENUMPROCW) [_MSC_VER]: New
       typedefs.
       (EnumSystemLocalesA, EnumSystemLocalesW) [_MSC_VER]: New
       prototypes.
       (EnumSystemLocales) [_MSC_VER]: Define if undefined.
      d8715cdf
    • Paul Eggert's avatar
      Update comment to match recent change. · 9fa3ccd9
      Paul Eggert authored
      9fa3ccd9