From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16716: 24.3.50; (wrong-type-argument number-or-marker-p t) from `completion--try-word-completion' Date: Mon, 10 Feb 2014 10:29:53 -0800 (PST) Message-ID: <9c1aa77d-93a8-4986-bb61-004feae7dd0d@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1392057083 623 80.91.229.3 (10 Feb 2014 18:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2014 18:31:23 +0000 (UTC) To: 16716@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 10 19:31:29 2014 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 1WCvdg-0005O2-Ey for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 19:31:28 +0100 Original-Received: from localhost ([::1]:57271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCvdg-0001aI-1l for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 13:31:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCvdS-0001ZZ-Rd for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 13:31:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCvdI-0003xq-Pb for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 13:31:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCvdI-0003xl-Mv for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 13:31:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCvdI-0008DF-6P for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 13:31:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 18:31:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16716 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139205703529673 (code B ref -1); Mon, 10 Feb 2014 18:31:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Feb 2014 18:30:35 +0000 Original-Received: from localhost ([127.0.0.1]:41681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCvcn-0007gM-9N for submit@debbugs.gnu.org; Mon, 10 Feb 2014 13:30:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47206) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCvcj-0007VW-76 for submit@debbugs.gnu.org; Mon, 10 Feb 2014 13:30:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCvcU-0003pB-3C for submit@debbugs.gnu.org; Mon, 10 Feb 2014 13:30:24 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCvcU-0003oo-0b for submit@debbugs.gnu.org; Mon, 10 Feb 2014 13:30:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCvcL-0001F3-EQ for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 13:30:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCvcC-0003TT-Ra for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 13:30:05 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCvcC-0003Si-Kp for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 13:29:56 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1AITtrp021152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Feb 2014 18:29:56 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1AITsLX029454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Feb 2014 18:29:54 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s1AITrBI027384 for ; Mon, 10 Feb 2014 18:29:54 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85297 Archived-At: The problem is this code: (when (and (=3D3D 1 (length comps) (consp (car comps)))) There is a missing right paren after (length comps) etc. Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p t) =3D3D(1 1 t) (and (=3D3D 1 (length comps) (consp (car comps)))) (if (and (=3D3D 1 (length comps) (consp (car comps)))) (progn (setq comp = (c=3D ar comps)))) (let* ((exts (mapcar (function (lambda (str) (propertize str (quote compl= =3D etion-try-word) t))) (quote (" " "-")))) (before (substring string 0 point)= =3D ) (after (substring string point)) (comps (delete nil (mapcar (function (la= =3D mbda (ext) (completion-try-completion ... table predicate ... md))) exts)))= =3D ) (if (and (=3D3D 1 (length comps) (consp (car comps)))) (progn (setq comp = (c=3D ar comps))))) (progn (let* ((exts (mapcar (function (lambda (str) (propertize str ... t= =3D ))) (quote (" " "-")))) (before (substring string 0 point)) (after (substri= =3D ng string point)) (comps (delete nil (mapcar (function (lambda ... ...)) ex= =3D ts)))) (if (and (=3D3D 1 (length comps) (consp (car comps)))) (progn (setq = co=3D mp (car comps)))))) (if (=3D3D (length string) (length (car comp))) (progn (let* ((exts (mapc= ar=3D (function (lambda ... ...)) (quote (" " "-")))) (before (substring string = =3D 0 point)) (after (substring string point)) (comps (delete nil (mapcar (func= =3D tion ...) exts)))) (if (and (=3D3D 1 (length comps) (consp (car comps)))) (= pr=3D ogn (setq comp (car comps))))))) (if (not (consp comp)) comp (if (=3D3D (length string) (length (car comp)= ))=3D (progn (let* ((exts (mapcar (function ...) (quote ...))) (before (substrin= =3D g string 0 point)) (after (substring string point)) (comps (delete nil (map= =3D car ... exts)))) (if (and (=3D3D 1 (length comps) (consp ...))) (progn (set= q =3D comp (car comps))))))) (let* ((comppoint (cdr comp)) (completion (car comp)= =3D ) (before (substring string 0 point)) (combined (concat before "\n" complet= =3D ion))) (if (string-match "\\(.+\\)\n.*?\\1" combined) (progn (let* ((prefix= =3D (match-string 1 before)) (rem (substring combined ...)) (after (substring = =3D string point)) (suffix (if ... ...))) (if (and (or suffix ...) (string-matc= =3D h ... completion) (eq ... comppoint) (string-match "\\W" completion ...) (>= =3D comppoint ...)) (progn (let ... ... ...)))))) (cons completion comppoint))= ) (let ((comp (completion-try-completion string table predicate point md)))= =3D (if (not (consp comp)) comp (if (=3D3D (length string) (length (car comp))= ) =3D (progn (let* ((exts (mapcar ... ...)) (before (substring string 0 point)) (= =3D after (substring string point)) (comps (delete nil ...))) (if (and (=3D3D 1= .=3D .. ...)) (progn (setq comp ...)))))) (let* ((comppoint (cdr comp)) (complet= =3D ion (car comp)) (before (substring string 0 point)) (combined (concat befor= =3D e "\n" completion))) (if (string-match "\\(.+\\)\n.*?\\1" combined) (progn = =3D (let* ((prefix ...) (rem ...) (after ...) (suffix ...)) (if (and ... ... ..= =3D . ... ...) (progn ...))))) (cons completion comppoint)))) completion--try-word-completion("apropos" [restart-case icicle-candidates= =3D -alist d:/Emacs-24\.3/src/ cookie-cache vhdl-template-attribute-hook DokCha= =3D mpa Gabriola Fetch\ Newsgroups major-mode-map icicle-looking-at-p m-c-table= =3D icicle-universal-argument--mode icicle-incremental-completion-delay FrameM= =3D akerSmallFont Century\ Gothic icicle-imenu-face image-dired-associated-dire= =3D d-buffer icicle-bookmark-all-tags-other-window multi-isearch-end debugger--= =3D locals-visible-p method-after select\.el eieio-class-definition icicle-dir-= =3D prefix-wo-wildcards icicle-this-command-keys-prefix icicle-bookmark-with-ta= =3D gs-menu-map debugger--hide-locals Roman icicle-imenu-non-interactive-functi= =3D on-p icicle-ess-complete-filename ALTP delete-whitespace-rectangle-line i-n= =3D arrow-candidates open-rectangle-line icicle-color-hsv-lessp cs1 cs2 eieio-s= =3D et-defaults save-selected More\.\.\. icicle-cdr-lessp mach icicle-search-bo= =3D okmark-list-bookmark Palatino\ Linotype file-or-dir mct-cand minibuffer-dep= =3D th-setup bbdb-extract-address-components-func No\ references icicle-search-= =3D region-bookmark ...] #[... In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2014-02-06 on ODIEONE Bzr revision: 116299 rgm@gnu.org-20140207032552-3ycw6hai2zl7yynq Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D3D/c/Devel/emacs/binary --enable-checking=3D3Dyes,gl= yphs 'CFLAGS=3D3D-O0 -g3' LDFLAGS=3D3D-Lc:/Devel/emacs/lib CPPFLAGS=3D3D-Ic:/Devel/emacs/include'