1. 24 Jun, 2015 7 commits
    • Artur Malabarba's avatar
      * lisp/character-fold.el: New file (Bug#20887) · 795c9189
      Artur Malabarba authored
      (character-fold-to-regexp): New function.
      
      * lisp/replace.el (replace-search): Check value of
      `character-fold-search'.
      
      * lisp/isearch.el: Move character-folding code to
      character-fold.el
      (isearch-toggle-character-fold): New command.
      (isearch-mode-map): Bind it to "\M-sf".
      (isearch-mode): Check value of `character-fold-search'.
      795c9189
    • Stefan Monnier's avatar
      * lisp/subr.el (remove-from-invisibility-spec): Handle the t case · ce2e5c7f
      Stefan Monnier authored
      * lisp/subr.el (remove-from-invisibility-spec): Make sure `element'
      is visible even if it's not yet in buffer-invisibility-spec (bug#20468).
      ce2e5c7f
    • Stefan Monnier's avatar
      * lisp/progmodes/xref.el: Avoid init-args in oref. · 4fba36ce
      Stefan Monnier authored
      * lisp/progmodes/xref.el (xref-location-group, xref-location-marker)
      (xref--insert-xrefs, xref-collect-references): Avoid init-args in oref.
      4fba36ce
    • Glenn Morris's avatar
      * Makefile.in (install-arch-dep): Don't set sticky bit on the binary. · 94c4e0dc
      Glenn Morris authored
      ; I don't think this actually does anything any more anyway,
      ; on at least the vast majority of the platforms running Emacs today.
      94c4e0dc
    • Stefan Monnier's avatar
      * lisp/gnus/nnmaildir.el: Silence lexical warnings · 1b51e23a
      Stefan Monnier authored
      * lisp/gnus/nnmaildir.el (nnmaildir--prepare): Use a more
      functional style.
      (nnmaildir--update-nov): Remove unused var `numdir'.
      (nnmaildir-request-type, nnmaildir--scan, nnmaildir-request-newgroups)
      (nnmaildir-request-group, nnmaildir-request-create-group)
      (nnmaildir-request-post, nnmaildir-request-move-article)
      (nnmaildir-request-accept-article, nnmaildir-active-number): Mark unused args.
      (nnmaildir-get-new-mail, nnmaildir-group-alist)
      (nnmaildir-active-file): Declare.
      (nnmaildir-request-scan): Remove unused vars `group' and `grp-dir'.
      (nnmaildir-request-update-info): Remove unused vars `dotfile', `num',
      `mark', `end', `new-mark', and `mark-sym'.
      (nnmaildir-retrieve-headers): Remove unused args `srv-dir', `dir',
      `nlist2'.
      (nnmaildir-request-expire-articles):
      Remove unused vars `article', `stop' and `nlist2'.
      (nnmaildir-request-set-mark): Remove unused vars `begin', `article' and
      `end'.  Use nnmaildir--article when dyn-binding is needed.
      Give the value directly in the `let' for `del-mark', `del-action',
      `add-action', and `set-action'.  Don't use `add-to-list' on a local var.
      (nnmaildir-close-server): Declare those local vars that need to be
      dyn-bound.
      1b51e23a
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      Port selection info fix to clang · 4fe5cb43
      Paul Eggert authored
      * src/keyboard.h (kbd_buffer_store_event_hold):
      Don't assume C11 semantics for alignof (Bug#20756).
      4fe5cb43
  2. 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)
      (mark_kboards):
      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_DISPLAY, SELECTION_EVENT_DPYINFO)
      (SELECTION_EVENT_REQUESTOR, SELECTION_EVENT_SELECTION)
      (SELECTION_EVENT_TARGET, SELECTION_EVENT_PROPERTY)
      (SELECTION_EVENT_TIME, x_handle_selection_event):
      Arg is now of type struct selection_input_event *)
      not struct input_event *.  All callers changed.
      1552e673
    • 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.
      c7a19e0c
    • 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.
      2ca55583
    • 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
      abe07ef0
    • Paul Eggert's avatar
      931f0067
    • Artur Malabarba's avatar
      8b169764
    • 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.
      371ebe02
    • Glenn Morris's avatar
      * configure.ac (--with-ns): Enable by default on OS X. · d97fbcbe
      Glenn Morris authored
      ; * etc/NEWS, nextstep/INSTALL: Mention this.
      d97fbcbe
    • 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
      eccfc0a4
  3. 22 Jun, 2015 12 commits
  4. 21 Jun, 2015 9 commits
  5. 20 Jun, 2015 2 commits