1. 22 Jan, 2016 6 commits
    • Michael Albinus's avatar
      Backport kqueue integration from master · 7bf54d01
      Michael Albinus authored
      * configure.ac (--with-file-notification): Add kqueue.
      (top): Remove special test for "${HAVE_NS}" and
      ${with_file_notification}, this is handled inside gfilenotify
      tests.  Add kqueue tests.  Use NOTIFY_CFLAGS and NOTIFY_LIBS
      instead of library specific variables.  Add error message for
      gfile on Nextstep.
      
      * doc/lispref/os.texi (File Notifications): Add kqueue as backend.
      Fix some glitches in the example.
      
      * etc/NEWS: Mention kqueue.
      
      * lisp/filenotify.el (file-notify--library)
      (file-notify-descriptors, file-notify-callback)
      (file-notify-add-watch, file-notify-rm-watch)
      (file-notify-valid-p): Add kqueue support.
      (file-notify--rm-descriptor): Remove WHAT arg.
      
      * src/Makefile.in: Use NOTIFY_CFLAGS and NOTIFY_LIBS.
      
      * src/emacs.c (main): Call globals_of_kqueue and syms_of_kqueue.
      
      * src/inotify.c (inotifyevent_to_event): Extract file name from
      watch_object if the event doesn't provide it.
      (Finotify_add_watch): Add file name to watch_object.
      
      * src/keyboard.c (make_lispy_event): Check also for HAVE_KQUEUE.
      
      * src/kqueue.c: New file.
      
      * src/lisp.h: Declare extern globals_of_kqueue and syms_of_kqueue.
      
      * test/automated/file-notify-tests.el
      (file-notify--test-expected-events): Remove.
      (file-notify--test-cleanup): Do not set that variable.
      (file-notify--test-timeout) Use different timeouts for
      different libraries.
      (file-notify--test-library): New defun.
      (file-notify--test-event-test): Make stronger checks.
      (file-notify--test-with-events): EVENTS can also be a list of
      lists.  Flush outstanding events before running the body.
      Make timeout heuristically depend on the number of events.
      (file-notify-test01-add-watch, file-notify-test02-events)
      (file-notify-test04-file-validity, file-notify-test05-dir-validity):
      Rewrite in order to call file monitors but directory monitors.
      (file-notify-test02-events, file-notify-test04-file-validity): Do
      not skip cygwin tests.  Add additional test for file creation.
      Adapt expected result for different backends.
      (file-notify-test03-autorevert): Some of the tests don't work for
      w32notify.
      (file-notify-test06-many-events): New test.
      7bf54d01
    • John Wiegley's avatar
      Further corrections to the pcase docstring · f7dc6d8b
      John Wiegley authored
      f7dc6d8b
    • Eli Zaretskii's avatar
      669d30b2
    • Stephen Leake's avatar
      In xref-collect-references, force backends to respect the 'dir' arg · 44c7b49d
      Stephen Leake authored
      * lisp/progmodes/xref.el (xref-collect-references): Force symref backends
      to use `default-directory'.
      44c7b49d
    • John Wiegley's avatar
      Minor correction to pcase docstring · fb7c5812
      John Wiegley authored
      fb7c5812
    • John Wiegley's avatar
      Write a new docstring for the pcase macro · 4763c774
      John Wiegley authored
      * lisp/emacs-lisp/pcase.el (pcase): Write a new docstring.
      4763c774
  2. 21 Jan, 2016 2 commits
  3. 20 Jan, 2016 9 commits
    • Paul Eggert's avatar
      No need to configure gobject-introspection · 871c8b1b
      Paul Eggert authored
      It wasn’t needed for the recently-installed xwidget_mvp code; see:
      http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg01154.html
      * configure.ac (DOES_XWIDGETS_USE_GIR, GIR_REQUIRED, GIR_MODULES):
      (HAVE_GIR):
      * src/Makefile.in (GIR_LIBS, GIR_CFLAGS):
      Remove.  All uses removed.
      * configure.ac (emacs_config_features): Don’t worry about GIR.
      871c8b1b
    • Paul Eggert's avatar
      Don’t export C symbols not used elsewhere · 9d7265ba
      Paul Eggert authored
      These were recently added, mostly as part of xwidget code.
      * src/emacsgtkfixed.c (emacs_fixed_get_type): Now static.
      (EMACS_FIXED, EMACS_FIXED_GET_CLASS):
      Now static functions here, not macros in emacsgtkfixed.h.
      * src/emacsgtkfixed.h (EMACS_TYPE_FIXED):
      Remove.  All uses replaced by definiens.
      (EMACS_FIXED, EMACS_FIXED_GET_CLASS):
      Remove; these are now static functions in emacsgtkfixed.c.
      (EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS):
      Remove; unused.
      (emacs_fixed_get_type): Remove decl; no longer extern.
      * src/xwidget.c (offscreen_damage_event)
      (webkit_mime_type_policy_typedecision_requested_cb)
      (webkit_new_window_policy_decision_requested_cb)
      (webkit_navigation_policy_decision_requested_cb)
      (xwidget_spec_value, xwidget_view_lookup)
      (xwidget_start_redisplay, xwidget_touch):
      Now static.
      * src/xwidget.h (xwidget_start_redisplay, xwidget_touch):
      Remove decls.
      9d7265ba
    • Dmitry Gutov's avatar
      Support squiggly heredocs in ruby-mode · 6a9399f7
      Dmitry Gutov authored
      * lisp/progmodes/ruby-mode.el (ruby-here-doc-beg-re):
      Support squiggly heredocs added in Ruby 2.3.
      
      * test/indent/ruby.rb: Add squiggly example.
      6a9399f7
    • Glenn Morris's avatar
      4db94245
    • Paul Eggert's avatar
      Port to platforms with gtk3 but not webkitgtk3 · 2388fa74
      Paul Eggert authored
      I ran into this problem on my Fedora 23 installation;
      Emacs configured but did not build when --with-xwidgets was specified.
      * configure.ac (HAVE_WEBKIT, HAVE_GIR): Omit unnecessary initializations.
      (DOES_XWIDGETS_USE_GIR): New var.
      If --with-xwidgets is specified, report an error if not
      doable, to be consistent with the other --with options.
      Require webkitgtk3 to use Xwidgets, as the Xwidgets code does
      not work at all without webkitgtk3.  Simplify use of
      EMACS_CHECK_MODULES.  Output message about gobject
      introspection only if xwidgets are used.
      * etc/NEWS: Users need webkitgtk3, not merely webkit.
      * src/xwidget.c (syms_of_xwidget): Don’t worry about HAVE_WEBKIT_OSR,
      since this file is no longer compiled if webkitgtk3 is not available.
      2388fa74
    • Eli Zaretskii's avatar
      Fix doc string of 'isearch-search-fun-function' · 65575c24
      Eli Zaretskii authored
      * lisp/isearch.el (isearch-search-fun-function)
      (isearch-search-string): Doc fixes.  (Bug#22411)
      65575c24
    • Stefan Monnier's avatar
      * lisp/xwidget.el: Nitpicks · c5ee6de2
      Stefan Monnier authored
      * lisp/xwidget.el (xwidget-log, xwidget-webkit-callback):
      Use with-current-buffer rather than save-excursion + set-buffer.
      c5ee6de2
    • Glenn Morris's avatar
      Don't hard-code 1 as point-min. · 96f6cace
      Glenn Morris authored
      * lisp/image-mode.el (image-display-size):
      * lisp/xwidget.el (xwidget-webkit-last-session)
      (xwidget-webkit-current-session): Don't hard-code 1 as point-min.
      96f6cace
    • Glenn Morris's avatar
      ; * lisp/xwidget.el: Spelling fixes. · 833d53b9
      Glenn Morris authored
      833d53b9
  4. 19 Jan, 2016 23 commits