From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#17165: 24.4.50; icomplete-exhibit: (wrong-type-argument number-or-marker-p nil) Date: Fri, 29 Apr 2016 21:52:37 +0200 Message-ID: <87oa8sw5tm.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461959624 6992 80.91.229.3 (29 Apr 2016 19:53:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 19:53:44 +0000 (UTC) Cc: 17165@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 21:53:32 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awETj-0003Kb-Iy for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 21:53:31 +0200 Original-Received: from localhost ([::1]:56042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awETf-0007QP-QW for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 15:53:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awETV-00076I-9E for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:53:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awETJ-0000K0-HQ for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:53:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awETJ-0000Iq-CP for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:53:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awETF-0007oQ-WB for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 15:53: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: Fri, 29 Apr 2016 19:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17165-submit@debbugs.gnu.org id=B17165.146195956229988 (code B ref 17165); Fri, 29 Apr 2016 19:53:01 +0000 Original-Received: (at 17165) by debbugs.gnu.org; 29 Apr 2016 19:52:42 +0000 Original-Received: from localhost ([127.0.0.1]:55841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awESw-0007nb-4H for submit@debbugs.gnu.org; Fri, 29 Apr 2016 15:52:42 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:48623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awESu-0007nU-JQ for 17165@debbugs.gnu.org; Fri, 29 Apr 2016 15:52:40 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1awESs-0001ln-6p; Fri, 29 Apr 2016 21:52:40 +0200 In-Reply-To: (Drew Adams's message of "Tue, 1 Apr 2014 18:59:18 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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: 208.118.235.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:117250 Archived-At: Drew Adams writes: > I have some code that does this: > > (when (and (featurep 'icomplete) > (natnump icicle-icomplete-mode-max-candidates)) > (if (< nb-cands icicle-icomplete-mode-max-candidates) > (if (not icicle-last-icomplete-mode-value) > (icomplete-mode -1) > (icomplete-mode 1) > (icomplete-exhibit)) ; <========== > (icomplete-tidy) > (icomplete-mode -1))) > > Once in a while I have seen this wrong-type-argument error. I suspect, > but I do not know, that it comes from this code in `icomplete-exhibit': > > (if (and (or icomplete-show-matches-on-no-input > (> (icomplete--field-end) (icomplete--field-beg))) > ... Do you have a recipe for this bug? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no