1. 22 Nov, 2020 2 commits
  2. 20 Nov, 2020 37 commits
    • Jimmy Aguilar Mena's avatar
      Fix precious commit. · 60a1003a
      Jimmy Aguilar Mena authored
      *
      lisp/completions-highlight.el (completions-highlight--hide-completions-advise)
      : New function to advise minibuffer-hide-completions.
      (completions-highlight-select-near) : Unconditional recenter
      60a1003a
    • Jimmy Aguilar Mena's avatar
      Add try to close completions more often like zsh. · 25f23b19
      Jimmy Aguilar Mena authored
      *
      lisp/completions-highlight.el (completions-highlight-maybe-close-completions)
      : New function to perform more actions on pre-command-hook.
      25f23b19
    • Jimmy Aguilar Mena's avatar
      Simplify and add custom · c990a289
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (completions-highlight-tab-no-scroll) :
      New option to control if scroll or select with tab.
      (completions-highlight--this-completion) : Removed
      (completions-highlight-select-near) : Do search closer if not at point.
      (with-minibuffer-scroll-window) : Changed to a function using Juri
      Linkov
      (minibuffer-choose-completion) : use
      completions-highlight-from-minibuffer
      (completions-highlight-minibuffer-map) : Use dolist and set only
      completions-highlight-from-minibuffer
      (completions-highlight--minibuffer-tab-through-completions) : Consider
      the new custom to not scroll with tabs.
      c990a289
    • Jimmy Aguilar Mena's avatar
      Other changes: · 6369e595
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (completions-highlight-this-completion) :
      Rename as completions--highlight-this-completion
      (completions-highlight-set-suffix) : New custom to control suffix in insertion
      6369e595
    • Jimmy Aguilar Mena's avatar
      New command minibuffer-choose-completion · 3319dcc3
      Jimmy Aguilar Mena authored
      This command uses *Completions* candidates only when highlighted.
      3319dcc3
    • Jimmy Aguilar Mena's avatar
      Add ignore-errors when executing from minibuffer · bfb8a712
      Jimmy Aguilar Mena authored
      This asserts that the hooks are executed in some cases like when EOB.
      *
      lisp/completions-highlight (completions-highlight-completions-visible-p)
      : New function
      bfb8a712
    • Jimmy Aguilar Mena's avatar
      Fixes: · 6ea2c5c9
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (minibuffer-completion-set-suffix) :
      Renamed as minibuffer-completion--set-suffix.
      (completions-highlight--clear-suffix) : New function
      (completions-highlight-minibuffer-tab-through-completions) : Renamed as
      completions-highlight--minibuffer-tab-through-completions
      (completions-highlight-completions-pre-command-hook) :
      (completions-highlight-minibuffer-pre-command-hook) : Removed and
      references substituted with completions-highlight--clear-suffix.
      6ea2c5c9
    • Jimmy Aguilar Mena's avatar
      Fix previous commit · 10359ba9
      Jimmy Aguilar Mena authored
      10359ba9
    • Jimmy Aguilar Mena's avatar
      Add backtab commands. · 3f0f13e8
      Jimmy Aguilar Mena authored
      3f0f13e8
    • Jimmy Aguilar Mena's avatar
      Simplify and rely more in the post-command-hook · ce8b5b26
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (completions-highlight-this-completion)
      : Use the new function completions-highlight-select-near.
      (completions-highlight-next-completion) : Removed
      (completions-highlight-select-near) : New function to select and
      highlight next candidate closer to point.
      (completions-highlight-previous-completion) :
      (completions-highlight-next-line-completion) :
      (completions-highlight-previous-line-completion) : Removed as they are
      not needed with the hook.
      (with-minibuffer-scroll-window) : Add call to
      completions-highlight-this-completion at the end.
      (minibuffer-next-completion) :
      (completions-highlight-previous-completion) :
      (completions-highlight-next-line-completion) :
      (minibuffer-previous-line-completion) : Remove reference to removed
      functions.
      (completions-highlight-completions-map) : Clear the bindings for the
      removed functions.
      (completions-highlight-setup) : Set
      completions-highlight-this-completion in post-command-hook instead of
      isearch-mode-end-hook.
      ce8b5b26
    • Jimmy Aguilar Mena's avatar
      Define completions-highlight face and group · 268170e7
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (completions-highlight) : New face and
      group.
      (completions-highlight-mode) : Set new face to completions-highlight-overlay.
      268170e7
    • Jimmy Aguilar Mena's avatar
      Add custom variable completions-highlight-autoselect. · ab1e2e6b
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (completions-highlight-autoselect) : New
      custom.
      (completions-highlight-setup) : Auto selects the first candidate when
      completions-highlight-autoselect is non nil.
      ab1e2e6b
    • Jimmy Aguilar Mena's avatar
    • Jimmy Aguilar Mena's avatar
      Add # to function bindings · 11431bc5
      Jimmy Aguilar Mena authored
      11431bc5
    • Jimmy Aguilar Mena's avatar
      Add parent maps · 31d6ec41
      Jimmy Aguilar Mena authored
      When completions-highlight-mode is enabled use
      minibuffer-local-must-match-map as parent keymap.
      (completions-highlight-minibuffer-map) : Enforces parent
      minibuffer-local-must-match-map unconditionally.
      (completions-highlight-completions-map) : Enforces
      completion-list-mode-map as parent just in case.
      31d6ec41
    • Jimmy Aguilar Mena's avatar
      Add autoload decorator. · 5cf9dd62
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (completions-highlight-mode) : Added
      autoload decorator.
      5cf9dd62
    • Jimmy Aguilar Mena's avatar
      Simplify overlay handling · e143246d
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (completions-highlight-overlay) :
      created on load.
      (completions-highlight-completions-pre-command-hook) : Don't move
      overlay here.
      (completions-highlight-minibuffer-pre-command-hook) : Use delete overlay
      instead of conditional
      (completions-highlight-mode) : Use overlay-put here instead of the setup.
      e143246d
    • Jimmy Aguilar Mena's avatar
      Simplify setting keymaps. · c6943d75
      Jimmy Aguilar Mena authored
      *
      lisp/completions-highlight.el (completions-highlight-minibuffer-map-save)
      (completions-highlight-completions-map-save)
      (completions-highlight-minibuffer-bindings) :
      (completions-highlight-completions-bindings) : Removed functions and
      variables.
      (completions-highlight-mode) : Remove extra
      minibuffer-hide-completions-hook insertion and remove.
      c6943d75
    • Jimmy Aguilar Mena's avatar
      Simplify numeric argument · 644d5e5f
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el (completions-highlight-this-completion)
      : Use prefix-numeric-value instead of manually check.
      644d5e5f
    • Jimmy Aguilar Mena's avatar
      Fix corner case when going out of bounds · 6cea8936
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el : Don't go anywhere when in the fist or
      last candidate.
      * Remove some redundant calls to with-current-buffer
      6cea8936
    • Jimmy Aguilar Mena's avatar
      Fix recursive set-keymap-parent in completions-highlight. · 42f47e75
      Jimmy Aguilar Mena authored
      *
      lisp/completions-highlight.el (completions-highlight-minibuffer-bindings)
      :
      (completions-highlight-completions-bindings) : Condition
      set-keymap-parent to avoid error.
      42f47e75
    • Jimmy Aguilar Mena's avatar
      Improve keymap handling. · 3a22b70e
      Jimmy Aguilar Mena authored
      *
      lisp/completions-highlight.el (completions-highlight-minibuffer-map-save) :
      (completions-highlight-completions-map-save) : New variables to store
      the maps before enabling mode.
      
      (completions-highlight-minibuffer-map) :
      (completions-highlight-completions-map) : Maps for the mode in
      minibuffer and Completions.
      (completions-highlight-minibuffer-bindings) :
      (completions-highlight-completions-bindings) : Modified to do maps
      handling using maps parent.
      (completions-highlight-minibuffer-tab-through-completions) : Add call to
      completions-highlight-completions-bindings.
      (completions-highlight-minibuffer-bindings) : Fix name.
      3a22b70e
    • Jimmy Aguilar Mena's avatar
      Fix initial comment in completions-highlight file. · d4d9f6a0
      Jimmy Aguilar Mena authored
      * lisp/completions-highlight.el : Remove and fix some comments.
      d4d9f6a0
    • Jimmy Aguilar Mena's avatar
      Add completions-highlight-mode initial implementation. · d0151440
      Jimmy Aguilar Mena authored
      New mode to highlight candidates in *Completions* buffer and improve
      navigation.
      * lisp/completions-highlight.el : New file with the initial working
      implementation. This is an initial version but functional for the moment.
      d0151440
    • Jimmy Aguilar Mena's avatar
      Document the changes in the API for Completions. · 5509afa6
      Jimmy Aguilar Mena authored
      * doc/lispref/hooks.texi : Document completion-setup-hook and
      minibuffer-hide-completions-hook.
      * doc/lispref/minibuf.texi : Add entries for the hooks.
      * etc/NEWS : Briefly comment the modifications and the API.
      5509afa6
    • Jimmy Aguilar Mena's avatar
      Insert some modifications to implement completions highlighting. · b1a027de
      Jimmy Aguilar Mena authored
      This are changes needed in the minibuffer API to do highlighting from a
      different package.
      
      * lisp/minibuffer.el (minibuffer-tab-through-completions-function) : New
      variable containing the action to do when pressing tab in minibuffer
      and *Completions* are shown.
      (minibuffer-tab-through-completions-default) : Default function value
      for minibuffer-tab-through-completions-function.
      (completion--in-region-1) : Modification to funcall
      minibuffer-tab-through-completions-function.
      (minibuffer-hide-completions-hook) : New hook to call after
      closing *Completions* buffer.
      (minibuffer-hide-completions) : Modify to run hook
      minibuffer-hide-completions-hook.
      b1a027de
    • Stefan Kangas's avatar
      Remove XEmacs compat code from idlw-shell.el · 8c801138
      Stefan Kangas authored
      * lisp/progmodes/idlw-shell.el:
      (idlwave-shell-use-toolbar): Doc fix.
      (idlwave-default-mouse-track-event-is-with-button): Declare obsolete.
      (idlwave-shell-update-bp-overlays): Remove XEmacs compat code.
      8c801138
    • Stefan Kangas's avatar
      Remove some XEmacs compat code from ediff-wind.el · c1269e71
      Stefan Kangas authored
      * lisp/vc/ediff-wind.el (ediff-window)
      (ediff-compute-toolbar-width): Remove some XEmacs compat code.
      c1269e71
    • Stefan Kangas's avatar
      Remove Emacs 20 compat code from org.el · 430eb2f8
      Stefan Kangas authored
      * lisp/org/org.el (org-org-menu, org-create-customize-menu):
      Remove Emacs 20 compat code.
      430eb2f8
    • Stefan Kangas's avatar
      Remove Emacs 20 compat code from idlwave.el · 8834776b
      Stefan Kangas authored
      * lisp/progmodes/idlwave.el (idlwave-indent-line)
      (idlwave-toggle-comment-region, idlwave-reset-sintern)
      (idlwave-unit-name, idlwave-mode-menu-def)
      (idlwave-create-customize-menu): Remove Emacs 20 compat code.
      8834776b
    • Stefan Kangas's avatar
      Properly mark obsolete semantic functions as such · e8ee6827
      Stefan Kangas authored
      * lisp/cedet/semantic/ia.el (semantic-ia-get-completions)
      (semantic-ia-get-completions-deprecated): Make obsolete.
      e8ee6827
    • Stefan Kangas's avatar
      Mark compat alias in cus-face.el obsolete · 22d81123
      Stefan Kangas authored
      * lisp/cus-face.el (custom-facep): Mark compat alias obsolete.
      * lisp/cus-dep.el (custom-make-dependencies):
      * lisp/cus-edit.el (customize-changed-options)
      (custom-unsaved-options, customize-saved, customize-apropos)
      (custom-save-faces): Adjust callers.
      22d81123
    • Eli Zaretskii's avatar
      Fix compilation on MS-Windows with librsvg > 2.46.0 · 88adf1f0
      Eli Zaretskii authored
      * src/image.c (rsvg_handle_get_dimensions, init_svg_functions):
      Make 'rsvg_handle_get_dimensions' available and defined for all
      versions of librsvg.  (Bug#44655)
      88adf1f0
    • Stefan Kangas's avatar
      Hide obsolete options in most customize commands · b4b1bd6e
      Stefan Kangas authored
      * lisp/cus-edit.el (custom--filter-obsolete-variables): New defun.
      * lisp/cus-edit.el (customize-changed-options)
      (customize-apropos, custom-group-value-create): Hide obsolete user
      options.  (Bug#44598)
      * test/lisp/cus-edit-tests.el: New file.
      b4b1bd6e
    • João Tãvora's avatar
      Revert unintended part of last change to jsonrpc-request · e7791c7e
      João Tãvora authored
      While playing around with the timing in this function, I left
      this change that could freeze the function on some platforms.
      
      * lisp/jsonrpc.el (jsonrpc-request): Use accept-process-output.
      (Version): Bump to 1.0.14
      e7791c7e
    • Lars Ingebrigtsen's avatar
      Move semantic/tag obsolete variables to avoid a warning · f6b26fa4
      Lars Ingebrigtsen authored
      * lisp/cedet/semantic/tag.el (semantic-token-version): Move to
      avoid a compilation warning.
      f6b26fa4
    • João Távora's avatar
      Fix default timeout handling in jsonrpc-request · 59b340c1
      João Távora authored
      * lisp/jsonrpc.el (jsonrpc-request): Use default timeout if not passed.
      (Version): Bump to 1.0.13
      59b340c1
  3. 19 Nov, 2020 1 commit