GNU bug report logs - #24098
25.1; Auto complete not working

Previous Next

Package: emacs;

Reported by: David Gomes <davidrafagomes <at> gmail.com>

Date: Thu, 28 Jul 2016 15:31:01 UTC

Severity: normal

Tags: notabug

Found in version 25.1

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 24098 in the body.
You can then email your comments to 24098 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24098; Package emacs. (Thu, 28 Jul 2016 15:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Gomes <davidrafagomes <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 28 Jul 2016 15:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: David Gomes <davidrafagomes <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1; Auto complete not working
Date: Thu, 28 Jul 2016 10:10:15 -0400
[Message part 1 (text/plain, inline)]
This happens in any mode, but basically auto complete does not work.
It sort of works the first time I use it when I load Emacs but after
that I get this error:

Error during redisplay: (eval (list (tree-buffer-spec->sticky-indent-string
tree-buffer-spec) (tree-buffer-stickynode-fetch-stickyline))) signaled
(wrong-type-argument number-or-marker-p nil) [2 times]
Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1)
auto-complete error: (wrong-number-of-arguments setq 1)

And after that it never works again.



In GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version
10.9.5 (Build 13F1911))
of 2016-07-24 built on builder10-9.porkrind.org
Windowing system distributor 'Apple', version 10.3.1404
Configured using:
'configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp''

Configured features:
NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS

Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix

Major mode: Javascript-IDE

Minor modes in effect:
cursor-sensor-mode: t
helm-mode: t
diff-auto-refine-mode: t
shell-dirtrack-mode: t
projectile-global-mode: t
projectile-mode: t
ecb-minor-mode: t
global-ede-mode: t
ede-minor-mode: t
global-auto-revert-mode: t
desktop-save-mode: t
global-auto-complete-mode: t
recentf-mode: t
delete-selection-mode: t
cua-mode: t
show-paren-mode: t
global-linum-mode: t
linum-mode: t
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
size-indication-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t

Recent messages:
Wrote
/Users/davidgomes/src/memsql-platform/static/js/components/schema/databases.js

Mark set
cua-scroll-up: End of buffer
Undeclared variable or function ’module’
anonymous function does not always return a value
Mark set
Undo! [4 times]
Mark set
Saving file
/Users/davidgomes/src/memsql-platform/static/js/components/schema/databases.js...

Wrote
/Users/davidgomes/src/memsql-platform/static/js/components/schema/databases.js


Load-path shadows:
~/.emacs.d/lisp/auto-complete hides
/Users/davidgomes/.emacs.d/elpa/auto-complete-20160710.1544/auto-complete
/Users/davidgomes/.emacs.d/elpa/helm-20160723.2238/helm-multi-match hides
/Users/davidgomes/.emacs.d/elpa/helm-core-20160723.944/helm-multi-match
~/.emacs.d/lisp/popup hides
/Users/davidgomes/.emacs.d/elpa/popup-20160709.729/popup

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec epg mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils ido winner
helm-projectile vc vc-dispatcher jsx-mode cursor-sensor js2-mode etags
xref project js sgml-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds
imenu helm-mode helm-files image-dired dired-x dired-aux ffap
helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive
helm-info bookmark pp helm-locate helm-grep helm-regexp helm-external
helm-net browse-url xml url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util mailcap helm-utils helm-help
helm-types helm helm-source helm-multi-match helm-lib dired vc-git
diff-mode flymake python tramp-sh tramp tramp-compat tramp-loaddefs
trampver shell pcomplete format-spec projectile grep ecb-layout-defs
cus-edit warnings cus-start cus-load ecb ecb-symboldef ecb-analyse
ecb-compatibility ecb-winman-support ecb-autogen autoload lisp-mnt
ecb-tod ecb-cycle ecb-eshell ecb-help ecb-jde ecb-method-browser
hideshow ecb-semantic-wrapper ecb-semantic ecb-file-browser ecb-speedbar
ecb-layout compile comint ansi-color ecb-create-layout ecb-compilation
ecb-common-browser ecb-navigate ecb-mode-line ecb-face tree-buffer
ecb-upgrade ecb-cedet-wrapper semantic/db-mode semantic/db-find
semantic/db-ref semantic/analyze semantic/sort semantic/scope
semantic/analyze/fcn semantic/db semantic/format semantic/tag-ls
semantic/find semantic/ctxt semantic/util-modes semantic/util semantic
semantic/tag semantic/lex semantic/fw mode-local find-func ecb-util ring
thingatpt ede/speedbar ede/files ede ede/detect ede/base ede/auto
ede/source eieio-base eieio-speedbar speedbar sb-image ezimage dframe
eieio-custom cedet autorevert filenotify ibuf-ext ibuffer bliss-theme
desktop frameset fixme-mode cc-styles cc-align cc-engine cc-vars cc-defs
auto-complete-config auto-complete easy-mmode advice popup cl recentf
tree-widget wid-edit delsel cua-base paren linum edmacro kmacro
finder-inf gh-common gh-profile url-parse auth-source gnus-util mm-util
help-fns mail-prsvr password-cache url-vars rx s marshal eieio-compat
cl-seq json map dash eieio eieio-core cl-macs info package epg-config
seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv
cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 613019 35981)
(symbols 48 47733 0)
(miscs 40 4733 888)
(strings 32 120624 15590)
(string-bytes 1 3626157)
(vectors 16 76264)
(vector-slots 8 1182479 51222)
(floats 8 1294 369)
(intervals 56 13374 1106)
(buffers 976 48))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24098; Package emacs. (Thu, 28 Jul 2016 16:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 24098 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Gomes <davidrafagomes <at> gmail.com>
Cc: 24098 <at> debbugs.gnu.org
Subject: Re: bug#24098: 25.1; Auto complete not working
Date: Thu, 28 Jul 2016 19:12:37 +0300
> From: David Gomes <davidrafagomes <at> gmail.com>
> Date: Thu, 28 Jul 2016 10:10:15 -0400
> 
> This happens in any mode, but basically auto complete does not work. 
> It sort of works the first time I use it when I load Emacs but after 
> that I get this error: 
> 
> Error during redisplay: (eval (list (tree-buffer-spec->sticky-indent-string tree-buffer-spec)
> (tree-buffer-stickynode-fetch-stickyline))) signaled (wrong-type-argument number-or-marker-p nil) [2 times] 
> Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1) 
> auto-complete error: (wrong-number-of-arguments setq 1) 
> 
> And after that it never works again. 

