]> git.eshelyaron.com Git - emacs.git/commit
completion--replace: Fix completion cycling
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 12 May 2024 02:57:10 +0000 (05:57 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 12 May 2024 16:33:45 +0000 (18:33 +0200)
commitcc7d7225ee6b4f73b69875548d5220640f597654
tree1a490ae2a780a0bf75cd5921c716c0b8cd694650
parentf64161692f2e71db6aa9fc46b429a3e368188bea
completion--replace: Fix completion cycling

* lisp/minibuffer.el (completion--replace):
Don't "insert before markers" after all because in some cases
(https://lists.gnu.org/archive/html/emacs-devel/2024-05/msg00701.html)
- like cycling - BEG can be denoted by a marker as well.
(minibuffer-completion-help): Make FIELD-END simply a fixnum.  And
adjust its value manually inside the local
completion-list-insert-choice-function (bug#48356).

(cherry picked from commit 2c759b9ce620311df97f43b791ba27b1302171c4)
lisp/minibuffer.el