mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-18 18:05:07 +00:00
Revert "Make the `i' command in Info-mode remove duplicate matches"
This reverts commit 089e0c4c55
.
There were no duplicate entries -- there were two entries
for different things that referred to the same line.
This commit is contained in:
parent
b516887283
commit
6d1d048d65
@ -3375,13 +3375,7 @@ Give an empty topic name to go to the Index node itself."
|
||||
(setq exact (cons found exact)
|
||||
matches (delq found matches)))
|
||||
(setq Info-history-list ohist-list)
|
||||
(setq Info-index-alternatives
|
||||
;; Weed out index entries that refer to the same line.
|
||||
(seq-uniq
|
||||
(nconc exact (nreverse matches))
|
||||
(lambda (m1 m2)
|
||||
(and (equal (nth 1 m1) (nth 1 m2))
|
||||
(equal (nth 3 m1) (nth 3 m2))))))
|
||||
(setq Info-index-alternatives (nconc exact (nreverse matches)))
|
||||
(Info-index-next 0)))))
|
||||
|
||||
(defun Info-index-next (num)
|
||||
|
Loading…
Reference in New Issue
Block a user