gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNU ELPA] Company version 0.10.0


From: ELPA update
Subject: [GNU ELPA] Company version 0.10.0
Date: Wed, 04 Oct 2023 17:03:05 -0400

Version 0.10.0 of package Company has just been released in GNU ELPA.
You can now find it in M-x list-packages RET.

Company describes itself as:

  =================================
  Modular text completion framework
  =================================

More at https://elpa.gnu.org/packages/company.html

## Summary:

  Company is a modular completion framework.  Modules for retrieving completion
  candidates are called backends, modules for displaying them are frontends.

  Company comes with many backends, e.g. `company-etags'.  These are
  distributed in separate files and can be used individually.

  Enable `company-mode' in all buffers with M-x global-company-mode.  For
  further information look at the documentation for `company-mode' (C-h f
  company-mode RET).

  If you want to start a specific backend, call it interactively or use
  `company-begin-backend'.  For example:
  M-x company-abbrev will prompt for and insert an abbrev.

  To write your own backend, look at the documentation for `company-backends'.
  Here is a simple example completing "foo":

  (defun company-my-backend (command &optional arg &rest ignored)

## Recent NEWS:

# History of user-visible changes

## 2023-10-04 (0.10.0)

* `company-echo-show` (and related featuers, most importantly,
  `company-echo-metadata-frontend`) now should stop interfering with the echo
  area and ElDoc when the current backend returns no `meta`.
* New user option `company-tooltip-annotation-padding`
  ([#1376](https://github.com/company-mode/company-mode/discussions/1376)).
* When a snippet name is typed in full, completion does not abort now (only
  affects completions which have `snippet` kind),
  ([#205](https://github.com/company-mode/company-mode/issues/205)).
* `company-show-doc-buffer` now can accept a prefix argument to toggle a new
  variable `company-auto-update-doc`.  When this variable is non-nil, it keeps
  the documentation buffer up-to-date whenever the selection changes
  ([#1331](https://github.com/company-mode/company-mode/discussions/1331)).
* `company-auto-commit` and `company-auto-commit-chars` have been renamed to
  `company-insertion-on-trigger` and `company-insertion-triggers` respectively
  ([#1270](https://github.com/company-mode/company-mode/pull/1270)).
* New command `company-complete-common-or-show-delayed-tooltip`
  ([#1214](https://github.com/company-mode/company-mode/discussions/1214)).
* Faces `company-scrollbar-fg` and `company-scrollbar-bg` have been renamed to
  `company-tooltip-scrollbar-thumb` and `company-tooltip-scrollbar-track`
  respectively.
* Better compatibility with `visual-line-mode`
  ([#1257](https://github.com/company-mode/company-mode/issues/1257)).
* Better compatibility with `org-indent-mode`
  ([#1252](https://github.com/company-mode/company-mode/issues/1252)).
* New backend command, `deprecated`. It returns whether the completion item is
  deprecated or not.
* `company-tooltip-common` highlightings with non-prefix and prefix matching
  backends are more compatible: if the non-prefix matching backend's completions
  all have a common part, and so the current prefix can be expanded with
  `company-complete-common`, that part is now also highlighted with that face
  ([#519](https://github.com/company-mode/company-mode/issues/519)).
* `company-yasnippet` respects the `condition` directive in snippets
  ([#1179](https://github.com/company-mode/company-mode/issues/1179)).
* New user option `company-icon-margin`.
* `company-show-numbers` has been renamed to `company-show-quick-access`
  ([#1115](https://github.com/company-mode/company-mode/pull/1115)).
  New user options `company-quick-access-keys` and
  `company-quick-access-modifier`.
  New command `company-complete-quick-access`.
  `company-show-numbers-function` has been deprecated and its default
  value changed to `nil`. Use `company-quick-access-hint-function`
  instead. `company--show-numbers` has been deprecated.
* `company-complete-number` has been renamed to
  `company-complete-tooltip-row`
  ([#1118](https://github.com/company-mode/company-mode/pull/1118)).
* New faces `company-tooltip-quick-access` and
  `company-tooltip-quick-access-selection`
  ([#303](https://github.com/company-mode/company-mode/issues/303)).
* Default colors for dark themes have been changed
  ([#949](https://github.com/company-mode/company-mode/issues/949)).
* Default key bindings have been changed, moving `company-select-next` and
  `company-select-previous` from `M-n` and `M-p` to `C-n` and `C-p`
  ([#1098](https://github.com/company-mode/company-mode/pull/1098)). The bound
  commands are also changed: `company-select-next-or-abort` and
  `company-select-previous-or-abort`, to match the `<up>` and `<down>`
  bindings. The previous bindings still work, but show a warning and will be
  disabled soon. To undo that change locally, do:

```el
(with-eval-after-load 'company
  (dolist (map (list company-active-map company-search-map))
    (define-key map (kbd "C-n") nil)
    (define-key map (kbd "C-p") nil)
    (define-key map (kbd "M-n") #'company-select-next)
    (define-key map (kbd "M-p") #'company-select-previous)))
```

* New user option `company-files-chop-trailing-slash`
...
...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]