GNU bug report logs - #28898
27.0.50; rgrep + icomplete => (cl-assertion-failed (functionp table))

Previous Next

Package: emacs;

Reported by: Dmitry Alexandrov <321942 <at> gmail.com>

Date: Thu, 19 Oct 2017 01:58:03 UTC

Severity: normal

Found in version 27.0.50

Done: charles <at> aurox.ch (Charles A. Roelli)

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 28898 in the body.
You can then email your comments to 28898 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#28898; Package emacs. (Thu, 19 Oct 2017 01:58:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dmitry Alexandrov <321942 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 19 Oct 2017 01:58:03 GMT) Full text and rfc822 format available.

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

From: Dmitry Alexandrov <321942 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; rgrep + icomplete => (cl-assertion-failed (functionp table))
Date: Thu, 19 Oct 2017 04:57:30 +0300
Steps to reproduce:

$ cd /
$ emacs -Q
M-x icomplete-mode
M-x rgrep foo RET e

(Where ‘foo’ is arbitrary text and ‘e’ is the first letter of one of possible completions.  In this example that would be ‘etc’.)

Got an ‘Error in post-command-hook (icomplete-post-command-hook): (cl-assertion-failed (functionp table))’.

Backtrace:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (cl-assertion-failed ((functionp table) nil))
  cl--assertion-failed((functionp table))
  completion--nth-completion(1 "e" (#("etc/" 0 1 (face completions-common-part) 1 2 (face (completions-first-difference)))) nil 1 (metadata (category . file) (completion--unquote-requote . t)))
  completion-try-completion("e" (#("etc/" 0 1 (face completions-common-part) 1 2 (face (completions-first-difference)))) nil 1 (metadata (category . file) (completion--unquote-requote . t)))
  icomplete-completions("e" read-file-name-internal nil t)
  icomplete-exhibit()
  icomplete-post-command-hook()
  read-from-minibuffer("Search for \"foo\" in files matching wildcard (default all): " nil (keymap (menu-bar keymap (minibuf "Minibuf" keymap (tab menu-item "Complete" minibuffer-complete :help "Complete as far as possible") (space menu-item "Complete Word" minibuffer-complete-word :help "Complete at most one word") (63 menu-item "List Completions" minibuffer-completion-help :help "Display all possible completions") "Minibuf")) (27 keymap (118 . switch-to-completions)) (prior . switch-to-completions) (63 . minibuffer-completion-help) (32 . minibuffer-complete-word) (9 . minibuffer-complete) keymap (menu-bar keymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item" previous-history-element :help "Put previous minibuffer history element in the minibuffer") (next menu-item "Next History Item" next-history-element :help "Put next minibuffer history element in the minibuffer") (isearch-backward menu-item "Isearch History Backward" isearch-backward :help "Incrementally search minibuffer history backward") (isearch-forward menu-item "Isearch History Forward" isearch-forward :help "Incrementally search minibuffer history forward") (return menu-item "Enter" exit-minibuffer :key-sequence "\015" :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort-recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . exit-minibuffer) (13 . exit-minibuffer) (7 . abort-recursive-edit) (C-tab . file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . previous-history-element) (up . previous-line-or-history-element) (prior . previous-history-element) (XF86Forward . next-history-element) (down . next-line-or-history-element) (next . next-history-element) (27 keymap (114 . previous-matching-history-element) (115 . next-matching-history-element) (112 . previous-history-element) (110 . next-history-element))) nil grep-files-history ("all" "el" "ch" "c" "cc" "cchh" "hh" "h" "l" "m" "tex" "texi" "asm") nil)
  completing-read-default("Search for \"foo\" in files matching wildcard (default all): " read-file-name-internal nil nil nil grep-files-history ("all" "el" "ch" "c" "cc" "cchh" "hh" "h" "l" "m" "tex" "texi" "asm") nil)
  completing-read("Search for \"foo\" in files matching wildcard (default all): " read-file-name-internal nil nil nil grep-files-history ("all" "el" "ch" "c" "cc" "cchh" "hh" "h" "l" "m" "tex" "texi" "asm"))
  grep-read-files("foo")
  byte-code("\304 \210\010\203\026\0\011\305\232\203\026\0\306\307\010\310\211\311%C\207\n\204\036\0\312\313!\207\314 \315\001!\316\317\310\013\320$\011\321\232\003\003\003\003F\207" [grep-find-command current-prefix-arg grep-find-template default-directory grep-compute-defaults (16) read-from-minibuffer "Run: " nil grep-find-history error "grep.el: No `grep-find-template' available" grep-read-regexp grep-read-files read-directory-name "Base directory: " t (4)] 8)
  call-interactively(rgrep record nil)
  command-execute(rgrep record)
  execute-extended-command(nil "rgrep" nil)
  funcall-interactively(execute-extended-command nil "rgrep" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)
--8<---------------cut here---------------end--------------->8---

This might be related to bug № 16274 [0].

[0] https://bugs.gnu.org/16274




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28898; Package emacs. (Sun, 22 Oct 2017 15:30:02 GMT) Full text and rfc822 format available.

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

From: charles <at> aurox.ch (Charles A. Roelli)
To: Dmitry Alexandrov <321942 <at> gmail.com>
Cc: 28898 <at> debbugs.gnu.org
Subject: Re: bug#28898: 27.0.50;
 rgrep + icomplete => (cl-assertion-failed (functionp table))
Date: Sun, 22 Oct 2017 17:29:42 +0200
> From: Dmitry Alexandrov <321942 <at> gmail.com>
> Date: Thu, 19 Oct 2017 04:57:30 +0300
> 
> Steps to reproduce:
> 
> $ cd /
> $ emacs -Q
> M-x icomplete-mode
> M-x rgrep foo RET e
> 
> (Where ‘foo’ is arbitrary text and ‘e’ is the first letter of one of possible completions.  In this example that would be ‘etc’.)
> 
> Got an ‘Error in post-command-hook (icomplete-post-command-hook): (cl-assertion-failed (functionp table))’.

Thanks.  Does the fix posted in the referenced bug prevent the error?
(See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=16274#62.)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28898; Package emacs. (Mon, 23 Oct 2017 12:06:02 GMT) Full text and rfc822 format available.

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

From: Dmitry Alexandrov <321942 <at> gmail.com>
To: charles <at> aurox.ch (Charles A. Roelli)
Cc: 28898 <at> debbugs.gnu.org
Subject: Re: bug#28898: 27.0.50;
 rgrep + icomplete => (cl-assertion-failed (functionp table))
Date: Mon, 23 Oct 2017 15:05:27 +0300
>> From: Dmitry Alexandrov <321942 <at> gmail.com>
>> Date: Thu, 19 Oct 2017 04:57:30 +0300
>> 
>> Steps to reproduce:
>> 
>> $ cd /
>> $ emacs -Q
>> M-x icomplete-mode
>> M-x rgrep foo RET e
>> 
>> (Where ‘foo’ is arbitrary text and ‘e’ is the first letter of one of
>> possible completions.  In this example that would be ‘etc’.)
>> 
>> Got an ‘Error in post-command-hook (icomplete-post-command-hook): (cl-assertion-failed (functionp table))’.
>
> Thanks.  Does the fix posted in the referenced bug prevent the error?
> (See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=16274#62.)

It does!  Thanks a lot.




Reply sent to charles <at> aurox.ch (Charles A. Roelli):
You have taken responsibility. (Sun, 12 Nov 2017 09:40:02 GMT) Full text and rfc822 format available.

Notification sent to Dmitry Alexandrov <321942 <at> gmail.com>:
bug acknowledged by developer. (Sun, 12 Nov 2017 09:40:02 GMT) Full text and rfc822 format available.

Message #16 received at 28898-done <at> debbugs.gnu.org (full text, mbox):

From: charles <at> aurox.ch (Charles A. Roelli)
To: Dmitry Alexandrov <321942 <at> gmail.com>
Cc: 28898-done <at> debbugs.gnu.org
Subject: Re: bug#28898: 27.0.50;
 rgrep + icomplete => (cl-assertion-failed (functionp table))
Date: Sun, 12 Nov 2017 10:39:09 +0100
A fix was pushed to emacs-26:

d63c9a9..: Stefan Monnier 2017-11-11 * lisp/minibuffer.el: Install a workaround for bug#16274
  commit d63c9a96f51fd4d723dc66a6cc0a8a0a04c8ce6c
  Author: Stefan Monnier <monnier <at> iro.umontreal.ca>
  Ref:    emacs-26~5
  Date:   Sat Nov 11 10:25:20 2017 -0500

  * lisp/minibuffer.el: Install a workaround for bug#16274

  * lisp/minibuffer.el (completion--nth-completion): Avoid signaling an
  error when `md` is applied to another table.

It should already be merged into master, so I'm closing the bug.
Thanks for reporting this issue.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 10 Dec 2017 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 194 days ago.

Previous Next


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