A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/emacs-mirror/emacs/commit/213643a890913f10bac710ca8537e8b1125941d6 below:

Document fido-mode · emacs-mirror/emacs@213643a · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+36

-7

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+36

-7

lines changed Original file line number Diff line number Diff line change

@@ -725,6 +725,22 @@ of directories.

725 725

the variable @code{icomplete-mode} to @code{t} (@pxref{Easy

726 726

Customization}).

727 727 728 +

@findex fido-mode

729 +

@cindex fido mode

730 + 731 +

An alternative to Icomplete mode is Fido mode. This is very similar

732 +

to Icomplete mode, but retains some functionality from a popular

733 +

extension called Ido mode (in fact the name is derived from ``Fake

734 +

Ido''). Among other things, in Fido mode, @kbd{C-s} and @kbd{C-r} are

735 +

also used to rotate the completions list, @kbd{C-k} can be used to

736 +

delete files and kill buffers in-list. Another noteworthy aspect is

737 +

that @code{flex} is used as the default completion style

738 +

(@pxref{Completion Styles}).

739 + 740 +

To enable Fido mode, type @kbd{M-x fido-mode}, or customize

741 +

the variable @code{fido-mode} to @code{t} (@pxref{Easy

742 +

Customization}).

743 + 728 744

@node Buffer Menus

729 745

@subsection Customizing Buffer Menus

730 746 Original file line number Diff line number Diff line change

@@ -1192,6 +1192,15 @@ A new command 'xref-revert-buffer' is bound to 'g'.

1192 1192

---

1193 1193

*** Imenu support has been added to 'xref--xref-buffer-mode'.

1194 1194 1195 +

** Icomplete

1196 + 1197 +

+++

1198 +

*** A new minor mode based on Icomplete, Fido mode, is made available.

1199 +

The point of this mode, named after "Fake Ido", is to recover much of

1200 +

the functionality that still separated the popular ido-mode from

1201 +

Icomplete, while still cooperating fully with all of Emacs's

1202 +

completion facilities.

1203 + 1195 1204

** Ecomplete

1196 1205 1197 1206

*** The ecomplete sorting has changed to a decay-based algorithm.

Original file line number Diff line number Diff line change

@@ -273,20 +273,22 @@ require user confirmation."

273 273

(exit-minibuffer))))

274 274 275 275

(defun icomplete-magic-ido-ret ()

276 -

"Exit forcing completion or enter directory, like `ido-mode'."

276 +

"Exit minibuffer or enter directory, like `ido-mode'."

277 277

(interactive)

278 278

(let* ((beg (icomplete--field-beg))

279 279

(md (completion--field-metadata beg))

280 280

(category (alist-get 'category (cdr md)))

281 281

(dir (and (eq category 'file)

282 282

(file-name-directory (icomplete--field-string))))

283 -

(current (and dir

284 -

(car (completion-all-sorted-completions))))

285 -

(probe (and current

283 +

(current (car (completion-all-sorted-completions)))

284 +

(probe (and dir current

286 285

(expand-file-name (directory-file-name current) dir))))

287 -

(if (and probe (file-directory-p probe) (not (string= current "./")))

288 -

(icomplete-force-complete)

289 -

(icomplete-force-complete-and-exit))))

286 +

(cond ((and probe (file-directory-p probe) (not (string= current "./")))

287 +

(icomplete-force-complete))

288 +

(current

289 +

(icomplete-force-complete-and-exit))

290 +

(t

291 +

(exit-minibuffer)))))

290 292 291 293

(defun icomplete-magic-ido-backward-updir ()

292 294

"Delete char before or go up directory, like `ido-mode'."

@@ -330,6 +332,7 @@ more like `ido-mode' than regular `icomplete-mode'."

330 332

(remove-hook 'minibuffer-setup-hook #'icomplete-minibuffer-setup)

331 333

(remove-hook 'minibuffer-setup-hook #'icomplete--fido-mode-setup)

332 334

(when fido-mode

335 +

(icomplete-mode -1)

333 336

(setq icomplete-mode t)

334 337

(add-hook 'minibuffer-setup-hook #'icomplete-minibuffer-setup)

335 338

(add-hook 'minibuffer-setup-hook #'icomplete--fido-mode-setup)))

@@ -355,6 +358,7 @@ completions:

355 358

(remove-hook 'minibuffer-setup-hook #'icomplete-minibuffer-setup)

356 359

(remove-hook 'completion-in-region-mode-hook #'icomplete--in-region-setup)

357 360

(when icomplete-mode

361 +

(fido-mode -1)

358 362

(when icomplete-in-buffer

359 363

(add-hook 'completion-in-region-mode-hook #'icomplete--in-region-setup))

360 364

(add-hook 'minibuffer-setup-hook #'icomplete-minibuffer-setup)))

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4