1. 29 Nov, 2013 5 commits
    • Paul Eggert's avatar
      Fix minor problems found by static checking. · 49faeaaf
      Paul Eggert authored
      * buffer.h (struct buffer_text, struct buffer):
      * frame.h (struct frame):
      * window.h (struct window):
      Avoid 'bool foo : 1;', as it's not portable to pre-C99 compilers,
      as described in ../lib/stdbool.in.h.  Use 'unsigned foo : 1;' instead.
      * menu.c (syms_of_menu): Define x-popup-dialog, removing a
      no-longer-valid use of HAVE_MENUS.
      * xdisp.c (propagate_buffer_redisplay): Now static.
      49faeaaf
    • Andreas Politz's avatar
      * doc/lispref/modes.texi (Imenu): Make it clear that sub-alist is the cdr. · c8f0efc2
      Andreas Politz authored
      * lisp/imenu.el (imenu--subalist-p): Don't error on non-conses and
      allow non-lambda lists as functions.
      (imenu--in-alist): Don't recurse into non-subalists.
      (imenu): Don't pass function itself as an argument.
      
      Fixes: debbugs:14029
      c8f0efc2
    • Stefan Monnier's avatar
      * lisp/progmodes/python.el (python-mode-map): Remove binding for ":". · bd15d9d1
      Stefan Monnier authored
      (python-indent-electric-colon): Remove command.
      (python-indent-post-self-insert-function): Integrate the previous code
      of python-indent-electric-colon.  Make it conditional on
      electric-indent-mode.
      (python-mode): Add ?: to electric-indent-chars.
      Move python-indent-post-self-insert-function to the end of
      post-self-insert-hook.
      bd15d9d1
    • Stefan Monnier's avatar
      * configure.ac (HAVE_MENUS): Remove. · 7cdf484b
      Stefan Monnier authored
      * src/xmenu.c (Fmenu_or_popup_active_p):
      * src/window.c (Fset_window_configuration):
      * src/menu.c (Fx_popup_menu, Fx_popup_dialog):
      * src/keyboard.c (record_menu_key, read_char_x_menu_prompt):
      * src/fns.c (Fyes_or_no_p):
      * src/editfns.c (Fmessage_box, Fmessage_or_box):
      * src/alloc.c (make_save_ptr_ptr):
      * src/xdisp.c, src/w32menu.c, src/term.c, src/xterm.h, src/xterm.c:
      Remove HAVE_MENUS.
      7cdf484b
    • Stefan Monnier's avatar
  2. 28 Nov, 2013 11 commits
    • Glenn Morris's avatar
      Replace PATH_SEP with pre-existing SEPCHAR. · 0845be75
      Glenn Morris authored
      * configure.ac:
      * test/automated/Makefile.in: Use SEPCHAR in place of PATH_SEP.
      0845be75
    • Glenn Morris's avatar
      Robustify previous leim/Makefile.in change · bb28366f
      Glenn Morris authored
      bb28366f
    • Jan Tatarik's avatar
      42e51060
    • Stefan Monnier's avatar
      Refine redisplay optimizations to only redisplay *some* frames/windows · 655ab9a3
      Stefan Monnier authored
      rather than all of them.
      * src/xdisp.c (REDISPLAY_SOME): New constant.
      (redisplay_other_windows, wset_redisplay, fset_redisplay)
      (bset_redisplay, bset_update_mode_line): New functions.
      (message_dolog): Use bset_redisplay.
      (clear_garbaged_frames): Use fset_redisplay.
      (echo_area_display): Use wset_redisplay.
      (buffer_shared_and_changed): Remove.
      (prepare_menu_bars): Call Vpre_redisplay_function before updating
      frame titles.  Compute the actual set of windows redisplayed.
      Don't update frame titles and menu bars for frames that don't need to
      be redisplayed.
      (propagate_buffer_redisplay): New function.
      (AINC): New macro.
      (redisplay_internal): Use it.  Be more selective in the set of windows
      we redisplay.  Propagate windows_or_buffers_changed to
      update_mode_lines a bit later to simplify the code.
      (mark_window_display_accurate_1): Reset window and buffer's
      `redisplay' flag.
      (redisplay_window): Do nothing if neither the window nor the buffer nor
      the frame needs redisplay.
      * src/window.h (struct window): Add `redisplay' field.
      (wset_redisplay, fset_redisplay, bset_redisplay, bset_update_mode_line)
      (redisplay_other_windows, window_list): New declarations.
      * src/window.c (select_window, Fset_window_start): Use wset_redisplay.
      (window_list): Not static any more.
      (grow_mini_window, shrink_mini_window): Use fset_redisplay.
      * src/minibuf.c (read_minibuf_unwind): Don't redisplay everything.
      * src/insdel.c (prepare_to_modify_buffer_1): Use bset_redisplay.
      * src/frame.c (Fmake_frame_visible): Don't redisplay everything.
      * src/frame.h (struct frame): Add `redisplay' field.
      Move `external_menu_bar' bitfield next to other bit-fields.
      (SET_FRAME_GARBAGED): Use fset_redisplay.
      (SET_FRAME_VISIBLE): Don't garbage the frame;
      Use redisplay_other_windows.
      * src/buffer.h (struct buffer): Add `redisplay' field.
      * src/buffer.c (Fforce_mode_line_update): Pay attention to the `all' flag.
      (modify_overlay): Use bset_redisplay.
      * src/alloc.c (gc_sweep): Don't unmark strings while sweeping symbols.
      
      * lisp/doc-view.el (doc-view-goto-page): Update mode-line.
      655ab9a3
    • Glenn Morris's avatar
      * leim/leim-ext.el: Change method for getting comments in the output · 698c0f24
      Glenn Morris authored
      to one that does not fool lisp/compile-main's no-byte-compile test.
      * leim/Makefile.in (${leimdir}/leim-list.el): Adapt for this.
      698c0f24
    • Glenn Morris's avatar
    • Eli Zaretskii's avatar
      Fix bug #15933 with crashes in file-notify-tests on MS-Windows. · 9c099ca7
      Eli Zaretskii authored
       Support w32 file notifications in batch mode.
       src/w32proc.c (sys_select): Don't wait on interrupt_handle if it is
       invalid (which happens in batch mode).  If non-interactive, call
       handle_file_notifications to store file notification events in the
       input queue.
       src/w32notify.c (send_notifications): Handle FRAME_INITIAL frames as
       well.
       src/w32inevt.c (handle_file_notifications): Now external, not
       static.
       src/w32term.h (handle_file_notifications): Provide prototype.
       src/emacs.c (main) [HAVE_W32NOTIFY]: When non-interactive, call
       init_crit, since init_display, which does that otherwise, is not
       called.
      9c099ca7
    • Eli Zaretskii's avatar
      Remove left-overs from using nt/mingw-cfg.site as a CONFIG_SITE file. · 16555151
      Eli Zaretskii authored
       GNUmakefile (Makefile): Don't use $(CFG).
       (CFG): Don't compute.
      16555151
    • Eli Zaretskii's avatar
      Fix the test suite on Windows. · f7ec0d94
      Eli Zaretskii authored
       configure.ac (PATH_SEP): Set and AC_SUBST.
      
       test/automated/Makefile.in (PATH_SEP): Set this instead of
       PATH_SEPARATOR.
       (EMACSOPT): Use $(PATH_SEP).
      f7ec0d94
    • Michael Albinus's avatar
      23293cb0
    • Stefan Monnier's avatar
  3. 27 Nov, 2013 17 commits
    • Paul Eggert's avatar
      Merge from gnulib, incorporating: · de27f8ab
      Paul Eggert authored
      2013-11-13 getgroups: work around _DARWIN_C_SOURCE problem
      * lib/getgroups.c: Update from gnulib.
      de27f8ab
    • Glenn Morris's avatar
      Fix comment typo · 336b7334
      Glenn Morris authored
      336b7334
    • Glenn Morris's avatar
      * leim/Makefile.in (bootstrap-clean): No need to delete .elc, · 2b58a9cc
      Glenn Morris authored
      lisp/ rules will do that.
      2b58a9cc
    • Glenn Morris's avatar
      Stop keeping generated Unicode lisp files in the repository · 7e3bf78c
      Glenn Morris authored
      Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg01023.html
      
      * admin/unidata/Makefile.in (all, install, clean, bootstrap-clean)
      (distclean, maintainer-clean): Declare as PHONY.
      (compile, extraclean): New.
      (${DSTDIR}/charprop.el): Depend on source files rather than
      intermediate products.
      
      * lisp/international/charprop.el, lisp/international/uni-bidi.el:
      * lisp/international/uni-category.el, lisp/international/uni-combining.el:
      * lisp/international/uni-comment.el, lisp/international/uni-decimal.el:
      * lisp/international/uni-decomposition.el, lisp/international/uni-digit.el:
      * lisp/international/uni-lowercase.el, lisp/international/uni-mirrored.el:
      * lisp/international/uni-name.el, lisp/international/uni-numeric.el:
      * lisp/international/uni-old-name.el, lisp/international/uni-titlecase.el:
      * lisp/international/uni-uppercase.el:
      Remove generated files from VCS repository.
      
      * src/Makefile.in ($(lispsource)/international/charprop.el): New.
      (emacs$(EXEEXT)): Depend on charprop.el.
      
      * Makefile.in: Comment.
      
      * .bzrignore: Add generated Unicode files.
      7e3bf78c
    • Glenn Morris's avatar
      Don't delete ja-dic.el even in a bootstrap, since it is slow to remake · ccd4fb3d
      Glenn Morris authored
      * leim/Makefile.in (extraclean): New.
      (bootstrap-clean): Move ja-dic deletion to extraclean.
      ccd4fb3d
    • Eli Zaretskii's avatar
      Fix bug #15973 with erratic cursor motion after reverting a buffer. · de1e0d91
      Eli Zaretskii authored
       src/fileio.c (Finsert_file_contents): Invalidate buffer caches when
       deleting portions of the buffer under non-nil REPLACE argument.
      de1e0d91
    • Eli Zaretskii's avatar
      Fix watching directories using w32notify.c. · fb6a5d68
      Eli Zaretskii authored
       src/w32notify.c (Fw32notify_add_watch): If the argument FILE is a
       directory, watch it and not its parent.
       (add_watch): Allow empty string in FILE.
      
       lisp/filenotify.el (file-notify-add-watch): Don't special-case
       w32notify when computing the directory to watch.
      fb6a5d68
    • Michael Albinus's avatar
      * automated/file-notify-tests.el · 1baa1e49
      Michael Albinus authored
      (file-notify-test-remote-temporary-file-directory):
      Check $REMOTE_TEMPORARY_FILE_DIRECTORY.
      (tramp-read-passwd): Check $REMOTE_ALLOW_PASSWORD.
      (file-notify--deftest-remote): Cleanup connection initially.
      (file-notify-test03-autorevert): Run also in batch mode.  Use a
      larger timeout for remote files.  `sit-for' 1 second; 0.1 second
      does not work on MS Windows.  Call `accept-process-output' for
      remote files.  Apply `string-match' instead of `string-equal', the
      messages are different on MS Windows.
      
      * automated/tramp-tests.el (tramp-test-temporary-file-directory):
      Use $REMOTE_TEMPORARY_FILE_DIRECTORY.
      (tramp-read-passwd): Check $REMOTE_ALLOW_PASSWORD.
      1baa1e49
    • Glenn Morris's avatar
      Make bootstrap without generated uni-*.el files possible again · 20372d0c
      Glenn Morris authored
      * lisp/loadup.el: Update command-line-args checking for unidata-gen.
      Add vc to load-path to allow loading vc-bzr when writing uni-*.el.
      
      * lisp/composite.el, lisp/international/characters.el:
      Handle unicode tables being undefined.
      
      * lisp/composite.el: Add (rough) FSF copyright years.
      20372d0c
    • Martin Rudalics's avatar
      Reset window_end_valid after some window changes (Bug#15957). · 72fdd473
      Martin Rudalics authored
      * window.c (Fset_window_start, window_resize_apply)
      (window_scroll): Reset window_end_valid (Bug#15957).
      72fdd473
    • Katsumi Yamaoka's avatar
    • Glenn Morris's avatar
      ChangeLog fixes · 52d6635f
      Glenn Morris authored
      52d6635f
    • Glenn Morris's avatar
      ChangeLog fix · 14466ee4
      Glenn Morris authored
      14466ee4
    • Glenn Morris's avatar
      Mark tiny change · 1633a815
      Glenn Morris authored
      1633a815
    • Glenn Morris's avatar
      Move runtime leim lisp files to lisp/leim directory · cb6c95a3
      Glenn Morris authored
      This allows us to reuse much of the lisp build and installation machinery,
      rather than duplicating it.
      
      * Makefile.in (abs_builddir, leimdir): Remove.
      (buildlisppath, SUBDIR, COPYDIR, COPYDESTS): No more leim directory.
      (epaths-force-w32): No longer set BLD.
      (leim): Remove.
      (install-arch-indep): No longer run or install leim.
      (mostlyclean, clean): No longer run leim rule.
      (bootstrap-clean): Change leim target.
      (maintainer-clean): Add leim.
      (check-declare): Remove leim.
      
      * README: Update for leim changes.
      
      * configure.ac (leimdir): Remove.
      (standardlisppath): No more leimdir.
      
      * make-dist: Update for files from leim/ now being in lisp/leim/.
      
      * doc/lispref/loading.texi (Library Search):
      * doc/lispref/os.texi (Startup Summary): No more leim directory.
      
      * leim/Makefile.in (leimdir): New variable.
      (TIT_GB, TIT_BIG5, MISC, changed.tit, changed.misc)
      (${leimdir}/leim-list.el, ${leimdir}/ja-dic/ja-dic.el):
      Generate in $leimdir.
      (all): Remove compilation, add ja-dic.
      (leim-list.el): Now PHONY.
      (setwins, compile-targets, compile-main, clean, mostlyclean)
      (extraclean): Remove.
      (bootstrap-clean): Delete all generated files.
      
      * leim/README: Update for moved leim/ directory.
      
      * leim/leim-ext.el (ucs-input-activate, hangul-input-method-activate):
      Remove manual autoloads; now in loaddefs.el.
      Disable byte-compile, version-control, autoloads in the output.
      
      * lisp/Makefile.in (setwins_for_subdirs): Skip leim/ directory.
      (compile-main): Depend on lisp/leim rule.
      (leim): New rule.
      
      * lisp/loadup.el: Move leim-list.el to leim/ subdirectory.
      
      * lisp/startup.el (normal-top-level): No more leim directory.
      
      * lisp/international/ja-dic-cnv.el (skkdic-convert):
      Disable version-control and autoloads in output files.
      * lisp/international/titdic-cnv.el (titdic-convert, miscdic-convert):
      Disable version-control and autoloads in output files.
      
      * lisp/leim/quail: Move here from ../leim.
      
      * lisp/leim/quail/hangul.el (hangul-input-method-activate):
      Add autoload cookie.
      (generated-autoload-load-name): Set file-local value.
      
      * lisp/leim/quail/uni-input.el (ucs-input-activate): Add autoload cookie.
      (generated-autoload-load-name): Set file-local value.
      
      * nt/README.W32:
      * nt/addpm.c (env_vars):
      * nt/epaths.nt (PATH_LOADSEARCH, PATH_DUMPLOADSEARCH):
      * nt/paths.h (PATH_LOADSEARCH): No more leim directory.
      
      * src/Makefile.in (leimdir): Now in lisp source directory.
      ($(leimdir)/leim-list.el): Just use ../leim .
      
      * src/epaths.in (PATH_DUMPLOADSEARCH):
      
      * src/lread.c (load_path_default):
      
      * src/nsterm.m (ns_load_path): No more leim directory.
      
      * .bzrignore: Update for relocated leim files.
      cb6c95a3
    • Katsumi Yamaoka's avatar
    • Katsumi Yamaoka's avatar
  4. 26 Nov, 2013 7 commits