Look into your customizations, particularly something that activates
the tree-buffer feature (which AFAIK is not part of Emacs).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24098; Package emacs. (Thu, 28 Jul 2016 16:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 24098 <at> debbugs.gnu.org (full text, mbox):

From: David Gomes <davidrafagomes <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 24098 <at> debbugs.gnu.org
Subject: Re: bug#24098: 25.1; Auto complete not working
Date: Thu, 28 Jul 2016 12:15:57 -0400
[Message part 1 (text/plain, inline)]
The first line seems to be related with Emacs Code Browser,so
I decided to M-x ecb-deactivate and then restart Emacs without
Emacs Code Browser at all.

This was the output of my *Messages* buffer as I tried to autocomplete.

Loading /Users/davidgomes/.emacs.d/recentf...done
Cleaning up the recentf list...done (0 removed)
ECB 2.40 uses CEDET 2.0 (contains semantic 2.2, eieio 1.4, speedbar 1.0).
All requirements for ECB 2.40 fulfilled - Enjoy it!
ad-handle-definition: ‘custom-save-all’ got redefined
Loading /Users/davidgomes/.ecb-user-layouts.el (source)...done
The ECB is now activated.
There are no NEWS to display.
All requirements for ECB 2.40 fulfilled - Enjoy it!
ad-handle-definition: ‘tramp-read-passwd’ got redefined
Desktop: File "/Users/davidgomes/*message*-20160728-070715" no longer
exists.
Wrote /Users/davidgomes/.emacs.d/.emacs.desktop.lock
Desktop: 2 frames, 22 buffers restored, 1 failed to restore.
For information about GNU Emacs and the GNU system, type C-h C-a.
Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1)
auto-complete error: (wrong-number-of-arguments setq 1)
Mark set
Saving file /Users/davidgomes/.emacs.d/init.el...
Wrote /Users/davidgomes/.emacs.d/init.el
auto-complete error: (wrong-number-of-arguments setq 1) [15 times]
Undo!
C-x <up> is undefined

No more tree-buffer errors but auto-complete still not working. I think you
should just ignore the first line of output in the original bug report.

On July 28, 2016 at 9:13:02 AM, Eli Zaretskii (eliz <at> gnu.org) wrote:

> From: David Gomes <davidrafagomes <at> gmail.com>
> Date: Thu, 28 Jul 2016 10:10:15 -0400
>
> This happens in any mode, but basically auto complete does not work.
> It sort of works the first time I use it when I load Emacs but after
> that I get this error:
>
> Error during redisplay: (eval (list
(tree-buffer-spec->sticky-indent-string tree-buffer-spec)
> (tree-buffer-stickynode-fetch-stickyline))) signaled (wrong-type-argument
number-or-marker-p nil) [2 times]
> Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1)
> auto-complete error: (wrong-number-of-arguments setq 1)
>
> And after that it never works again.

Look into your customizations, particularly something that activates
the tree-buffer feature (which AFAIK is not part of Emacs).
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24098; Package emacs. (Thu, 28 Jul 2016 16:31:01 GMT) Full text and rfc822 format available.

Message #14 received at 24098 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Petton <nicolas <at> petton.fr>
To: David Gomes <davidrafagomes <at> gmail.com>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 24098 <at> debbugs.gnu.org
Subject: Re: bug#24098: 25.1; Auto complete not working
Date: Thu, 28 Jul 2016 18:30:10 +0200
[Message part 1 (text/plain, inline)]
David Gomes <davidrafagomes <at> gmail.com> writes:

> The first line seems to be related with Emacs Code Browser,so
> I decided to M-x ecb-deactivate and then restart Emacs without
> Emacs Code Browser at all.

Hi David,

