unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28898: 27.0.50; rgrep + icomplete => (cl-assertion-failed (functionp table))
@ 2017-10-19  1:57 Dmitry Alexandrov
  2017-10-22 15:29 ` Charles A. Roelli
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Alexandrov @ 2017-10-19  1:57 UTC (permalink / raw)
  To: 28898

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#28898: 27.0.50; rgrep + icomplete => (cl-assertion-failed (functionp table))
  2017-10-19  1:57 bug#28898: 27.0.50; rgrep + icomplete => (cl-assertion-failed (functionp table)) Dmitry Alexandrov
@ 2017-10-22 15:29 ` Charles A. Roelli
  2017-10-23 12:05   ` Dmitry Alexandrov
  0 siblings, 1 reply; 4+ messages in thread
From: Charles A. Roelli @ 2017-10-22 15:29 UTC (permalink / raw)
  To: Dmitry Alexandrov; +Cc: 28898

> From: Dmitry Alexandrov <321942@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.)






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#28898: 27.0.50; rgrep + icomplete => (cl-assertion-failed (functionp table))
  2017-10-22 15:29 ` Charles A. Roelli
@ 2017-10-23 12:05   ` Dmitry Alexandrov
  2017-11-12  9:39     ` Charles A. Roelli
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Alexandrov @ 2017-10-23 12:05 UTC (permalink / raw)
  To: Charles A. Roelli; +Cc: 28898

>> From: Dmitry Alexandrov <321942@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#28898: 27.0.50; rgrep + icomplete => (cl-assertion-failed (functionp table))
  2017-10-23 12:05   ` Dmitry Alexandrov
@ 2017-11-12  9:39     ` Charles A. Roelli
  0 siblings, 0 replies; 4+ messages in thread
From: Charles A. Roelli @ 2017-11-12  9:39 UTC (permalink / raw)
  To: Dmitry Alexandrov; +Cc: 28898-done

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@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-12  9:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-19  1:57 bug#28898: 27.0.50; rgrep + icomplete => (cl-assertion-failed (functionp table)) Dmitry Alexandrov
2017-10-22 15:29 ` Charles A. Roelli
2017-10-23 12:05   ` Dmitry Alexandrov
2017-11-12  9:39     ` Charles A. Roelli

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).