1. 25 Jun, 2015 1 commit
  2. 24 Jun, 2015 10 commits
  3. 23 Jun, 2015 10 commits
    • Paul Eggert's avatar
      Fix bug that munged selection info · 1552e673
      Paul Eggert authored
      On some optimizing C compilers, copying a structure did not
      copy the padding bytes between elements, and the type punning
      between struct input_data and struct selection_input_data did
      not work.  Change the C code to use a proper union type instead.
      Problem reported by YAMAMOTO Mitsuharu (Bug#20756).
      * src/keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr)
      (readable_events, discard_mouse_events, kbd_buffer_events_waiting)
      (kbd_buffer_get_event, process_special_events, stuff_buffered_input)
      Use union buffered_input_event, not struct input_event.
      (clear_event, deliver_input_available_signal, process_special_events):
      Remove unnecessary forward decls.
      (kbd_buffer_store_buffered_event): New function, mostly just the
      old kbd_buffer_store_event_hold, except its argument is of type
      union buffered_input_event, not struct input_event.
      (kbd_buffer_unget_event): Define only if HAVE_X11, since it's
      not needed otherwise.  Argument is now of type
      struct selection_input_event *, not struct input_event *.
      All callers changed.
      (clear_event): Arg is now of type union buffered_input_event *,
      not struct input_event *.  All callers changed.
      * src/keyboard.h [HAVE_X11]: Include "xterm.h".
      (union buffered_input_event): New type.
      (kbd_buffer_store_event_hold): Now an inline function,
      defined here.
      * src/termhooks.h (EVENT_KIND_WIDTH): New constant.
      (struct input_event): Use it.
      * src/xselect.c (struct selection_event_queue):
      Make elements be of type struct selection_input_event,
      not struct input_event.
      (selection_input_event_equal): New static function.
      (x_queue_event): Use it.
      (x_queue_event, x_decline_selection_request)
      (x_selection_current_request, x_reply_selection_request)
      (x_handle_selection_request, x_handle_selection_clear)
      (x_handle_selection_event): Use struct selection_input_event,
      not struct input_event.  All callers changed.
      (x_convert_selection): Omit unused first arg.  All callers changed.
      (Fx_disown_selection_internal): Omit unnecessary union.
      * src/xterm.c (handle_one_xevent): Use new union buffered_input_event
      rather than rolling our own equivalent.  Prefer sie.kind when
      setting up that kind of structure.
      Call kbd_buffer_store_buffered_event, not kbd_buffer_store_event_hold.
      * src/xterm.h (struct selection_input_event: Use EVENT_KIND_WIDTH.
      (SELECTION_EVENT_TIME, x_handle_selection_event):
      Arg is now of type struct selection_input_event *)
      not struct input_event *.  All callers changed.
    • Glenn Morris's avatar
    • Artur Malabarba's avatar
      * lisp/isearch.el: Fold many unicode characters to ASCII · c7a19e0c
      Artur Malabarba authored
      (isearch-character-fold-search, isearch--character-fold-extras)
      (isearch--character-fold-table): New variable.
      (isearch--character-folded-regexp): New function.
      (isearch-search-fun-default): Use them.
      * lisp/replace.el (replace-character-fold): New variable.
      (replace-search): Use it.
      * etc/NEWS: Document it.
    • Glenn Morris's avatar
      Check for an input event before showing a dialog box. (Bug#20813) · 2ca55583
      Glenn Morris authored
      * lisp/subr.el (y-or-n-p):
      * src/fns.c (Fyes_or_no_p): Check last-input-event as well
      as last-nonmenu-event.
    • Jürgen Hartmann's avatar
      Respect ‘switch-to-visible-buffer’ more rigidly. (Bug#20861) · abe07ef0
      Jürgen Hartmann authored
      * lisp/window.el (switch-to-visible-buffer): Doc adjustment.
      (switch-to-prev-buffer, switch-to-next-buffer): Respect
      switch-to-visible-buffer independent of the windows history.
      Copyright-paperwork-exempt: yes
    • Paul Eggert's avatar
    • Artur Malabarba's avatar
    • Glenn Morris's avatar
      Revert 2014-06-25 nextstep/Makefile change. · 371ebe02
      Glenn Morris authored
      * nextstep/Makefile.in (${ns_appbindir}): Remove rule.
      (${ns_appbindir}/Emacs, links): Create ns_appbindir in the rule,
      not as an order-only prerequisite.
    • Glenn Morris's avatar
      * configure.ac (--with-ns): Enable by default on OS X. · d97fbcbe
      Glenn Morris authored
      ; * etc/NEWS, nextstep/INSTALL: Mention this.
    • Leo Liu's avatar
      Fix shell-for/backward-command to exclude spaces · eccfc0a4
      Leo Liu authored
      * lisp/shell.el (shell-forward-command, shell-backward-command):
        Handle the 'move case from re-search-forward/backward.
        fixes debbugs:20873
  4. 22 Jun, 2015 12 commits
  5. 21 Jun, 2015 7 commits