Could you provide a recipe to reproduce this issue starting with a fresh
Emacs session with `Emacs -Q'?

Cheers,
Nico
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24098; Package emacs. (Thu, 28 Jul 2016 16:38:02 GMT) Full text and rfc822 format available.

Message #17 received at 24098 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: David Gomes <davidrafagomes <at> gmail.com>
Cc: 24098 <at> debbugs.gnu.org
Subject: Re: bug#24098: 25.1; Auto complete not working
Date: Thu, 28 Jul 2016 12:37:49 -0400
On Thu, Jul 28, 2016 at 10:10 AM, David Gomes <davidrafagomes <at> gmail.com> wrote:
> Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1)
> auto-complete error: (wrong-number-of-arguments setq 1)

Looks like auto-complete code is hitting this change:

* Incompatible Lisp Changes in Emacs 25.1

---
** 'setq' and 'setf' must now be called with an even number of
arguments.  The earlier behavior of silently supplying a nil to the
last variable when there was an odd number of arguments has been
eliminated.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24098; Package emacs. (Thu, 28 Jul 2016 16:44:02 GMT) Full text and rfc822 format available.

Message #20 received at 24098 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>, David Gomes
 <davidrafagomes <at> gmail.com>
Cc: 24098 <at> debbugs.gnu.org
Subject: RE: bug#24098: 25.1; Auto complete not working
Date: Thu, 28 Jul 2016 09:43:43 -0700 (PDT)
> Looks like auto-complete code is hitting this change:
> * Incompatible Lisp Changes in Emacs 25.1
> ---
> ** 'setq' and 'setf' must now be called with an even number of
> arguments.  The earlier behavior of silently supplying a nil to the
> last variable when there was an odd number of arguments has been
> eliminated.

Haven't followed this thread, and haven't checked the code to
see how this is handled.  But isn't an error raised in such a
way that it is clear what happened?  Why wasn't it clear to the
OP what the problem was?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24098; Package emacs. (Thu, 28 Jul 2016 16:45:02 GMT) Full text and rfc822 format available.

Message #23 received at 24098 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: David Gomes <davidrafagomes <at> gmail.com>
Cc: 24098 <at> debbugs.gnu.org
Subject: Re: bug#24098: 25.1; Auto complete not working
Date: Thu, 28 Jul 2016 19:44:37 +0300
> From: David Gomes <davidrafagomes <at> gmail.com>
> Date: Thu, 28 Jul 2016 12:15:57 -0400
> Cc: 24098 <at> debbugs.gnu.org
> 
> This was the output of my *Messages* buffer as I tried to autocomplete.
> 
> Loading /Users/davidgomes/.emacs.d/recentf...done
> Cleaning up the recentf list...done (0 removed)
> ECB 2.40 uses CEDET 2.0 (contains semantic 2.2, eieio 1.4, speedbar 1.0).
> All requirements for ECB 2.40 fulfilled - Enjoy it!
> ad-handle-definition: ‘custom-save-all’ got redefined
> Loading /Users/davidgomes/.ecb-user-layouts.el (source)...done
> The ECB is now activated.
> There are no NEWS to display.
> All requirements for ECB 2.40 fulfilled - Enjoy it!
> ad-handle-definition: ‘tramp-read-passwd’ got redefined
> Desktop: File "/Users/davidgomes/*message*-20160728-070715" no longer exists.
> Wrote /Users/davidgomes/.emacs.d/.emacs.desktop.lock
> Desktop: 2 frames, 22 buffers restored, 1 failed to restore.
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1)
> auto-complete error: (wrong-number-of-arguments setq 1)
> Mark set
> Saving file /Users/davidgomes/.emacs.d/init.el...
> Wrote /Users/davidgomes/.emacs.d/init.el
> auto-complete error: (wrong-number-of-arguments setq 1) [15 times]
> Undo!
> C-x <up> is undefined
> 
> No more tree-buffer errors but auto-complete still not working. I think you
> should just ignore the first line of output in the original bug report.

The next suspect is this:

> Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1)
> auto-complete error: (wrong-number-of-arguments setq 1)

which is also not part of Emacs.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24098; Package emacs. (Sun, 31 Jul 2016 13:47:02 GMT) Full text and rfc822 format available.

Message #26 received at 24098 <at> debbugs.gnu.org (full text, mbox):

From: Chris Zheng <chriszheng99 <at> gmail.com>
To: 24098 <at> debbugs.gnu.org
Subject: Re: bug#24098: 25.1; Auto complete not working
Date: Sun, 31 Jul 2016 21:46:37 +0800
Hi,

> Error running timer ‘ac-show-menu’: (wrong-number-of-arguments setq 1)
> auto-complete error: (wrong-number-of-arguments setq 1)

This is fixed in auto-complete v1.5.1, see

https://github.com/auto-complete/auto-complete/commit/8d3db89eaaaebf31cca574216e630f64e5e28c5f

Please try a newer version of auto-complete.

Added tag(s) notabug; removed tag(s) moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 01 Aug 2016 20:16:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 24098 <at> debbugs.gnu.org and David Gomes <davidrafagomes <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 01 Aug 2016 20:16:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 30 Aug 2016 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.