GNU bug report logs -
#17165
24.4.50; icomplete-exhibit: (wrong-type-argument number-or-marker-p nil)
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Wed, 2 Apr 2014 02:00:02 UTC
Severity: minor
Tags: moreinfo, wontfix
Found in version 24.4.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17165 in the body.
You can then email your comments to 17165 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17165
; Package
emacs
.
(Wed, 02 Apr 2014 02:00:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 02 Apr 2014 02:00:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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)))
...
I see that `icomplete--field-end' and `icomplete--field-beg' are defined
simply in terms of `completion-in-region--data'. And AFAICT, that
variable can be nil, in which case each of `icomplete--field-(end|beg)'
is nil also.
I see too that in minibuffer.el `completion-in-region--data' is
initialized to nil, and the code there takes care to test for a non-nil
value before trying to access its components using `nth':
(and completion-in-region--data
(and (eq (marker-buffer (nth 0 completion-in-region--data))
(current-buffer))
(>= (point) (nth 0 completion-in-region--data))
(<= (point)
(save-excursion
(goto-char (nth 1 completion-in-region--data))
(line-end-position)))
(funcall completion-in-region-mode--predicate)))
A naive guess is that the code in icomplete.el should do likewise:
ensure that `completion-in-region--data' is non-nil before applying
`nth' to it and then using the result in a numeric comparison.
HTH.
In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
of 2014-03-27 on ODIEONE
Bzr revision: 116884 lekktu <at> gmail.com-20140327173422-cr942b3hn7xjurks
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/snapshot/trunk
--enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'
LDFLAGS=-Lc:/Devel/emacs/lib 'CPPFLAGS=-DGC_MCHECK=1
-Ic:/Devel/emacs/include''
Removed tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 26 Dec 2015 14:08:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17165
; Package
emacs
.
(Fri, 29 Apr 2016 19:53:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 17165 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> 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
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 29 Apr 2016 19:53:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17165
; Package
emacs
.
(Fri, 29 Apr 2016 21:54:01 GMT)
Full text and
rfc822 format available.
Message #15 received at 17165 <at> debbugs.gnu.org (full text, mbox):
> Do you have a recipe for this bug?
No. And I haven't been able to debug it.
Added tag(s) wontfix.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 07 Dec 2016 20:00:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Wed, 07 Dec 2016 20:00:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Wed, 07 Dec 2016 20:00:03 GMT)
Full text and
rfc822 format available.
Message #22 received at 17165-done <at> debbugs.gnu.org (full text, mbox):
>> Do you have a recipe for this bug?
>
> No. And I haven't been able to debug it.
So it can't lead anywhere; closing.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 05 Jan 2017 12:24:14 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.