From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36260: 27.0.50; isearchb should be reimplemented without iswitchb Date: Mon, 17 Jun 2019 12:17:05 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="113857"; mail-complaints-to="usenet@blaine.gmane.org" To: 36260@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 17 12:20:04 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcok7-000TUP-9k for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jun 2019 12:20:03 +0200 Original-Received: from localhost ([::1]:45826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcok6-0006Nl-Bn for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jun 2019 06:20:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37615) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcoiH-00056H-Cx for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 06:18:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcoiB-0002wH-Li for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 06:18:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hcoiA-0002vQ-NW for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 06:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hcoiA-0004uw-Fx for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 06:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jun 2019 10:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36260 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156076665318867 (code B ref -1); Mon, 17 Jun 2019 10:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jun 2019 10:17:33 +0000 Original-Received: from localhost ([127.0.0.1]:42015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcohh-0004uE-8f for submit@debbugs.gnu.org; Mon, 17 Jun 2019 06:17:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcohf-0004u6-94 for submit@debbugs.gnu.org; Mon, 17 Jun 2019 06:17:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37400) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcohV-0004mA-1K for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 06:17:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcohM-0002Jx-Cj for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 06:17:15 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:38502) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcohL-0002Hu-OP for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 06:17:12 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcohF-0003eU-O1 for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 12:17:08 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:160724 Archived-At: iswitchb is an obsolete package, but isearchb is implemented on top of it. It should be possible to reimplement it on top of any of the un-obsoleted completion packages (like ido), but it's a complete reimplementation: 41 matches in 36 lines for "iswitchb" in buffer: isearchb.el 1:;;; isearchb --- a marriage between iswitchb and isearch 30:;; iswitchb! It is not intended to replace it, however, as it works 37:;; employed by iswitchb). To use it this way, add to your .emacs: 59:;; iswitchb, using the prefix you've typed so far. This is handy when 75:;; killing iswitchb.el and then trying to switch back is broken 80:(require 'iswitchb) ;FIXME: Don't rely on iswitchb! 84: :group 'iswitchb) 116:(defun isearchb-iswitchb () 117: "isearchb's custom version of the `iswitchb' command. 119:`iswitchb-read-buffer'." 122: (iswitchb-method 'samewindow) 123: (buf (iswitchb-read-buffer prompt nil nil nil iswitchb-text t))) 124: (if (eq iswitchb-exit 'findfile) 129: (iswitchb-visit-buffer buf) 131: (iswitchb-possible-new-buffer buf)))))) 137: (setq iswitchb-text nil)) 138: (unless iswitchb-text 139: (setq iswitchb-text "") 140: (iswitchb-make-buflist nil)) 142: (setq iswitchb-rescan t 143: iswitchb-text (concat iswitchb-text 146: (iswitchb-set-matches) 147: (let* ((match (car iswitchb-matches)) 152: (isearchb-iswitchb)) 155: (message "isearchb: %s%s" iswitchb-text 156: (iswitchb-completions iswitchb-text)) 157: (if (= 1 (length iswitchb-matches)) 158: (message "isearchb: %s (only match)" iswitchb-text) 159: (message "isearchb: %s" iswitchb-text)))))) 178: (setq iswitchb-text 179: (substring iswitchb-text 0 (1- (length iswitchb-text)))) 180: (if (= 0 (length iswitchb-text)) 185: (setq this-command 'isearchb-iswitchb)) 187: (iswitchb-next-match) 191: (iswitchb-prev-match) 222: (setq iswitchb-text nil In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2019-06-16 built on stories Repository revision: a1508e8d2db0003fafb53ae51ed1104ba957db6b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9 (stretch) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no